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/wcalc-2.5/src/gui/includes/MyTextField.h
Examining data/wcalc-2.5/src/gui/includes/ErrorController.h
Examining data/wcalc-2.5/src/gui/includes/WcalcController.h
Examining data/wcalc-2.5/src/gui/includes/simpleCalc.h
Examining data/wcalc-2.5/src/gui/includes/AboutBoxController.h
Examining data/wcalc-2.5/src/gui/includes/InspectorController.h
Examining data/wcalc-2.5/src/gui/includes/WcalcService.h
Examining data/wcalc-2.5/src/gui/includes/theDelegate.h
Examining data/wcalc-2.5/src/gui/includes/HistoryList.h
Examining data/wcalc-2.5/src/gui/includes/ConversionList.h
Examining data/wcalc-2.5/src/gui/includes/VariableList.h
Examining data/wcalc-2.5/src/gui/includes/PersVarList.h
Examining data/wcalc-2.5/src/gui/includes/OldVariableList.h
Examining data/wcalc-2.5/src/gui/simpleCalc.c
Examining data/wcalc-2.5/src/common/conversion.c
Examining data/wcalc-2.5/src/common/historyManager.c
Examining data/wcalc-2.5/src/common/add_commas.c
Examining data/wcalc-2.5/src/common/files.c
Examining data/wcalc-2.5/src/common/includes/number.h
Examining data/wcalc-2.5/src/common/includes/output.h
Examining data/wcalc-2.5/src/common/includes/number_formatting.h
Examining data/wcalc-2.5/src/common/includes/variables.h
Examining data/wcalc-2.5/src/common/includes/uint32_max.h
Examining data/wcalc-2.5/src/common/includes/explain.h
Examining data/wcalc-2.5/src/common/includes/list.h
Examining data/wcalc-2.5/src/common/includes/files.h
Examining data/wcalc-2.5/src/common/includes/extract_vars.h
Examining data/wcalc-2.5/src/common/includes/historyManager.h
Examining data/wcalc-2.5/src/common/includes/iscmd.h
Examining data/wcalc-2.5/src/common/includes/string_manip.h
Examining data/wcalc-2.5/src/common/includes/conversion.h
Examining data/wcalc-2.5/src/common/includes/calculator.h
Examining data/wcalc-2.5/src/common/includes/evalvar.h
Examining data/wcalc-2.5/src/common/includes/isfunc.h
Examining data/wcalc-2.5/src/common/includes/add_commas.h
Examining data/wcalc-2.5/src/common/includes/isconst.h
Examining data/wcalc-2.5/src/common/includes/definitions.h
Examining data/wcalc-2.5/src/common/list.c
Examining data/wcalc-2.5/src/common/parser.h
Examining data/wcalc-2.5/src/common/isconst.c
Examining data/wcalc-2.5/src/common/number_formatting.c
Examining data/wcalc-2.5/src/common/scanner.c
Examining data/wcalc-2.5/src/common/string_manip.c
Examining data/wcalc-2.5/src/common/extract_vars.c
Examining data/wcalc-2.5/src/common/iscmd.c
Examining data/wcalc-2.5/src/common/isfunc.c
Examining data/wcalc-2.5/src/common/variables.c
Examining data/wcalc-2.5/src/common/number.c
Examining data/wcalc-2.5/src/common/evalvar.c
Examining data/wcalc-2.5/src/common/explain.c
Examining data/wcalc-2.5/src/common/parser.c
Examining data/wcalc-2.5/src/common/calculator.c
Examining data/wcalc-2.5/src/cli/main.c
Examining data/wcalc-2.5/src/cli/help.c

FINAL RESULTS:

data/wcalc-2.5/src/cli/main.c:206:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(qcommands[c_count], "\\%s", commands[c].names[n]);
data/wcalc-2.5/src/cli/main.c:842:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(filename, home);
data/wcalc-2.5/src/cli/main.c:843:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(filename, historyfile);
data/wcalc-2.5/src/cli/main.c:1292: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(stderr, format, args);
data/wcalc-2.5/src/cli/main.c:1471:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "%-3i %s", conf.precision, ((conf.precision == -1) ? "(auto)" : "      "));
data/wcalc-2.5/src/cli/main.c:1511:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(format, args);
data/wcalc-2.5/src/cli/main.c:1652:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(exp, args);
data/wcalc-2.5/src/common/calculator.c:557:5:  [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(this_error, strlen(err_fmt) + 1000, err_fmt, ap);
data/wcalc-2.5/src/common/calculator.c:698:13:  [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(format, 10, conf.print_prefixes ? "%%#o" : "%%o");
data/wcalc-2.5/src/common/calculator.c:715:13:  [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(format, 10, conf.print_prefixes ? "%%#x" : "%%x");
data/wcalc-2.5/src/common/calculator.c:779:21:  [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(pa, 310, format, result);
data/wcalc-2.5/src/common/calculator.c:832:21:  [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(pa, 310, format, temp);
data/wcalc-2.5/src/common/includes/calculator.h:20:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, "[%s:%d] " fmt, __FILE__, __LINE__, ## __VA_ARGS__); \
data/wcalc-2.5/src/common/number_formatting.c:398:9:  [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(curs, full_length - (curs - retstring),
data/wcalc-2.5/src/common/number_formatting.c:525:9:  [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(curs, full_length - (curs - retstring),
data/wcalc-2.5/src/common/number_formatting.c:618:5:  [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(curs, full_length - (curs - retstring),
data/wcalc-2.5/src/common/parser.c:1165:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/wcalc-2.5/src/common/parser.c:3126:2:  [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(error,1000,error_string,ap);
data/wcalc-2.5/src/cli/main.c:793:42:  [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.
                const char *const home = getenv("HOME");
data/wcalc-2.5/src/cli/main.c:834:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char        *envinput = getenv("wcalc_input");
data/wcalc-2.5/src/cli/main.c:838:38:  [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.
            const char *const home = getenv("HOME");
data/wcalc-2.5/src/cli/main.c:877:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *home = getenv("HOME");
data/wcalc-2.5/src/cli/main.c:901:34:  [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.
        const char *const home = getenv("HOME");
data/wcalc-2.5/src/common/files.c:67:28:  [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.
    const char *home     = getenv("HOME");
data/wcalc-2.5/src/common/number.c:39:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom(time(NULL));
data/wcalc-2.5/src/common/number.c:596:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    num_set_d(n, random() / (double)RAND_MAX);
data/wcalc-2.5/src/cli/main.c:530: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  readme[BIG_STRING];
data/wcalc-2.5/src/cli/main.c:928:17:  [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 prompt[30] = "";
data/wcalc-2.5/src/cli/main.c:1200:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        conf.precision = atoi(value);
data/wcalc-2.5/src/cli/main.c:1331: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        key[BIG_STRING], value[BIG_STRING];
data/wcalc-2.5/src/cli/main.c:1470: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 tmp[50];
data/wcalc-2.5/src/cli/main.c:1473: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(tmp, "%-24lu", (unsigned long)num_get_default_prec());
data/wcalc-2.5/src/cli/main.c:1486: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(tmp, "'%c'", conf.thou_delimiter);
data/wcalc-2.5/src/cli/main.c:1488: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(tmp, "'%c'", conf.dec_delimiter);
data/wcalc-2.5/src/cli/main.c:1493:13:  [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(tmp, "%lu", conf.history_limit_len);
data/wcalc-2.5/src/common/calculator.c:337: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(var, str, i);
data/wcalc-2.5/src/common/calculator.c:617: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[10];
data/wcalc-2.5/src/common/files.c:82: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).
    fd       = open(filename, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/wcalc-2.5/src/common/files.c:93:24:  [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).
    int fd           = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
data/wcalc-2.5/src/common/files.c:266: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(filename, O_RDONLY);
data/wcalc-2.5/src/common/historyManager.c:106:21:  [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(temp, history, sizeof(struct entry) * histlen);
data/wcalc-2.5/src/common/includes/conversion.h:31: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 *aka[9];
data/wcalc-2.5/src/common/includes/conversion.h:88: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.
extern const char              *conversion_names[MAX_TYPE + 2];
data/wcalc-2.5/src/common/includes/explain.h:5: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.
    const char *names[10];
data/wcalc-2.5/src/common/number.c:78: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(n1, n2, sizeof(struct numberstruct));
data/wcalc-2.5/src/common/number.c:108: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(n1, n2, sizeof(struct numberstruct));
data/wcalc-2.5/src/common/number.c:465: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(str, "%.1000g", op->value);
data/wcalc-2.5/src/common/parser.c:1411: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/wcalc-2.5/src/common/parser.c:1598: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 yymsgbuf[128];
data/wcalc-2.5/src/common/parser.c:3121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error[1000];
data/wcalc-2.5/src/gui/includes/WcalcController.h:97: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).
- (IBAction)open:(id)sender;
data/wcalc-2.5/src/cli/main.c:127:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(text, rounding[i], strlen(text)) == 0) {
data/wcalc-2.5/src/cli/main.c:147:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(text, engineering[i], strlen(text)) == 0) {
data/wcalc-2.5/src/cli/main.c:178: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).
        const unsigned textlen = strlen(text);                      \
data/wcalc-2.5/src/cli/main.c:205:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            qcommands[c_count] = malloc(strlen(commands[c].names[n]) + 2);
data/wcalc-2.5/src/cli/main.c:474: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).
    if (err && strlen(err)) {
data/wcalc-2.5/src/cli/main.c:508:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (errstring[strlen(errstring) - 1] != '\n') {
data/wcalc-2.5/src/cli/main.c:593: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).
            if ((strlen(&argv[i][2]) == 0) && (i + 1 < argc)) {
data/wcalc-2.5/src/cli/main.c:601:21:  [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(valstr)) {
data/wcalc-2.5/src/cli/main.c:629: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).
            } else if (strlen(argv[i + 1]) == 1) {
data/wcalc-2.5/src/cli/main.c:637:40:  [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).
                const size_t len     = strlen(argv[i + 1]);
data/wcalc-2.5/src/cli/main.c:695: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).
            if ((strlen(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:695:43:  [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(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:708: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).
            if ((strlen(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:708:43:  [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(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:721: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).
            if ((strlen(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:721:43:  [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(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:734: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).
            if ((strlen(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:734:43:  [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(argv[i]) > 8) || (strlen(argv[i]) == 7)) {
data/wcalc-2.5/src/cli/main.c:751:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((endptr != NULL) && (strlen(endptr) > 0)) {
data/wcalc-2.5/src/cli/main.c:796:35:  [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).
                filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:796:50:  [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).
                filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:798: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(home) + strlen(historyfile) + 1,
data/wcalc-2.5/src/cli/main.c:798:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         strlen(home) + strlen(historyfile) + 1,
data/wcalc-2.5/src/cli/main.c:814: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).
            if (!errstring || (errstring && !strlen(errstring)) ||
data/wcalc-2.5/src/cli/main.c:818:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (errstring && strlen(errstring)) {
data/wcalc-2.5/src/cli/main.c:820: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).
                if (errstring[strlen(errstring) - 1] != '\n') {
data/wcalc-2.5/src/cli/main.c:841: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).
            filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:841: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).
            filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:856: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).
            if (!errstring || (errstring && !strlen(errstring)) ||
data/wcalc-2.5/src/cli/main.c:860:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (errstring && strlen(errstring)) {
data/wcalc-2.5/src/cli/main.c:862: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).
                if (errstring[strlen(errstring) - 1] != '\n') {
data/wcalc-2.5/src/cli/main.c:879: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).
        filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:879:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:881: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).
                 strlen(home) + strlen(historyfile) + 1,
data/wcalc-2.5/src/cli/main.c:881:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 strlen(home) + strlen(historyfile) + 1,
data/wcalc-2.5/src/cli/main.c:905: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).
        filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:905:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        filename = malloc(strlen(home) + strlen(historyfile) + 2);
data/wcalc-2.5/src/cli/main.c:907: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).
                 strlen(home) + strlen(historyfile) + 1,
data/wcalc-2.5/src/cli/main.c:907:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 strlen(home) + strlen(historyfile) + 1,
data/wcalc-2.5/src/cli/main.c:954:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                c = fgetc(stdin);
data/wcalc-2.5/src/cli/main.c:958:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    c         = fgetc(stdin);
data/wcalc-2.5/src/cli/main.c:968: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).
            if (strlen(readme)) {
data/wcalc-2.5/src/cli/main.c:991:58:  [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 (!errstring || (errstring && !strlen(errstring)) ||
data/wcalc-2.5/src/cli/main.c:1004:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (errstring && strlen(errstring)) {
data/wcalc-2.5/src/cli/main.c:1037:28:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            char  gotten = fgetc(stdin);
data/wcalc-2.5/src/cli/main.c:1040:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                gotten        = fgetc(stdin);
data/wcalc-2.5/src/cli/main.c:1604:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                maxnamelen = strlen(cursor);
data/wcalc-2.5/src/cli/main.c:1606:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    unsigned len = strlen(cursor);
data/wcalc-2.5/src/cli/main.c:1672: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).
            if (linelen + strlen(names[j]) + 2 > 70) {
data/wcalc-2.5/src/cli/main.c:1678: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).
                linelen = strlen(names[j]);
data/wcalc-2.5/src/cli/main.c:1681: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).
                linelen += strlen(names[j]) + 2;
data/wcalc-2.5/src/common/add_commas.c:29:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t input_len = strlen(input);
data/wcalc-2.5/src/common/add_commas.c:82:64:  [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).
    Dprintf("tmpstring is alloc'd to be %lu long\n", preflen + strlen(input));
data/wcalc-2.5/src/common/add_commas.c:83: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).
    tmpstring = calloc(preflen + strlen(input), sizeof(char));
data/wcalc-2.5/src/common/calculator.c:161: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).
        for (i = 0; i < strlen(sanitized); ++i) {
data/wcalc-2.5/src/common/calculator.c:171: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).
        for (i = 0; i < strlen(sanitized); ++i) {
data/wcalc-2.5/src/common/calculator.c:208: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).
        unsigned int len = strlen(sanitized) + 3;
data/wcalc-2.5/src/common/calculator.c:253: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).
    const size_t len = strlen(str);
data/wcalc-2.5/src/common/calculator.c:323: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).
    const size_t max = strlen(str);
data/wcalc-2.5/src/common/calculator.c:368: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).
        size_t max   = strlen(curs);
data/wcalc-2.5/src/common/calculator.c:385: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).
            size_t nlen = strlen(varvalue);
data/wcalc-2.5/src/common/calculator.c:389: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).
            changedlen = strlen(str) + nlen - strlen(varname) + 1;
data/wcalc-2.5/src/common/calculator.c:389: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).
            changedlen = strlen(str) + nlen - strlen(varname) + 1;
data/wcalc-2.5/src/common/calculator.c:556: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).
    this_error = calloc(strlen(err_fmt) + 1000, sizeof(char));
data/wcalc-2.5/src/common/calculator.c:557: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).
    vsnprintf(this_error, strlen(err_fmt) + 1000, err_fmt, ap);
data/wcalc-2.5/src/common/calculator.c:558: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        = strlen(this_error) + 100;
data/wcalc-2.5/src/common/calculator.c:565: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).
        len += strlen(errstring);
data/wcalc-2.5/src/common/calculator.c:658:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                        strncpy(format, "%f", 10);
data/wcalc-2.5/src/common/calculator.c:661:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                        strncpy(format, "%e", 10);
data/wcalc-2.5/src/common/calculator.c:664:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                        strncpy(format, "%g", 10);
data/wcalc-2.5/src/common/calculator.c:1000: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).
                not_all_displayed = (strlen(pa) < strlen(pa2));
data/wcalc-2.5/src/common/calculator.c:1000:51:  [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).
                not_all_displayed = (strlen(pa) < strlen(pa2));
data/wcalc-2.5/src/common/explain.c:44: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).
    curs = strlen(mystr) - 1;
data/wcalc-2.5/src/common/explain.c:66: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).
        int   len         = strlen(mystr) + 2;
data/wcalc-2.5/src/common/explain.c:71:9:  [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(add_a_slash, mystr, len - 2);
data/wcalc-2.5/src/common/files.c:50:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest, one, len);
data/wcalc-2.5/src/common/files.c:55:5:  [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(dest, two, len - written);
data/wcalc-2.5/src/common/files.c:60:5:  [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(dest, three, len - written);
data/wcalc-2.5/src/common/files.c: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).
    namelen = strlen(home) + strlen(dotFileName) + 3;
data/wcalc-2.5/src/common/files.c:73:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    namelen = strlen(home) + strlen(dotFileName) + 3;
data/wcalc-2.5/src/common/files.c:115:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            retval = write(fd, keyval->key, strlen(keyval->key));
data/wcalc-2.5/src/common/files.c:116: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).
            if (retval < (int)strlen(keyval->key)) {
data/wcalc-2.5/src/common/files.c:126:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const size_t len = strlen(keyval->expression) + 3;
data/wcalc-2.5/src/common/files.c:132: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).
            retval = write(fd, cptr, strlen(cptr));
data/wcalc-2.5/src/common/files.c:133: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).
            if (retval < (int)strlen(cptr)) {
data/wcalc-2.5/src/common/files.c:140:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const size_t len = strlen(keyval->expression) + 4;
data/wcalc-2.5/src/common/files.c:143:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                retval = write(fd, cptr, strlen(cptr));
data/wcalc-2.5/src/common/files.c:144:35:  [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 (retval < (int)strlen(cptr)) {
data/wcalc-2.5/src/common/files.c:162: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).
            retval = write(fd, history_entry, strlen(history_entry));
data/wcalc-2.5/src/common/files.c:163: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).
            if (retval < (int)strlen(history_entry)) {
data/wcalc-2.5/src/common/files.c:173:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            retval        = write(fd, history_entry, strlen(history_entry));
data/wcalc-2.5/src/common/files.c:174: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).
            if (retval < (int)strlen(history_entry)) {
data/wcalc-2.5/src/common/files.c:208:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    retval  = read(fd, linebuf + linelen, 1);
data/wcalc-2.5/src/common/files.c:225:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            retval = read(fd, linebuf + linelen, 1);
data/wcalc-2.5/src/common/files.c:232: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).
        while (linebuf[strlen(linebuf) - 1] == ' ') {
data/wcalc-2.5/src/common/files.c:233:21:  [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).
            linebuf[strlen(linebuf) - 1] = 0;
data/wcalc-2.5/src/common/files.c:235: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).
        if (strlen(linebuf)) {
data/wcalc-2.5/src/common/files.c:242: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).
            if ((!errstring || (errstring && !strlen(errstring)) ||
data/wcalc-2.5/src/common/files.c:251:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            retval = read(fd, linebuf + linelen, 1);
data/wcalc-2.5/src/common/files.c:303:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            retval = write(fd, variable, strlen(variable));
data/wcalc-2.5/src/common/files.c:304: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).
            if (retval < (int)strlen(variable)) {
data/wcalc-2.5/src/common/files.c:314:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const size_t len = strlen(keyval.exp) + 4;
data/wcalc-2.5/src/common/files.c:320: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).
            retval = write(fd, cptr, strlen(cptr));
data/wcalc-2.5/src/common/files.c:321: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).
            if (retval < (int)strlen(cptr)) {
data/wcalc-2.5/src/common/files.c:328:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const size_t len = strlen(keyval.desc) + 3;
data/wcalc-2.5/src/common/files.c:331:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                retval = write(fd, cptr, strlen(cptr));
data/wcalc-2.5/src/common/files.c:332:35:  [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 (retval < (int)strlen(cptr)) {
data/wcalc-2.5/src/common/number.c:469:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *expptr = strlen(str);
data/wcalc-2.5/src/common/number_formatting.c:199: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).
    length = strlen(digits);
data/wcalc-2.5/src/common/number_formatting.c:272:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (strlen(retstring) == 1) {
data/wcalc-2.5/src/common/number_formatting.c:297:51:  [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).
        Dprintf("last character: %c\n", retstring[strlen(retstring) - 1]);
data/wcalc-2.5/src/common/number_formatting.c:299: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).
            size_t last = strlen(retstring) - 1;
data/wcalc-2.5/src/common/number_formatting.c:306:50:  [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).
    Dprintf("retstring='%s' (%zu)\n", retstring, strlen(retstring));
data/wcalc-2.5/src/common/number_formatting.c:323: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).
    length = strlen(digits);
data/wcalc-2.5/src/common/number_formatting.c:333: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).
    Dprintf("strlen(digits): %u\n", (unsigned)strlen(digits));
data/wcalc-2.5/src/common/number_formatting.c:420: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).
    length = strlen(digits);
data/wcalc-2.5/src/common/number_formatting.c:430: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).
    Dprintf("strlen(digits): %u\n", (unsigned)strlen(digits));
data/wcalc-2.5/src/common/number_formatting.c:500: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).
        if (period && (strlen(period) > 10)) {
data/wcalc-2.5/src/common/number_formatting.c:514: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).
            if (strlen(period) > (size_t)precision) {
data/wcalc-2.5/src/common/number_formatting.c:544: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).
    length = strlen(digits);
data/wcalc-2.5/src/common/number_formatting.c:600: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).
        if (period && (strlen(period) > 10)) {
data/wcalc-2.5/src/common/number_formatting.c:609: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).
        if (period && ((int)strlen(period) > precision)) {
data/wcalc-2.5/src/common/number_formatting.c:628: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).
    size_t curs  = strlen(num) - 1;
data/wcalc-2.5/src/common/parser.c:1311:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/wcalc-2.5/src/common/parser.c:2171:21:  [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).
	unsigned int len = strlen((yyvsp[0].variable))+1;
data/wcalc-2.5/src/common/parser.c:2173:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(open_file, (yyvsp[0].variable), len);
data/wcalc-2.5/src/common/parser.c:2175: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).
	for (i=strlen(open_file)-1;i>=0;i--) {
data/wcalc-2.5/src/common/parser.c:2179: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(open_file) == 0) {
data/wcalc-2.5/src/common/scanner.c:1868:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/wcalc-2.5/src/common/scanner.c:2213: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).
	i = (int)strlen(returnme) - 1;
data/wcalc-2.5/src/common/scanner.c:2318: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).
	i = (int)strlen(returnme) - 1;
data/wcalc-2.5/src/common/scanner.c:2416: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).
	j = strlen(yytext+i);
data/wcalc-2.5/src/common/scanner.c:3382: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).
			period = yytext+strlen(yytext)-1;
data/wcalc-2.5/src/common/scanner.c:4248: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/wcalc-2.5/src/common/variables.c:189:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!them || !strlen(key) || (listLen(them) == 0)) {
data/wcalc-2.5/src/common/variables.c:195:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(cursor->key, key, strlen(cursor->key) + 1)) {
data/wcalc-2.5/src/common/variables.c:217:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(cursor->key, key, strlen(cursor->key) + 1)) {
data/wcalc-2.5/src/gui/simpleCalc.c:41:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned int expStrLen = strlen(expStr);

ANALYSIS SUMMARY:

Hits = 189
Lines analyzed = 17686 in approximately 0.61 seconds (29118 lines/second)
Physical Source Lines of Code (SLOC) = 14715
Hits@level = [0] 165 [1] 138 [2]  25 [3]   8 [4]  18 [5]   0
Hits@level+ = [0+] 354 [1+] 189 [2+]  51 [3+]  26 [4+]  18 [5+]   0
Hits/KSLOC@level+ = [0+] 24.0571 [1+] 12.844 [2+] 3.46585 [3+] 1.7669 [4+] 1.22324 [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.