PKGBUILDs/extra/imlib2/bufferoverflow.patch

14 lines
467 B
Diff
Raw Normal View History

2009-10-10 02:23:22 +00:00
--- src/modules/loaders/loader_xpm.c
+++ src/modules/loaders/loader_xpm.c.new
@@ -246,8 +246,8 @@
return 0;
}
ptr = im->data;
- end = ptr + (sizeof(DATA32) * w * h);
pixels = w * h;
+ end = ptr + pixels;
}
else
{