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

UBSAN fuzzing fixes #9433

Merged
merged 2 commits into from
Sep 5, 2024
Merged

UBSAN fuzzing fixes #9433

merged 2 commits into from
Sep 5, 2024

Conversation

cujomalainey
Copy link
Member

sanitizer fixes for ipc3

If ext_data_length is > UINT32_MAX - sizeof(struct sof_ipc_comp) then it
will overflow the 32bit pointer in the second half of this error check
therefore bypassing the check.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
UBSAN is complaining about the pointers being overflown given we haven't
checked the parameters. Move it behind the code that protects this to
satisfy the sanitizer.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
@kv2019i kv2019i merged commit 54bb3e4 into thesofproject:main Sep 5, 2024
46 of 47 checks passed
@cujomalainey cujomalainey deleted the ubsan branch September 5, 2024 16:34
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