mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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:
parent
95b2a1cf1d
commit
f8a8189230
@ -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.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user