[Scummvm-tracker] [ScummVM :: Bugs] #16610: COMMON: Leak of memory allocated in gzio.cpp
ScummVM :: Bugs
trac at scummvm.org
Mon Mar 16 00:49:14 UTC 2026
#16610: COMMON: Leak of memory allocated in gzio.cpp
--------------------------+--------------------
Reporter: tunnelsociety | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Common
Version: | Keywords:
Game: |
--------------------------+--------------------
Run ScummVM configured with `--disable-zlib` and load a save game
(probably any engine; I tested PhoenixVR and Nancy) which is compressed.
Attaching ASan reports for sample Nancy and PhoenixVR cases.
Head of every leaked alloc bt is:
{{{
#0 in calloc (scummvm+0xee2cdd) (BuildId:
9363591178c51873f07dcaf031d3ee64dc39193c)
#1 in Common::huft_build(unsigned int*, unsigned int, unsigned int,
unsigned short const*, unsigned short const*, Common::huft**, int*)
common/compression/gzio.cpp:481:28
#2 in Common::GzioReadStream::init_dynamic_block()
common/compression/gzio.cpp:927:7
#3 in Common::GzioReadStream::inflate_window()
common/compression/gzio.cpp:1044:4
#4 in Common::GzioReadStream::readAtOffset(long, unsigned char*, unsigned
int) common/compression/gzio.cpp:1261:4
#5 in Common::GzioReadStream::read(void*, unsigned int)
common/compression/gzio.cpp:1289:21
}}}
For now I will reconfigure with `--enable-zlib` and carry on! Ah,
incidentally, loading nancy3 is significantly faster now, even though I
was building `--disable-zlib` with `-O3`.
--
Ticket URL: <https://bugs.scummvm.org/ticket/16610>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list