File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access, var 0
3
+ --SKIPIF--
4
+ <?php
5
+ if (!extension_loaded ('gd ' )) die ("skip gd extension not available \n" );
6
+ ?>
7
+ --FILE--
8
+ <?php
9
+
10
+ $ img = imagecreatetruecolor (13 , 1007 );
11
+
12
+ imagecolortransparent ($ img , -10066304 );
13
+ imagetruecolortopalette ($ img , TRUE , 3 );
14
+ imagescale ($ img , 1 , 65535 );
15
+ ?>
16
+ ==DONE==
17
+ --EXPECT--
18
+ ==DONE==
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access, var 1
3
+ --SKIPIF--
4
+ <?php
5
+ if (!extension_loaded ('gd ' )) die ("skip gd extension not available \n" );
6
+ ?>
7
+ --FILE--
8
+ <?php
9
+
10
+ $ img = imagecreatetruecolor (100 , 100 );
11
+ imagecolortransparent ($ img , -1000000 );
12
+ imagetruecolortopalette ($ img , TRUE , 3 );
13
+ imagecolortransparent ($ img , 9 );
14
+
15
+ ?>
16
+ ==DONE==
17
+ --EXPECT--
18
+ ==DONE==
You can’t perform that action at this time.
0 commit comments