1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 15:43:13 +02:00
Files
archived-php-src/ext/sockets
Niels Dossche b8755a7559 Fix uninitialized variable accesses in sockets/conversions
This was first pointed out in GH-10959.
The from_zval_... functions don't always write to the pointer, in particular
it is necessary to check for an error before using the value. Otherwise
we can access an uninitialized value and that's UB (and dangerous).

Note: this does *NOT* get rid of the compiler warning. Even though there
is error checking now, the compiler isn't smart enough to figure out
that the values can not be used uninitialized.

Closes GH-10966.
2023-03-29 19:44:30 +02:00
..
2022-09-30 17:08:17 +01:00
2022-10-01 11:23:34 +02:00