php-src/ext/standard/tests/strings/bug62443.phpt

10 lines
177 B
Plaintext
Raw Normal View History

--TEST--
Bug #62443 Crypt SHA256/512 Segfaults With Malformed Salt
--FILE--
<?php
crypt("foo", '$5$'.chr(0).'abc');
crypt("foo", '$6$'.chr(0).'abc');
echo "OK!";
--EXPECT--
OK!