Skip to contentSkip to conversation

topology: fix potential null pointer from strchr

DISCUSSION GitHub pull_request - opened 1 participant 1 message May 31, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-utils pull request #91 was opened from aiChaoSONG:

This patch adds check to the return pointer from strchr, because it may be null and cause segment fault, if component is not properly constructed.

Request URL : https://github.com/alsa-project/alsa-utils/pull/91
Patch URL : https://github.com/alsa-project/alsa-utils/pull/91.patch
Repository URL: https://github.com/alsa-project/alsa-utils