Skip to content

Commit

Permalink
cximage: fix broken cr2 after wrong backport of security fix d13aee8
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Aug 21, 2014
1 parent 05cee4b commit 8ce4f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cximage-6.0/raw/libdcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ void DCR_CLASS dcr_lossless_jpeg_load_raw(DCRAW* p)
}
if (p->raw_width == 3984 && (col -= 2) < 0)
col += (row--,p->raw_width);
if (row > p->raw_height)
longjmp (p->failure, 3);
if ((unsigned) (row-p->top_margin) < p->height) {
if ((unsigned) (col-p->left_margin) < p->width) {
BAYER(row-p->top_margin,col-p->left_margin) = val;
Expand All @@ -929,8 +931,6 @@ void DCR_CLASS dcr_lossless_jpeg_load_raw(DCRAW* p)
}
if (++col >= p->raw_width)
col = (row++,0);
if (row >= p->raw_height)
longjmp (p->failure, 3);
}
}
free (jh.row);
Expand Down

0 comments on commit 8ce4f46

Please sign in to comment.