Comments (2)
Yes, thank you. Those two issues are fixed - on this particular input. One problem was that the input bitmap hook could not report an error if requesting or releasing a bitmap did not work. This has been fixed and the code was extended to collect such error codes to the caller.
However, please note that the example code in the "cmd" directory is not particular robust, and is not attempted to constitute a robust implementation. If the code is required to operate in a hostile environment, the bitmap hook implementation needs to sanetize its input as the library encoder (not the decoder!) operates under the assumption that input data is valid (i.e. "garbadge-in garbadge-out"). If that cannot be assumed, the bitmap hook is required to perform such validation, and generate an error (or fix the data).
from libjpeg.
Two CVEs were assigned to this bugreport, one for each bug:
CVE-2023-37836 and CVE-2023-37837
Note: I didn't have any involvement in this assignment, I'm just posting here for reference.
This seems to be the fixing commit:
9e0cea2
from libjpeg.
Related Issues (20)
- Segmentation fault in HuffmanDecoder::Get HOT 1
- Segmentation fault in LineMerger::GetNextLowpassLine HOT 3
- autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' HOT 1
- Abort in Reconstruct
- Abort in reconstruct.cpp:352 HOT 2
- Abort in BitStream<false>::Get
- Abort in LSLosslessTrafo<unsigned char, 3>::InstallMarker
- `jpeg` generates 12-bit JPEG with 0xFF AC Huffman symbol HOT 2
- where is the actual entrance of ENCODE HOT 1
- Stack Buffer Overflow in Function 'Reconstruct' HOT 1
- MSVC 2022 Compilation error due to use of ssize_t HOT 1
- Decode failure due to unknown App14 version HOT 2
- [assert-fail](namespace.hpp:90) : Assertion `m_ppPrimaryList == NULL' failed HOT 1
- [assert-fail](box.cpp:157) : Assertion `box->m_pInputStream' failed HOT 1
- [assert-fail](environment.cpp:408) : Assertion `totalmem == 0' failed HOT 1
- [assert-fail](refinementscan.cpp:86) : Assertion `m_ucHighBit == m_ucLowBit + 1' failed HOT 1
- [memcpy-param-overlap](bytestream.cpp:86): ptr_src <= ptr_dest < ptr_src + length occurs in memcpy HOT 1
- [SEGV; heap-buffer-overflow](ycbcrtrafo.cpp:220): index `*r` out of range (`m_plEncodingLUT[0][*r]`) HOT 2
- [stack-buffer-overflow](tmo.cpp:78): size `(1 << outbits)` might be too big for array `hdrtoldr` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libjpeg.