From: Fredrik Tolf Date: Fri, 19 Dec 2014 22:18:56 +0000 (+0100) Subject: planime: Avoid infinite loop in -A. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=f03b6a08d04673082a4163f6360fd94c494e3244;p=utils.git planime: Avoid infinite loop in -A. --- diff --git a/planime b/planime index b6e27cd..27b3eac 100755 --- a/planime +++ b/planime @@ -94,6 +94,10 @@ while [ "${1:0:1}" = - ]; do ;; -A) while :; do + if [ $# -lt 1 ]; then + echo "planime: unterminated argument list" >&2 + exit 1 + fi a="$1" shift if [ "$a" = \; ]; then