Skip to content

Conversation

mikma
Copy link
Contributor

@mikma mikma commented Sep 30, 2025

If the new_size argument to realloc is zero, the behavior is undefined since C23. The error was detected by valgrind.

If the new_size argument to realloc is zero, the behavior
is undefined since C23.
Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Thanks!

@saghul saghul merged commit 20b25df into quickjs-ng:master Oct 1, 2025
127 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants