mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 09:30:13 +08:00
Don't try allocating arbitrarily large amounts of memory for the extended header in wxTarInputStream and impose a very big but still reasonable enough to not result in out of memory condition size for it by default. Allow changing this size via the newly added SetMaxExtendedHeaderSize() function for the applications that want to handle files with even bigger header or, on the contrary, want to avoid allocating even that much. This should fix running out of memory in OSS-Fuzz runs using the fuzzer for this class. Closes #26588. Closes #26607. Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>