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/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c
Examining data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.h

FINAL RESULTS:

data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:758:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(sdl_snd_filename, "%s/%s%02d.snd",
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:764:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sdl_snd_filename, "%s/%s%02d.SND",
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:771:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(sdl_snd_filename, "%s/%s%02d.SND",
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:779:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdl_snd_filename, "%s/%s%02d.snd",
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:400: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(sdl_directory_name, active_z_story->absolute_file_name, len);
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:415: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(sdl_file_prefix, slashpos + 1, len);
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:406: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).
      len = strlen(active_z_story->absolute_file_name) - len - 1;
data/libsndifsdl2-0.8.3/src/sound_sdl2/sound_sdl2.c:426: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).
      = (char*)fizmo_malloc(strlen(sdl_directory_name) + len + 7);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 1062 in approximately 0.04 seconds (27451 lines/second)
Physical Source Lines of Code (SLOC) = 783
Hits@level = [0]   0 [1]   2 [2]   2 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]   8 [1+]   8 [2+]   6 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 10.2171 [1+] 10.2171 [2+] 7.66284 [3+] 5.10856 [4+] 5.10856 [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.