Author: post
Date: 2010-07-01 22:05:57 +0200 (Thu, 01 Jul 2010)
New Revision: 246
Modified:
RawSpeed/DngDecoder.cpp
Log:
DNG: Check slice height.
Modified: RawSpeed/DngDecoder.cpp
===================================================================
--- RawSpeed/DngDecoder.cpp 2010-07-01 20:04:20 UTC (rev 245)
+++ RawSpeed/DngDecoder.cpp 2010-07-01 20:05:57 UTC (rev 246)
@@ -257,6 +257,9 @@
ThrowRDE("DNG Decoder: Byte count number does not match strip
size: count:%u, stips:%u ", TEcounts->count, TEoffsets->count);
}
+ if (yPerSlice == 0 || yPerSlice > (uint32)mRaw->dim.y)
+ ThrowRDE("DNG Decoder: Invalid y per slice");
+
uint32 offY = 0;
for (uint32 s = 0; s < TEcounts->count; s++) {
DngSliceElement e(offsets[s], counts[s], 0, offY);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit