Files
wxWidgets/interface
Arthur Chan ae897594fd Avoid OOM in wxTarInputStream for very large extended header
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>
2026-07-01 01:29:20 +02:00
..