Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Jul 4, 2025

No description provided.

@Girgias Girgias requested a review from nielsdos July 4, 2025 11:17
@Girgias Girgias force-pushed the fuzzer-call-fun branch from 186f816 to 843c5f0 Compare July 4, 2025 11:18

// Call named PHP function with N zval arguments
void fuzzer_call_php_func_zval(const char *func_name, int nargs, zval *args) {
zval retval, func;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still have the func variable, which is still zval_ptr_dtor'ed at the end. That will now operate on uninitialized memory because it's never filled in / used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@Girgias Girgias marked this pull request as ready for review July 6, 2025 00:29
@Girgias Girgias merged commit c338057 into php:master Jul 6, 2025
9 checks passed
@Girgias Girgias deleted the fuzzer-call-fun branch July 6, 2025 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants