1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/graphics/imlib2/files/patch-CVE-2008-5187
Stanislav Sedov 95c96662d0 - Fix a buffer overflow vulnerability in imlib2.
PR:		ports/129037
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Security:	http://www.vuxml.org/freebsd/910486d5-ba4d-11dd-8f23-0019666436c2.html
2008-11-24 17:50:04 +00:00

15 lines
537 B
Plaintext

Obtained from: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505714#15
--- src/modules/loaders/loader_xpm.c
+++ src/modules/loaders/loader_xpm.c
@@ -246,8 +246,8 @@
return 0;
}
ptr = im->data;
- end = ptr + (sizeof(DATA32) * w * h);
pixels = w * h;
+ end = ptr + pixels;
}
else
{