Fix use-of-uninitialized-value of EG(last_fatal_error_backtrace) with ZTS#17639
Conversation
TimWolla
left a comment
There was a problem hiding this comment.
Static variables are zeroed, but ts memory is not.
Makes me wonder if the first thing happening in GINIT should be a memset() to avoid this kind of bug.
Patch LGTM. /cc @ericnorris
|
Hmm... unfortunately |
… ZTS Static variables are zeroed, but ts memory is not. Hence, we need to do it ourselves.
9931ba7 to
c7bff1e
Compare
|
Honestly, I have no idea why |
|
Sorry, I ended up being a bit busier than usual at the end of last week. Thanks @iluuu1994! |
Static variables are zeroed, but ts memory is not. Hence, we need to do it ourselves.
See https://github.com/php/php-src/actions/runs/13043905843/job/36391169998.