<i>valgrind detected memory leak in latest zipfs</i> status still Open with 3 other changes
by
.
D 2023-09-16T02:45:16.374
J icomment Latent\sbugs,\striggered\sby\snow\sactually\shaving\stests.\s\r\n\r\nFirst\sanalysis\s-\sZipChannel.ubuf\swhich\sis\sleaked\smay\spoint\sto\sallocated\smemory\s(in\swhich\scase\sit\sneeds\sto\sbe\sfreed)\sor\swithin\sa\smapped\szip\sfile\s(in\swhich\scase\sit\smust\snot).\sHowever,\sinsufficient\sinformation\sis\smaintained\sas\sto\swhether\sit\sneeds\sfreeing.\sCurrently,\sit\sis\sonly\sfreed\swhen\sthe\sfile\swas\scompressed.\sHowever,\smemory\sis\salso\sallocated\sif\sfile\swas\sencrypted\swithout\sbeing\scompressed,\sor\sif\sthe\sfile\sis\sopened\sfor\swrite.\sFurther\scomplicating\smatters,\sin\sthe\sencrypted\scase\sthe\sfield\sis\supdated\sto\spoint\s*within*\sthe\sallocation\sso\sthe\spointer\sto\sthe\sallocation\sbase\sis\s"lost".\r\n\r\nFixing\sneeds\ssome\sthought.
J login apnadkarni
J mimetype text/x-markdown
K d7849f77215ce9a2a0edf5ea78da53d87d48264d
U apnadkarni
Z 6a575d2f6834af2af32b3fe34da5dcce