aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFneufneu <fneufneu@xbmc.org>2015-05-15 15:55:52 +0200
committerFneufneu <fneufneu@xbmc.org>2015-05-15 15:55:52 +0200
commit78a4b8f9e23f2c3dffe198f71730917308605298 (patch)
treed75b6fd24ba23d2e9fe23c8daf1bb48868dfc7db /lib
parenta7769c603a017706253271daf802364d34087618 (diff)
Avoid overflow in ljpeg_start().
Diffstat (limited to 'lib')
-rw-r--r--lib/cximage-6.0/raw/dcraw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cximage-6.0/raw/dcraw.c b/lib/cximage-6.0/raw/dcraw.c
index 45cd7a96b4..5ab24987a9 100644
--- a/lib/cximage-6.0/raw/dcraw.c
+++ b/lib/cximage-6.0/raw/dcraw.c
@@ -820,7 +820,8 @@ struct jhead {
int CLASS ljpeg_start (struct jhead *jh, int info_only)
{
- int c, tag, len;
+ int c, tag;
+ ushort len;
uchar data[0x10000], *dp;
init_decoder();