summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2020-09-01 12:15:33 +0300
committerPanu Matilainen <pmatilai@redhat.com>2020-12-10 13:28:07 +0200
commit7d0c224f2fbde64161a440fb93f18f5736403a70 (patch)
tree06f473275d4b7c4151403e2886f271f513eb54f1
parent4b97a69c2dfbc5c00d4b676fcae3885623b1c33b (diff)
downloadrpm-7d0c224f2fbde64161a440fb93f18f5736403a70.tar.gz
Add missing terminator to copyTagsFromMainDebug array
headerCopyTags() expects a 0-terminated array, this was overflowing (spotted by address-sanitizer) (cherry picked from commit 213a4064a4b1b5b260a55b3933170599e617494d)
-rw-r--r--build/files.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/files.c b/build/files.c
index f06f9ac74..47625905c 100644
--- a/build/files.c
+++ b/build/files.c
@@ -2838,6 +2838,7 @@ static rpmTag copyTagsFromMainDebug[] = {
RPMTAG_OS,
RPMTAG_PLATFORM,
RPMTAG_OPTFLAGS,
+ 0
};
/* this is a hack: patch the summary and the description to include