]> git.alsa-project.org Git - alsa-lib.git/commit
Fix theoretical one-byte buffer overrun
authorDirk Müller <dirk@dmllr.de>
Tue, 2 Jun 2026 09:17:31 +0000 (11:17 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 5 Jul 2026 16:28:11 +0000 (18:28 +0200)
commit1e27d63ef6d1dcf7d1f1a1e1eca3ea779e7de377
tree3d61e73a102c236893f5bef0de28174a474ad304
parenta7babcb8e6361719bf18fa96f11354d125447500
Fix theoretical one-byte buffer overrun

If 64 (sizeof(buf))= or more characters were provided in the input string,
this unconditionally writes a null byte to `buf[64]`, which is one byte
past the end of the array.

Closes: https://github.com/alsa-project/alsa-lib/pull/509
Signed-off-by: Dirk Müller <dirk@dmllr.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/ctlparse.c