freebsd-ports/graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc
Xin LI 5b161007a0 Apply vendor patch for "Avoid overflow in ljpeg_start()"
(changeset 983bda1f) to prevent a denial of service (crash) via a
crafted image

PR:		200199
Obtained from:	983bda1f0f
Security:	CVE-2015-3885
Security:	57325ecf-facc-11e4-968f-b888e347c638
Submitted by:	Jason Unovitch <jason unovitch gmail com>
Reported by:	Sevan Janiyan <venture37 geeklan co uk>
Approved by:	samm os2 kiev ua (maintainer)
MFH:		2015Q2
2015-05-31 09:14:02 +00:00

12 lines
286 B
C++

--- plugins/load-dcraw/dcraw.cc.orig 2015-05-29 01:03:46 UTC
+++ plugins/load-dcraw/dcraw.cc
@@ -869,7 +869,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];
const uchar *dp;