Skip to content

Commit

Permalink
audio: selector: fix init pointers
Browse files Browse the repository at this point in the history
Selector has been broken since its last init migration as the memcpy
passes in the first byte of data rather than the pointer to the data.

Fixes: 141efbd ("ipc4: convert selector to use the new module interface")
Fixes: oss-fuzz:59343
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
  • Loading branch information
cujomalainey committed Sep 13, 2024
1 parent 76e650e commit 3c0eb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/selector/selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static struct comp_dev *selector_new(const struct comp_driver *drv,

comp_set_drvdata(dev, cd);

ret = memcpy_s(&cd->config, sizeof(cd->config), ipc_process->data, bs);
ret = memcpy_s(&cd->config, sizeof(cd->config), &ipc_process->data, bs);
if (ret) {
rfree(cd);
rfree(dev);
Expand Down

0 comments on commit 3c0eb1a

Please sign in to comment.