Skip to content

Conversation

happy-boy-maker
Copy link

@happy-boy-maker happy-boy-maker commented May 20, 2025

This patch fixes #5066
There is a problem there. When size is passed to 0 in lexer_compare_identifier_to_char, because of do while(size > 0) and the size type is uint, it will cause an unexpected loop and result in heap overflow

@happy-boy-maker happy-boy-maker marked this pull request as draft May 20, 2025 08:07
@happy-boy-maker happy-boy-maker marked this pull request as ready for review May 20, 2025 08:15
Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

}
}

check_syntax_error("class C {#static async''"); No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Add a newline at the end, please

Copy link
Author

Choose a reason for hiding this comment

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

ok

@happy-boy-maker
Copy link
Author

happy-boy-maker commented Jun 2, 2025 via email

@zherczeg
Copy link
Member

zherczeg commented Jun 2, 2025

You only a need another approve

Copy link
Member

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

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

lgtm

@happy-boy-maker
Copy link
Author

happy-boy-maker commented Jun 3, 2025 via email

@zherczeg
Copy link
Member

zherczeg commented Jun 3, 2025

We try to fix these fails, the riot one is updated here: #5231
You can help us if you have time.

@happy-boy-maker
Copy link
Author

happy-boy-maker commented Jun 3, 2025 via email

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.

heap-buffer-overflow in lexer_compare_identifier_to_chars

3 participants