Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dp.h: check _ucs2size in format_ucs2() #250

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

century6
Copy link
Contributor

When memcpy() is called in format_ucs2(), the value of ucs2size - sizeof(uint16_t) is not checked. It may result in out-of-bounds writing due to integer underflow.

When memcpy() is called in format_ucs2(), the value of ucs2size - sizeof(uint16_t) is not checked. It may result in out-of-bounds writing due to integer underflow.

Signed-off-by: century6 <zhangqiumiao1@huawei.com>
@century6
Copy link
Contributor Author

century6 commented Oct 9, 2023

@vathpela @frozencemetery Could this PR be merged please? It's been in review for more than one month with no negative reviews.

@vathpela vathpela merged commit 573be47 into rhboot:main Jan 29, 2024
1 check 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.

None yet

2 participants