summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2017-09-18 18:09:53 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2017-10-12 12:52:37 +0200
commit3f8961dfac96a992df2516c0e383e6820eedd31b (patch)
tree814d87fd905780df1876eb38148da73ed6a16ca4 /sapi/cli/php_cli_server.c
parentee3650742389883f0f3e4d4d009c236dab13bb7d (diff)
downloadphp-git-3f8961dfac96a992df2516c0e383e6820eedd31b.tar.gz
Fixed bug #75221 (Argon2i always throws NUL at the end)
Apparently, `argon2_encodedlen()` also counts the terminating NUL byte; that doesn't appear to be documented somewhere, but from looking at the implementation[1] it is pretty obvious. Therefore, the respective `zend_string` has to be one byte shorter. [1] <https://github.com/P-H-C/phc-winner-argon2/blob/20161029/src/argon2.c#L431-L436>
Diffstat (limited to 'sapi/cli/php_cli_server.c')
0 files changed, 0 insertions, 0 deletions