Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
alsa
0027-ucm-fix-seg-fault-in-execute_cset.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0027-ucm-fix-seg-fault-in-execute_cset.patch of Package alsa
From 29880e8c66cfdc584e01aa549037f76b081b5019 Mon Sep 17 00:00:00 2001 From: Lu Guanqun <guanqun.lu@intel.com> Date: Fri, 19 Aug 2011 16:05:25 +0800 Subject: [PATCH 1/3] ucm: fix seg fault in execute_cset() When there's no space in 'cset', 'pos' gets NULL, dereferencing 'pos' gets a seg fault. We need to be more robust. Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> --- src/ucm/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ucm/main.c b/src/ucm/main.c index 8e9a85d..9ecbe43 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -196,7 +196,8 @@ static int execute_cset(snd_ctl_t *ctl, char *cset) goto __fail; err = 0; __fail: - *pos = ' '; + if (pos != NULL) + *pos = ' '; if (id != NULL) free(id); -- 1.7.6.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor