Author: post
Date: 2012-07-09 23:02:50 +0200 (Mon, 09 Jul 2012)
New Revision: 433
Modified:
RawSpeed/LJpegDecompressor.cpp
Log:
Check component counter.
Modified: RawSpeed/LJpegDecompressor.cpp
===================================================================
--- RawSpeed/LJpegDecompressor.cpp 2012-07-09 14:35:05 UTC (rev 432)
+++ RawSpeed/LJpegDecompressor.cpp 2012-07-09 21:02:50 UTC (rev 433)
@@ -258,6 +258,9 @@
if (!huff[td].initialized)
ThrowRDE("LJpegDecompressor::parseSOS: Invalid Huffman table selection,
not defined.");
+ if (count > 3)
+ ThrowRDE("LJpegDecompressor::parseSOS: Component count out of range");
+
frame.compInfo[count].dcTblNo = td;
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit