Overview
| Artifact ID: | 11febb7ba8ccddd28680023b1d6c52bfb1bf7d2eeb61aa8ada2f507c686c58c9 |
|---|---|
| Ticket: | d7849f77215ce9a2a0edf5ea78da53d87d48264d
valgrind detected memory leak in latest zipfs |
| User & Date: | apnadkarni on 2023-09-16 02:45:16 |
Changes
- icomment:
Latent bugs, triggered by now actually having tests. First analysis - ZipChannel.ubuf which is leaked may point to allocated memory (in which case it needs to be freed) or within a mapped zip file (in which case it must not). However, insufficient information is maintained as to whether it needs freeing. Currently, it is only freed when the file was compressed. However, memory is also allocated if file was encrypted without being compressed, or if the file is opened for write. Further complicating matters, in the encrypted case the field is updated to point *within* the allocation so the pointer to the allocation base is "lost". Fixing needs some thought.
- login: "apnadkarni"
- mimetype: "text/x-markdown"