Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/hol88-2.02.19940316/lisp/f-ol-syntax.h Examining data/hol88-2.02.19940316/lisp/f-ol-syntax.c Examining data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c Examining data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c Examining data/hol88-2.02.19940316/contrib/tooltool/events.c Examining data/hol88-2.02.19940316/contrib/tooltool/func_fix.c Examining data/hol88-2.02.19940316/contrib/tooltool/lex.c Examining data/hol88-2.02.19940316/contrib/tooltool/patchlevel.h Examining data/hol88-2.02.19940316/contrib/tooltool/windows.c Examining data/hol88-2.02.19940316/contrib/tooltool/emalloc.c Examining data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c Examining data/hol88-2.02.19940316/contrib/tooltool/selection.c Examining data/hol88-2.02.19940316/contrib/tooltool/symbols.c Examining data/hol88-2.02.19940316/contrib/tooltool/tooltool.c Examining data/hol88-2.02.19940316/contrib/tooltool/actions.c Examining data/hol88-2.02.19940316/contrib/tooltool/misc.c Examining data/hol88-2.02.19940316/contrib/tooltool/tooltool.h Examining data/hol88-2.02.19940316/contrib/tooltool/func.c Examining data/hol88-2.02.19940316/contrib/tooltool/expr.c Examining data/hol88-2.02.19940316/contrib/tooltool/objects.c Examining data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c Examining data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.h Examining data/hol88-2.02.19940316/contrib/holsort/holsort.c Examining data/hol88-2.02.19940316/contrib/mweb/common.c Examining data/hol88-2.02.19940316/contrib/mweb/mmerge.c Examining data/hol88-2.02.19940316/contrib/mweb/mtangle.c Examining data/hol88-2.02.19940316/contrib/mweb/mweave.c Examining data/hol88-2.02.19940316/contrib/mweb/mweb.h Examining data/hol88-2.02.19940316/contrib/mweb/patchlevel.h Examining data/hol88-2.02.19940316/contrib/mweb/winnow.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/sortid.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.h Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/qsort.c Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h Examining data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/makefile.pcc FINAL RESULTS: data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:166:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s%s", term, item_u[level], curr->sf[level]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:168:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s%s", term, item_u[level], curr->af[level]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:173:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s%s", term, item_r[level], curr->sf[level]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:175:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s%s", term, item_r[level], curr->af[level]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:183:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s", item_x[i], curr->sf[i]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:185:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s", item_x[i], curr->af[i]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:192:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(line, delim_p[level]); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:251:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s%s%s%s%s", encap_p, curr->encap, data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:351:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s%s%s", begin->lpg, delim_r, end->lpg); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:355:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s%s%s", begin->lpg, delim_n, end->lpg); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:359:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buff, begin->lpg); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:364:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, buff); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:365:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s%s%s%s%s", data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:389:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s%s%s", indent_space, buff, delim_n); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:392:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buff, delim_n); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:393:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(line, buff); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.h:35:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.h:38:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.h:47:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.h:50:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:200:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pageno, *++argv); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:385:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(widx_fn, "%s%s", WORK, idx_fn); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:391:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(message, "Input index file %s%%s not found.\n", data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:405:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(idx_fn, "%s%s", base, INDEX_IDX); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:406:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(widx_fn, "%s%s%s", WORK, base, INDEX_IDX); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:411:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arg, "%s", data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:414:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(message, data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:434:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ((!open_fn) && (access(idx_fn, R_OK) != 0))) data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:447:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(idx_fn, "%s%s", base, INDEX_IDX); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:451:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ((!open_fn) && (access(idx_fn, R_OK) != 0))) { data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:471:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ind, "%s%s", base, INDEX_IND); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:475:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ind, "%s%s%s", strchr(base, ':') ? data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:487:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ilg, "%s%s", base, INDEX_ILG); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:491:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ilg, "%s%s%s", strchr(base, ':') ? data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:504:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_fn, "%s%s%s", strchr(base, ':') ? NIL : WORK, data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:508:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_fn, "%s%s", strrchr(base, ':') + 1, INDEX_LOG); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:510:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_fn, "%s%s", base, INDEX_LOG); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:520:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_fn, "%s%s", base, INDEX_LOG); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:599:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sty_fn, fn); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:606:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sty_fn, "%s:%s", STYLE_PATH, fn); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:642:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sty_fn, fn); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:230:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #define access(fn, R_OK) 0 /* function not available */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:244:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #define access(fn, R_OK) 0 /* function not available */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:411:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, F, S); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:412:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, S); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:416:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, F, S); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:417:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, USAGE, pgm_fn); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:422:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, F, D1, D2); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:423:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, USAGE, pgm_fn); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:676:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, DOT); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:677:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, DOT); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:686:1: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:689:1: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:210:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ptr->data.lpg, no); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:750:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(actual_key, sort_key); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h:119:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h:122:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h:131:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h:134:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D1, D2); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h:145:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.h:156:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D1, D2); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:347:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, clone); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h:172:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h:184:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h:187:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D1, D2); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h:199:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, F, D1, D2); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h:208:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, DOT); \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.h:209:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ilg_fp, DOT); \ data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:193:1: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tempdialog, XawDialogGetValueString(dialog)); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:194:1: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tempdialog,sel_value); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:208:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fin, *popen(); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:210:1: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tempd, XawDialogGetValueString(dialog)); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:224:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(callsed, BIN); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:226:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(callsed, tempd); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:228:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((fin = popen(callsed,"r")) == NULL) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:245:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fin, *popen(); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:247:1: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tempd, XawDialogGetValueString(dialog)); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:261:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(callsed, BIN); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:263:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(callsed, tempd); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:265:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((fin = popen(callsed,"r")) == NULL) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:282:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fin, *popen(); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:286:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(callsed, BIN); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:288:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(callsed, XawDialogGetValueString(dialog)); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:291:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((fin = popen(callsed,"r")) == NULL) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:303:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fin, *popen(); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:313:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(callshell, getenv("HOL_PRINT_CMD")); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:314:16: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((fin = popen(callshell,"w")) == NULL) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:388:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(data, eachstring); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:100:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call,main); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:102:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call,argv[optind]); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:104:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call,merge); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:106:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call,prompt); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:108:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call,argv[optind]); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:111:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call,argv[optind + 1]); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:114:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(call); data/hol88-2.02.19940316/contrib/holsort/holsort.c:79:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). *strcpy(), data/hol88-2.02.19940316/contrib/holsort/holsort.c:80:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). *strcat(); data/hol88-2.02.19940316/contrib/holsort/holsort.c:89:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(startname,argv[2]); data/hol88-2.02.19940316/contrib/holsort/holsort.c:93:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(startname,argv[1]); data/hol88-2.02.19940316/contrib/holsort/holsort.c:95:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(midname,startname); data/hol88-2.02.19940316/contrib/holsort/holsort.c:97:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(endname,startname); data/hol88-2.02.19940316/contrib/holsort/holsort.c:382:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void) fprintf(stderr,problem,startname,linenumber); data/hol88-2.02.19940316/contrib/mweb/common.c:265:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(paratab[i].pval,paraval); data/hol88-2.02.19940316/contrib/mweb/common.c:274:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(paratab[i].pname,paraname); data/hol88-2.02.19940316/contrib/mweb/common.c:275:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(paratab[i].pval,paraval); data/hol88-2.02.19940316/contrib/mweb/common.c:464:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(outfilename, infilename); data/hol88-2.02.19940316/contrib/mweb/common.c:465:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(infilename, insuffix); data/hol88-2.02.19940316/contrib/mweb/common.c:466:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(outfilename, outsuffix); data/hol88-2.02.19940316/contrib/mweb/common.c:474:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(basefilename, infilename); data/hol88-2.02.19940316/contrib/mweb/common.c:513:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(inbuf, "Cannot open input file %s", infilename); data/hol88-2.02.19940316/contrib/mweb/common.c:523:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(inbuf, "Cannot open output file %s", outfilename); data/hol88-2.02.19940316/contrib/mweb/common.c:538:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(prog,argv[0]); data/hol88-2.02.19940316/contrib/mweb/common.c:634:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(infilename,argv[i]); data/hol88-2.02.19940316/contrib/mweb/common.c:637:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(outfilename,argv[i]); data/hol88-2.02.19940316/contrib/mweb/common.c:727:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpbuf, "Cannot open include file %s", infname); data/hol88-2.02.19940316/contrib/mweb/common.c:754:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). else strcpy(tags[tagptr].s, cp); data/hol88-2.02.19940316/contrib/mweb/common.c:793:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(incltext[textptr].s, cp); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:153:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (mlinfilename,argv[optind]); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:156:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(lginfilename,mlinfilename); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:157:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(outfilename,mlinfilename); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:158:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mlinfilename, mlsuffix); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:159:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(lginfilename, logsuffix); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:160:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(outfilename, tagsuffix); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:242:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outfile, eoln); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:255:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outfile, eoln); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:273:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outfile,lgp); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:281:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outfile,eoln); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:282:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outfile,lgp); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:286:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outfile,lgp); data/hol88-2.02.19940316/contrib/mweb/mtangle.c:54:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(secbuf,line); data/hol88-2.02.19940316/contrib/mweb/mweave.c:114:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(obuf, inbuf); data/hol88-2.02.19940316/contrib/mweb/mweave.c:128:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). op = strcpy(op,charspec); data/hol88-2.02.19940316/contrib/mweb/mweave.c:522:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpbuf, "Cannot find tag section %s", cp); data/hol88-2.02.19940316/contrib/mweb/winnow.c:323:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpbuf, "Cannot find tag section %s", cp); data/hol88-2.02.19940316/contrib/tooltool/expr.c:131:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, l); data/hol88-2.02.19940316/contrib/tooltool/expr.c:134:8: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, buf); data/hol88-2.02.19940316/contrib/tooltool/expr.c:135:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, m); data/hol88-2.02.19940316/contrib/tooltool/expr.c:139:8: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, buf); data/hol88-2.02.19940316/contrib/tooltool/expr.c:140:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, r); data/hol88-2.02.19940316/contrib/tooltool/expr.c:403:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, p); data/hol88-2.02.19940316/contrib/tooltool/expr.c:404:10: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(s, q); data/hol88-2.02.19940316/contrib/tooltool/func.c:175:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (stat(p = tt_string_of(tt_eval(e)), &buf) == 0 && access(p, X_OK) == 0) data/hol88-2.02.19940316/contrib/tooltool/func.c:212:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(q, fmt, tt_eval(e1)->number); data/hol88-2.02.19940316/contrib/tooltool/func.c:217:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(q, fmt, (int) tt_eval(e1)->number); data/hol88-2.02.19940316/contrib/tooltool/func.c:222:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(q, fmt, tt_string_of(tt_eval(e1))); data/hol88-2.02.19940316/contrib/tooltool/func.c:225:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(q, fmt); data/hol88-2.02.19940316/contrib/tooltool/func.c:233:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(q, fmt); data/hol88-2.02.19940316/contrib/tooltool/func.c:317:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((f = popen(tt_string_of(tt_eval(e)), "r")) == NULL) data/hol88-2.02.19940316/contrib/tooltool/func.c:344:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (stat(p = tt_string_of(tt_eval(e)), &buf) == 0 && access(p, R_OK) == 0) data/hol88-2.02.19940316/contrib/tooltool/func.c:464:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return(tt_int_result(system(tt_string_of(tt_eval(e))))); data/hol88-2.02.19940316/contrib/tooltool/func.c:543:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (stat(p = tt_string_of(tt_eval(e)), &buf) == 0 && access(p, W_OK) == 0) data/hol88-2.02.19940316/contrib/tooltool/lex.c:167:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((f = popen(CPP, "r")) == NULL) data/hol88-2.02.19940316/contrib/tooltool/lex.c:414:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, buf); data/hol88-2.02.19940316/contrib/tooltool/lex.c:433:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, token[last_token - FIRST_KEYWORD].name); data/hol88-2.02.19940316/contrib/tooltool/misc.c:212:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, path); data/hol88-2.02.19940316/contrib/tooltool/misc.c:215:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, getenv("HOME")); data/hol88-2.02.19940316/contrib/tooltool/misc.c:216:8: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(s, path + 1); data/hol88-2.02.19940316/contrib/tooltool/misc.c:222:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, pw->pw_dir); data/hol88-2.02.19940316/contrib/tooltool/misc.c:225:14: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(s, p + 1); data/hol88-2.02.19940316/contrib/tooltool/misc.c:231:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pattern, last_node(s)); data/hol88-2.02.19940316/contrib/tooltool/misc.c:239:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, path); data/hol88-2.02.19940316/contrib/tooltool/misc.c:245:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(candidate, dp->d_name); data/hol88-2.02.19940316/contrib/tooltool/misc.c:259:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(s, candidate); data/hol88-2.02.19940316/contrib/tooltool/misc.c:335:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, s1, s2, s3, s4, s5, s6, s7, s8, s9); data/hol88-2.02.19940316/contrib/tooltool/misc.c:449:8: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_path, s); data/hol88-2.02.19940316/contrib/tooltool/misc.c:450:81: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (stat(full_path, &buf) == 0 && ((buf.st_mode & S_IFMT) == S_IFREG) && access(full_path, mode) == 0) data/hol88-2.02.19940316/contrib/tooltool/objects.c:251:17: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, b->u.but.label[i]->label); data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:7:31: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). #define strsave(s) ((char *) strcpy((char *) malloc(strlen(s) + 1), s)) data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:40:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((f = popen(LPQ, "r")) == NULL) { data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:44:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CLEAR); data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:49:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(buf); data/hol88-2.02.19940316/contrib/tooltool/selection.c:69:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pos, reply); data/hol88-2.02.19940316/contrib/tooltool/tooltool.c:120:5: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(tt_full_path_of(argv[4], X_OK), &(argv[4])); data/hol88-2.02.19940316/contrib/tooltool/tooltool.h:27:32: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). #define strsave(s) ((char *) strcpy((char *) safe_malloc(strlen(s) + 1), s)) data/hol88-2.02.19940316/contrib/tooltool/tooltool.h:28:33: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). #define estrsave(s) ((char *) strcpy((char *) tt_emalloc(strlen(s) + 1), s)) data/hol88-2.02.19940316/lisp/f-ol-syntax.c:1478:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {if (!(ex)){(void)fprintf(stderr, \ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:597:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((path = getenv(STYLE_PATH)) == NULL) { data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:248:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #define getenv(P) 0 data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:726:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #define getenv(P) 0 data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:728:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *getenv ARGS((const char *name)); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:311:5: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("HOL_PRINT_CMD") != NULL) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:313:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. strcpy(callshell, getenv("HOL_PRINT_CMD")); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:60:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "?p:h:m:")) != -1) data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c:50:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "?p:")) != -1) data/hol88-2.02.19940316/contrib/mweb/mmerge.c:135:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "?hHp:")) != -1) data/hol88-2.02.19940316/contrib/tooltool/func.c:28:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. PUBLIC char *getenv(), *rindex(); data/hol88-2.02.19940316/contrib/tooltool/func.c:244:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. p = getenv(tt_string_of(tt_eval(e))); data/hol88-2.02.19940316/contrib/tooltool/func.c:331:2: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. getwd(buf); data/hol88-2.02.19940316/contrib/tooltool/misc.c:32:35: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. PUBLIC char *index(), *rindex(), *getenv(); data/hol88-2.02.19940316/contrib/tooltool/misc.c:215:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. strcpy(s, getenv("HOME")); data/hol88-2.02.19940316/contrib/tooltool/misc.c:444:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. path = getenv("PATH"); data/hol88-2.02.19940316/lisp/f-ol-syntax.c:1021:8: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. struct random { data/hol88-2.02.19940316/lisp/f-ol-syntax.c:1156:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. struct random rnd; /* random-states */ data/hol88-2.02.19940316/lisp/f-ol-syntax.c:3982:38: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. /* unixfsys.c:145:OF */ extern char *getwd (char *buffer); /* (buffer) char *buffer; */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:43:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[2 * ARGUMENT_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:44:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char line[2 * ARGUMENT_MAX]; /* output buffer */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:346:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[sizeof(buff)]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:55:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char widx_fn[STRING_MAX + 5]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:59:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sty_fn[LINE_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:61:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ind[STRING_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:63:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ilg[STRING_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:65:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pageno[NUMBER_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:67:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char log_fn[STRING_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:68:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char base[STRING_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fns[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:356:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[256]; /* error message */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:357:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char arg[8]; /* argument for sprintf() */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:428:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define OPEN_IN_B(FP) fopen(FP, "rb") data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:431:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define OPEN_IN(FP) fopen(FP, "r") data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:432:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define OPEN_OUT(FP) fopen(FP, "w") data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:552:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *sf[FIELD_MAX]; /* sort key */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:553:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *af[FIELD_MAX]; /* actual key */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:555:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lpg[NUMBER_MAX]; /* literal page */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:578:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char idx_keyword[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:589:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char page_comp[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:592:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char preamble[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:593:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char postamble[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:594:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char setpage_open[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:595:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char setpage_close[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:596:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char group_skip[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:598:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char heading_pre[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:599:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char heading_suf[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:600:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char symhead_pos[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:601:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char symhead_neg[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:602:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char numhead_pos[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:603:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char numhead_neg[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:611:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char item_r[FIELD_MAX][ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:612:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char item_u[FIELD_MAX][ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:613:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char item_x[FIELD_MAX][ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:618:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char delim_p[FIELD_MAX][ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:619:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char delim_n[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:620:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char delim_r[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:621:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char delim_t[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:623:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char encap_p[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:624:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char encap_i[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:625:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char encap_s[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:628:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char indent_space[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:638:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char widx_fn[STRING_MAX + 5]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:40:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char key[ARGUMENT_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:41:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char no[NUMBER_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:70:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyword[ARRAY_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:470:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[ARABIC_MAX+1]; /* space for trailing NUL */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:35:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char idx_keyword[ARRAY_MAX] = IDX_KEYWORD; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:46:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char preamble[ARRAY_MAX] = PREAMBLE_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:47:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char postamble[ARRAY_MAX] = POSTAMBLE_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:51:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char setpage_open[ARRAY_MAX] = SETPAGEOPEN_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:52:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char setpage_close[ARRAY_MAX] = SETPAGECLOSE_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:55:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char group_skip[ARRAY_MAX] = GROUPSKIP_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:59:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char heading_pre[ARRAY_MAX] = HEADINGPRE_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:60:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char heading_suf[ARRAY_MAX] = HEADINGSUF_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:64:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symhead_pos[ARRAY_MAX] = SYMHEADPOS_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:65:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symhead_neg[ARRAY_MAX] = SYMHEADNEG_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:67:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numhead_pos[ARRAY_MAX] = NUMHEADPOS_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:68:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numhead_neg[ARRAY_MAX] = NUMHEADNEG_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:70:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char item_r[FIELD_MAX][ARRAY_MAX] = {ITEM0_DEF, ITEM1_DEF, ITEM2_DEF}; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:71:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char item_u[FIELD_MAX][ARRAY_MAX] = {"", ITEM1_DEF, ITEM2_DEF}; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:72:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char item_x[FIELD_MAX][ARRAY_MAX] = {"", ITEM1_DEF, ITEM2_DEF}; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:78:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char delim_p[FIELD_MAX][ARRAY_MAX] = {DELIM_DEF, DELIM_DEF, DELIM_DEF}; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:79:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char delim_n[ARRAY_MAX] = DELIM_DEF; /* page number separator */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:80:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char delim_r[ARRAY_MAX] = DELIMR_DEF;/* page range designator */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:81:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char delim_t[ARRAY_MAX] = DELIMT_DEF;/* page list terminating delimiter */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:83:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char encap_p[ARRAY_MAX] = ENCAP0_DEF;/* encapsulator prefix */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:84:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char encap_i[ARRAY_MAX] = ENCAP1_DEF;/* encapsulator infix */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:85:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char encap_s[ARRAY_MAX] = ENCAP2_DEF;/* encapsulator postfix */ data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:90:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char indent_space[ARRAY_MAX] = INDENTSPC_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:92:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char page_comp[ARRAY_MAX] = COMPOSITOR_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:100:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char page_prec[ARRAY_MAX] = PRECEDENCE_DEF; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char spec[STRING_MAX]; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanst.c:333:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char clone[ARRAY_MAX]; data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:186:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempdialog[BUFSIZ]; data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:207:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char callsed[BUFSIZ], tempd[BUFSIZ]; data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:225:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(callsed, "hol_apro "); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:244:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char callsed[BUFSIZ], tempd[BUFSIZ]; data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:262:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(callsed, "hol_ref "); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:281:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char callsed[BUFSIZ]; data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:287:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(callsed, "hol_thm \""); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:302:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char callshell[BUFSIZ]; data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:355:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char eachstring[MAXLEN]; data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:52:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp, *fopen(); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:82:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(argv[optind], "r")) == NULL) { data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:90:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(argv[optind + 1], "w")) == NULL) { data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:101:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(call," <"); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:103:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(call,") | ("); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:105:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(call," -p '"); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:107:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(call,"' "); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:110:11: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(call," >"); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c:44:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp, *fopen(); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c:65:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(argv[optind], "r")) == NULL) { data/hol88-2.02.19940316/contrib/holsort/holsort.c:62:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data/hol88-2.02.19940316/contrib/holsort/holsort.c:96:8: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. (void) strcat(midname,".items"); data/hol88-2.02.19940316/contrib/holsort/holsort.c:98:8: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. (void) strcat(endname,".sort"); data/hol88-2.02.19940316/contrib/holsort/holsort.c:100:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fin = fopen(startname,"r"); data/hol88-2.02.19940316/contrib/holsort/holsort.c:105:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fmid = fopen(midname,"a+"); data/hol88-2.02.19940316/contrib/holsort/holsort.c:110:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout = fopen(endname,"w"); data/hol88-2.02.19940316/contrib/mweb/common.c:166:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char inbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/common.c:167:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char langname[MAXNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/common.c:172:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char infilename[MAXFNAMELEN] = ""; data/hol88-2.02.19940316/contrib/mweb/common.c:173:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outfilename[MAXFNAMELEN] = ""; data/hol88-2.02.19940316/contrib/mweb/common.c:283:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ppname[MAXNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/common.c:284:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ppval[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/common.c:510:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). instream = fopen(infilename, "r"); data/hol88-2.02.19940316/contrib/mweb/common.c:520:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outstream = fopen(outfilename, "w"); data/hol88-2.02.19940316/contrib/mweb/common.c:672:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tagname[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/common.c:713:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/common.c:725:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp = fopen(infname, "r")) == NULL) data/hol88-2.02.19940316/contrib/mweb/mmerge.c:74:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char logbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mmerge.c:75:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mlbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mmerge.c:76:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mlinfilename[MAXFNAMELEN] = ""; data/hol88-2.02.19940316/contrib/mweb/mmerge.c:77:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lginfilename[MAXFNAMELEN] = ""; data/hol88-2.02.19940316/contrib/mweb/mmerge.c:78:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outfilename[MAXFNAMELEN] = ""; data/hol88-2.02.19940316/contrib/mweb/mmerge.c:128:34: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fml, *flg, *outfile, *fopen(); data/hol88-2.02.19940316/contrib/mweb/mmerge.c:161:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fml = fopen(mlinfilename,"r")) == NULL) data/hol88-2.02.19940316/contrib/mweb/mmerge.c:163:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((flg = fopen(lginfilename,"r")) == NULL) data/hol88-2.02.19940316/contrib/mweb/mmerge.c:165:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((outfile = fopen(outfilename,"w")) == NULL) data/hol88-2.02.19940316/contrib/mweb/mmerge.c:174:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fml = fopen(mlinfilename,"r")) == NULL) data/hol88-2.02.19940316/contrib/mweb/mtangle.c:38:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char secbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweave.c:30:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char old_buf[MAXNOLINE][MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweave.c:31:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char new_buf[MAXNOLINE][MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweave.c:32:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweave.c:50:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int linelen = atoi(paratab[Pml_line_length].pval); data/hol88-2.02.19940316/contrib/mweb/mweave.c:51:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int maxnoline = atoi(paratab[Pml_line_count].pval); data/hol88-2.02.19940316/contrib/mweb/mweave.c:93:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int n = atoi(paratab[Ptab_spaces].pval); data/hol88-2.02.19940316/contrib/mweb/mweave.c:104:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char charspec[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweave.c:171:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oldstr[MAXOUTLEN],newstr[MAXOUTLEN],langstr[MAXOUTLEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pname[MAXNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pval[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:175:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char prog[MAXFNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:176:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char inbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:177:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char langname[MAXNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:185:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char basefilename[MAXFNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:195:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/mweb.h:202:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char infname[MAXFNAMELEN]; data/hol88-2.02.19940316/contrib/mweb/winnow.c:71:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/mweb/winnow.c:76:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char secbuf[MAXLINELEN]; data/hol88-2.02.19940316/contrib/tooltool/events.c:100:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *p, buf[1024]; data/hol88-2.02.19940316/contrib/tooltool/expr.c:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2]; data/hol88-2.02.19940316/contrib/tooltool/expr.c:199:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char buf[20]; data/hol88-2.02.19940316/contrib/tooltool/expr.c:216:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char buf[20]; data/hol88-2.02.19940316/contrib/tooltool/expr.c:233:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char buf[20]; data/hol88-2.02.19940316/contrib/tooltool/expr.c:255:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20], *delimiters; data/hol88-2.02.19940316/contrib/tooltool/expr.c:263:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%1.12g", v->number); data/hol88-2.02.19940316/contrib/tooltool/func.c:197:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char fmt[1024], result[1024], *p, *q, *r, *format; data/hol88-2.02.19940316/contrib/tooltool/func.c:329:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char buf[1024]; data/hol88-2.02.19940316/contrib/tooltool/func.c:488:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/hol88-2.02.19940316/contrib/tooltool/func.c:501:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", i); data/hol88-2.02.19940316/contrib/tooltool/lex.c:27:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. PRIVATE char buf[1024]; data/hol88-2.02.19940316/contrib/tooltool/lex.c:354:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). yylval.ival = atoi(buf); data/hol88-2.02.19940316/contrib/tooltool/misc.c:117:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char msg[IL_ERRORMSG_SIZE]; data/hol88-2.02.19940316/contrib/tooltool/misc.c:126:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen(path, "r")) == NULL) data/hol88-2.02.19940316/contrib/tooltool/misc.c:206:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { static char s[1024]; data/hol88-2.02.19940316/contrib/tooltool/misc.c:207:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pattern[1024], candidate[1024], *p,*q; data/hol88-2.02.19940316/contrib/tooltool/misc.c:378:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return(atoi(l) - atoi(r)); data/hol88-2.02.19940316/contrib/tooltool/misc.c:378:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return(atoi(l) - atoi(r)); data/hol88-2.02.19940316/contrib/tooltool/misc.c:386:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { unsigned char *p, buf[1024]; data/hol88-2.02.19940316/contrib/tooltool/misc.c:439:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char full_path[1024]; data/hol88-2.02.19940316/contrib/tooltool/objects.c:250:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p, " "); data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:37:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/hol88-2.02.19940316/contrib/tooltool/symbols.c:86:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[20]; data/hol88-2.02.19940316/contrib/tooltool/tooltool.c:91:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *v1 = atoi(argv[i + 1]); data/hol88-2.02.19940316/contrib/tooltool/tooltool.c:96:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *v2 = atoi(argv[i + 2]); data/hol88-2.02.19940316/contrib/tooltool/tooltool.c:119:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). wait_for_window_size(atoi(argv[2]), atoi(argv[3]), POLLING_TIME_OUT); data/hol88-2.02.19940316/contrib/tooltool/tooltool.c:119:41: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). wait_for_window_size(atoi(argv[2]), atoi(argv[3]), POLLING_TIME_OUT); data/hol88-2.02.19940316/contrib/tooltool/windows.c:148:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[64]; data/hol88-2.02.19940316/contrib/tooltool/windows.c:153:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *pos_hack[5]; data/hol88-2.02.19940316/contrib/tooltool/windows.c:178:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(args[2], "%d", tt_base_window->columns / (tt_base_window->is_chars? 1 : charwidth_of(tt_a_font))); data/hol88-2.02.19940316/contrib/tooltool/windows.c:179:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(args[3], "%d", tt_base_window->rows / (tt_base_window->is_chars? 1 : charheight_of(tt_a_font))); data/hol88-2.02.19940316/contrib/tooltool/windows.c:320:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pos_hack[2], "%d", fr->r_left); data/hol88-2.02.19940316/contrib/tooltool/windows.c:321:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pos_hack[3], "%d", fr->r_top); data/hol88-2.02.19940316/lisp/f-ol-syntax.c:3455:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *startp[NSUBEXP]; data/hol88-2.02.19940316/lisp/f-ol-syntax.c:3456:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *endp[NSUBEXP]; data/hol88-2.02.19940316/lisp/f-ol-syntax.c:3462:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char program[1]; /* Unwarranted chumminess with compiler. */ data/hol88-2.02.19940316/lisp/f-ol-syntax.c:5252:6: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. void bcopy ( const void *s1, void *s2, size_t n ); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:377:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line) + strlen(buff) + ind_indent; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/genind.c:377:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line) + strlen(buff) + ind_indent; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:122:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). register char *ext = pgm_fn + strlen(pgm_fn)-4; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:392:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strchr(idx_fn, ':') || (strlen(WORK) == 0)) ? data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:412:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strchr(idx_fn, ':') || (strlen(WORK) == 0)) ? data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:603:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(STYLE_PATH) + strlen(fn) + 1) > ARRAY_MAX) { data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:603:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(STYLE_PATH) + strlen(fn) + 1) > ARRAY_MAX) { data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:610:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = ARRAY_MAX - strlen(fn) - 1; data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.c:621:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int j = strlen(path); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/mkind.h:391:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define GET_CHAR getc data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:78:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). comp_len = strlen(page_comp); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:257:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). make_string(&(data->encap),strlen(key) + 1); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:258:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (scan_field(&n, data->encap, strlen(key), FALSE, FALSE, FALSE)) data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:267:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). make_string(&(data->af[i]),strlen(key) + 1); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:268:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!scan_field(&n, data->af[i], strlen(key), data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:274:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). make_string(&(data->af[i]),strlen(key) + 1); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:275:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!scan_field(&n, data->af[i], strlen(key), data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:287:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). make_string(&(data->sf[i]),strlen(key) + 1); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:288:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!scan_field(&n, data->sf[i], strlen(key), data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:294:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). make_string(&(data->sf[i]),strlen(key) + 1); data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:295:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!scan_field(&n, data->sf[i], strlen(key), data/hol88-2.02.19940316/Manual/LaTeX/makeindex.src/src/scanid.c:302:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). make_string(&(data->af[i]),strlen(data->sf[i]) + 1); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:196:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nbytes = strlen(tempdialog); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:212:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(tempd) == 0) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:249:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(tempd) == 0) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:289:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(callsed, "\""); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:376:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(data,""); data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:380:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(data) + strlen(eachstring) > (num_bufs * BUFSIZ)) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:380:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(data) + strlen(eachstring) > (num_bufs * BUFSIZ)) data/hol88-2.02.19940316/contrib/Xhelp/xholhelp.c:403:1: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(data,""); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:99:6: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(call,"("); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_batch.c:113:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(call,")"); data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c:72:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(fp)) != EOF) data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c:76:37: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (putchar(inchar = getchar()) == '\n') data/hol88-2.02.19940316/contrib/batch-hol-tool/hol_merge.c:91:37: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (putchar(inchar = getchar()) != s[l++]) data/hol88-2.02.19940316/contrib/holsort/holsort.c:153:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(infile)) != EOF) { data/hol88-2.02.19940316/contrib/holsort/holsort.c:267:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(infile); data/hol88-2.02.19940316/contrib/holsort/holsort.c:285:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(infile); data/hol88-2.02.19940316/contrib/holsort/holsort.c:329:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/hol88-2.02.19940316/contrib/mweb/common.c:749:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(cp) == 0) data/hol88-2.02.19940316/contrib/mweb/common.c:766:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(cp) != 0) data/hol88-2.02.19940316/contrib/mweb/mweave.c:119:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(paratab[Pmac_spec_char].pval); data/hol88-2.02.19940316/contrib/mweb/mweave.c:120:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(charspec, paratab[Pmac_spec_char].pval, (len + 3)); data/hol88-2.02.19940316/contrib/tooltool/actions.c:35:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (len = strlen(p), sent = 0; sent < len; ) data/hol88-2.02.19940316/contrib/tooltool/expr.c:130:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = tt_emalloc(strlen(l) + strlen(m) + strlen(r) + 3); data/hol88-2.02.19940316/contrib/tooltool/expr.c:130:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = tt_emalloc(strlen(l) + strlen(m) + strlen(r) + 3); data/hol88-2.02.19940316/contrib/tooltool/expr.c:130:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = tt_emalloc(strlen(l) + strlen(m) + strlen(r) + 3); data/hol88-2.02.19940316/contrib/tooltool/expr.c:402:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s = tt_emalloc(strlen(p) + strlen(q) + 1); data/hol88-2.02.19940316/contrib/tooltool/expr.c:402:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s = tt_emalloc(strlen(p) + strlen(q) + 1); data/hol88-2.02.19940316/contrib/tooltool/func.c:228:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += strlen(q); data/hol88-2.02.19940316/contrib/tooltool/func.c:286:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(source, target, strlen(target)) == 0) data/hol88-2.02.19940316/contrib/tooltool/func.c:305:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return(tt_int_result(strlen(tt_string_of(tt_eval(e))))); data/hol88-2.02.19940316/contrib/tooltool/func.c:432:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (st > strlen(s)) data/hol88-2.02.19940316/contrib/tooltool/func.c:436:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (l <= strlen(s)) data/hol88-2.02.19940316/contrib/tooltool/func.c:492:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tokens = (char **) tt_emalloc((max_count = strlen(line) / 2 + 2) * sizeof(char *)); data/hol88-2.02.19940316/contrib/tooltool/lex.c:173:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/hol88-2.02.19940316/contrib/tooltool/lex.c:262:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((i = strlen(buf)) == 2) { /* possible two character function key name */ data/hol88-2.02.19940316/contrib/tooltool/misc.c:83:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf = (char *) tt_emalloc(strlen(line) * 2 + 1); data/hol88-2.02.19940316/contrib/tooltool/misc.c:224:14: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(s, "/"); data/hol88-2.02.19940316/contrib/tooltool/misc.c:237:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(s, "."); data/hol88-2.02.19940316/contrib/tooltool/misc.c:243:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(dp->d_name, pattern, strlen(pattern)) == 0) data/hol88-2.02.19940316/contrib/tooltool/misc.c:257:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (s[strlen(s) - 1] != '/') data/hol88-2.02.19940316/contrib/tooltool/misc.c:258:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(s, "/"); data/hol88-2.02.19940316/contrib/tooltool/misc.c:414:8: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50000); data/hol88-2.02.19940316/contrib/tooltool/misc.c:448:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(full_path, "/"); data/hol88-2.02.19940316/contrib/tooltool/objects.c:249:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = (char *) safe_malloc(strlen(b->u.but.label[i]->label) + 5); data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:7:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define strsave(s) ((char *) strcpy((char *) malloc(strlen(s) + 1), s)) data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:27:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(target); data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:90:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getchar()) != EOF) data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:93:18: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (getchar() != '\n') data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:97:18: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (getchar() != '\n') data/hol88-2.02.19940316/contrib/tooltool/samples/queue.c:100:36: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 'i' : for (i = 0; (c = getchar()) != '\n'; ) data/hol88-2.02.19940316/contrib/tooltool/selection.c:70:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pos += strlen(reply); data/hol88-2.02.19940316/contrib/tooltool/tooltool.h:27:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define strsave(s) ((char *) strcpy((char *) safe_malloc(strlen(s) + 1), s)) data/hol88-2.02.19940316/contrib/tooltool/tooltool.h:28:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define estrsave(s) ((char *) strcpy((char *) tt_emalloc(strlen(s) + 1), s)) data/hol88-2.02.19940316/lisp/f-ol-syntax.c:2491:11: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. int eql(),equal(),eq(); data/hol88-2.02.19940316/lisp/f-ol-syntax.c:3918:37: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. /* predicate.c:469:OF */ extern int equal (register object x, register object y); /* (x, y) register object x; register object y; */ data/hol88-2.02.19940316/lisp/f-ol-syntax.c:6884:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(equal(x,V138->c.c_car->c.c_car) &&V138->c.c_car != Cnil){ data/hol88-2.02.19940316/lisp/f-ol-syntax.c:6947:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(equal(x,V146->c.c_car->c.c_car) &&V146->c.c_car != Cnil){ data/hol88-2.02.19940316/lisp/f-ol-syntax.c:7267:7: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(!(equal(CMPcar((V166)),CMPcddr((V163))))){ data/hol88-2.02.19940316/lisp/f-ol-syntax.c:7550:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(equal(V190,V192)){ ANALYSIS SUMMARY: Hits = 453 Lines analyzed = 20489 in approximately 1.24 seconds (16545 lines/second) Physical Source Lines of Code (SLOC) = 15803 Hits@level = [0] 166 [1] 81 [2] 178 [3] 18 [4] 176 [5] 0 Hits@level+ = [0+] 619 [1+] 453 [2+] 372 [3+] 194 [4+] 176 [5+] 0 Hits/KSLOC@level+ = [0+] 39.1698 [1+] 28.6654 [2+] 23.5398 [3+] 12.2762 [4+] 11.1371 [5+] 0 Dot directories skipped = 2 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.