diff options
| author | welinder@troll.com <welinder@troll.com> | 2004-11-01 14:08:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:53 -0700 |
| commit | ea8cf8a9d7c3ec05eda7e3af4d02dec8130b69dd (patch) | |
| tree | 7e584322e57cb5995c6b54c01a47b5c1b9f83df0 /tokenize.c | |
| parent | 1bdbd8e624f8e345a9fd0abeaa3acf854f275b82 (diff) | |
| download | sparse-dev-ea8cf8a9d7c3ec05eda7e3af4d02dec8130b69dd.tar.gz | |
Prevent buffer overrun in show_string.
Diffstat (limited to 'tokenize.c')
| -rw-r--r-- | tokenize.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ char *charstr(char *ptr, unsigned char c, unsigned char escape, unsigned char ne const char *show_string(const struct string *string) { - static char buffer[256]; + static char buffer[4 * MAX_STRING + 3]; char *ptr; int i; |
