From b8102d8f6150b0438ba91cd53ff86a5391e8bdcf Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 14 Jul 2009 11:24:02 +0300 Subject: [PATCH] Dont accept '-' in manifests (RhBug:461353) --- lib/manifest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/manifest.c b/lib/manifest.c index 91f2f67..06405c9 100644 --- a/lib/manifest.c +++ b/lib/manifest.c @@ -94,8 +94,8 @@ rpmRC rpmReadPackageManifest(FD_t fd, int * argcPtr, char *** argvPtr) s++; if (*s == '\0') continue; - /* Insure that file contains only ASCII */ - if (*s < 32) { + /* Sanity checks: skip obviously binary lines and dash (for stdin) */ + if (*s < 32 || strcmp(s, "-") == 0) { rpmrc = RPMRC_NOTFOUND; goto exit; } -- 2.7.4