[pulseaudio-tickets] [PulseAudio] #917: command-line arguments are not always correctly parsed

PulseAudio trac-noreply at tango.0pointer.de
Tue Mar 8 20:25:28 PST 2011


#917: command-line arguments are not always correctly parsed
------------------------+---------------------------------------------------
 Reporter:  roothorick  |       Owner:  lennart
     Type:  defect      |      Status:  new    
Milestone:              |   Component:  daemon 
 Keywords:              |  
------------------------+---------------------------------------------------
 The pulseaudio daemon appears to assume that whatever is calling it has
 fully broken up the argument list by spaces. This assumption is unsafe
 (note the third execve):

 {{{
 roothorick at modestmonster ~ $ head -n 1 ~/opt/bin/jackpa
 #!/usr/bin/pulseaudio -nD --exit-idle-time=-1 -F
 roothorick at modestmonster ~ $ strace -eprocess bash -c ~/opt/bin/jackpa
 execve("/bin/bash", ["bash", "-c", "/home/roothorick/opt/bin/jackpa"], [/*
 45 vars */]) = 0
 arch_prctl(ARCH_SET_FS, 0x7f154de18700) = 0
 execve("/home/roothorick/opt/bin/jackpa",
 ["/home/roothorick/opt/bin/jackpa"], [/* 45 vars */]) = 0
 arch_prctl(ARCH_SET_FS, 0x7f9d79e8f740) = 0
 execve("/usr/bin/pulseaudio", ["/usr/bin/pulseaudio", "-nD --exit-idle-
 time=-1 -F", "/home/roothorick/opt/bin/jackpa"], [/* 46 vars */]) = 0
 arch_prctl(ARCH_SET_FS, 0x7f644e221740) = 0
 /usr/bin/pulseaudio: invalid option -- ' '
 E: main.c: Failed to parse command line.
 exit_group(1)                           = ?
 roothorick at modestmonster ~ $
 }}}

 Linux 2.6.34-gentoo-r6, Bash 4.0_p37, pulseaudio 0.9.22

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


More information about the pulseaudio-bugs mailing list