FreeRDP/winpr
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
..
include Added version to client log, removed build_date 2021-04-22 14:07:37 +02:00
libwinpr winpr/utils/lodepng: Fix USE_AFTER_FREE reported by Coverity 2021-04-27 14:25:20 +02:00
test Reformatted to new style 2019-11-07 10:53:54 +01:00
tools Fixed typos (Otherweise) 2020-05-10 16:35:20 +09:00
.gitignore Add library libwinpr-tools 2016-05-03 14:42:08 +02:00
CMakeLists.txt Fix #6066, #6045: Disable spincount by default. 2020-04-13 09:56:19 +02:00
winpr.pc.in Include major version number in library names 2017-01-16 11:11:58 +01:00
WinPRConfig.cmake.in build: remove FREERDP_MONOLITHIC_BUILD 2016-01-12 17:32:32 +01:00
wlog.7 Fix issues in wlog man page 2016-12-01 15:36:31 +01:00