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/libtime-y2038-perl-20100403/check_max.c
Examining data/libtime-y2038-perl-20100403/y2038/time64.c
Examining data/libtime-y2038-perl-20100403/y2038/time64.h

FINAL RESULTS:

data/libtime-y2038-perl-20100403/check_max.c:208:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zone_json, ", \"tm_zone\": \"%s\"", date->tm_zone);
data/libtime-y2038-perl-20100403/check_max.c:209:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(date_json, zone_json);
data/libtime-y2038-perl-20100403/check_max.c:213:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(date_json, gmtoff_json);
data/libtime-y2038-perl-20100403/y2038/time64.c:154:35:  [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 TIME64_TRACE(format) (fprintf(stderr, format))
data/libtime-y2038-perl-20100403/y2038/time64.c:155:45:  [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 TIME64_TRACE1(format, var1)    (fprintf(stderr, format, var1))
data/libtime-y2038-perl-20100403/y2038/time64.c:156:51:  [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 TIME64_TRACE2(format, var1, var2)    (fprintf(stderr, format, var1, var2))
data/libtime-y2038-perl-20100403/y2038/time64.c:157:57:  [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 TIME64_TRACE3(format, var1, var2, var3)    (fprintf(stderr, format, var1, var2, var3))
data/libtime-y2038-perl-20100403/y2038/time64.c:787:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(result, TM64_ASCTIME_FORMAT,
data/libtime-y2038-perl-20100403/check_max.c:20: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(
data/libtime-y2038-perl-20100403/check_max.c:120:13:  [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(good_date, date, sizeof(struct tm));
data/libtime-y2038-perl-20100403/check_max.c:155:13:  [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(good_date, date, sizeof(struct tm));
data/libtime-y2038-perl-20100403/check_max.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char zone_json[32];
data/libtime-y2038-perl-20100403/check_max.c:198: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 gmtoff_json[32];
data/libtime-y2038-perl-20100403/check_max.c:201: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(date_json,
data/libtime-y2038-perl-20100403/check_max.c:212: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(gmtoff_json, ", \"tm_gmtoff\": %ld", date->tm_gmtoff);
data/libtime-y2038-perl-20100403/y2038/time64.c:55: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        Static_Return_String[35];
data/libtime-y2038-perl-20100403/y2038/time64.c:67:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char wday_name[7][4] = {
data/libtime-y2038-perl-20100403/y2038/time64.c:71: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 mon_name[12][4] = {
data/libtime-y2038-perl-20100403/y2038/time64.c:421:13:  [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(dest, src, sizeof(*dest));
data/libtime-y2038-perl-20100403/y2038/time64.c:453:13:  [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(dest, src, sizeof(*dest));
data/libtime-y2038-perl-20100403/y2038/time64.c:470:9:  [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(result, static_result, sizeof(*result));
data/libtime-y2038-perl-20100403/y2038/time64.c:487:9:  [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(result, static_result, sizeof(*result));

ANALYSIS SUMMARY:

Hits = 22
Lines analyzed = 1185 in approximately 0.05 seconds (23204 lines/second)
Physical Source Lines of Code (SLOC) = 811
Hits@level = [0]  27 [1]   0 [2]  14 [3]   0 [4]   8 [5]   0
Hits@level+ = [0+]  49 [1+]  22 [2+]  22 [3+]   8 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 60.4192 [1+] 27.127 [2+] 27.127 [3+] 9.86436 [4+] 9.86436 [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.