We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934691f commit 08089b5Copy full SHA for 08089b5
NEWS
@@ -5,6 +5,9 @@ PHP NEWS
5
- MySQLi:
6
. Fixed bug #77597 (mysqli_fetch_field hangs scripts). (Nikita)
7
8
+- sodium:
9
+ . Fixed bug #77646 (sign_detached() strings not terminated). (Frank)
10
+
11
07 Mar 2019, PHP 7.2.16
12
13
- Core:
ext/sodium/libsodium.c
@@ -1678,7 +1678,8 @@ PHP_FUNCTION(sodium_crypto_sign_detached)
1678
zend_throw_exception(sodium_exception_ce, "signature has a bogus size", 0);
1679
return;
1680
}
1681
- ZEND_ASSERT(ZSTR_VAL(signature)[signature_real_len] == 0);
+ PHP_SODIUM_ZSTR_TRUNCATE(signature, (size_t) signature_real_len);
1682
+ ZSTR_VAL(signature)[signature_real_len] = 0;
1683
1684
RETURN_STR(signature);
1685
0 commit comments