[pulseaudio-tickets] [PulseAudio] #185: conf-parser limits line length to 256

PulseAudio trac-noreply at tango.0pointer.de
Tue Dec 11 08:08:57 PST 2007


#185: conf-parser limits line length to 256
-------------------------------------+--------------------------------------
 Reporter:  kritzstapf               |       Owner:  lennart
     Type:  defect                   |      Status:  new    
 Priority:  high                     |   Milestone:         
Component:  core                     |    Severity:  trivial
 Keywords:  conf-parser line length  |  
-------------------------------------+--------------------------------------
 Using channel maps with a large amount of channels can cause lines longer
 than 256 chars. The parser fails to read those lines because they are
 safed in char array of length 256.

 == Example ==

 {{{
 # channel test sink

 load-module module-remap-sink sink_name=channeltest master=surround
 master_channel_map=front-left,front-right,rear-left,rear-right,side-left
 ,side-right,center,subwoofer channel_map=front-left,front-left,front-left
 ,front-left,front-left,front-left,front-left,front-left channels=8
 }}}

 == Fix ==

 change line 129 of conf-parser.c to create a larger array:

 {{{
 129:        char l[256];
 }}}

 {{{
 129:        char l[1024]; // that should be enough
 }}}

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/185>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list