1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext
Niels Dossche 7754eafb1f Fix memory leaks when sk_X509_new_null() fails
In a lot of places the return value is not checked, and when the
function fails the code continues execution. However, this means that
operations on the stack fail and will cause memory leaks on the objects
that weren't pushed.

We also notice an inconsistency in how these failures are handled.
For example, in one place we explicitly have a fatal error
`php_error_docref(NULL, E_ERROR, "Memory allocation failure");`
but this is the only place to do so.

Closes GH-20957.
2026-01-22 22:37:14 +01:00
..
2025-12-05 22:31:14 +00:00
2025-10-15 19:39:12 +02:00
2025-12-15 23:52:00 +01:00
2026-01-14 14:21:29 +00:00
2025-09-21 14:25:52 +01:00
2025-10-15 20:24:22 +02:00
2025-02-17 10:27:33 +03:00
2025-12-03 20:22:38 +00:00
2025-12-04 23:14:01 +00:00
2025-07-22 15:52:29 +02:00
2025-10-29 14:38:35 -03:00
2025-12-22 12:12:42 +01:00
2025-12-08 22:30:16 +01:00
2025-06-09 11:25:41 +02:00
2025-11-07 18:54:45 +01:00
2025-12-16 15:35:25 +01:00
2025-12-22 12:54:36 +00:00
2025-04-11 23:36:12 +02:00
2025-10-02 19:39:25 +02:00
2025-11-05 20:22:39 +01:00
2025-09-29 16:08:31 +02:00
2025-11-18 20:31:15 +01:00
2025-12-28 00:21:56 +01:00