vmihalko / rpms / file

Forked from rpms/file 3 years ago
Clone
Blob Blame History Raw
From ba70807a0dab752835293cc586e104b5dedd9c3f Mon Sep 17 00:00:00 2001
From: Vincent Mihalkovic <vmihalko@redhat.com>
Date: Thu, 9 Feb 2023 13:01:36 +0100
Subject: [PATCH] readelf: limit size of the note section to 128M

---
 src/readelf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/readelf.c b/src/readelf.c
index 97d1451..ca158b1 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -62,7 +62,7 @@ file_private uint64_t getu64(int, uint64_t);
 
 #define MAX_PHNUM	128
 #define	MAX_SHNUM	32768
-#define MAX_SHSIZE	(64 * 1024 * 1024)
+#define MAX_SHSIZE	(128 * 1024 * 1024)
 #define SIZE_UNKNOWN	CAST(off_t, -1)
 
 file_private int
-- 
2.39.1