637413daf4
Although the `lodepng_zlib_compress` function expects the `*out` parameter to be `NULL`, it uses `uvector_init_buffer` internally, which takes the `*out` value. This confuses covscan, which consequently reports the following defects: ``` double_free: Calling "ucvector_cleanup" frees pointer "zlibdata.data" which has already been freed. double_free: Calling "ucvector_cleanup" frees pointer "compressed.data" which has already been freed. double_free: Calling "ucvector_cleanup" frees pointer "compressed_data.data" which has already been freed. ``` Let's use the `uvector_init` function instead as in other cases to make covscan happy and to make the code more bulletproof. Consequently, also remove the outdated comments. |
||
---|---|---|
.. | ||
collections | ||
corkscrew | ||
lodepng | ||
test | ||
trio | ||
wlog | ||
CMakeLists.txt | ||
cmdline.c | ||
debug.c | ||
image.c | ||
ini.c | ||
ModuleOptions.cmake | ||
ntlm.c | ||
print.c | ||
sam.c | ||
ssl.c | ||
stream.c | ||
strlst.c | ||
winpr.c |