Skip to content

Conversation

@cujomalainey
Copy link
Contributor

On initialization we use rzalloc which 0s out all fields. We later call audio_stream_recalc_align which uses the frame_bytes to align the buffer. This is problematic as clz() is passed the size of the frame size which is 0 since channel is 0 and passing 0 to clz is undefined behaviour.

On initialization we use rzalloc which 0s out all fields. We later call
audio_stream_recalc_align which uses the frame_bytes to align the buffer.
This is problematic as clz() is passed the size of the frame size which
is 0 since channel is 0 and passing 0 to clz is undefined behaviour.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
@lgirdwood lgirdwood merged commit 31e22e6 into thesofproject:main Oct 1, 2024
@cujomalainey cujomalainey deleted the buff branch October 1, 2024 13:58
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