1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 06:32:49 +02:00
Files
archived-php-src/sapi
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-10-14 12:23:43 +02:00
2022-10-20 13:04:14 +02:00
2021-08-30 10:43:21 +02:00