]> granicus.if.org Git - file/commitdiff
adjust limits better (from NetBSD)
authorChristos Zoulas <christos@zoulas.com>
Thu, 27 Nov 2014 15:16:00 +0000 (15:16 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 27 Nov 2014 15:16:00 +0000 (15:16 +0000)
src/readelf.c

index b892783b56e4d0b5ec65eaa546e2d1b7c63a71c8..4d3f2239dde4dbbb37de22cbdd79505a32cb2c09 100644 (file)
@@ -27,7 +27,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.107 2014/11/26 15:33:10 christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.108 2014/11/27 15:16:00 christos Exp $")
 #endif
 
 #ifdef BUILTIN_ELF
@@ -60,8 +60,8 @@ private uint16_t getu16(int, uint16_t);
 private uint32_t getu32(int, uint32_t);
 private uint64_t getu64(int, uint64_t);
 
-#define MAX_PHNUM      256
-#define        MAX_SHNUM       1024
+#define MAX_PHNUM      128
+#define        MAX_SHNUM       32768
 
 private int
 toomany(struct magic_set *ms, const char *name, uint16_t num)