LibRaw/LibRaw-0.14.7-segfault.patch
2013-04-11 07:48:25 -05:00

12 lines
467 B
Diff

--- internal/dcraw_common.cpp~ 2012-06-27 11:39:05.000000000 -0500
+++ internal/dcraw_common.cpp 2013-04-11 07:09:04.594518113 -0500
@@ -7277,7 +7277,7 @@
if (table[i].t_black) black = (ushort) table[i].t_black;
if (table[i].t_maximum) maximum = (ushort) table[i].t_maximum;
if (table[i].trans[0]) {
- for (j=0; j < 12; j++)
+ for (j=0; j < 3; j++)
#ifdef LIBRAW_LIBRARY_BUILD
imgdata.color.cam_xyz[0][j] =
#endif