The Advanced Linux Sound Architecture (ALSA) - utilities
Find a file
Richard Fitzgerald 03e7f3ac0d topology: Fix strcat() to uninitialized memory in
If *defs == NULL the realloc() will be a simple malloc() and return a
pointer to uninitialized memory. Doing a strcat() to this is bad, so in
that case strcpy() the string into the newly allocated buffer.

This fixes the buffer overflow bug, such as:

*** buffer overflow detected ***: terminated
Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
warning: 44     ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
    at ../sysdeps/posix/libc_fatal.c:132
    at ./debug/fortify_fail.c:24
    dest=dest@entry=0x5555555682c0 "hUUU\005PLATFORM=mtl,PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-mtl-sdw-cs42l42-l0-max98363-l2-4ch-48k-96k.bin,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,DMIC0_ID=3,DMIC1_ID=4,DMIC1_ENABLE=passth"...,
    src=src@entry=0x7fffffffe0fa "PLATFORM=mtl,PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-mtl-sdw-cs42l42-l0-max98363-l2-4ch-48k-96k.bin,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,DMIC0_ID=3,DMIC1_ID=4,DMIC1_ENABLE=passthrough"..., destlen=<optimized out>) at ./debug/strcat_chk.c:34
    __src=0x7fffffffe0fa "PLATFORM=mtl,PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-mtl-sdw-cs42l42-l0-max98363-l2-4ch-48k-96k.bin,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,DMIC0_ID=3,DMIC1_ID=4,DMIC1_ENABLE=passthrough"...,
    __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:130
    d=0x7fffffffe0fa "PLATFORM=mtl,PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-mtl-sdw-cs42l42-l0-max98363-l2-4ch-48k-96k.bin,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,DMIC0_ID=3,DMIC1_ID=4,DMIC1_ENABLE=passthrough"...,
    defs=<synthetic pointer>) at topology.c:400

Closes: https://github.com/alsa-project/alsa-utils/pull/277
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-11-12 10:17:11 +01:00
.github/workflows github: use upload-artifacts@v4 2024-09-06 12:54:14 +02:00
alsa-info alsa-info.sh: log SoundWire devices reported in ACPI 2024-04-22 10:03:28 +02:00
alsaconf Add Georgian translation 2022-11-04 22:09:52 +01:00
alsactl alsactl: 90-alsa-restore.rules - add support for AMD ACP digital microphone 2024-11-11 16:27:40 +01:00
alsaloop alsaloop: use ATTRIBUTE_UNUSED instead remove argument name 2023-09-04 16:45:39 +02:00
alsamixer alsamixer: fix calculation in set_normalized_volume (overflow) 2024-05-23 13:14:20 +02:00
alsaucm misc: fix incorrect usages of strerror 2023-12-08 20:01:04 +01:00
amidi amidi: use ATTRIBUTE_UNUSED instead remove argument name 2023-09-04 16:37:56 +02:00
amixer reshuffle included files to include config.h as first 2023-08-30 18:48:23 +02:00
aplay aplay: Print '=== PAUSE ===' only if it is supported 2024-08-06 18:37:51 +02:00
axfer axfer: use ATTRIBUTE_UNUSED instead remove argument name 2023-09-04 16:33:47 +02:00
bat bat: really skip analysis of the first period and update related comment 2023-10-17 13:28:13 +02:00
iecset reshuffle included files to include config.h as first 2023-08-30 18:48:23 +02:00
include include: fix package - add bswap.h and os_compat.h to noinst_HEADERS 2023-02-27 13:05:17 +01:00
m4 Fix autoreconf 2005-08-19 13:07:45 +00:00
nhlt nhlt-dmic-info: fix simple memory leak issue 2024-01-17 17:38:27 +01:00
po po: add Korean translations 2023-08-30 18:58:40 +02:00
seq change getopt_long return variable from char to int 2024-10-23 12:56:58 +02:00
speaker-test speaker-test: Use smaller periods in the default settings 2024-01-24 19:00:10 +01:00
topology topology: Fix strcat() to uninitialized memory in 2024-11-12 10:17:11 +01:00
utils Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:25:17 +02:00
.gitignore .gitignore: Add stale files for topology builds 2024-07-05 17:20:54 +02:00
acinclude.m4 fixed for the recent autoconf. 2004-01-26 15:57:37 +00:00
ChangeLog update build tools. 2005-08-13 16:27:59 +00:00
configure.ac alsactl: 90-alsa-restore.rules - add support for AMD ACP digital microphone 2024-11-11 16:27:40 +01:00
COPYING Updated COPYING with the recent FSF address 2011-06-03 14:24:30 +02:00
gitcompile gitcompile: restore ACLOCAL_FLAGS ability to use 2024-08-06 18:39:20 +02:00
INSTALL alsactl: Move systemd unit start-up from basic.target to sound.target 2017-10-06 14:32:16 +02:00
Makefile.am nhlt: add nhlt-dmic-info utility 2023-05-16 15:54:05 +02:00
README.md chore: Add link to master branch on GitHub Actions 2022-11-04 22:02:49 +01:00
TODO aplay/arecord 2000-12-27 21:24:57 +00:00

alsa-utils

Advanced Linux Sound Architecture - Utilities

Build alsa-utils

This package contains the command line utilities for the ALSA project. The package can be compiled only with the installed ALSA driver and the ALSA C library (alsa-lib).

Utility Description
alsaconf the ALSA driver configurator script
alsa-info a script to gather information about ALSA subsystem
alsactl an utility for soundcard settings management
aplay/arecord an utility for the playback / capture of .wav,.voc,.au files
axfer an utility to transfer audio data frame (enhancement of aplay)
amixer a command line mixer
alsamixer a ncurses mixer
amidi a utility to send/receive sysex dumps or other MIDI data
iecset a utility to show/set the IEC958 status bits
speaker-test a speaker test utility
alsaloop a software loopback for PCM devices
alsaucm Use Case Manager utility
alsabat a sound tester for ALSA sound card driver
alsatplg ALSA topology compiler

You may give a look for more information about the ALSA project to URL http://www.alsa-project.org.