OSDN Git Service

ucm: fix seg fault in execute_cset()
authorLu Guanqun <guanqun.lu@intel.com>
Fri, 19 Aug 2011 08:05:25 +0000 (16:05 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Aug 2011 08:41:26 +0000 (10:41 +0200)
commit29880e8c66cfdc584e01aa549037f76b081b5019
tree76efefa842d902970d759b8030b000dde9e050d1
parent78dbc57b9918a5c0a29eb70f36af6d21b9471e9d
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