X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=inline;f=tests%2Fbug71719.phpt;fp=tests%2Fbug71719.phpt;h=f75bac90e85500a4db253dde25288ff33f3d096a;hb=3724cd76a28be1d6049b5537232e97ac567ae1f5;hp=0000000000000000000000000000000000000000;hpb=60087ee5180c74e0dec2f480c32872b902c29571;p=m6w6%2Fext-http diff --git a/tests/bug71719.phpt b/tests/bug71719.phpt new file mode 100644 index 0000000..f75bac9 --- /dev/null +++ b/tests/bug71719.phpt @@ -0,0 +1,25 @@ +--TEST-- +Buffer overflow in HTTP url parsing functions +--SKIPIF-- + +--FILE-- + + +===DONE=== +--EXPECTF-- +Test +%r(exception ')?%rhttp\Exception\BadMessageException%r(' with message '|: )%rhttp\Message::__construct(): Could not parse HTTP protocol version 'HTTP/%s.0'%r'?%r in %sbug71719.php:5 +Stack trace: +#0 %sbug71719.php(5): http\Message->__construct('\x80\xACTd 5 HTTP/1.1...', false) +#1 {main} +===DONE===