mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 11:38:08 +00: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:
@@ -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