From 36a55af4a055de21ae36e45368b2d2f8a1fcb17a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 Feb 2013 14:54:36 +0000 Subject: [PATCH] abuild: verify pkgdesc length fixes #1477 --- abuild.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/abuild.in b/abuild.in index 437c3a5..b30b89d 100755 --- a/abuild.in +++ b/abuild.in @@ -132,6 +132,9 @@ default_sanitycheck() { [ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD" [ -z "$url" ] && die "Missing url in APKBUILD" [ -z "$license" ] && die "Missing license in APKBULID" + if [ $(echo "$pkgdesc" | wc -c) -gt 128 ]; then + die "pkgdesc is too long" + fi if [ -n "$replaces_priority" ] \ && ! echo $replaces_priority | egrep -q '^[0-9]+$'; then