Comments (2)
This is a garbadge-in garbadge-out problem. You provide an invalid ppm for encoding which contains elements are are not within the promised precision of the ppm.
from libjpeg.
Won't fix. Missing input sanitation, this has to be done in the bitmap hook which is outside of the library, specifically cmd/bitmaphook.cpp if needed - this would add a single comparison per pixel which is at this time considered too expensive and not worth the hassle. Note that the decoder shall be robust, but the encoder operates on a garbadge-in garbadge-out basis.
from libjpeg.
Related Issues (20)
- 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
- two bug in jpeg encoding HOT 2
- `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
- [stack-buffer-overflow](tmo.cpp:78): size `(1 << outbits)` might be too big for array `hdrtoldr` HOT 2
- Huffman table contains 256 entries (for no good reason) HOT 3
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.