Skip to content

tinyalsa: Prevent crash on PCM plugin load failure - #285

Open
shijlin-1224 wants to merge 1 commit into
tinyalsa:masterfrom
shijlin-1224:pcm_plugin_open_fix
Open

shijlin-1224 wants to merge 1 commit into
tinyalsa:masterfrom
shijlin-1224:pcm_plugin_open_fix

Conversation

@shijlin-1224

Copy link
Copy Markdown

pcm_plug_open may return 0 when dlopen or dlsym
fails because rc is not updated on these error paths. As a result, pcm_open may continue processing with NULL plugin data, potentially causing a SIGSEGV.

Set rc to -ENODEV on dlopen and dlsym failures so
the error is properly propagated to pcm_open().

pcm_plug_open may return 0 when dlopen or dlsym
fails because rc is not updated on these error paths.
As a result, pcm_open may continue processing with
NULL plugin data, potentially causing a SIGSEGV.

Set rc to -ENODEV on dlopen and dlsym failures so
the error is properly propagated to pcm_open().

Signed-off-by: Shijie Lin <shijlin@qti.qualcomm.com>
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.

1 participant