Use the proper add-method to perform the check for max number of children

If adding is done without check it can trigger OOM when fuzzing.

This should fix https://issues.oss-fuzz.com/issues/391709145
This commit is contained in:
Dominik Stadler 2026-01-10 10:02:17 +01:00
parent 95b2a1cf1d
commit f8a8189230
3 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public final class UnknownEscherRecord extends EscherRecord {
bytesWritten += childBytesWritten;
offset += childBytesWritten;
bytesRemaining -= childBytesWritten;
getChildRecords().add( child );
addChildRecord( child );
}
return bytesWritten;
}

Binary file not shown.