summaryrefslogtreecommitdiff
path: root/labels.c
diff options
context:
space:
mode:
authorEd Beroset <beroset@mindspring.com>2003-09-08 00:30:40 +0000
committerEd Beroset <beroset@mindspring.com>2003-09-08 00:30:40 +0000
commitc06f6df2922f47309f9ff99fd8f07c37bd053a44 (patch)
tree0b30d094e069560154b2e06e757933a57f8896af /labels.c
parent9aea71599801dfc53e7e29da4bbdb46d01c86144 (diff)
downloadnasm-c06f6df2922f47309f9ff99fd8f07c37bd053a44.tar.gz
nasm-c06f6df2922f47309f9ff99fd8f07c37bd053a44.tar.bz2
nasm-c06f6df2922f47309f9ff99fd8f07c37bd053a44.zip
fixed bug #677841 by limiting the scanner to no more than 4095 characters for a single ID token
Diffstat (limited to 'labels.c')
-rw-r--r--labels.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/labels.c b/labels.c
index c793904..74222f5 100644
--- a/labels.c
+++ b/labels.c
@@ -38,6 +38,9 @@
#define BOGUS_VALUE -4
#define PERMTS_SIZE 4096 /* size of text blocks */
+#if (PERMTS_SIZE > IDLEN_MAX)
+#error "IPERMTS_SIZE must be less than or equal to IDLEN_MAX"
+#endif
/* values for label.defn.is_global */
#define DEFINED_BIT 1