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/gambc-4.9.3/bench/src/fibfp.c Examining data/gambc-4.9.3/bench/src/tail.c Examining data/gambc-4.9.3/bench/src/sum1.c Examining data/gambc-4.9.3/bench/src/sum.c Examining data/gambc-4.9.3/bench/src/array1.c Examining data/gambc-4.9.3/bench/src/pnpoly.c Examining data/gambc-4.9.3/bench/src/tak.c Examining data/gambc-4.9.3/bench/src/tfib.c Examining data/gambc-4.9.3/bench/src/cat.c Examining data/gambc-4.9.3/bench/src/wc.c Examining data/gambc-4.9.3/bench/src/mbrot.c Examining data/gambc-4.9.3/bench/src/string.c Examining data/gambc-4.9.3/bench/src/fft.c Examining data/gambc-4.9.3/bench/src/sumfp.c Examining data/gambc-4.9.3/bench/src/sumloop.c Examining data/gambc-4.9.3/bench/src/fib.c Examining data/gambc-4.9.3/bench/src/ack.c Examining data/gambc-4.9.3/bench/src/nucleic.c Examining data/gambc-4.9.3/gsi/_gsi_.c Examining data/gambc-4.9.3/gsi/_gambitgsi.c Examining data/gambc-4.9.3/gsi/_gsi.c Examining data/gambc-4.9.3/gsi/_gsilib.c Examining data/gambc-4.9.3/include/stamp.h Examining data/gambc-4.9.3/tests/client.c Examining data/gambc-4.9.3/tests/server.h Examining data/gambc-4.9.3/prebuilt/windows/binpatch.c Examining data/gambc-4.9.3/contrib/GambitREPL/IView.h Examining data/gambc-4.9.3/contrib/GambitREPL/KOKeyboardRow.h Examining data/gambc-4.9.3/contrib/GambitREPL/AppDelegate.h Examining data/gambc-4.9.3/contrib/GambitREPL/KOProtocol.h Examining data/gambc-4.9.3/contrib/GambitREPL/TView.h Examining data/gambc-4.9.3/contrib/GambitREPL/KOSwipeButton.h Examining data/gambc-4.9.3/contrib/GambitREPL/KOCreateButton.h Examining data/gambc-4.9.3/contrib/GambitREPL/WView.h Examining data/gambc-4.9.3/contrib/GambitREPL/ITView.h Examining data/gambc-4.9.3/contrib/GambitREPL/intf.h Examining data/gambc-4.9.3/contrib/GambitREPL/ViewController.h Examining data/gambc-4.9.3/contrib/xactlog/xactlog.c Examining data/gambc-4.9.3/examples/pthread/mylib.h Examining data/gambc-4.9.3/examples/pthread/pthread.c Examining data/gambc-4.9.3/gsc/_t-univ-1.c Examining data/gambc-4.9.3/gsc/_assert.c Examining data/gambc-4.9.3/gsc/_back.c Examining data/gambc-4.9.3/gsc/_t-c-2.c Examining data/gambc-4.9.3/gsc/_front.c Examining data/gambc-4.9.3/gsc/_gsc_.c Examining data/gambc-4.9.3/gsc/_t-univ-2.c Examining data/gambc-4.9.3/gsc/_gambitgsc.c Examining data/gambc-4.9.3/gsc/_host.c Examining data/gambc-4.9.3/gsc/_utils.c Examining data/gambc-4.9.3/gsc/_t-c-1.c Examining data/gambc-4.9.3/gsc/_prims.c Examining data/gambc-4.9.3/gsc/_gvm.c Examining data/gambc-4.9.3/gsc/_x86.c Examining data/gambc-4.9.3/gsc/_asm.c Examining data/gambc-4.9.3/gsc/_ptree1.c Examining data/gambc-4.9.3/gsc/_t-univ-3.c Examining data/gambc-4.9.3/gsc/_source.c Examining data/gambc-4.9.3/gsc/_gsc.c Examining data/gambc-4.9.3/gsc/_ptree2.c Examining data/gambc-4.9.3/gsc/_t-univ-4.c Examining data/gambc-4.9.3/gsc/_parms.c Examining data/gambc-4.9.3/gsc/_codegen.c Examining data/gambc-4.9.3/gsc/_env.c Examining data/gambc-4.9.3/gsc/_t-c-3.c Examining data/gambc-4.9.3/gsc/_gsclib.c Examining data/gambc-4.9.3/lib/actlog.h Examining data/gambc-4.9.3/lib/os_tty.c Examining data/gambc-4.9.3/lib/guide/guide.h Examining data/gambc-4.9.3/lib/guide/guideuirepl.h Examining data/gambc-4.9.3/lib/guide/guideuicodeformat.cpp Examining data/gambc-4.9.3/lib/guide/guideuicont.cpp Examining data/gambc-4.9.3/lib/guide/guideuitableitem.h Examining data/gambc-4.9.3/lib/guide/guideuitextedit.h Examining data/gambc-4.9.3/lib/guide/guideuihighlighter.cpp Examining data/gambc-4.9.3/lib/guide/guideuiconsoleinfo.cpp Examining data/gambc-4.9.3/lib/guide/_guide.c Examining data/gambc-4.9.3/lib/guide/guideuicodeformat.h Examining data/gambc-4.9.3/lib/guide/guideuirepl.cpp Examining data/gambc-4.9.3/lib/guide/guideuiinspector.cpp Examining data/gambc-4.9.3/lib/guide/guide.cpp Examining data/gambc-4.9.3/lib/guide/guideuienv.cpp Examining data/gambc-4.9.3/lib/guide/guideuicont.h Examining data/gambc-4.9.3/lib/guide/guideuihighlighterscheme.cpp Examining data/gambc-4.9.3/lib/guide/guideuihighlighterscheme.h Examining data/gambc-4.9.3/lib/guide/guideuiinspector.h Examining data/gambc-4.9.3/lib/guide/guideuihighlighter.h Examining data/gambc-4.9.3/lib/guide/guideuiconsoleinfo.h Examining data/gambc-4.9.3/lib/guide/guideuienv.h Examining data/gambc-4.9.3/lib/guide/_guide.h Examining data/gambc-4.9.3/lib/guide/guideuitextedit.cpp Examining data/gambc-4.9.3/lib/guide/guideuischeme.h Examining data/gambc-4.9.3/lib/guide/guideuischeme.cpp Examining data/gambc-4.9.3/lib/_std.c Examining data/gambc-4.9.3/lib/os_files.h Examining data/gambc-4.9.3/lib/os_thread.h Examining data/gambc-4.9.3/lib/dead.h Examining data/gambc-4.9.3/lib/setup.h Examining data/gambc-4.9.3/lib/_nonstd.c Examining data/gambc-4.9.3/lib/_io.c Examining data/gambc-4.9.3/lib/_system.c Examining data/gambc-4.9.3/lib/os_time.h Examining data/gambc-4.9.3/lib/_kernel.c Examining data/gambc-4.9.3/lib/mem.c Examining data/gambc-4.9.3/lib/os_shell.c Examining data/gambc-4.9.3/lib/os.h Examining data/gambc-4.9.3/lib/os_setup.c Examining data/gambc-4.9.3/lib/os_base.c Examining data/gambc-4.9.3/lib/_thread.c Examining data/gambc-4.9.3/lib/_gambit.c Examining data/gambc-4.9.3/lib/os_dyn.c Examining data/gambc-4.9.3/lib/c_intf.c Examining data/gambc-4.9.3/lib/os_io.h Examining data/gambc-4.9.3/lib/os_thread.c Examining data/gambc-4.9.3/lib/setup.c Examining data/gambc-4.9.3/lib/os_files.c Examining data/gambc-4.9.3/lib/_repl.c Examining data/gambc-4.9.3/lib/os_tty.h Examining data/gambc-4.9.3/lib/main.c Examining data/gambc-4.9.3/lib/actlog.c Examining data/gambc-4.9.3/lib/_num.c Examining data/gambc-4.9.3/lib/os_time.c Examining data/gambc-4.9.3/lib/os_base.h Examining data/gambc-4.9.3/lib/_eval.c Examining data/gambc-4.9.3/lib/os_setup.h Examining data/gambc-4.9.3/lib/os_shell.h Examining data/gambc-4.9.3/lib/mem.h Examining data/gambc-4.9.3/lib/os_io.c Examining data/gambc-4.9.3/lib/c_intf.h Examining data/gambc-4.9.3/lib/os_dyn.h Examining data/gambc-4.9.3/doc/m1.c Examining data/gambc-4.9.3/doc/x.c Examining data/gambc-4.9.3/doc/x.h FINAL RESULTS: data/gambc-4.9.3/bench/src/string.c:18:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "123%s456%s789", s, s); data/gambc-4.9.3/bench/src/string.c:23:25: [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, s + len/2); data/gambc-4.9.3/contrib/xactlog/xactlog.c:1918:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( title, "%s p = %d", log_filename, log_nb_traces ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:1963:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (info, data/gambc-4.9.3/contrib/xactlog/xactlog.c:1977:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (info, "[%s]", str); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2346:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. { sprintf( command, "lpr %s", postscript_file ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2347:9: [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. if (system( command ) < 0) data/gambc-4.9.3/lib/guide/guide.cpp:83:18: [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). my_argv[i] = strcpy ((char*)___alloc_mem (strlen (argv[i]) + 1), data/gambc-4.9.3/lib/os_base.c:131:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. result = vfprintf (stream, format, ap); data/gambc-4.9.3/lib/os_dyn.c:233:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (dl_error_buffer, data/gambc-4.9.3/lib/os_files.c:553:15: [4] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _tcscpy (___CAST(wchar_t*,gambitdir), temp); data/gambc-4.9.3/lib/os_io.c:9026:15: [4] (shell) execvp: 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. execvp (argv[0], argv); data/gambc-4.9.3/lib/os_shell.c:833:14: [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. code = system (ccmd); data/gambc-4.9.3/lib/os_shell.c:908:26: [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. code = system (ccmd); data/gambc-4.9.3/lib/os_shell.c:1023:26: [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. code = system (___CAST(___STRING_TYPE(___SHELL_COMMAND_CE_SELECT),ccmd)); data/gambc-4.9.3/lib/os_dyn.c:95:14: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. p->descr = LoadLibrary (cpath); data/gambc-4.9.3/lib/os_io.c:9209:12: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. !CreateProcess data/gambc-4.9.3/lib/os_io.c:9209:12: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. !CreateProcess data/gambc-4.9.3/lib/os_shell.c:44:10: [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. return getenv (name); data/gambc-4.9.3/lib/os_shell.c:177: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. cvalue_ptr = getenv (cname_ptr); data/gambc-4.9.3/lib/os_shell.c:992:24: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. if (!CreateProcess data/gambc-4.9.3/lib/os_shell.c:992:24: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. if (!CreateProcess data/gambc-4.9.3/bench/src/ack.c:17: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). m = atoi(argv[1]); data/gambc-4.9.3/bench/src/ack.c:19: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). n = atoi(argv[2]); data/gambc-4.9.3/bench/src/array1.c:11: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). n = atoi(argv[1]); data/gambc-4.9.3/bench/src/cat.c:14: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). infp = fopen(infile, "r"); data/gambc-4.9.3/bench/src/cat.c:19: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). outfp = fopen(outfile, "w"); data/gambc-4.9.3/bench/src/fib.c:21:9: [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). n = atoi (argv[1]); data/gambc-4.9.3/bench/src/fibfp.c:22:9: [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). n = atoi (argv[1]); data/gambc-4.9.3/bench/src/string.c:11: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). n = atoi(argv[1]); data/gambc-4.9.3/bench/src/sum.c:25:9: [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). n = atoi (argv[1]); data/gambc-4.9.3/bench/src/sum1.c:10: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). fp = fopen(infile, "r"); data/gambc-4.9.3/bench/src/sumfp.c:27:9: [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). n = atoi (argv[1]); data/gambc-4.9.3/bench/src/sumloop.c:8: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). n = atoi(argv[1]); data/gambc-4.9.3/bench/src/tail.c:8: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. char buf[5000]; data/gambc-4.9.3/bench/src/tail.c:19: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). infp = fopen(infile, "r"); data/gambc-4.9.3/bench/src/tail.c:24: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). outfp = fopen(outfile, "w"); data/gambc-4.9.3/bench/src/tak.c:25:9: [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). x = atoi (argv[1]); data/gambc-4.9.3/bench/src/tak.c:28:9: [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). y = atoi (argv[2]); data/gambc-4.9.3/bench/src/tak.c:31:9: [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). z = atoi (argv[3]); data/gambc-4.9.3/bench/src/wc.c:13: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). fp = fopen(infile, "r"); data/gambc-4.9.3/contrib/xactlog/xactlog.c:362: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[1025]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:723:40: [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. { KeySym sym; XComposeStatus comp; char buf[1]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:989:20: [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). { win->ps_file = fopen( name, "w" ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:1174: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 *log_event_name[MAX_NB_EVENT_TYPES]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1328:13: [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 *f = fopen (name, "rb"); data/gambc-4.9.3/contrib/xactlog/xactlog.c:1475: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[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1887:11: [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[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1916: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 title[256]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1931: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 format[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1932: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 info[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1940:7: [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 str1[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1941:7: [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 str2[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1942:7: [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 str3[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1943:7: [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 str4[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:1975:7: [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[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2036: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. char avg_str[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2037: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. char str[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2052:9: [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( str, "%d%%", peak ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2057:13: [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 max_str[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2088:7: [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 num[10]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2089:7: [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( num, "%d", i ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2142:7: [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 num[10]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2143:7: [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( num, "%d", i*10 ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2234:7: [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 num[10]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2235:7: [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( num, "P%d", i ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2256:7: [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[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2333: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 command[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2334: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 postscript_file[100]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2455: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 filename[256]; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2495: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). debug_level = atoi(&av[arg][2]); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2502:27: [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). compression_scale = atoi(&av[arg][2]); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2525:28: [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). xlate[i++] = atoi(p1); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2579: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). full_plot_width = atoi( &av[arg][2] ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2581: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). plot_height = (atoi( &av[arg][2] )/16)*16; data/gambc-4.9.3/contrib/xactlog/xactlog.c:2583:28: [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). hist_span_at_width = atoi( &av[arg][2] ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:2585: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). hist_height = atoi( &av[arg][2] ); data/gambc-4.9.3/lib/guide/guideuirepl.cpp:370:13: [2] (misc) open: 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 (!file.open (IO_WriteOnly)) data/gambc-4.9.3/lib/main.c:36:7: [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 *msgs[2]; data/gambc-4.9.3/lib/mem.c:2706: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 *msgs[2]; data/gambc-4.9.3/lib/mem.c:2854: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 *msgs[2]; data/gambc-4.9.3/lib/os_base.c:55:10: [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). return fopen (path, mode); data/gambc-4.9.3/lib/os_base.c:833:7: [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_msgs[100]; data/gambc-4.9.3/lib/os_base.c:882: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 line_buf[128]; data/gambc-4.9.3/lib/os_base.c:922: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 buf[sizeof (txt) + 20]; /* -2^63 is 20 characters in decimal */ data/gambc-4.9.3/lib/os_base.c:1203: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[___ERR_MAX_LENGTH+1]; data/gambc-4.9.3/lib/os_base.c:1250: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[___ERR_MAX_LENGTH+1]; data/gambc-4.9.3/lib/os_base.c:1502:15: [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 digit[2]; data/gambc-4.9.3/lib/os_dyn.c:115: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 real_path[280]; data/gambc-4.9.3/lib/os_dyn.c:132:19: [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 *f = fopen (cpath, "r"); data/gambc-4.9.3/lib/os_dyn.c:148: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. char errbuf[256]; data/gambc-4.9.3/lib/os_dyn.c:217: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 msg[256]; data/gambc-4.9.3/lib/os_files.c:234: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 tmp[___PATH_MAX_LENGTH+1]; data/gambc-4.9.3/lib/os_files.c:346: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[2048]; data/gambc-4.9.3/lib/os_files.c:1493:22: [2] (misc) open: 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 ((fd1 = open (___CAST(___STRING_TYPE(___COPY_FILE_PATH_CE_SELECT), data/gambc-4.9.3/lib/os_files.c:1503:26: [2] (misc) open: 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 ((fd2 = open (___CAST(___STRING_TYPE(___COPY_FILE_PATH_CE_SELECT), data/gambc-4.9.3/lib/os_files.c:1513:19: [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 buffer[4096]; data/gambc-4.9.3/lib/os_files.c:1624:19: [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 buffer[4096]; data/gambc-4.9.3/lib/os_io.c:1293:11: [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/gambc-4.9.3/lib/os_io.c:1472:11: [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/gambc-4.9.3/lib/os_io.c:4176: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). dh_fp = fopen (c->dh_params_path, "r"); data/gambc-4.9.3/lib/os_io.c:7900: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[1]; data/gambc-4.9.3/lib/os_io.c:8521:27: [2] (misc) open: 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). return *master_fd_ptr = open ("/dev/ptmx", O_RDWR | O_NOCTTY); data/gambc-4.9.3/lib/os_io.c:8596:13: [2] (misc) open: 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). (fd = open (name, O_RDWR)) >= 0) data/gambc-4.9.3/lib/os_io.c:9387:13: [2] (misc) open: 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 ((fd = open (path, data/gambc-4.9.3/lib/os_setup.c:1573: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 name[HOSTNAME_MAX_LEN]; data/gambc-4.9.3/lib/os_shell.c:142: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 cname[GETENV_NAME_STATIC_SIZE]; data/gambc-4.9.3/lib/os_shell.c:413: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 cname[SETENV_NAME_STATIC_SIZE]; data/gambc-4.9.3/lib/os_shell.c:414: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 cvalue[SETENV_VALUE_STATIC_SIZE]; data/gambc-4.9.3/lib/os_shell.c:562: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 cname[UNSETENV_NAME_STATIC_SIZE]; data/gambc-4.9.3/lib/os_tty.c:821: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. char term_name[L_ctermid]; data/gambc-4.9.3/lib/os_tty.c:825:19: [2] (misc) open: 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 ((fd = open (term_name, data/gambc-4.9.3/lib/os_tty.c:1191:24: [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 alt_seq[3]; data/gambc-4.9.3/lib/os_tty.c:4961:7: [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 termcap_buffer[4080]; /* the value 4080 is used by GNU's readline */ data/gambc-4.9.3/lib/os_tty.h:372: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 *capability[LINEEDITOR_CAP_LAST+1]; data/gambc-4.9.3/lib/setup.c:2020:3: [2] (buffer) wchar_t: 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. wchar_t buf[STRING_COLLATE_BUF_LENGTH]; data/gambc-4.9.3/lib/setup.c:2736: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[NDIG+8]; /* +8 to account for sign, period, e, +/-, 3 digit exponent and nul char */ data/gambc-4.9.3/prebuilt/windows/binpatch.c:31: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). f = fopen (filename, "r+b"); data/gambc-4.9.3/bench/src/cat.c:24:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(infp)) != EOF) data/gambc-4.9.3/bench/src/string.c:16:31: [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). while ((len = strlen(s)) <= n) { data/gambc-4.9.3/bench/src/string.c:21:31: [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(s); data/gambc-4.9.3/bench/src/string.c:24:25: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(p + len/2, s, len/2+1); data/gambc-4.9.3/bench/src/string.c:29:24: [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). printf("%d\n", strlen(s)); data/gambc-4.9.3/bench/src/wc.c:21:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(fp)) != EOF) { data/gambc-4.9.3/contrib/xactlog/xactlog.c:299:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (f); data/gambc-4.9.3/contrib/xactlog/xactlog.c:365:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (f); data/gambc-4.9.3/contrib/xactlog/xactlog.c:370:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (f); data/gambc-4.9.3/contrib/xactlog/xactlog.c:542:9: [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( str ); data/gambc-4.9.3/contrib/xactlog/xactlog.c:834: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). { int len = strlen(str); data/gambc-4.9.3/lib/guide/guide.cpp:83:47: [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). my_argv[i] = strcpy ((char*)___alloc_mem (strlen (argv[i]) + 1), data/gambc-4.9.3/lib/os_files.c:531:17: [1] (buffer) _tcslen: 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). cch = _tcslen (temp); data/gambc-4.9.3/lib/os_files.c:1519:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nr = read (fd1, buffer, sizeof (buffer)); data/gambc-4.9.3/lib/os_io.c:1294:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int n = read (___PSTATE->os.select_abort.reading_fd, buf, sizeof(buf)); data/gambc-4.9.3/lib/os_io.c:1473:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int n = read (___PSTATE->os.select_abort.reading_fd, buf, sizeof(buf)); data/gambc-4.9.3/lib/os_io.c:3135:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read (d->fd_rd, buf, len)) < 0) data/gambc-4.9.3/lib/os_io.c:7419:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read (d->fd, buf, len)) < 0) data/gambc-4.9.3/lib/os_io.c:7907:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (fd, buf, 0) < 0) data/gambc-4.9.3/lib/os_setup.c:112:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read (fd, p+result, len-result); data/gambc-4.9.3/lib/os_tty.c:1092:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else if ((n = read (d->fd, buf, len)) < 0) data/gambc-4.9.3/lib/setup.c:2088:12: [1] (buffer) wcslen: 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). l1 = wcslen (s1) + 1; data/gambc-4.9.3/lib/setup.c:2089:12: [1] (buffer) wcslen: 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). l2 = wcslen (s2) + 1; data/gambc-4.9.3/prebuilt/windows/binpatch.c:15: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). int oldlen = strlen (oldstr) + 1; data/gambc-4.9.3/prebuilt/windows/binpatch.c:16: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). int newlen = strlen (newstr) + 1; ANALYSIS SUMMARY: Hits = 143 Lines analyzed = 1076758 in approximately 23.83 seconds (45182 lines/second) Physical Source Lines of Code (SLOC) = 1050219 Hits@level = [0] 178 [1] 25 [2] 96 [3] 7 [4] 15 [5] 0 Hits@level+ = [0+] 321 [1+] 143 [2+] 118 [3+] 22 [4+] 15 [5+] 0 Hits/KSLOC@level+ = [0+] 0.305651 [1+] 0.136162 [2+] 0.112358 [3+] 0.020948 [4+] 0.0142827 [5+] 0 Dot directories skipped = 1 (--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.