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/hebcal-4.22/astro.c Examining data/hebcal-4.22/astro.h Examining data/hebcal-4.22/cities.h Examining data/hebcal-4.22/common.c Examining data/hebcal-4.22/common.h Examining data/hebcal-4.22/dafyomi.c Examining data/hebcal-4.22/dafyomi.h Examining data/hebcal-4.22/danlib.c Examining data/hebcal-4.22/danlib.h Examining data/hebcal-4.22/dow.c Examining data/hebcal-4.22/error.c Examining data/hebcal-4.22/gnu.c Examining data/hebcal-4.22/greg.c Examining data/hebcal-4.22/greg.h Examining data/hebcal-4.22/hebcal.c Examining data/hebcal-4.22/hebcal.h Examining data/hebcal-4.22/holidays.c Examining data/hebcal-4.22/myerror.h Examining data/hebcal-4.22/parse_tz.c Examining data/hebcal-4.22/sedra.c Examining data/hebcal-4.22/sedra.h Examining data/hebcal-4.22/start.c Examining data/hebcal-4.22/strings_ashkenazi.c Examining data/hebcal-4.22/strings_ashkenazi_litvish.c Examining data/hebcal-4.22/strings_ashkenazi_poylish.c Examining data/hebcal-4.22/strings_ashkenazi_standard.c Examining data/hebcal-4.22/strings_fi.c Examining data/hebcal-4.22/strings_fr.c Examining data/hebcal-4.22/strings_he.c Examining data/hebcal-4.22/strings_hu.c Examining data/hebcal-4.22/strings_pl.c Examining data/hebcal-4.22/strings_ru.c Examining data/hebcal-4.22/tests/sanity-check.c Examining data/hebcal-4.22/timelib.c Examining data/hebcal-4.22/timelib.h Examining data/hebcal-4.22/timelib_private.h Examining data/hebcal-4.22/timelib_structs.h Examining data/hebcal-4.22/timezonedb.h Examining data/hebcal-4.22/tm2unixtime.c Examining data/hebcal-4.22/translations.c Examining data/hebcal-4.22/translations.h Examining data/hebcal-4.22/unixtime2tm.c FINAL RESULTS: data/hebcal-4.22/hebcal.c:535:15: [5] (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. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat (omerStr, hc_itoa (omer), NM_LEN); data/hebcal-4.22/hebcal.c:536:15: [5] (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. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat (omerStr, numSuffix (omer), NM_LEN); data/hebcal-4.22/hebcal.c:537:15: [5] (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. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat (omerStr, " day of the Omer", NM_LEN); data/hebcal-4.22/hebcal.c:541:15: [5] (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. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat (omerStr, "Omer: ", NM_LEN); data/hebcal-4.22/hebcal.c:542:15: [5] (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. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat (omerStr, hc_itoa (omer), NM_LEN); data/hebcal-4.22/dafyomi.c:138:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, data/hebcal-4.22/error.c:41: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, s1, s2); data/hebcal-4.22/error.c:53: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, s1, s2); data/hebcal-4.22/holidays.c:405: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 (temp->name, hp->name); data/hebcal-4.22/holidays.c:695:14: [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 (!sscanf (s, "%s %d%n", monthStr, &inDay, &index)) data/hebcal-4.22/holidays.c:729:9: [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 (tmpholp->name, eventStr); /* load the user holiday into it. */ data/hebcal-4.22/holidays.c:765:13: [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 (sscanf (s, "%s %d %d%n", monthStr, &inDay, &inYear, &index) < 3) data/hebcal-4.22/holidays.c:848:9: [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 (tmpholp->name, eventStr); /* load the user holiday into it. */ data/hebcal-4.22/holidays.c:960:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmpholip->name, "%s %d", data/hebcal-4.22/holidays.c:973:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmpholip->name, _("Rosh Chodesh %s"), data/hebcal-4.22/holidays.c:985:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmpholip->name, _("Rosh Chodesh %s"), data/hebcal-4.22/sedra.c:339:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s-%s", data/hebcal-4.22/start.c:273: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(cityStr, cityNameArg); data/hebcal-4.22/start.c:301: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(cityName, pcity->name); data/hebcal-4.22/start.c:322: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. if (NULL != (cityName = getenv(ENV_CITY))) data/hebcal-4.22/start.c:408:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long(argc, argv, "ab:cC:dDeEFghHI:il:L:m:MoOrsStTwWxyY:z:Z8", data/hebcal-4.22/start.c:836:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((envStr = getenv(ENV_OPTS)) && strcmp(envStr, "")) data/hebcal-4.22/dafyomi.c:71:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[NM_LEN]; data/hebcal-4.22/danlib.c:113:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ret[7]; /* FIX: eeeviiill */ data/hebcal-4.22/danlib.c:114: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 (ret, "%d", i); data/hebcal-4.22/hebcal.c:506: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 sedraStr[40]; data/hebcal-4.22/parse_tz.c:107:2: [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(tz->location.country_code, *tzf, 2); data/hebcal-4.22/parse_tz.c:189: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(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); data/hebcal-4.22/parse_tz.c:204: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(cbuffer, *tzf, sizeof(unsigned char) * tz->bit64.timecnt); data/hebcal-4.22/parse_tz.c:233:2: [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(buffer, *tzf, sizeof(unsigned char) * 6 * tz->bit64.typecnt); data/hebcal-4.22/parse_tz.c:256:2: [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(tz->timezone_abbr, *tzf, sizeof(char) * tz->bit64.charcnt); data/hebcal-4.22/parse_tz.c:265: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(leap_buffer, *tzf, tz->bit64.leapcnt * (sizeof(int64_t) + sizeof(int32_t))); data/hebcal-4.22/parse_tz.c:286: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(buffer, *tzf, sizeof(unsigned char) * tz->bit64.ttisstdcnt); data/hebcal-4.22/parse_tz.c:301: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(buffer, *tzf, sizeof(unsigned char) * tz->bit64.ttisgmtcnt); data/hebcal-4.22/parse_tz.c:363:2: [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(tz->location.comments, *tzf, comments_len); data/hebcal-4.22/parse_tz.c:589: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(tmp->trans, tz->trans, tz->bit64.timecnt * sizeof(int64_t)); data/hebcal-4.22/parse_tz.c:590: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(tmp->trans_idx, tz->trans_idx, tz->bit64.timecnt * sizeof(unsigned char)); data/hebcal-4.22/parse_tz.c:594:2: [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(tmp->type, tz->type, tz->bit64.typecnt * sizeof(ttinfo)); data/hebcal-4.22/parse_tz.c:597:2: [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(tmp->timezone_abbr, tz->timezone_abbr, tz->bit64.charcnt); data/hebcal-4.22/parse_tz.c:601: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(tmp->leap_times, tz->leap_times, tz->bit64.leapcnt * sizeof(tlinfo)); data/hebcal-4.22/start.c:578:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(inFile = fopen(inFileName, "r"))) { data/hebcal-4.22/start.c:600:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(yFile = fopen(yahrtzeitFileName, "r"))) { data/hebcal-4.22/start.c:681:15: [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). theYear = atoi(remain[0]); /* just year specified */ data/hebcal-4.22/start.c:722:18: [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). theYear = atoi(remain[1]); /* print theMonth of theYear */ data/hebcal-4.22/start.c:735:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). theMonth = atoi(remain[0]); /* gregorian month */ data/hebcal-4.22/start.c:752:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). theDay = atoi(remain[1]); /* print theDay of theMonth */ data/hebcal-4.22/start.c:753:18: [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). theYear = atoi(remain[2]); /* print theMonth of theYear */ data/hebcal-4.22/start.c:766:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). theMonth = atoi(remain[0]); /* gregorian month */ data/hebcal-4.22/start.c:832: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 *envArgv[40]; /* this should be big enough */ data/hebcal-4.22/timelib.c:38: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. const char *timelib_error_messages[8] = { data/hebcal-4.22/timelib.c:88:2: [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(tmp, orig, sizeof(timelib_time)); data/hebcal-4.22/timelib.c:114:2: [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(tmp, rel, sizeof(timelib_rel_time)); data/hebcal-4.22/timelib.c:207:23: [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 unsigned char timelib_tolower_map[256] = { data/hebcal-4.22/timelib.h:140: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 country_code[3]; data/hebcal-4.22/timelib_structs.h:174: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 country_code[3]; data/hebcal-4.22/timezonedb.h:604:16: [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 unsigned char timelib_timezone_db_data_builtin[699004] = { data/hebcal-4.22/timezonedb.h:606:16: [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 unsigned char timelib_timezone_db_data_builtin[269025] = { data/hebcal-4.22/translations.h:10: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 *hebcal_langs[11]; data/hebcal-4.22/danlib.c:79: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). size_t len = strlen( s ); data/hebcal-4.22/holidays.c:683:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextChar = (char) getc (inFile); /* priming getc */ data/hebcal-4.22/holidays.c:685:39: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). lineNum++, nextChar = (char) getc (inFile)) data/hebcal-4.22/holidays.c:723:22: [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 (eventStr[strlen (eventStr) - 1] == '\n') data/hebcal-4.22/holidays.c:724:22: [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). eventStr[strlen (eventStr) - 1] = '\0'; /* chop off the \n */ data/hebcal-4.22/holidays.c:753:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nextChar = (char) getc (yFile); /* priming getc */ data/hebcal-4.22/holidays.c:755:39: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). lineNum++, nextChar = (char) getc (yFile)) data/hebcal-4.22/holidays.c:843: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). eventStr[strlen (eventStr) - 1] = '\0'; /* chop off the \n */ data/hebcal-4.22/sedra.c:333:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buf, LANGUAGE2(sedrot[index]), buf_len); data/hebcal-4.22/start.c:268: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). size_t len = strlen(cityNameArg); data/hebcal-4.22/start.c:272: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). initStr(&cityStr, strlen(cityNameArg)); data/hebcal-4.22/start.c:300: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). initStr(&cityName, strlen(pcity->name)); data/hebcal-4.22/timelib.c:121: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). size_t tz_abbr_len = strlen(tz_abbr); data/hebcal-4.22/timelib.c:235: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). size_t len1 = strlen(s1); data/hebcal-4.22/timelib.c:236: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). size_t len2 = strlen(s2); data/hebcal-4.22/timelib.c:258: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). size_t len1 = strlen(s1); data/hebcal-4.22/timelib.c:259: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). size_t len2 = strlen(s2); data/hebcal-4.22/translations.c:76: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). et = hebcal_lookup_ashkenazi(src, strlen(src)); data/hebcal-4.22/translations.c:79:55: [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). et = hebcal_lookup_ashkenazi_litvish(src, strlen(src)); data/hebcal-4.22/translations.c:82:55: [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). et = hebcal_lookup_ashkenazi_poylish(src, strlen(src)); data/hebcal-4.22/translations.c:85:56: [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). et = hebcal_lookup_ashkenazi_standard(src, strlen(src)); data/hebcal-4.22/translations.c:88: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). et = hebcal_lookup_fi(src, strlen(src)); data/hebcal-4.22/translations.c:91: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). et = hebcal_lookup_fr(src, strlen(src)); data/hebcal-4.22/translations.c:94: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). et = hebcal_lookup_he(src, strlen(src)); data/hebcal-4.22/translations.c:97: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). et = hebcal_lookup_hu(src, strlen(src)); data/hebcal-4.22/translations.c:100: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). et = hebcal_lookup_pl(src, strlen(src)); data/hebcal-4.22/translations.c:103: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). et = hebcal_lookup_ru(src, strlen(src)); ANALYSIS SUMMARY: Hits = 85 Lines analyzed = 61485 in approximately 6.25 seconds (9838 lines/second) Physical Source Lines of Code (SLOC) = 57660 Hits@level = [0] 101 [1] 27 [2] 36 [3] 3 [4] 14 [5] 5 Hits@level+ = [0+] 186 [1+] 85 [2+] 58 [3+] 22 [4+] 19 [5+] 5 Hits/KSLOC@level+ = [0+] 3.22581 [1+] 1.47416 [2+] 1.0059 [3+] 0.381547 [4+] 0.329518 [5+] 0.0867152 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.