A complete implementation of 10918-1 (JPEG) coming from jpeg.org (the ISO group) with extensions for HDR, lossless and alpha channel coding standardized as ISO/IEC 18477 (JPEG XT).
*** Warning -1038 in Tables::ParseTables, line 1384, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range
*** Warning -1038 in Tables::ParseTables, line 1384, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range
*** Warning -1038 in Tables::ParseTables, line 1384, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range
*** Warning -1038 in Tables::ParseTables, line 1384, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range
*** Warning -1038 in Tables::ParseTables, line 1384, file tables.cpp
*** Reason is: found invalid marker, probably a marker size is out of range
*** Warning -1038 in Frame::StartParseHiddenScan, line 869, file frame.cpp
*** Reason is: Start of Scan SOS marker missing
*** Warning -1038 in Frame::ParseTrailer, line 1085, file frame.cpp
*** Reason is: missing an EOI marker at the end of the stream
*** Warning -1038 in Image::ParseTrailer, line 1464, file image.cpp
*** Reason is: expecting an EOI marker at the end of the stream
[1] 4496 segmentation fault ./jpeg -oz -h -s 1x1,2x2,2x2 /dev/null
AddressSanitizer output
Program received signal SIGSEGV, Segmentation fault.
0x0000000000548f67 in LineBuffer::FetchRegion (this=0x7d1510, x=0, line=0x0, buffer=0x7fffffffd2d0) at linebuffer.cpp:322
322 memcpy(buffer,line->m_pData + (x << 3),8 * sizeof(LONG));
(gdb) bt
#0 0x0000000000548f67 in LineBuffer::FetchRegion (this=0x7d1510, x=0, line=0x0, buffer=0x7fffffffd2d0) at linebuffer.cpp:322
#1 0x000000000055050a in LineBitmapRequester::ReconstructRegion (this=0x7d1510, orgregion=..., rr=0x7fffffffd480) at linebitmaprequester.cpp:476
#2 0x0000000000421892 in Image::ReconstructRegion (this=0x7d1160, bmh=0x7fffffffd4a0, rr=0x7fffffffd480) at image.cpp:1111
#3 0x0000000000416c7f in JPEG::InternalDisplayRectangle (this=0x7cf278, tags=0x7fffffffdb20) at jpeg.cpp:721
#4 0x0000000000416b72 in JPEG::DisplayRectangle (this=0x7cf278, tags=0x7fffffffdb20) at jpeg.cpp:699
#5 0x000000000040c689 in Reconstruct (infile=0x7fffffffe43d "SEGV-FetchRegion-LineBuffer322", outfile=0x7fffffffe4b5 "/dev/null", colortrafo=1, alpha=0x0,
upsample=true) at reconstruct.cpp:320
#6 0x000000000040308c in main (argc=3, argv=0x7fffffffe168) at main.cpp:718
System info
Ubuntu 16.04 xenial, gcc (Ubuntu 5.5.0-12ubuntu1), jpeg (latest master ea585f)
Command line
./jpeg -oz -h -s 1x1,2x2,2x2 @@ /dev/null
Output
AddressSanitizer output
POC
SEGV-FetchRegion-LineBuffer322.zip