The Advanced Linux Sound Architecture (ALSA) - library
Find a file
Takashi Iwai bf98b4e316 namehint: Fix invalid list access in snd_device_name_hint()
snd_device_name_hint() tries to free the allocated list at the error
path via snd_device_name_free_hint().  But snd_device_name_free_hint()
expects a list terminated by NULL while snd_device_name_hint() doesn't
add it.  Adding it may again result in an error and thus isn't
guaranteed to work.  Hence we can't add NULL at the error path.

Instead, now the code always allocates one entry more, and zero-clears
the newly allocated beforehand to guarantee the NULL termination.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-30 12:26:43 +02:00
alsalisp autotools: update style 2014-02-26 08:16:22 +01:00
aserver Remove unused hostname resolution in shm plugins and aserver 2015-01-28 16:23:06 +01:00
doc autotools: update style 2014-02-26 08:16:22 +01:00
include Sync include/sound/asound.h with 4.1 kernel 2015-04-21 12:49:29 +02:00
m4 Add the attributes.m4 macro file from xine/lscube. 2008-11-21 13:04:19 +01:00
modules sbase: fixed missing free 2014-09-23 09:04:26 +02:00
src namehint: Fix invalid list access in snd_device_name_hint() 2015-04-30 12:26:43 +02:00
test test/audio_time: Set timestamp type explicitly 2014-07-14 18:12:49 +02:00
utils autotools: update style 2014-02-26 08:16:22 +01:00
.gitignore .gitignore: add test-driver 2015-02-16 20:59:24 +01:00
acinclude.m4 fixed for the recent autoconf. 2004-01-26 15:52:17 +00:00
ChangeLog * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
configure.ac conf/ucm: Add Makefile.am for broadwell-rt286 ucm config 2015-03-05 11:04:47 +01:00
COPYING Updated GNU GPL license (address). 2001-12-30 09:22:54 +00:00
gitcompile Introduce --with-pkgconfdir, add 64-bit defaults to gitcompile 2012-01-20 16:14:44 +01:00
INSTALL doc: fix cross-compiling example 2014-08-25 14:12:38 +02:00
Makefile.am autotools: update style 2014-02-26 08:16:22 +01:00
MEMORY-LEAK Initial version 2003-02-04 14:56:07 +00:00
NOTES Change assert condition in error message handler 2007-10-24 12:53:08 +02:00
TODO Added snd_config_load_override(). 2002-01-09 21:28:15 +00:00