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>
This commit is contained in:
FredApps
2026-11-23 04:43:36 +01:00
parent b012adb0f0
commit f812d2f59c
+1 -1
View File
@@ -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;