FreeRDP/winpr/libwinpr/utils
Ondrej Holy 637413daf4 winpr/utils/lodepng: Fix USE_AFTER_FREE reported by Coverity
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.
2021-04-27 14:25:20 +02:00
..
collections
corkscrew
lodepng winpr/utils/lodepng: Fix USE_AFTER_FREE reported by Coverity 2021-04-27 14:25:20 +02:00
test Added version to client log, removed build_date 2021-04-22 14:07:37 +02:00
trio
wlog
CMakeLists.txt
cmdline.c
debug.c
image.c
ini.c
ModuleOptions.cmake
ntlm.c
print.c Unified bin to hex and hex to bin conversion 2021-04-19 10:45:21 +02:00
sam.c Unified bin to hex and hex to bin conversion 2021-04-19 10:45:21 +02:00
ssl.c
stream.c
strlst.c
winpr.c Added version to client log, removed build_date 2021-04-22 14:07:37 +02:00