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/acpi-call-1.1.0/support/windump_hack/windump.c
Examining data/acpi-call-1.1.0/acpi_call.c

FINAL RESULTS:

data/acpi-call-1.1.0/acpi_call.c:57:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(get_buffer_end(),
data/acpi-call-1.1.0/acpi_call.c:27: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 result_buffer[BUFFER_SIZE];
data/acpi-call-1.1.0/acpi_call.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[3] = { hex[0], hex[1], 0};
data/acpi-call-1.1.0/acpi_call.c:237:17:  [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, temporary_buffer, arg->buffer.length);
data/acpi-call-1.1.0/acpi_call.c:267: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 input[2 * BUFFER_SIZE] = { '\0' };
data/acpi-call-1.1.0/acpi_call.c:316:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(result_buffer, "not called");
data/acpi-call-1.1.0/acpi_call.c:347: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(page, result_buffer, len + 1);
data/acpi-call-1.1.0/acpi_call.c:350:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(result_buffer, "not called");
data/acpi-call-1.1.0/acpi_call.c:368:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(result_buffer, "not called");
data/acpi-call-1.1.0/acpi_call.c:32: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).
    return BUFFER_SIZE - strlen(result_buffer);
data/acpi-call-1.1.0/acpi_call.c:35: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).
    return result_buffer + strlen(result_buffer);
data/acpi-call-1.1.0/acpi_call.c:55:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(get_buffer_end(), "{");
data/acpi-call-1.1.0/acpi_call.c:71:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(get_buffer_end(), "[");
data/acpi-call-1.1.0/acpi_call.c:310: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).
    int len = strlen(result_buffer);
data/acpi-call-1.1.0/acpi_call.c:346: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(result_buffer);
data/acpi-call-1.1.0/support/windump_hack/windump.c:72: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).
    win_name_size = strlen(win_name) + sizeof(char);
data/acpi-call-1.1.0/support/windump_hack/windump.c:256: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(60000);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 684 in approximately 0.03 seconds (25577 lines/second)
Physical Source Lines of Code (SLOC) = 518
Hits@level = [0]  13 [1]   8 [2]   8 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  30 [1+]  17 [2+]   9 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 57.9151 [1+] 32.8185 [2+] 17.3745 [3+] 1.9305 [4+] 1.9305 [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.