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/audmes-0+git20200429/AudMeS.cpp
Examining data/audmes-0+git20200429/AudMeS.h
Examining data/audmes-0+git20200429/CtrlOScope.cpp
Examining data/audmes-0+git20200429/CtrlOScope.h
Examining data/audmes-0+git20200429/RWAudio_IO.cpp
Examining data/audmes-0+git20200429/RWAudio_IO.h
Examining data/audmes-0+git20200429/audiolib/RtAudio.cpp
Examining data/audmes-0+git20200429/audiolib/RtAudio.h
Examining data/audmes-0+git20200429/dlg_audiointerface.cpp
Examining data/audmes-0+git20200429/dlg_audiointerface.h
Examining data/audmes-0+git20200429/event_ids.h
Examining data/audmes-0+git20200429/fourier.c
Examining data/audmes-0+git20200429/fourier.h

FINAL RESULTS:

data/audmes-0+git20200429/audiolib/RtAudio.cpp:7484:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( name, "hw:%s,%d", cardname, subdevice );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:60:31:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  #define MUTEX_INITIALIZE(A) InitializeCriticalSection(A)
data/audmes-0+git20200429/audiolib/RtAudio.cpp:62:31:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  #define MUTEX_LOCK(A)       EnterCriticalSection(A)
data/audmes-0+git20200429/audiolib/RtAudio.cpp:4963:21:  [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.
  HMODULE AvrtDll = LoadLibrary( (LPCTSTR) "AVRT.dll" );
data/audmes-0+git20200429/AudMeS.cpp:508:7:  [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).
  frm.open (saveFileDialog.GetPath(), std::ios::trunc);
data/audmes-0+git20200429/RWAudio_IO.cpp:213:10:  [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).
  ddbg = fopen("debug.log","wb");
data/audmes-0+git20200429/audiolib/RtAudio.cpp:1734: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( outBufferList->mBuffers[handle->iStream[0]].mData,
data/audmes-0+git20200429/audiolib/RtAudio.cpp:1749:11:  [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( outBufferList->mBuffers[handle->iStream[0]+i].mData,
data/audmes-0+git20200429/audiolib/RtAudio.cpp:1827: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( stream_.userBuffer[1],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:1839:11:  [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( (void *)&outBuffer[i*stream_.bufferSize],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2045:15:  [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.
      port = (char *) ports[ nChannels ];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2084:15:  [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.
      port = (char *) ports[ nPorts ];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2240:15:  [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.
      port = (char *) ports[ nPorts ];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2408: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 label[64];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2705: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( jackbuffer, &stream_.deviceBuffer[i*bufferBytes], bufferBytes );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2711: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( jackbuffer, &stream_.userBuffer[0][i*bufferBytes], bufferBytes );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2727: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( &stream_.deviceBuffer[i*bufferBytes], jackbuffer, bufferBytes );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2734: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( &stream_.userBuffer[1][i*bufferBytes], jackbuffer, bufferBytes );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2851: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 driverName[32];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:2971: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 driverName[32];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3560:11:  [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( handle->bufferInfos[i].buffers[bufferIndex],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3574:11:  [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( handle->bufferInfos[i].buffers[bufferIndex],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3596:11:  [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( &stream_.deviceBuffer[j++*bufferBytes],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3611:11:  [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( &stream_.userBuffer[1][bufferBytes*j++],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3862: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( &( ( char* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( char ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3863: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( buffer_, &( ( char* ) buffer )[fromInSize], fromZeroSize * sizeof( char ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3866: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( &( ( short* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( short ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3867: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( buffer_, &( ( short* ) buffer )[fromInSize], fromZeroSize * sizeof( short ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3870: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( &( ( S24* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( S24 ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3871: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( buffer_, &( ( S24* ) buffer )[fromInSize], fromZeroSize * sizeof( S24 ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3874: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( &( ( int* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( int ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3875: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( buffer_, &( ( int* ) buffer )[fromInSize], fromZeroSize * sizeof( int ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3878: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( &( ( float* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( float ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3879: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( buffer_, &( ( float* ) buffer )[fromInSize], fromZeroSize * sizeof( float ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3882: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( &( ( double* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( double ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3883: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( buffer_, &( ( double* ) buffer )[fromInSize], fromZeroSize * sizeof( double ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3924: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( buffer, &( ( char* ) buffer_ )[outIndex_], fromOutSize * sizeof( char ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3925: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( &( ( char* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( char ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3928: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( buffer, &( ( short* ) buffer_ )[outIndex_], fromOutSize * sizeof( short ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3929: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( &( ( short* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( short ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3932: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( buffer, &( ( S24* ) buffer_ )[outIndex_], fromOutSize * sizeof( S24 ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3933: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( &( ( S24* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( S24 ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3936: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( buffer, &( ( int* ) buffer_ )[outIndex_], fromOutSize * sizeof( int ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3937: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( &( ( int* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( int ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3940: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( buffer, &( ( float* ) buffer_ )[outIndex_], fromOutSize * sizeof( float ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3941: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( &( ( float* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( float ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3944: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( buffer, &( ( double* ) buffer_ )[outIndex_], fromOutSize * sizeof( double ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:3945: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( &( ( double* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( double ) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:4062:7:  [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( outBuffer, inBuffer, inputBufferSize );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:4078: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( rInByteBuffer, inBuffer, inputBufferSize );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:4130: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( outBuffer, rOutByteBuffer, rBytes );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:5222: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( stream_.userBuffer[INPUT],
data/audmes-0+git20200429/audiolib/RtAudio.cpp:5308:11:  [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( stream_.deviceBuffer,
data/audmes-0+git20200429/audiolib/RtAudio.cpp:6796:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    CopyMemory( buffer1, buffer, bufferSize1 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:6797:28:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if ( buffer2 != NULL ) CopyMemory( buffer2, buffer+bufferSize1, bufferSize2 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:6925:7:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      CopyMemory( buffer, buffer1, bufferSize1 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:6926:30:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      if ( buffer2 != NULL ) CopyMemory( buffer+bufferSize1, buffer2, bufferSize2 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7148: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 name[64];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7155:5:  [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( name, "hw:%d", card );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7199: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 name[64];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7207:5:  [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( name, "hw:%d", card );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7227: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( name, "hw:%d,%d", card, subdevice );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7241:7:  [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( name, "default" );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7520: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 name[64];
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7530:7:  [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( name, "hw:%d", card );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7543:11:  [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( name, "hw:%d,%d", card, subdevice );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:7556: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( name, "default" );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:9012:17:  [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_RDWR, 0 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:9036:17:  [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_RDWR, 0 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:9156:17:  [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_RDWR, 0 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:9237: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).
  fd = open( ainfo.devnode, flags, 0 );
data/audmes-0+git20200429/audiolib/RtAudio.h:683: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.
  unsigned char c3[3];
data/audmes-0+git20200429/audiolib/RtAudio.h:780: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 *userBuffer[2];       // Playback and record, respectively.
data/audmes-0+git20200429/AudMeS.cpp:916:7:  [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(400000);
data/audmes-0+git20200429/AudMeS.cpp:918:7:  [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(400000);
data/audmes-0+git20200429/audiolib/RtAudio.cpp:706:42:  [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).
  info.name.append( (const char *)mname, strlen(mname) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:728:41:  [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).
  info.name.append( (const char *)name, strlen(name) );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:1177:7:  [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( 5000 );
data/audmes-0+git20200429/audiolib/RtAudio.cpp:9893:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = read( handle->id[1], buffer, samples * formatBytes(format) );

ANALYSIS SUMMARY:

Hits = 79
Lines analyzed = 15105 in approximately 0.39 seconds (38447 lines/second)
Physical Source Lines of Code (SLOC) = 10811
Hits@level = [0]  17 [1]   6 [2]  69 [3]   3 [4]   1 [5]   0
Hits@level+ = [0+]  96 [1+]  79 [2+]  73 [3+]   4 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 8.87984 [1+] 7.30737 [2+] 6.75238 [3+] 0.369994 [4+] 0.0924984 [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.