]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: Use strncmp to avoid access-out-of-boundary
authorpaulhsia <paulhsia@chromium.org>
Fri, 29 Nov 2019 19:35:30 +0000 (03:35 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 29 Nov 2019 19:48:56 +0000 (20:48 +0100)
commitc79f09e1f5e8b559b58dacdb00708d995b2e3aa5
tree30a1741cdcc5dc0a47ee5a242e7b9ae555ea6bb0
parent1c7e46d5d8bc3c213d7963056240b385f3d8727b
ucm: Use strncmp to avoid access-out-of-boundary

If the length of the identifier is less than the length of the prefix,
access-out-of-boundary will occur in memcmp().

Signed-off-by: paulhsia <paulhsia@chromium.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c