diff options
author | 2005-07-28 03:15:36 +0000 | |
---|---|---|
committer | 2005-07-28 03:15:36 +0000 | |
commit | 09a037213895871d4637e11006446341f6412efe (patch) | |
tree | dfa0d7ecd0054ebd694da7de3ec1e16f1d134ba4 /media-libs/imlib2/files | |
parent | Bump to hourly snapshot (diff) | |
download | historical-09a037213895871d4637e11006446341f6412efe.tar.gz historical-09a037213895871d4637e11006446341f6412efe.tar.bz2 historical-09a037213895871d4637e11006446341f6412efe.zip |
Fix an out of bounds crash when using Digikam #96065 by Quintin Pan.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'media-libs/imlib2/files')
-rw-r--r-- | media-libs/imlib2/files/imlib-1.2.0-bounds-check.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/imlib2/files/imlib-1.2.0-bounds-check.patch b/media-libs/imlib2/files/imlib-1.2.0-bounds-check.patch new file mode 100644 index 000000000000..fcf03be8b0bc --- /dev/null +++ b/media-libs/imlib2/files/imlib-1.2.0-bounds-check.patch @@ -0,0 +1,27 @@ +http://bugs.gentoo.org/show_bug.cgi?id=96065 +http://bugs.kde.org/show_bug.cgi?id=100894 +http://xcomputerman.com/bugs/view.php?id=275 + +Index: src/lib/rend.c +=================================================================== +RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/rend.c,v +retrieving revision 1.1 +retrieving revision 1.2 +diff -u -p -r1.1 -r1.2 +--- src/lib/rend.c 1 Nov 2004 09:45:31 -0000 1.1 ++++ src/lib/rend.c 28 Jul 2005 03:10:16 -0000 1.2 +@@ -431,11 +431,11 @@ __imlib_RenderImage(Display * d, ImlibIm + free(back); + return; + } +- memcpy(buf, im->data + ((y + sy) * im->w) + sx, ++ memcpy(buf, im->data + ((y + sy) * im->w), + im->w * hh * sizeof(DATA32)); + __imlib_DataCmodApply(buf, dw, hh, im->w - dw, NULL, cmod); +- pointer = buf; +- jump = 0; ++ pointer = buf + sx; ++ jump = im->w - sw; + } + else + { |