echoprint-codegen icon indicating copy to clipboard operation
echoprint-codegen copied to clipboard

ffmpeg popen does not protect from crazy filenames

Open DavidS opened this issue 14 years ago • 0 comments

Having a file with a backtick (` ) in the name leads to

sh: 1: Syntax error: EOF in backquote substitution

This is due to the simplicistic FfmpegStreamInput/AudioStreamInput::GetCommandLine API. For secure usage, please see these explanations on stackoverflow: http://stackoverflow.com/questions/288038/how-to-safely-escape-a-string-from-c/288203#288203

DavidS avatar Sep 01 '11 21:09 DavidS