mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 16:59:56 +01:00
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:
1 parent
b012adb0f0
commit
f812d2f59c
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user