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/quickplot-1.0.1~rc/term_color.c Examining data/quickplot-1.0.1~rc/get_opt.h Examining data/quickplot-1.0.1~rc/graph_draw.c Examining data/quickplot-1.0.1~rc/spew.c Examining data/quickplot-1.0.1~rc/channel.c Examining data/quickplot-1.0.1~rc/qp.h Examining data/quickplot-1.0.1~rc/callbacks.h Examining data/quickplot-1.0.1~rc/process_gtk_options.c Examining data/quickplot-1.0.1~rc/graph_grid.c Examining data/quickplot-1.0.1~rc/plot.h Examining data/quickplot-1.0.1~rc/shell_server_commands.c Examining data/quickplot-1.0.1~rc/debug.h Examining data/quickplot-1.0.1~rc/debug_spew.c Examining data/quickplot-1.0.1~rc/qp_shell.c Examining data/quickplot-1.0.1~rc/graph.c Examining data/quickplot-1.0.1~rc/parse_args_utils.h Examining data/quickplot-1.0.1~rc/color_gen.c Examining data/quickplot-1.0.1~rc/plot.c Examining data/quickplot-1.0.1~rc/parse_1st_pass_funcs.h Examining data/quickplot-1.0.1~rc/get_opt.c Examining data/quickplot-1.0.1~rc/shell_get_set_values.h Examining data/quickplot-1.0.1~rc/parse_2nd_pass_funcs.h Examining data/quickplot-1.0.1~rc/qp.c Examining data/quickplot-1.0.1~rc/spew.h Examining data/quickplot-1.0.1~rc/mk_options.c Examining data/quickplot-1.0.1~rc/launch_browser.c Examining data/quickplot-1.0.1~rc/shell_common.h Examining data/quickplot-1.0.1~rc/parse_argument_options.c Examining data/quickplot-1.0.1~rc/graph_detail.c Examining data/quickplot-1.0.1~rc/utils.h Examining data/quickplot-1.0.1~rc/exec_lib.c Examining data/quickplot-1.0.1~rc/channel_double.h Examining data/quickplot-1.0.1~rc/zoom.h Examining data/quickplot-1.0.1~rc/shell.h Examining data/quickplot-1.0.1~rc/qp_main.c Examining data/quickplot-1.0.1~rc/channel.h Examining data/quickplot-1.0.1~rc/list.c Examining data/quickplot-1.0.1~rc/color_gen.h Examining data/quickplot-1.0.1~rc/shell.c Examining data/quickplot-1.0.1~rc/win.c Examining data/quickplot-1.0.1~rc/term_color.h Examining data/quickplot-1.0.1~rc/quickplot.h Examining data/quickplot-1.0.1~rc/callbacks.c Examining data/quickplot-1.0.1~rc/shell_common.c Examining data/quickplot-1.0.1~rc/list.h Examining data/quickplot-1.0.1~rc/channel_double.c Examining data/quickplot-1.0.1~rc/source.c Examining data/quickplot-1.0.1~rc/source_double.c FINAL RESULTS: data/quickplot-1.0.1~rc/callbacks.c:617:5: [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("Quickplot version " VERSION "\n" data/quickplot-1.0.1~rc/debug.h:67:46: [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. #define __printf(a,b) __attribute__((format(printf,a,b))) data/quickplot-1.0.1~rc/debug_spew.c:347:5: [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. vfprintf(spew_file, format, ap); data/quickplot-1.0.1~rc/debug_spew.c:366:5: [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. vfprintf(spew_file, format, ap); data/quickplot-1.0.1~rc/debug_spew.c:384:5: [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. vfprintf(spew_file, format, ap); data/quickplot-1.0.1~rc/graph_grid.c:108:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, TWO_DIGIT_FORMAT, *xpow_part); data/quickplot-1.0.1~rc/graph_grid.c:109:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(s, SCAN_FORMAT, xpow_part); data/quickplot-1.0.1~rc/graph_grid.c:169:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, TWO_DIGIT_FORMAT, *ypow_part); data/quickplot-1.0.1~rc/graph_grid.c:170:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(s, SCAN_FORMAT, ypow_part); data/quickplot-1.0.1~rc/graph_grid.c:296: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(FMT, H_GRID_PRINT_FORMAT); data/quickplot-1.0.1~rc/graph_grid.c:300: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(FMT, L_GRID_PRINT_FORMAT); data/quickplot-1.0.1~rc/graph_grid.c:318:7: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(str,64, FMT, i*xpow_part); data/quickplot-1.0.1~rc/graph_grid.c:453: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(FMT, H_GRID_PRINT_FORMAT); data/quickplot-1.0.1~rc/graph_grid.c:456: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(FMT, L_GRID_PRINT_FORMAT); data/quickplot-1.0.1~rc/graph_grid.c:474:7: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(str,64, FMT, i*ypow_part); data/quickplot-1.0.1~rc/launch_browser.c:101:5: [4] (shell) execlp: 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. execlp(browser, browser, url, NULL); data/quickplot-1.0.1~rc/launch_browser.c:106:5: [4] (shell) execlp: 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. execlp(browser, browser, url, NULL); data/quickplot-1.0.1~rc/launch_browser.c:112:7: [4] (shell) execlp: 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. execlp(browser, browser, url, NULL); data/quickplot-1.0.1~rc/launch_browser.c:144:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullpath, "%s%c%s", htmldir[i], DIR_CHAR, filename); data/quickplot-1.0.1~rc/mk_options.c:512:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(func, "%s%s", prefix, s); data/quickplot-1.0.1~rc/mk_options.c:947: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(fmt, format); data/quickplot-1.0.1~rc/mk_options.c:954:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, n+1, fmt, ap); data/quickplot-1.0.1~rc/mk_options.c:1010:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, size+1, format, ap); data/quickplot-1.0.1~rc/parse_args_utils.h:90:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. n = vsnprintf(&((err)[*len]), ERR_LEN-(*len), fmt, ap); data/quickplot-1.0.1~rc/qp_shell.c:250:7: [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(qp_path, e_argv); data/quickplot-1.0.1~rc/shell_common.c:85:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(buf, "%s", argv[0]); data/quickplot-1.0.1~rc/shell_common.c:89:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf(&buf[len], " '%s'", argv[i]); data/quickplot-1.0.1~rc/shell_common.c:91:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf(&buf[len], " %s", argv[i]); data/quickplot-1.0.1~rc/shell_common.c:664:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(history_filename, "%s" HISTORY_FILENAME_POSTFIX, env); data/quickplot-1.0.1~rc/shell_common.c:815:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len = sprintf(line, "%s", argv[0]); data/quickplot-1.0.1~rc/shell_common.c:819:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf(&line[len], " '%s'", argv[i]); data/quickplot-1.0.1~rc/shell_common.c:821:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf(&line[len], " %s", argv[i]); data/quickplot-1.0.1~rc/shell_get_set_values.h:61: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(fmt, format); data/quickplot-1.0.1~rc/shell_get_set_values.h:68:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, n+1, fmt, ap); data/quickplot-1.0.1~rc/shell_get_set_values.h:127:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(get_buf, GET_BUF_LEN, (val==-1)?"auto":(val?"on":"off")); data/quickplot-1.0.1~rc/shell_get_set_values.h:257: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(&ret[len], *s); data/quickplot-1.0.1~rc/spew.c:162:5: [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. vfprintf(spew_file, format, ap); data/quickplot-1.0.1~rc/spew.c:185:5: [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. vfprintf(spew_file, format, ap); data/quickplot-1.0.1~rc/spew.h:42:46: [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. #define __printf(a,b) __attribute__((format(printf,a,b))) data/quickplot-1.0.1~rc/debug_spew.c:90: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. env = getenv("SPEW_FILE"); data/quickplot-1.0.1~rc/debug_spew.c:92:11: [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. env = getenv("QP_SPEW_FILE"); data/quickplot-1.0.1~rc/debug_spew.c:119: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. env = getenv("SPEW_LEVEL"); data/quickplot-1.0.1~rc/debug_spew.c:121:11: [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. env = getenv("QP_SPEW_LEVEL"); data/quickplot-1.0.1~rc/debug_spew.c:161: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. env = getenv("SPEW_FILES"); data/quickplot-1.0.1~rc/debug_spew.c:163:11: [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. env = getenv("QP_SPEW_FILES"); data/quickplot-1.0.1~rc/launch_browser.c:98:13: [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. browser = getenv("BROWSER"); data/quickplot-1.0.1~rc/launch_browser.c:103: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. browser = getenv("QP_BROWSER"); data/quickplot-1.0.1~rc/launch_browser.c:132:16: [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. htmldir[0] = getenv("QUICKPLOT_HTMLDIR"); data/quickplot-1.0.1~rc/launch_browser.c:133:16: [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. htmldir[1] = getenv("QUICKPLOT_DOCDIR"); data/quickplot-1.0.1~rc/shell_common.c:654:11: [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. env = getenv("QUICKPLOT_HISTORY_FILE"); data/quickplot-1.0.1~rc/shell_common.c:659:13: [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. env = getenv("HOME"); data/quickplot-1.0.1~rc/shell_common.h:135: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. prompt = getenv("QP_PROMPT"); data/quickplot-1.0.1~rc/shell_common.h:137: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. prompt = getenv("PS2"); data/quickplot-1.0.1~rc/spew.c:74: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. env = getenv("QUICKPLOT_SPEW_FILE"); data/quickplot-1.0.1~rc/spew.c:100: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. env = getenv("QUICKPLOT_SPEW_LEVEL"); data/quickplot-1.0.1~rc/term_color.c:82: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. env = getenv("QP_TERM_COLOR"); data/quickplot-1.0.1~rc/callbacks.c:928: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 text[64]; data/quickplot-1.0.1~rc/callbacks.c:942: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 text[64]; data/quickplot-1.0.1~rc/callbacks.c:1582: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 name[64]; data/quickplot-1.0.1~rc/debug.h:146: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 errstr[128]; data/quickplot-1.0.1~rc/debug.h:171: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 errstr[128]; data/quickplot-1.0.1~rc/debug.h:196: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 errstr[128]; data/quickplot-1.0.1~rc/debug.h:221: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 errstr[128]; data/quickplot-1.0.1~rc/debug_spew.c:112: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). spew_file = fopen(env, "a"); data/quickplot-1.0.1~rc/debug_spew.c:337: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 errstr[128]; data/quickplot-1.0.1~rc/get_opt.c:40:20: [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 = (char *) argv[*i]; data/quickplot-1.0.1~rc/get_opt.c:62: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. return (char *) argv[(*i)++]; data/quickplot-1.0.1~rc/graph.c:60: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[32]; data/quickplot-1.0.1~rc/graph.c:155:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gr->color_gen, old_gr->color_gen, sizeof(*(gr->color_gen))); data/quickplot-1.0.1~rc/graph.c:762: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 pname[128]; data/quickplot-1.0.1~rc/graph_detail.c:145: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 str[8]; data/quickplot-1.0.1~rc/graph_detail.c:163: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 str[8], *ss; data/quickplot-1.0.1~rc/graph_detail.c:221: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 text[16]; data/quickplot-1.0.1~rc/graph_detail.c:278: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 text[8]; data/quickplot-1.0.1~rc/graph_detail.c:429: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 t[64]; data/quickplot-1.0.1~rc/graph_detail.c:835: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 title[256]; data/quickplot-1.0.1~rc/graph_detail.c:840: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 text[128]; data/quickplot-1.0.1~rc/graph_detail.c:1161: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 text[128]; data/quickplot-1.0.1~rc/graph_grid.c:105: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[16]; data/quickplot-1.0.1~rc/graph_grid.c:166: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[16]; data/quickplot-1.0.1~rc/graph_grid.c:222: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[FORMAT_LEN]; data/quickplot-1.0.1~rc/graph_grid.c:314: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[64]; data/quickplot-1.0.1~rc/graph_grid.c:378: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[FORMAT_LEN]; data/quickplot-1.0.1~rc/graph_grid.c:470: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[64]; data/quickplot-1.0.1~rc/launch_browser.c:84:9: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. pid = vfork(); data/quickplot-1.0.1~rc/launch_browser.c:128: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 *htmldir[4]; data/quickplot-1.0.1~rc/launch_browser.c:146:10: [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(fullpath, O_RDONLY); data/quickplot-1.0.1~rc/mk_options.c:494:14: [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 const char *prefix[2] = { "parse_1st_", "parse_2nd_" }; data/quickplot-1.0.1~rc/mk_options.c:1143: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[6]; data/quickplot-1.0.1~rc/mk_options.c:1470: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[128]; data/quickplot-1.0.1~rc/mk_options.c:1491: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 class[2] = { 'a', 'b' }; data/quickplot-1.0.1~rc/parse_args_utils.h:30: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/quickplot-1.0.1~rc/parse_argument_options.c:191:16: [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). tty_fd = open("/dev/tty", O_RDONLY); data/quickplot-1.0.1~rc/qp.c:333: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_mem[BEG_LEN + END_LEN]; data/quickplot-1.0.1~rc/qp.c:368: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(title, "Quickplot"); data/quickplot-1.0.1~rc/qp.c: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 beg[BEG_LEN]; data/quickplot-1.0.1~rc/qp.c:805: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[128]; data/quickplot-1.0.1~rc/qp.c:881: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 status[STR_LEN]; data/quickplot-1.0.1~rc/qp.c:892: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 x_s[NUM_LEN], y_s[NUM_LEN]; data/quickplot-1.0.1~rc/qp_main.c:52: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 path_in[FIFO_PATH_LEN], path_out[FIFO_PATH_LEN]; data/quickplot-1.0.1~rc/qp_main.c:57: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). in = fopen(set_to_qp_fifo_path(path_in, getpid(), info->si_pid), "r"); data/quickplot-1.0.1~rc/qp_main.c:64:9: [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). out = fopen(set_from_qp_fifo_path(path_out, getpid(), info->si_pid), "w"); data/quickplot-1.0.1~rc/qp_shell.c:196: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 path_to[FIFO_PATH_LEN], path_from[FIFO_PATH_LEN]; data/quickplot-1.0.1~rc/qp_shell.c:242: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 last_arg[64]; data/quickplot-1.0.1~rc/qp_shell.c:304: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(!(file_to = fopen(path_to, "w"))) data/quickplot-1.0.1~rc/qp_shell.c:311: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). if(!(file_from = fopen(path_from, "r"))) data/quickplot-1.0.1~rc/shell_common.c:105: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). new_file_in = fopen(filename, "r"); data/quickplot-1.0.1~rc/shell_common.c:270: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 space[MAX_NAME_LEN]; data/quickplot-1.0.1~rc/shell_common.c:271: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 args[MAX_NAME_LEN]; data/quickplot-1.0.1~rc/shell_common.c:288: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 spaces[64]; data/quickplot-1.0.1~rc/shell_common.c:390: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 space[MAX_NAME_LEN]; data/quickplot-1.0.1~rc/shell_common.c:391: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 args[MAX_NAME_LEN]; data/quickplot-1.0.1~rc/shell_common.c:459: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 command[MAX_NAME_LEN]; data/quickplot-1.0.1~rc/shell_common.h:80: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 text[64]; data/quickplot-1.0.1~rc/shell_get_set_values.h:26: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 get_buf[GET_BUF_LEN]; data/quickplot-1.0.1~rc/shell_get_set_values.h:92: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 x[32], y[32]; data/quickplot-1.0.1~rc/shell_server_commands.c:130: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 text[128]; data/quickplot-1.0.1~rc/source.c:133:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &qp_rd->buf[qp_rd->rd], count); data/quickplot-1.0.1~rc/source.c:146:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &qp_rd->buf[qp_rd->rd], n); data/quickplot-1.0.1~rc/source.c:186:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &qp_rd->buf[qp_rd->rd], n); data/quickplot-1.0.1~rc/source.c:259:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*lineptr, &qp_rd->buf[qp_rd->rd], i); data/quickplot-1.0.1~rc/source.c:275:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*lineptr, &qp_rd->buf[qp_rd->rd], i); data/quickplot-1.0.1~rc/source.c:661: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 label0[128]; data/quickplot-1.0.1~rc/source.c:718: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). rd.fd = open(filename, O_RDONLY); data/quickplot-1.0.1~rc/source.c:935: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 s[128]; data/quickplot-1.0.1~rc/source.c:951: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 skip[64]; data/quickplot-1.0.1~rc/spew.c:94: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). spew_file = fopen(env, "a"); data/quickplot-1.0.1~rc/spew.c:168: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 errstr[128]; data/quickplot-1.0.1~rc/win.c:149: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 str[MLEN]; data/quickplot-1.0.1~rc/get_opt.c:67: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). len=strlen(shorT); data/quickplot-1.0.1~rc/graph.c:88:46: [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). test_name = (char*) qp_malloc(len = (strlen(name)+16)); data/quickplot-1.0.1~rc/graph_detail.c:173:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, text, 7); data/quickplot-1.0.1~rc/graph_detail.c:252: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). max_len = strlen(text); data/quickplot-1.0.1~rc/launch_browser.c:130: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). ASSERT(strlen(filename) > 5); data/quickplot-1.0.1~rc/launch_browser.c:143: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). fullpath = qp_malloc(strlen(filename) + 2 + strlen(htmldir[i])); data/quickplot-1.0.1~rc/launch_browser.c:143:49: [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). fullpath = qp_malloc(strlen(filename) + 2 + strlen(htmldir[i])); data/quickplot-1.0.1~rc/launch_browser.c:166:39: [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). is_txt = strcmp(".txt", &filename[strlen(filename)-4])?0:1; data/quickplot-1.0.1~rc/mk_options.c:510: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). func = Malloc(strlen(prefix) + strlen(s) + 1); data/quickplot-1.0.1~rc/mk_options.c:510:34: [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). func = Malloc(strlen(prefix) + strlen(s) + 1); data/quickplot-1.0.1~rc/mk_options.c:536:15: [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). || (strlen(op->short_op) != 2) data/quickplot-1.0.1~rc/mk_options.c:771: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). strlen(opt[i]->short_op) == 2 && opt[i]->short_op[0] == '-' data/quickplot-1.0.1~rc/mk_options.c:779: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). shorts_len = strlen(shorts); data/quickplot-1.0.1~rc/mk_options.c:924: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(str); data/quickplot-1.0.1~rc/mk_options.c:942: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). j = strlen(format); data/quickplot-1.0.1~rc/mk_options.c:958: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/quickplot-1.0.1~rc/mk_options.c:978: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). str_len = (out_len = strlen(str)); data/quickplot-1.0.1~rc/mk_options.c:1013: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). ret = strlen(str); data/quickplot-1.0.1~rc/mk_options.c:1046: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). slen = strlen(str); data/quickplot-1.0.1~rc/mk_options.c:1127: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). count[0] = strlen("{ {1,1}, "); data/quickplot-1.0.1~rc/mk_options.c:1199:15: [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_str = strlen(str); data/quickplot-1.0.1~rc/mk_options.c:1200:15: [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_opt = strlen(opt[i]->long_op); data/quickplot-1.0.1~rc/mk_options.c:1476: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(opt[i]->short_op && strlen(opt[i]->short_op) == 2) data/quickplot-1.0.1~rc/mk_options.c:1552: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). n = strlen(argv[1]); data/quickplot-1.0.1~rc/mk_options.c:1689: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). if(strlen(o) == 2 && o[0] == '-') data/quickplot-1.0.1~rc/mk_options.c:1692: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). L += strlen(o); data/quickplot-1.0.1~rc/mk_options.c:1703: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). l = strlen(o); data/quickplot-1.0.1~rc/parse_args_utils.h:35:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((n = read(fd, buf, 1024)) > 0) data/quickplot-1.0.1~rc/qp.c:141: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). provider, css, strlen(css), data/quickplot-1.0.1~rc/qp.c:352: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). l = strlen(str); data/quickplot-1.0.1~rc/qp.c:360: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). l = strlen(str); data/quickplot-1.0.1~rc/qp.c:375:15: [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). l = len = strlen(beg); data/quickplot-1.0.1~rc/qp.h:688: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(pname); data/quickplot-1.0.1~rc/qp_shell.c:126: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). l = strlen(*line); data/quickplot-1.0.1~rc/qp_shell.c:169: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). rlen = strlen(*reply); data/quickplot-1.0.1~rc/qp_shell.c:218: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(argv[0]); data/quickplot-1.0.1~rc/qp_shell.c:262:9: [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(100000); data/quickplot-1.0.1~rc/qp_shell.c:371: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(user_line) + 1; data/quickplot-1.0.1~rc/shell.c:301: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(line) + 1; data/quickplot-1.0.1~rc/shell.c:386: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(sh->line); data/quickplot-1.0.1~rc/shell_common.c:273: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). space_len = max_name_len - strlen(c->name) + 2; data/quickplot-1.0.1~rc/shell_common.c:276: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). space_len -= (1 + strlen(c->args)); data/quickplot-1.0.1~rc/shell_common.c:289: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). ASSERT(strlen(sub_com)+1 < 64); data/quickplot-1.0.1~rc/shell_common.c:290: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). snprintf(spaces, strlen(sub_com)+9, " "); data/quickplot-1.0.1~rc/shell_common.c:356: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). nlen = strlen(com->name) + 1; data/quickplot-1.0.1~rc/shell_common.c:358: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). nlen += strlen(com->args) + 1; data/quickplot-1.0.1~rc/shell_common.c:396: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). space_len = max_len - strlen(com->name); data/quickplot-1.0.1~rc/shell_common.c:399:27: [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). space_len -= (1 + strlen(com->args)); data/quickplot-1.0.1~rc/shell_common.c:422: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). t = s + strlen (s) - 1; data/quickplot-1.0.1~rc/shell_common.c:440: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(text); data/quickplot-1.0.1~rc/shell_common.c:523: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(text); data/quickplot-1.0.1~rc/shell_common.c:583:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, s, len); data/quickplot-1.0.1~rc/shell_common.c:663: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). (strlen(env)+strlen(HISTORY_FILENAME_POSTFIX)+1)); data/quickplot-1.0.1~rc/shell_common.c:663: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). (strlen(env)+strlen(HISTORY_FILENAME_POSTFIX)+1)); data/quickplot-1.0.1~rc/shell_common.c:677: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(c->name); data/quickplot-1.0.1~rc/shell_common.c:679:18: [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 += 1 + strlen(c->args); data/quickplot-1.0.1~rc/shell_common.c:739: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). line_len = strlen(new_line) + 1; \ data/quickplot-1.0.1~rc/shell_get_set_values.h:33: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/quickplot-1.0.1~rc/shell_get_set_values.h:56: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). j = strlen(format); data/quickplot-1.0.1~rc/shell_get_set_values.h:73:15: [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). n, str, strlen(str)); data/quickplot-1.0.1~rc/shell_get_set_values.h:75:6: [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(str) > n) data/quickplot-1.0.1~rc/shell_get_set_values.h:252: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(*s)+1; data/quickplot-1.0.1~rc/shell_get_set_values.h:258: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(*s); data/quickplot-1.0.1~rc/source.c:95:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(int fd, void *buf, size_t count) data/quickplot-1.0.1~rc/source.c:280:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/quickplot-1.0.1~rc/source.c:289:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/quickplot-1.0.1~rc/source.c:403:15: [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). sep_len = strlen(sep); data/quickplot-1.0.1~rc/source.c:515:15: [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). ASSERT(name[strlen(name)-1] != DIR_CHAR); data/quickplot-1.0.1~rc/source.c:531: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). s = (char *) &name[strlen(name)-1]; data/quickplot-1.0.1~rc/source.c:551: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). buf = (char*) qp_malloc(len= strlen(buf)+16); data/quickplot-1.0.1~rc/source_double.c:93: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). for(s = &line[strlen(line)-1]; data/quickplot-1.0.1~rc/utils.h:87: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). *x = qp_malloc(sizeof(ssize_t)*(strlen(s)+1)/2); data/quickplot-1.0.1~rc/utils.h:88: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). *y = qp_malloc(sizeof(ssize_t)*(strlen(s)+1)/2); data/quickplot-1.0.1~rc/win.c:152: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(s->name); ANALYSIS SUMMARY: Hits = 203 Lines analyzed = 22873 in approximately 0.56 seconds (40691 lines/second) Physical Source Lines of Code (SLOC) = 16758 Hits@level = [0] 389 [1] 74 [2] 73 [3] 17 [4] 39 [5] 0 Hits@level+ = [0+] 592 [1+] 203 [2+] 129 [3+] 56 [4+] 39 [5+] 0 Hits/KSLOC@level+ = [0+] 35.3264 [1+] 12.1136 [2+] 7.69782 [3+] 3.34169 [4+] 2.32725 [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.