blob: 121a02498fe0d32c25e9c5142cf7d9927519587b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- libgd/gd_gd.c.orig 2010-03-26 14:26:22.000000000 +0100
+++ libgd/gd_gd.c 2010-03-26 14:28:03.000000000 +0100
@@ -40,6 +40,9 @@
if (!gdGetWord(&im->colorsTotal, in)) {
goto fail1;
}
+ if (im->colorsTotal > gdMaxColors) {
+ goto fail1;
+ }
}
/* Int to accommodate truecolor single-color transparency */
if (!gdGetInt(&im->transparent, in)) {
|