Skip to content

UBSAN fuzzing fixes#9433

Merged
kv2019i merged 2 commits intothesofproject:mainfrom
cujomalainey:ubsan
Sep 5, 2024
Merged

UBSAN fuzzing fixes#9433
kv2019i merged 2 commits intothesofproject:mainfrom
cujomalainey:ubsan

Conversation

@cujomalainey
Copy link
Contributor

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