Commit 79b1ca2
committed
Fix memory leaks and missing error propagation when php_openssl_csr_make() fails to set a version
The leaks appears to be at least somewhat dependent on the OpenSSL version,
but it is reproducible on an Ubuntu 24.04 container.
Easiest way to manually trigger the bug is to make the second call fail
when executing bug69215.phpt.
Closes GH-21032.1 parent 883014d commit 79b1ca2
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2968 | 2968 | | |
2969 | 2969 | | |
2970 | 2970 | | |
2971 | | - | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
2972 | 2974 | | |
2973 | 2975 | | |
2974 | 2976 | | |
| |||
3090 | 3092 | | |
3091 | 3093 | | |
3092 | 3094 | | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
3093 | 3099 | | |
3094 | 3100 | | |
| 3101 | + | |
3095 | 3102 | | |
3096 | 3103 | | |
3097 | | - | |
3098 | | - | |
3099 | | - | |
3100 | 3104 | | |
3101 | 3105 | | |
3102 | 3106 | | |
| |||
0 commit comments