]> git.alsa-project.org Git - alsa-tools.git/commit
envy24control: fix memory access errors in profiles
authorAndreas Persson <andreasp56@outlook.com>
Sat, 29 Mar 2025 12:20:15 +0000 (13:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 9 Apr 2025 09:44:37 +0000 (11:44 +0200)
commit65a201fed6e54d9ab7d22269d971a0afa048152a
tree528194f4d23d488a1f9d681aea39c06264bbc246
parent52e64810471910354d04527ee679688709db313b
envy24control: fix memory access errors in profiles

Fix two memory errors in the profiles parser: an invalid read and a
"source and destination overlap in strncpy" warning.

When the profiles page is initialized it fetches the profile names from
the profiles file. When a profile wasn't defined in the file, the parser
made invalid reads outside the buffer.

Closes: https://github.com/alsa-project/alsa-tools/pull/34
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
envy24control/profiles.c