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/soapyaudio-0.1.1/Registration.cpp Examining data/soapyaudio-0.1.1/RigThread.cpp Examining data/soapyaudio-0.1.1/RigThread.h Examining data/soapyaudio-0.1.1/RtAudio/RtAudio.cpp Examining data/soapyaudio-0.1.1/RtAudio/RtAudio.h Examining data/soapyaudio-0.1.1/Settings.cpp Examining data/soapyaudio-0.1.1/SoapyAudio.hpp Examining data/soapyaudio-0.1.1/Streaming.cpp FINAL RESULTS: data/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:7470: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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:7506: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:7516: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:7529: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:7542: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:8998: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:9022: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:9142: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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:9223: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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/Streaming.cpp:110:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buff.data(), inputBuffer, nBufferFrames * elementsPerSample * sizeof(float)); data/soapyaudio-0.1.1/RigThread.cpp:41:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rig->state.rigport.pathname, rigFile.c_str(), FILPATHLEN - 1); data/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/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/soapyaudio-0.1.1/RtAudio/RtAudio.cpp:9879: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 = 77 Lines analyzed = 13654 in approximately 0.33 seconds (41435 lines/second) Physical Source Lines of Code (SLOC) = 9989 Hits@level = [0] 6 [1] 5 [2] 68 [3] 3 [4] 1 [5] 0 Hits@level+ = [0+] 83 [1+] 77 [2+] 72 [3+] 4 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 8.30914 [1+] 7.70848 [2+] 7.20793 [3+] 0.40044 [4+] 0.10011 [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.