From f812d2f59ce07aa9dddbd5be6f66a53d2f907fff Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Mon, 23 Nov 2026 04:43:36 +0100 Subject: [PATCH] android-res: report skipped entries when the entry limit stops a type Stop the entry loop with break instead of return, so entries skipped before the limit still get their warning. Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com> --- crates/android-res/src/arsc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/android-res/src/arsc.rs b/crates/android-res/src/arsc.rs index 21c700b14..d497e545e 100644 --- a/crates/android-res/src/arsc.rs +++ b/crates/android-res/src/arsc.rs @@ -529,7 +529,7 @@ fn parse_type( for (idx, o) in slots { if table.entries.len() >= limits.max_entries { table.truncated = true; - return; + break; } let Some(e) = c.checked_add(entries_start).and_then(|x| x.checked_add(o)).filter(|e| e.saturating_add(8) <= end) else { skipped += 1;