From f03b6a08d04673082a4163f6360fd94c494e3244 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 19 Dec 2014 23:18:56 +0100 Subject: [PATCH] planime: Avoid infinite loop in -A. --- planime | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.0