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 e5d8ac9 commit e7ca69fCopy full SHA for e7ca69f
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). (jedisct1)
10
+
11
21 Feb 2019, PHP 7.3.3
12
13
- Core:
ext/sodium/libsodium.c
@@ -1677,7 +1677,8 @@ PHP_FUNCTION(sodium_crypto_sign_detached)
1677
zend_throw_exception(sodium_exception_ce, "signature has a bogus size", 0);
1678
return;
1679
}
1680
- ZEND_ASSERT(ZSTR_VAL(signature)[signature_real_len] == 0);
+ PHP_SODIUM_ZSTR_TRUNCATE(signature, (size_t) signature_real_len);
1681
+ ZSTR_VAL(signature)[signature_real_len] = 0;
1682
1683
RETURN_NEW_STR(signature);
1684
0 commit comments