aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-22 12:52:38 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:02:13 -0700
commit4e7324ae9b18f290921dd5c1472eaa95baf3a114 (patch)
tree1e4120d132fd6ee849ed4c1cf9ff81614609cd7b /tokenize.c
parent[PATCH] misc small updates (diff)
downloadsparse-4e7324ae9b18f290921dd5c1472eaa95baf3a114.tar.gz
sparse-4e7324ae9b18f290921dd5c1472eaa95baf3a114.tar.bz2
sparse-4e7324ae9b18f290921dd5c1472eaa95baf3a114.zip
Don't allow string concatenation to overflow MAX_STRING.
Diffstat (limited to 'tokenize.c')
-rw-r--r--tokenize.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tokenize.c b/tokenize.c
index 51e8fd0..54f648e 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -529,8 +529,6 @@ static int get_char_token(int next, stream_t *stream)
return nextchar(stream);
}
-#define MAX_STRING 2048
-
static int get_string_token(int next, stream_t *stream)
{
static char buffer[MAX_STRING];