1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 13:43:02 +02:00
Files
archived-php-src/sapi/phpdbg
Niels Dossche 5f1311a92c Fix undefined behaviour in phpdbg_load_module_or_extension
If zend_register_module_ex were to return NULL, then module_entry will
be set to NULL, and the if's body will load module_entry->name. Since
module_entry is NULL, loading the name would cause a NULL pointer
dereference. However, since a NULL pointer dereference is undefined
behaviour, the compiler is free to remove the check.
Fix it by using *name instead of module_entry->name.

Closes GH-10157

Signed-off-by: George Peter Banyard <girgias@php.net>
2022-12-23 13:55:50 +00:00
..
2021-06-13 21:08:35 +02:00
2021-06-13 21:08:35 +02:00
2021-06-13 21:08:35 +02:00
2021-06-13 21:08:35 +02:00
2021-08-31 14:58:59 +02:00
2021-06-13 21:08:35 +02:00
2022-07-01 05:34:05 +01:00
2020-02-03 13:41:31 +01:00