]> granicus.if.org Git - php/commit
Throw TypeError instead of warning in case of invalid path
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 13 Jun 2019 15:05:47 +0000 (17:05 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 13 Jun 2019 20:37:50 +0000 (22:37 +0200)
commitb994fd81cb9be6fad5c54f33435d6e80ba0f1154
treeaf695b60a241afccd808574f97ce2df5d0e7d4a3
parent890e846d857a2b05e8f5ff8395bb13534d4c59e0
Throw TypeError instead of warning in case of invalid path

For consistency with imagegd(), imagegd2() and imagexbm(), which throw
a TypeError if a path containing NUL bytes is given, we throw a
TypeError for the other image writer functions as well.
ext/gd/gd_ctx.c
ext/gd/tests/imagebmp_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