diff options
-rw-r--r-- | os/tools/csvparser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/tools/csvparser.c b/os/tools/csvparser.c index 6cd1b4a6..980d28e8 100644 --- a/os/tools/csvparser.c +++ b/os/tools/csvparser.c @@ -209,6 +209,10 @@ int parse_csvline(char *ptr) */ do { + if (nparams >= MAX_FIELDS) { + fprintf(stderr, "%d: too many Parameters: \"%s\"\n", g_lineno, g_line); + exit(8); + } ptr = copy_parm(ptr, &g_parm[nparms][0]); nparms++; ptr = find_parm(ptr); |