Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix heap-buffer-overflow in lexer_compare_identifier_to_char#5228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
happy-boy-maker wants to merge1 commit intojerryscript-project:master
base:master
Choose a base branch
Loading
fromhappy-boy-maker:master

Conversation

@happy-boy-maker
Copy link

@happy-boy-makerhappy-boy-maker commentedMay 20, 2025
edited
Loading

This patchfixes#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-makerhappy-boy-maker marked this pull request as draftMay 20, 2025 08:07
@happy-boy-makerhappy-boy-maker marked this pull request as ready for reviewMay 20, 2025 08:15
Copy link
Member

@zherczegzherczeg 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

Choose a reason for hiding this comment

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

ok

JerryScript-DCO-1.0-Signed-off-by: tangbin 2387440390@qq.com
@happy-boy-maker
Copy link
Author

happy-boy-maker commentedJun 2, 2025 via email

I want to know, if the patch to be fixed is to be integrated, how should I strive?
------------------ 原始邮件 ------------------发件人: "Zoltan ***@***.***>;发送时间: 2025年5月22日(星期四) 下午2:46收件人: ***@***.***>;抄送: ***@***.***>; ***@***.***>;主题: Re: [jerryscript-project/jerryscript] fix heap-buffer-overflow in lexer_compare_identifier_to_char (PR#5228)@zherczeg批准了这个推送请求。LGTM在tests/jerry/fail/class_static_async_function.js:除非适用法律要求或书面同意,本许可下分发的软件+//以“原样”为基础+//分发,不提供任何形式的保证或条件,可以是明示的或隐含的。+// 参见许可证中管理许可证权限和+// 限制的特定语言。++function check_syntax_error(code) {+ try {+ eval(code)+ assert(false)+ } catch (e) {+ assert(e instance of SyntaxError)+ } + } + + check_santhaerror("class C {#static async''");请在末尾处添加一个换行符-直接回复这封邮件,在GitHub上查看它,或者取消订阅.***@***.*** >

@zherczeg
Copy link
Member

You only a need another approve

Copy link
Member

@akosthekissakosthekiss 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 commentedJun 3, 2025 via email

   Some checks there failed. I looked at the failed logs but found no connection with my modifications. I tried to execute the failed commands on linux but didn't get the same result. The recent modification to trigger the access control seems to fail in similar places. Could you please take a look? If there are any problems, I will make the changes in time on my side.
------------------ 原始邮件 ------------------发件人: "Zoltan ***@***.***>;发送时间: 2025年6月2日(星期一) 晚上6:31收件人: ***@***.***>;抄送: ***@***.***>; ***@***.***>;主题: Re: [jerryscript-project/jerryscript] fix heap-buffer-overflow in lexer_compare_identifier_to_char (PR#5228)zherczeg left a comment (jerryscript-project/jerryscript#5228)You only a need another approve—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>

@zherczeg
Copy link
Member

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 commentedJun 3, 2025 via email

Ok. I'll try to have a look
------------------ 原始邮件 ------------------发件人: "Zoltan ***@***.***>;发送时间: 2025年6月3日(星期二) 中午12:25收件人: ***@***.***>;抄送: ***@***.***>; ***@***.***>;主题: Re: [jerryscript-project/jerryscript] fix heap-buffer-overflow in lexer_compare_identifier_to_char (PR#5228)zherczeg left a comment (jerryscript-project/jerryscript#5228)We try to fix these fails, the riot one is updated here:#5231 You can help us if you have time.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@zherczegzherczegzherczeg approved these changes

@akosthekissakosthekissakosthekiss approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

heap-buffer-overflow in lexer_compare_identifier_to_chars

3 participants

@happy-boy-maker@zherczeg@akosthekiss

[8]ページ先頭

©2009-2025 Movatter.jp