History log of /PHP-7.3/ext/sodium/libsodium.c (Results 1 – 25 of 87)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f6d7af21 14-Aug-2020 Nikita Popov

Null terminate the sodium_crypto_kx_keypair() result


Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1
# 8ead7793 09-Sep-2019 Christoph M. Becker

Fix #78510: Partially uninitialized buffer returned by sodium_crypto_generichash_init()

Backport jedisct1/libsodium.php@28d13bf437cb969a0583031fc7ac54c5a8dc8116.


Revision tags: php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1
# 22a3fa0b 06-Jun-2019 Christoph M. Becker

Fix #78114: segfault when calling sodium_* functions from eval

We must not follow the NULL pointer.


Revision tags: php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28, php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16
# 08089b57 21-Feb-2019 Frank Denis

Fix bug #77646


# e7ca69f1 21-Feb-2019 Frank Denis

Fix bug #77646


Revision tags: php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1, php-7.3.2RC1, php-5.6.40, php-7.1.26, php-7.3.1, php-7.2.14, php-7.2.14RC1, php-7.3.1RC1
# e0e08d37 14-Dec-2018 Scott

Fix #77297: SodiumException segfaults on PHP 7.3

Instead of trying to clean the argument arrays from the backtrace, we
overwrite them with empty arrays.


Revision tags: php-5.6.39, php-7.1.25, php-7.2.13, php-7.0.33, php-7.3.0
# ff02d509 24-Nov-2018 Frank Denis

ext/sodium: remove redundant code


# 542d0bce 24-Nov-2018 Frank Denis

ext/sodium: Correct base64 decoding with unpadded variants

Backports 0eee0b957a3b75f8175cdd30b306c15e372685e8 from the PECL extension


Revision tags: php-7.1.25RC1, php-7.2.13RC1, php-7.3.0RC6, php-7.1.24, php-7.2.12, php-7.3.0RC5, php-7.1.24RC1, php-7.2.12RC1, php-7.3.0RC4
# 82a93c17 14-Oct-2018 Frank Denis

ext/sodium: sodium_pad(): do not copy any bytes if the string is empty

Spotted by San Zhang, thanks!

Backport from PECL libsodium-php 2.0.13


# bf48d0c4 14-Oct-2018 Frank Denis

ext/sodium: Fix sodium_pad() with blocksize >= 256

Backport from PECL libsodium-php 2.0.12


# 15ba7df2 14-Oct-2018 Frank Denis

ext/sodium: Use a correct max output size for base64 decoding

Also handle the case where the function is not available in test.

Backport from PECL libsodium-php 2.0.12


# d0574581 14-Oct-2018 Frank Denis

ext/sodium: Avoid shifts wider than 32 bits on size_t values

Backport from PECL libsodium-php 2.0.10


Revision tags: php-7.1.23, php-7.2.11, php-7.3.0RC3
# 950c338f 29-Sep-2018 James Titcumb

Fix reflection arguments for sodium_memzero function


Revision tags: php-7.1.23RC1, php-7.2.11RC1, php-7.3.0RC2, php-5.6.38, php-7.1.22, php-7.3.0RC1, php-7.2.10, php-7.0.32, php-7.1.22RC1, php-7.3.0beta3, php-7.2.10RC1, php-7.1.21, php-7.2.9, php-7.3.0beta2, php-7.1.21RC1, php-7.3.0beta1, php-7.2.9RC1, php-5.6.37, php-7.1.20, php-7.3.0alpha4, php-7.0.31, php-7.2.8, php-7.1.20RC1, php-7.2.8RC1, php-7.3.0alpha3, php-7.3.0alpha2, php-7.1.19, php-7.2.7, php-7.1.19RC1, php-7.3.0alpha1, php-7.2.7RC1
# 695b8192 04-Jun-2018 Keyur Govande

Avoid leaking the urandom fd

When Apache is reloaded, it unloads the extension, but the open file descriptor to /dev/urandom is left hanging around and is leaked. This fixes the bug.

Avoid leaking the urandom fd

When Apache is reloaded, it unloads the extension, but the open file descriptor to /dev/urandom is left hanging around and is leaked. This fixes the bug.

Duplicate of https://github.com/jedisct1/libsodium-php/pull/173

show more ...


Revision tags: php-7.1.18, php-7.2.6, php-7.2.6RC1, php-7.1.18RC1
# 524f5245 08-May-2018 Dmitry Stogov

Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.


Revision tags: php-5.6.36, php-7.2.5, php-7.1.17, php-7.0.30, php-7.1.17RC1, php-7.2.5RC1, php-5.6.35, php-7.0.29, php-7.2.4, php-7.1.16, php-7.1.16RC1, php-7.2.4RC1, php-7.1.15, php-5.6.34, php-7.2.3, php-7.0.28, php-7.2.3RC1, php-7.1.15RC1, php-7.1.14, php-7.2.2, php-7.1.14RC1, php-7.2.2RC1, php-7.1.13, php-5.6.33, php-7.2.1, php-7.0.27
# a6519d05 02-Jan-2018 Xinchen Hui

year++


# 7a7ec01a 02-Jan-2018 Xinchen Hui

year++


# 9e709e2f 14-Dec-2017 Dmitry Stogov

Move constants into read-only data segment


Revision tags: php-7.2.1RC1, php-7.1.13RC1, php-7.0.27RC1
# fc879349 29-Nov-2017 Frank Denis

Revert "Revert "ext/sodium: pwhash: do not warn on low parameters""
This reverts commit a1845b7fdb5916b0951146ca18bb67ca83854733.

Revert "Revert "ext/sodium: throw exceptions instead of

Revert "Revert "ext/sodium: pwhash: do not warn on low parameters""
This reverts commit a1845b7fdb5916b0951146ca18bb67ca83854733.

Revert "Revert "ext/sodium: throw exceptions instead of errors""
This reverts commit 31d221f9c72f0d0322c84907c5d89a4464667244.

show more ...


# a1845b7f 29-Nov-2017 Frank Denis

Revert "ext/sodium: pwhash: do not warn on low parameters"

This reverts commit c219991c77e4c68f7d62963e18a1da778de0bbe0.


# 31d221f9 28-Nov-2017 Frank Denis

Revert "ext/sodium: throw exceptions instead of errors"

This reverts commit c05cbd1e775fa69ed9939796a908390f2bfb4459.


# c05cbd1e 28-Nov-2017 Frank Denis

ext/sodium: throw exceptions instead of errors


# c219991c 28-Nov-2017 Frank Denis

ext/sodium: pwhash: do not warn on low parameters
but raise an explicit error if these are too low


Revision tags: php-7.2.0, php-7.1.12, php-7.0.26, php-7.1.12RC1, php-7.2.0RC6, php-7.0.26RC1, php-7.1.11, php-5.6.32, php-7.2.0RC5, php-7.0.25
# 0e44c980 23-Oct-2017 Anatol Belski

Fix uninitialized vars


Revision tags: php-7.1.11RC1, php-7.2.0RC4, php-7.0.25RC1
# 6de12a5f 02-Oct-2017 Frank Denis

ext/sodium: sodium_compare() is always available


1234