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/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c
Examining data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.h
Examining data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer.c
Examining data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer.h
Examining data/pcaudiolib-1.1/src/audio.c
Examining data/pcaudiolib-1.1/src/coreaudio.c
Examining data/pcaudiolib-1.1/src/include/pcaudiolib/audio.h
Examining data/pcaudiolib-1.1/src/oss.c
Examining data/pcaudiolib-1.1/src/qsa.c
Examining data/pcaudiolib-1.1/src/windows.c
Examining data/pcaudiolib-1.1/src/xaudio2.cpp
Examining data/pcaudiolib-1.1/src/alsa.c
Examining data/pcaudiolib-1.1/src/audio_priv.h
Examining data/pcaudiolib-1.1/src/pulseaudio.c

FINAL RESULTS:

data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:56: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(&block->timestamp, inTimestamp, sizeof(AudioTimeStamp));
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:109: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(&block->timestamp, inTimestamp, sizeof(AudioTimeStamp));
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:139: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(bufferList->mBuffers[i].mData, inBufferList->mBuffers[i].mData, byteCount);
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:167: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(outTimestamp, &nextBlock->timestamp, sizeof(AudioTimeStamp));
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:233: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((char*)outputBufferList->mBuffers[i].mData + bytesCopied, bufferList->mBuffers[i].mData, bytesToCopy);
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:256: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(outTimestamp, &block->timestamp, sizeof(AudioTimeStamp));
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.h:112: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(outTimestamp, &block->timestamp, sizeof(AudioTimeStamp));
data/pcaudiolib-1.1/src/TPCircularBuffer/TPCircularBuffer.h:211: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(ptr, src, len);
data/pcaudiolib-1.1/src/audio.c:31:18:  [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).
		return object->open(object, format, rate, channels);
data/pcaudiolib-1.1/src/audio_priv.h:34: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).
	int (*open)(struct audio_object *object,
data/pcaudiolib-1.1/src/coreaudio.c:238:3:  [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(bufferList->mBuffers[0].mData, dataPtr, bytesToWrite);
data/pcaudiolib-1.1/src/oss.c:83:18:  [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 ((self->fd = open(self->device ? self->device : DEFAULT_OSS_DEVICE, O_RDWR, 0)) == -1)
data/pcaudiolib-1.1/src/coreaudio.c:187:3:  [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(10000);
data/pcaudiolib-1.1/src/coreaudio.c:226:4:  [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(10000);
data/pcaudiolib-1.1/src/windows.c:29: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).
	size_t len = strlen(str);
data/pcaudiolib-1.1/src/windows.c:91: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).
	size_t len = strlen(msg);

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 2823 in approximately 0.11 seconds (25544 lines/second)
Physical Source Lines of Code (SLOC) = 1821
Hits@level = [0]   3 [1]   4 [2]  12 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  19 [1+]  16 [2+]  12 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 10.4338 [1+] 8.78638 [2+] 6.58979 [3+]   0 [4+]   0 [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.