[FFmpeg-cvslog] configure: Properly escape arguments in filter/filter_out helper functions

Luca Barbato git at videolan.org
Mon Oct 30 19:10:16 EET 2017


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Apr  6 18:14:29 2017 +0200| [44aafa3325ec09a120bdb81b8579b8dfd65b1693] | committer: Luca Barbato

configure: Properly escape arguments in filter/filter_out helper functions

The arguments may contain '$', which gets interpreted by the shell.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44aafa3325ec09a120bdb81b8579b8dfd65b1693
---

 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index e83a4cf697..967d7d9a10 100755
--- a/configure
+++ b/configure
@@ -433,7 +433,7 @@ filter(){
     pat=$1
     shift
     for v; do
-        eval "case $v in $pat) printf '%s ' $v ;; esac"
+        eval "case '$v' in $pat) printf '%s ' '$v' ;; esac"
     done
 }
 
@@ -441,7 +441,7 @@ filter_out(){
     pat=$1
     shift
     for v; do
-        eval "case $v in $pat) ;; *) printf '%s ' $v ;; esac"
+        eval "case '$v' in $pat) ;; *) printf '%s ' '$v' ;; esac"
     done
 }
 



More information about the ffmpeg-cvslog mailing list