1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00
Files
archived-php-src/main
Max Kellermann b9e895bca0 Replace memcmp() with zend_string functions (#8216)
* ext/oci8: use zend_string_equals()

Eliminate duplicate code.

* main/php_variables: use zend_string_equals_literal()

Eliminate duplicate code.

* Zend/zend_string: add zend_string_equals_cstr()

Allows eliminating duplicate code.

* Zend, ext/{opcache,standard}, main/output: use zend_string_equals_cstr()

Eliminate duplicate code.

* Zend/zend_string: add zend_string_starts_with()

* ext/{opcache,phar,spl,standard}: use zend_string_starts_with()

This adds missing length checks to several callers, e.g. in
cache_script_in_shared_memory().  This is important when the
zend_string is shorter than the string parameter, when memcmp()
happens to check backwards; this can result in an out-of-bounds memory
access.
2022-03-31 16:27:58 +02:00
..
2021-11-29 14:50:54 +01:00
2021-04-13 12:09:37 +02:00
2022-03-01 14:54:09 +01:00
2022-01-18 14:50:29 +01:00
2021-07-15 19:08:26 +02:00
2021-07-15 19:08:26 +02:00
2022-02-03 02:21:29 +01:00
2022-01-31 21:44:31 +01:00
2021-09-16 16:54:07 +02:00
2021-09-16 16:54:07 +02:00
2021-11-24 16:13:34 +03:00
2021-08-02 15:59:26 +02:00
2021-11-24 16:13:34 +03:00