- phpdbg:
. Fixed bug #76596 (phpdbg support for display_errors=stderr). (kabel)
+- sodium:
+ . Fixed bug #77646 (sign_detached() strings not terminated). (jedisct1)
+
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
zend_throw_exception(sodium_exception_ce, "signature has a bogus size", 0);
return;
}
- ZEND_ASSERT(ZSTR_VAL(signature)[signature_real_len] == 0);
+ PHP_SODIUM_ZSTR_TRUNCATE(signature, (size_t) signature_real_len);
+ ZSTR_VAL(signature)[signature_real_len] = 0;
RETURN_NEW_STR(signature);
}