mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
stop on error and display the statstics anyway
PR: 32686
This commit is contained in:
parent
86a16ada1e
commit
b7a74bbc41
1 changed files with 6 additions and 0 deletions
|
|
@ -66,6 +66,12 @@ statistic (fp, path_fcodes)
|
|||
} else
|
||||
count += c - OFFSET;
|
||||
|
||||
if (count < 0 || count > MAXPATHLEN) {
|
||||
/* stop on error and display the statstics anyway */
|
||||
warnx("corrupted database: %s", path_fcodes);
|
||||
break;
|
||||
}
|
||||
|
||||
for (p = path + count; (c = getc(fp)) > SWITCH; size++)
|
||||
if (c < PARITY) {
|
||||
if (c == UMLAUT) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue