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/mupen64plus-audio-sdl-2.5.9/src/circular_buffer.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/circular_buffer.h
Examining data/mupen64plus-audio-sdl-2.5.9/src/main.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/main.h
Examining data/mupen64plus-audio-sdl-2.5.9/src/osal_dynamiclib.h
Examining data/mupen64plus-audio-sdl-2.5.9/src/osal_dynamiclib_unix.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/osal_dynamiclib_win32.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/resamplers/resamplers.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/resamplers/resamplers.h
Examining data/mupen64plus-audio-sdl-2.5.9/src/resamplers/speex.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/resamplers/src.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/resamplers/trivial.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/sdl_backend.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/sdl_backend.h
Examining data/mupen64plus-audio-sdl-2.5.9/src/volume.c
Examining data/mupen64plus-audio-sdl-2.5.9/src/volume.h

FINAL RESULTS:

data/mupen64plus-audio-sdl-2.5.9/src/main.c:128:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(msgbuf, message, args);
data/mupen64plus-audio-sdl-2.5.9/src/osal_dynamiclib_win32.c:34:19:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    *pLibHandle = LoadLibrary(pccLibraryPath);
data/mupen64plus-audio-sdl-2.5.9/src/main.c:121: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 msgbuf[1024];
data/mupen64plus-audio-sdl-2.5.9/src/main.c:504: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 VolumeString[32];
data/mupen64plus-audio-sdl-2.5.9/src/main.c:508:9:  [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(VolumeString, "Mute");
data/mupen64plus-audio-sdl-2.5.9/src/main.c:512: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(VolumeString, "%i%%", VolPercent);
data/mupen64plus-audio-sdl-2.5.9/src/sdl_backend.c:349: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(dst + sdl_backend->primary_buffer.head, src, size);
data/mupen64plus-audio-sdl-2.5.9/src/sdl_backend.c:355: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(dst + sdl_backend->primary_buffer.head + i + 0, (const unsigned char*)src + i + 2, 2); /* Left */
data/mupen64plus-audio-sdl-2.5.9/src/sdl_backend.c:356: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(dst + sdl_backend->primary_buffer.head + i + 2, (const unsigned char*)src + i + 0, 2); /* Right */
data/mupen64plus-audio-sdl-2.5.9/src/volume.c:43:19:  [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 mixerfd = open("/dev/mixer", O_RDONLY);
data/mupen64plus-audio-sdl-2.5.9/src/volume.c:71:19:  [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 mixerfd = open("/dev/mixer", O_RDONLY);
data/mupen64plus-audio-sdl-2.5.9/src/resamplers/resamplers.c:61: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 (strncmp(resampler_id, resamplers[i].cmp_str, strlen(resamplers[i].cmp_str)) == 0) {

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 1987 in approximately 0.06 seconds (31635 lines/second)
Physical Source Lines of Code (SLOC) = 1168
Hits@level = [0]   2 [1]   1 [2]   9 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  14 [1+]  12 [2+]  11 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 11.9863 [1+] 10.274 [2+] 9.41781 [3+] 1.71233 [4+] 0.856164 [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.