Skip to content

Commit 983bda1

Browse files
committed
Avoid overflow in ljpeg_start().
1 parent 6eabf1f commit 983bda1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: plugins/load-dcraw/dcraw.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,8 @@ struct jhead {
890890

891891
int CLASS ljpeg_start (struct jhead *jh, int info_only)
892892
{
893-
int c, tag, len;
893+
int c, tag;
894+
ushort len;
894895
uchar data[0x10000];
895896
const uchar *dp;
896897

0 commit comments

Comments
 (0)