summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagexbm_nullbyte_injection.phpt
blob: b4853150648b64ffdea05d0be3cc76b79dd88ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Testing null byte injection in imagexbm
--SKIPIF--
<?php
if(!extension_loaded('gd')) die('skip gd extension not available');
?>
--FILE--
<?php
$image = imagecreate(1,1);// 1px image
var_dump(imagexbm($image, "./foo\0bar"));
?>
===DONE===
--EXPECTF--
Warning: imagexbm() expects parameter 2 to be a valid path, string given in %s on line %d
NULL
===DONE===