Add a new TurboJPEG C API function (tjDecompressHeader4()) and Java API method (TJDecompressor.getFlags()) that return the bitwise OR of any flags that are relevant to the JPEG image being decompressed (currently TJFLAG_PROGRESSIVE, TJFLAG_ARITHMETIC, TJFLAG_LOSSLESS, and their Java equivalents.) This allows a calling program to determine whether the image being decompressed is a lossless JPEG image, which means that the decompression scaling feature will not be available and that a full-sized destination buffer should be allocated. More specifically, this fixes a buffer overrun in TJBench, TJExample, and the decompress* fuzz targets that occurred when attempting (in vain) to decompress a lossless JPEG image with decompression scaling enabled.
17 lines
401 B
Plaintext
17 lines
401 B
Plaintext
PROJECT_NAME = TurboJPEG
|
|
PROJECT_NUMBER = 2.2
|
|
OUTPUT_DIRECTORY = doc/
|
|
USE_WINDOWS_ENCODING = NO
|
|
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
WARN_NO_PARAMDOC = YES
|
|
GENERATE_LATEX = NO
|
|
FILE_PATTERNS = turbojpeg.h
|
|
HIDE_UNDOC_MEMBERS = YES
|
|
VERBATIM_HEADERS = NO
|
|
EXTRACT_STATIC = YES
|
|
JAVADOC_AUTOBRIEF = YES
|
|
MAX_INITIALIZER_LINES = 0
|
|
ALWAYS_DETAILED_SEC = YES
|
|
HTML_TIMESTAMP = NO
|
|
HTML_EXTRA_STYLESHEET = doxygen-extra.css
|