SEGFAULT in ALSA lib 1.0.27.1 pcm_direct parser
Hi,
Fixes a segfault when getgrnam_r() returns 0 and still sets pgrp to NULL when the group simply doesn't exist.
src/pcm/pcm_direct.c +1 -1
@@ -1636,7 +1636,7 @@if (buffer ==NULL )return -ENOMEM ;int st =getgrnam_r (group, &grp, buffer, len, &pgrp); -if (st !=0 ) { +if (st !=0 || !pgrp) {SNDERR ("The field ipc_gid must be a valid group (create group %s)" , group);free (buffer);return -EINVAL ;
Signature · 4 lines
Krzysztof Halasa Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland
Quoted 4 lines · Krzysztof Hałasa
Hi,
Fixes a segfault when
getgrnam_r()returns 0 and still sets pgrp to NULL when the group simply doesn't exist.
Thanks. Applied to our repo.
Jaroslav
Signature · 7 lines
Jaroslav Kysela <[email protected]> Linux Kernel Sound Maintainer ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel