TEMP-0000000-B67840.4.8a90571.patch 656 B

1234567891011121314151617181920212223
  1. Subject: Adjust limits better (from NetBSD)
  2. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  3. Date: Thu Nov 27 15:16:00 2014 +0000
  4. Origin: FILE5_20-33-g8a90571
  5. Last-Update: 2015-01-05
  6. (prequisite for TEMP-0000000-B67840)
  7. diff --git a/src/readelf.c b/src/readelf.c
  8. index e0b252d..f6b6824 100644
  9. --- a/src/readelf.c
  10. +++ b/src/readelf.c
  11. @@ -60,8 +60,8 @@ private uint16_t getu16(int, uint16_t);
  12. private uint32_t getu32(int, uint32_t);
  13. private uint64_t getu64(int, uint64_t);
  14. -#define MAX_PHNUM 256
  15. -#define MAX_SHNUM 1024
  16. +#define MAX_PHNUM 128
  17. +#define MAX_SHNUM 32768
  18. private int
  19. toomany(struct magic_set *ms, const char *name, uint16_t num)