Fix potential vulnerable cloned zlib-functions#6274
Fix potential vulnerable cloned zlib-functions#6274mvieth merged 2 commits intoPointCloudLibrary:masterfrom
Conversation
…eflate on some input when using Z_FIXED.
|
Hi, thank you for the pull request. Unfortunately, with your changes PCL does not build any more when using the CMake options |
|
Maybe we should keep the zlib files here in 1.15.1 and then remove it from 1.16? Even though we haven't set the internal used files as deprecated, I wouldn't mind removing the copied files from 1.16, since it has been preferred to use system lib and we would probably have seen a lot of issues, if that wouldn't have worked most places? |
Sound like a good idea.
Yes, I agree. We could add one or two new tests to make extra sure that using a system zlib does not change anything, but I don't think it does. @npt-1707 Then please take a look at which changes are missing in this pull request, to make sure that building with |
|
Hi @mvieth, there are some missing changes in this PR compared to the commit from zlib because those changes in that commit fixed some functions that have same names but different code snippets compared to your code. Sorry that I cannot support you in this work. Please consider my PR as a suggestion for reviewing zlib version and update them to avoid some vulnerabilities. Many thanks for your time! |
mvieth
left a comment
There was a problem hiding this comment.
With the additional changes in deflate.h, it builds successfully.
Description
This PR fixes a potential vulnerability that was cloned from zlib but did not receive the security patch. The original issue was reported and fixed under madler/zlib@5c44459.
This PR applies the same patch to eliminate the vulnerability.
References
https://nvd.nist.gov/vuln/detail/CVE-2018-25032
madler/zlib@5c44459