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/jacktrip-1.2.1+ds0/JMess.cpp Examining data/jacktrip-1.2.1+ds0/documentation/documentation.cpp Examining data/jacktrip-1.2.1+ds0/faust-src/minimal.cpp Examining data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp Examining data/jacktrip-1.2.1+ds0/src/AudioInterface.h Examining data/jacktrip-1.2.1+ds0/src/DataProtocol.cpp Examining data/jacktrip-1.2.1+ds0/src/DataProtocol.h Examining data/jacktrip-1.2.1+ds0/src/JMess.cpp Examining data/jacktrip-1.2.1+ds0/src/JMess.h Examining data/jacktrip-1.2.1+ds0/src/JackAudioInterface.cpp Examining data/jacktrip-1.2.1+ds0/src/JackAudioInterface.h Examining data/jacktrip-1.2.1+ds0/src/JackTrip.h Examining data/jacktrip-1.2.1+ds0/src/JackTripThread.cpp Examining data/jacktrip-1.2.1+ds0/src/JackTripThread.h Examining data/jacktrip-1.2.1+ds0/src/JackTripWorker.cpp Examining data/jacktrip-1.2.1+ds0/src/JackTripWorker.h Examining data/jacktrip-1.2.1+ds0/src/JackTripWorkerMessages.h Examining data/jacktrip-1.2.1+ds0/src/LoopBack.cpp Examining data/jacktrip-1.2.1+ds0/src/LoopBack.h Examining data/jacktrip-1.2.1+ds0/src/NetKS.h Examining data/jacktrip-1.2.1+ds0/src/PacketHeader.cpp Examining data/jacktrip-1.2.1+ds0/src/PacketHeader.h Examining data/jacktrip-1.2.1+ds0/src/ProcessPlugin.cpp Examining data/jacktrip-1.2.1+ds0/src/ProcessPlugin.h Examining data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp Examining data/jacktrip-1.2.1+ds0/src/RingBuffer.h Examining data/jacktrip-1.2.1+ds0/src/RingBufferWavetable.h Examining data/jacktrip-1.2.1+ds0/src/RtAudioInterface.cpp Examining data/jacktrip-1.2.1+ds0/src/RtAudioInterface.h Examining data/jacktrip-1.2.1+ds0/src/Settings.cpp Examining data/jacktrip-1.2.1+ds0/src/Settings.h Examining data/jacktrip-1.2.1+ds0/src/TestRingBuffer.h Examining data/jacktrip-1.2.1+ds0/src/ThreadPoolTest.h Examining data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.cpp Examining data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.h Examining data/jacktrip-1.2.1+ds0/src/UdpHubListener.cpp Examining data/jacktrip-1.2.1+ds0/src/UdpHubListener.h Examining data/jacktrip-1.2.1+ds0/src/jacktrip_globals.cpp Examining data/jacktrip-1.2.1+ds0/src/jacktrip_globals.h Examining data/jacktrip-1.2.1+ds0/src/jacktrip_main.cpp Examining data/jacktrip-1.2.1+ds0/src/jacktrip_tests.cpp Examining data/jacktrip-1.2.1+ds0/src/jacktrip_types.h Examining data/jacktrip-1.2.1+ds0/src/JackTrip.cpp FINAL RESULTS: data/jacktrip-1.2.1+ds0/src/Settings.cpp:154:19: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ( (ch = getopt_long(argc, argv, data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:235:14: [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(mInProcessBuffer[i], out_buffer[i], sizeof(sample_t) * n_frames); data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:253:22: [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(mInProcessBuffer[i], mNetInBuffer[i], sizeof(sample_t) * n_frames); data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:255:22: [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(mOutProcessBuffer[i], mNetInBuffer[i], sizeof(sample_t) * n_frames); data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:460:14: [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(output, &tmp_8, 1); // 8bits = 1 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:466:14: [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(output, &tmp_16, 2); // 16bits = 2 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:482:14: [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(output, &tmp_16, 2); // 16bits = 2 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:483:14: [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(output+2, &tmp_u8, 1); // 8bits = 1 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:486:14: [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(output, input, 4); // 32bit = 4 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:509:14: [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(output, &tmp_sample, 4); // 4 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:514:14: [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(output, &tmp_sample, 4); // 4 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:525:14: [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(output, &tmp_sample, 4); // 4 bytes data/jacktrip-1.2.1+ds0/src/AudioInterface.cpp:528:14: [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(output, input, 4); // 4 bytes data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:592: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 buf[datagramSize]; data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:673: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 port_buf[sizeof(mReceiverBindPort)]; data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:674: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(port_buf, &mReceiverBindPort, sizeof(mReceiverBindPort)); data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:700: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(&udp_port, port_buf, size); data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:861: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(audio_part, audio_packet, getTotalAudioPacketSizeInBytes()); data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:883: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(audio_packet, audio_part, getTotalAudioPacketSizeInBytes()); data/jacktrip-1.2.1+ds0/src/JackTripWorker.cpp:305: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 packet[packet_size]; data/jacktrip-1.2.1+ds0/src/LoopBack.cpp:55: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(outputs[i], inputs[i], sizeof(sample_t) * nframes); data/jacktrip-1.2.1+ds0/src/PacketHeader.h:158:14: [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(full_packet, reinterpret_cast<const void*>(&header_struct), data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:117: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(mRingBuffer+mWritePosition, ptrToSlot, mSlotSize); data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:139: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(ptrToReadSlot, mRingBuffer+mReadPosition, mSlotSize); data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:141: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(mLastReadSlot, mRingBuffer+mReadPosition, mSlotSize); data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:167: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(mRingBuffer+mWritePosition, ptrToSlot, mSlotSize); data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:194: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(ptrToReadSlot, mRingBuffer+mReadPosition, mSlotSize); data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:196: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(mLastReadSlot, mRingBuffer+mReadPosition, mSlotSize); data/jacktrip-1.2.1+ds0/src/RingBuffer.cpp:215: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(ptrToReadSlot, mLastReadSlot, mSlotSize); data/jacktrip-1.2.1+ds0/src/Settings.cpp:160:25: [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). mNumChans = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:170:33: [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). mClientAddCombLen = atoi(optarg); // cmd line comb length adjustment data/jacktrip-1.2.1+ds0/src/Settings.cpp:201:29: [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). mBindPortNum += atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:202:29: [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). mPeerPortNum += atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:206:28: [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). mBindPortNum = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:210:28: [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). mPeerPortNum = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:214:23: [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). if ( atoi(optarg) == 8 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:216:23: [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). else if ( atoi(optarg) == 16 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:218:23: [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). else if ( atoi(optarg) == 24 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:220:23: [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). else if ( atoi(optarg) == 32 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:224:30: [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). << atoi(optarg) << " is not supported." << endl; data/jacktrip-1.2.1+ds0/src/Settings.cpp:230:18: [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). if ( atoi(optarg) <= 0 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:235:38: [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). mBufferQueueLength = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:240:18: [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). if ( atoi(optarg) <= 0 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:245:31: [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). mRedundancy = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:275:27: [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). mSampleRate = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:280:25: [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). mDeviceID = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:285:32: [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). mAudioBufferSize = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:306:23: [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). if ( atoi(optarg) == 0 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:308:23: [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). else if ( atoi(optarg) == 1 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:310:23: [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). else if ( atoi(optarg) == 2 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:312:23: [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). else if ( atoi(optarg) == 3 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:314:23: [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). else if ( atoi(optarg) == 4 ) { data/jacktrip-1.2.1+ds0/src/Settings.cpp:318:30: [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). << atoi(optarg) << " is not supported." << endl; data/jacktrip-1.2.1+ds0/src/Settings.cpp:324:30: [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). mIOStatTimeout = atoi(optarg); data/jacktrip-1.2.1+ds0/src/Settings.cpp:333:27: [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). mIOStatStream.open(optarg); data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.cpp:368: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 buf[1]; data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.cpp:694: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(mFullPacket, data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.cpp:731: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(full_redundant_packet, data/jacktrip-1.2.1+ds0/src/UdpHubListener.cpp:312: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 port_buf[size]; data/jacktrip-1.2.1+ds0/src/UdpHubListener.cpp:314: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(&udp_port, port_buf, size); data/jacktrip-1.2.1+ds0/src/UdpHubListener.cpp:324: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 port_buf[sizeof(udp_port)]; data/jacktrip-1.2.1+ds0/src/UdpHubListener.cpp:325: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(port_buf, &udp_port, sizeof(udp_port)); data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:209:14: [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. QThread::usleep(100); data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:233:18: [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. QThread::usleep(100); data/jacktrip-1.2.1+ds0/src/JackTrip.cpp:699:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tcpClient.read(port_buf, size); data/jacktrip-1.2.1+ds0/src/NetKS.h:76:18: [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. QThread::usleep(280000); /// \todo Define this number based on the sampling rate and buffer size data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.cpp:322:77: [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. while ( (UdpSocket.pendingDatagramSize() < n) && !mStopped ) { QThread::usleep(100); } data/jacktrip-1.2.1+ds0/src/UdpDataProtocol.cpp:615:18: [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. QThread::usleep(loop_resolution_usec); data/jacktrip-1.2.1+ds0/src/UdpHubListener.cpp:313:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). clientConnection->read(port_buf, size); ANALYSIS SUMMARY: Hits = 69 Lines analyzed = 10481 in approximately 0.29 seconds (35582 lines/second) Physical Source Lines of Code (SLOC) = 4866 Hits@level = [0] 3 [1] 7 [2] 61 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 72 [1+] 69 [2+] 62 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 14.7965 [1+] 14.18 [2+] 12.7415 [3+] 0.205508 [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.