-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible problems with sc_decompress_zlib_alloc() #1905
Comments
I think I was fixing some of the issues with the decompress in #1830. If we are going to change something there, it should be already covered with unit tests to make sure it works. |
There are unit tests, yes, but I didn't notice any changes to |
They were already merged in 07d3d8e. But I agree there might be more issues that I missed |
I see, but that doesn't fix the points above. I hope to find time later for some fixes... |
- turns out, you can shrink a buffer with realloc on some implementations - realloc is never called with 0 (which would free the data) - length checking is done in zlib, we just do the allocation closes OpenSC#1905
- turns out, you can shrink a buffer with realloc on some implementations - realloc is never called with 0 (which would free the data) - length checking is done in zlib, we just do the allocation closes #1905
Problem Description
I think we need to have a closer look at
sc_decompress_zlib_alloc()
It looks like there's are multiple problems with:The text was updated successfully, but these errors were encountered: