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/alure-1.2/cmake/CheckFileOffsetBits.c
Examining data/alure-1.2/examples/alurecdplay.c
Examining data/alure-1.2/examples/alureplay.c
Examining data/alure-1.2/examples/alurestream.c
Examining data/alure-1.2/include/AL/alure.h
Examining data/alure-1.2/include/alext.h
Examining data/alure-1.2/include/main.h
Examining data/alure-1.2/src/alure.cpp
Examining data/alure-1.2/src/buffer.cpp
Examining data/alure-1.2/src/codec_aiff.cpp
Examining data/alure-1.2/src/codec_flac.cpp
Examining data/alure-1.2/src/codec_modplug.cpp
Examining data/alure-1.2/src/codec_mpg123.cpp
Examining data/alure-1.2/src/codec_sndfile.cpp
Examining data/alure-1.2/src/codec_vorbisfile.cpp
Examining data/alure-1.2/src/codec_wav.cpp
Examining data/alure-1.2/src/istream.cpp
Examining data/alure-1.2/src/stream.cpp
Examining data/alure-1.2/src/streamdec.cpp
Examining data/alure-1.2/src/streamplay.cpp
Examining data/alure-1.2/src/codec_dumb.cpp
Examining data/alure-1.2/src/codec_fluidsynth.cpp

FINAL RESULTS:

data/alure-1.2/src/codec_fluidsynth.cpp:328:12:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        if(mktemp(&tmpfname[0]) == NULL || (file=fopen(&tmpfname[0], "wb")) == NULL)
data/alure-1.2/include/main.h:41:6:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
void EnterCriticalSection(CRITICAL_SECTION *cs);
data/alure-1.2/include/main.h:43:6:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
void InitializeCriticalSection(CRITICAL_SECTION *cs);
data/alure-1.2/src/alure.cpp:101:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/alure.cpp:155:6:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
void EnterCriticalSection(CRITICAL_SECTION *cs)
data/alure-1.2/src/alure.cpp:167:6:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
void InitializeCriticalSection(CRITICAL_SECTION *cs)
data/alure-1.2/src/codec_fluidsynth.cpp:241:37:  [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.
            const char *soundfont = getenv("FLUID_SOUNDFONT");
data/alure-1.2/src/codec_fluidsynth.cpp:305:27:  [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.
        const char *str = getenv("TEMP");
data/alure-1.2/src/codec_fluidsynth.cpp:306:35:  [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(!str || !str[0]) str = getenv("TMP");
data/alure-1.2/src/streamplay.cpp:228:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:236:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:245:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:368:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:503:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:567:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:637:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:686:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:728:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:808:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/src/streamplay.cpp:818:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&cs_StreamPlay);
data/alure-1.2/examples/alurecdplay.c:39:11:  [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).
    idx = atoi(fname+7);
data/alure-1.2/examples/alurecdplay.c:42:10:  [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).
    fd = open(cd_device, O_RDONLY | O_NONBLOCK);
data/alure-1.2/examples/alurecdplay.c:182:11:  [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).
    idx = atoi(fname+7);
data/alure-1.2/include/AL/alure.h:109:15:  [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).
      void* (*open)(const char*,ALuint),
data/alure-1.2/include/main.h:58: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 b[sizeof(int)];
data/alure-1.2/include/main.h:193:13:  [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).
    void* (*open)(const char *filename, ALuint mode);
data/alure-1.2/include/main.h:206: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 buffer[1024];
data/alure-1.2/include/main.h:218:21:  [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).
    { usrFile = fio.open(filename, mode); }
data/alure-1.2/src/alure.cpp:478: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(newstr, cur, len);
data/alure-1.2/src/codec_aiff.cpp:120:13:  [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 tag[4];
data/alure-1.2/src/codec_flac.cpp:131: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(data, &initialData[0], rem);
data/alure-1.2/src/codec_fluidsynth.cpp:328:50:  [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(mktemp(&tmpfname[0]) == NULL || (file=fopen(&tmpfname[0], "wb")) == NULL)
data/alure-1.2/src/codec_fluidsynth.cpp:330:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
        if((fd=mkstemp(&tmpfname[0])) == -1 || (file=fdopen(fd, "wb")) == NULL)
data/alure-1.2/src/codec_fluidsynth.cpp:343:9:  [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[4096];
data/alure-1.2/src/codec_fluidsynth.cpp:394:9:  [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 hdr[4];
data/alure-1.2/src/codec_mpg123.cpp:152:26:  [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.
                unsigned char data[4096];
data/alure-1.2/src/codec_mpg123.cpp:178:22:  [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.
            unsigned char data[4096];
data/alure-1.2/src/codec_mpg123.cpp:228:22:  [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.
            unsigned char data[4096];
data/alure-1.2/src/codec_mpg123.cpp:302:13:  [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 tag[4];
data/alure-1.2/src/codec_wav.cpp:127:13:  [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 tag[4];
data/alure-1.2/src/istream.cpp:148:12:  [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).
    return fopen(filename, "rb");
data/alure-1.2/src/istream.cpp:241:15:  [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).
      void* (*open)(const char *filename, ALuint mode),
data/alure-1.2/src/istream.cpp:247:8:  [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).
    if(open && close && read && write && seek)
data/alure-1.2/src/istream.cpp:249:22:  [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).
        Funcs.open = open;
data/alure-1.2/src/istream.cpp:258:9:  [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).
    if(!open && !close && !read && !write && !seek)
data/alure-1.2/src/stream.cpp:241: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(streamData, fdata, length);
data/alure-1.2/include/AL/alure.h:111:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ALsizei (*read)(void*,ALubyte*,ALuint),
data/alure-1.2/include/main.h:195:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ALsizei (*read)(void *f, ALubyte *buf, ALuint count);
data/alure-1.2/include/main.h:242:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!file->read(reinterpret_cast<char*>(buffer), 4)) return 0;
data/alure-1.2/include/main.h:249:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!file->read(reinterpret_cast<char*>(buffer), 2)) return 0;
data/alure-1.2/include/main.h:256:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!file->read(reinterpret_cast<char*>(buffer), 4)) return 0;
data/alure-1.2/include/main.h:263:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!file->read(reinterpret_cast<char*>(buffer), 2)) return 0;
data/alure-1.2/include/main.h:270:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!file->read(reinterpret_cast<char*>(buffer), 10)) return 0;
data/alure-1.2/src/alure.cpp:466: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).
        cur += strlen(cur)+1;
data/alure-1.2/src/alure.cpp:475: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).
        ALCuint len = strlen(cur)+1;
data/alure-1.2/src/codec_aiff.cpp:63:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fstream->read(reinterpret_cast<char*>(data), rem*blockAlign);
data/alure-1.2/src/codec_aiff.cpp:114:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(!fstream->read(reinterpret_cast<char*>(buffer), 12) ||
data/alure-1.2/src/codec_aiff.cpp:121:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(!fstream->read(tag, 4))
data/alure-1.2/src/codec_dumb.cpp:228:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        vfs.getnc = read;
data/alure-1.2/src/codec_dumb.cpp:285:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static long read(char *ptr, long size, void *user_data)
data/alure-1.2/src/codec_dumb.cpp:290:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream->read(ptr, size);
data/alure-1.2/src/codec_dumb.cpp:300:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream->read(reinterpret_cast<char*>(&ret), 1);
data/alure-1.2/src/codec_flac.cpp:346:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream->read(reinterpret_cast<char*>(buffer), *bytes);
data/alure-1.2/src/codec_fluidsynth.cpp:346:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            istream.read(buf, sizeof(buf));
data/alure-1.2/src/codec_fluidsynth.cpp:395:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(!fstream->read(hdr, 4))
data/alure-1.2/src/codec_fluidsynth.cpp:416:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if(!fstream->read(hdr, 4) || memcmp(hdr, "MTrk", 4) != 0)
data/alure-1.2/src/codec_fluidsynth.cpp:421:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if(!fstream->read(reinterpret_cast<char*>(&i->data[0]), len) ||
data/alure-1.2/src/codec_modplug.cpp:116:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            fstream->read(&data[total], data.size()-total);
data/alure-1.2/src/codec_modplug.cpp:147:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fstream->read(&data[total], data.size()-total);
data/alure-1.2/src/codec_modplug.cpp:158:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fstream->read(&data[total], data.size()-total);
data/alure-1.2/src/codec_mpg123.cpp:157:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    fstream->read((char*)data, insize);
data/alure-1.2/src/codec_mpg123.cpp:188:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fstream->read((char*)data, amt);
data/alure-1.2/src/codec_mpg123.cpp:236:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fstream->read((char*)data, amt);
data/alure-1.2/src/codec_mpg123.cpp:272:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(!fstream->read(reinterpret_cast<char*>(buffer), 12))
data/alure-1.2/src/codec_mpg123.cpp:303:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(!fstream->read(tag, 4))
data/alure-1.2/src/codec_sndfile.cpp:134:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read, write, tell
data/alure-1.2/src/codec_sndfile.cpp:177:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static sf_count_t read(void *ptr, sf_count_t count, void *user_data)
data/alure-1.2/src/codec_sndfile.cpp:181:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream->read(static_cast<char*>(ptr), count);
data/alure-1.2/src/codec_vorbisfile.cpp:207:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read, seek, close, tell
data/alure-1.2/src/codec_vorbisfile.cpp:244:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static size_t read(void *ptr, size_t size, size_t nmemb, void *user_data)
data/alure-1.2/src/codec_vorbisfile.cpp:249:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream->read(static_cast<char*>(ptr), nmemb*size);
data/alure-1.2/src/codec_wav.cpp:63:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fstream->read(reinterpret_cast<char*>(data), rem*blockAlign);
data/alure-1.2/src/codec_wav.cpp:121:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(!fstream->read(reinterpret_cast<char*>(buffer), 12) ||
data/alure-1.2/src/codec_wav.cpp:128:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if(!fstream->read(tag, 4))
data/alure-1.2/src/istream.cpp:95:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ALsizei amt = fio.read(usrFile, reinterpret_cast<ALubyte*>(&buffer[0]), sizeof(buffer));
data/alure-1.2/src/istream.cpp:243:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ALsizei (*read)(void *handle, ALubyte *buf, ALuint bytes),
data/alure-1.2/src/istream.cpp:247:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(open && close && read && write && seek)
data/alure-1.2/src/istream.cpp:251:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        Funcs.read = read;
data/alure-1.2/src/istream.cpp:258:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!open && !close && !read && !write && !seek)

ANALYSIS SUMMARY:

Hits = 89
Lines analyzed = 6845 in approximately 0.16 seconds (41495 lines/second)
Physical Source Lines of Code (SLOC) = 4962
Hits@level = [0]  22 [1]  43 [2]  26 [3]  19 [4]   1 [5]   0
Hits@level+ = [0+] 111 [1+]  89 [2+]  46 [3+]  20 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 22.37 [1+] 17.9363 [2+] 9.27046 [3+] 4.03063 [4+] 0.201532 [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.