Browse Source

- moved MINTAGS and MAXTAGS to check.h

development
Andreas Romeyke 7 months ago
parent
commit
b815fcde22
  1. 8
      src/headers/check.h
  2. 4
      src/headers/config_parser.h

8
src/headers/check.h

@ -26,6 +26,10 @@ typedef unsigned short int bool_t;
static const bool_t false = 0;
static const bool_t true = 1;
/* MINTAGS - MAXTAGS is range of possible existing TAG numbers */
#define MINTAGS 254
#define MAXTAGS 65536
typedef enum{ is_memmap, is_filep } ct_ioflag_t ; /* flag */
typedef enum{ has_sorted_tags, has_unsorted_tags, unknown_tag_order } tagorder_t;
@ -41,7 +45,7 @@ typedef struct ctiff_s {
uint32 ifd0pos; /* offset in tif stream (in bytes) */
uint16 ifd0c; /* count of tags in first ifd */
bool_t isbyteswapped; /* true if BigEndian */
int tag_cache[65536];
int tag_cache[MAXTAGS];
} ctiff_t;
typedef enum{
@ -230,7 +234,7 @@ typedef struct mem_map_s {
#define EXPECTSTRLEN 500
#define VALUESTRLEN 500
#define TIFFAILSTRLEN (EXPECTSTRLEN + VALUESTRLEN)
#define MAXRESULT 200000
#define MAXRESULT 48000U
#ifdef HARDEN
#define TIFP_CHECK( ctif, ret ) \

4
src/headers/config_parser.h

@ -24,10 +24,6 @@ typedef enum {
mode_enable_deep_geotiff_checks=16,
} modes_t;
/* MINTAGS - MAXTAGS is range of possible existing TAG numbers */
#define MINTAGS 254
#define MAXTAGS 65536
#define MAXINCLUDEDEPTH 1
/* the stack size depends on count of rules and count of numbers, in general

Loading…
Cancel
Save