]> granicus.if.org Git - php/commit
Simplify GD null byte injection tests
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 7 May 2019 15:37:35 +0000 (17:37 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 12 Jun 2019 10:04:01 +0000 (12:04 +0200)
commit37d0c7b0e4072889ed05e7d631ee47a6bedf8ef5
tree49dffe2d1f1ad6fe6b1afc8e5e7cd82dd2398f85
parent2f1d822d78ca8f34e67a06139ce36e6ff88fc158
Simplify GD null byte injection tests

These tests actually check that no file with a name containing a NUL is
created by the GD image output functions.  This is superfluous, since
it is sufficient to check that the function failed, and that an
appropriate warning has been raised.

We also add missing nullbyte injection tests.
ext/gd/tests/imagebmp_nullbyte_injection.phpt [new file with mode: 0644]
ext/gd/tests/imagegd2_nullbyte_injection.phpt
ext/gd/tests/imagegd_nullbyte_injection.phpt
ext/gd/tests/imagegif_nullbyte_injection.phpt
ext/gd/tests/imagejpeg_nullbyte_injection.phpt
ext/gd/tests/imagepng_nullbyte_injection.phpt
ext/gd/tests/imagewbmp_nullbyte_injection.phpt
ext/gd/tests/imagewebp_nullbyte_injection.phpt
ext/gd/tests/imagexbm_nullbyte_injection.phpt [new file with mode: 0644]