mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
12 lines
373 B
C
12 lines
373 B
C
--- 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)) {
|