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
heap-overflow in HierarchicalBitmapRequester::FetchRegion #71
Comments
|
This has been fixed, thank you. It is caused by inconsistent MCU sizes. |
|
I can still reproduce this on latest commit |
|
I can't: jpeg Copyright (C) 2012-2018 Thomas Richter, University of Stuttgart For license conditions, see README.license for details. *** Warning -1038 in Tables::ParseTables, line 1386, file tables.cpp *** Warning -1038 in Tables::ParseTables, line 1386, file tables.cpp reading a JPEG file failed - error -1038 - component subsampling is inconsistent across hierarchical levels 0 bytes memory not yet released. 6917 bytes maximal required. 33 allocations performed. This is from a fresh local repo. |
|
Have you built libjpeg with address sanitizer? I build it this way: |
|
I guess this issue is fixed by this commit 187035b |
|
Am 26.05.22 um 11:52 schrieb sleicasper:
Correct, that's the fix. The issue is that the affected codestream
communicates two incompatible MCU sizes, and the upsampler allocates
using one size, though uses then a different size. This cannot work.
Unfortunately, the description of the hierarchical process in the specs
is so sketchy, it's hard to make a robust implementation from it. Nobody
had much interest in this process back then.
|
There is a heap-overflow in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp.
reproduce steps:
poc
poc.zip
stack trace
The text was updated successfully, but these errors were encountered: