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/darkice-1.3/src/SerialUlaw.cpp Examining data/darkice-1.3/src/JackDspSource.cpp Examining data/darkice-1.3/src/FileSink.h Examining data/darkice-1.3/src/Sink.h Examining data/darkice-1.3/src/Util.h Examining data/darkice-1.3/src/SolarisDspSource.h Examining data/darkice-1.3/src/Reporter.h Examining data/darkice-1.3/src/MultiThreadedConnector.cpp Examining data/darkice-1.3/src/aflibConverterLargeFilter.h Examining data/darkice-1.3/src/DarkIce.cpp Examining data/darkice-1.3/src/Connector.cpp Examining data/darkice-1.3/src/BufferedSink.cpp Examining data/darkice-1.3/src/IceCast2.h Examining data/darkice-1.3/src/aacPlusEncoder.h Examining data/darkice-1.3/src/OssDspSource.cpp Examining data/darkice-1.3/src/LameLibEncoder.cpp Examining data/darkice-1.3/src/CastSink.cpp Examining data/darkice-1.3/src/AlsaDspSource.h Examining data/darkice-1.3/src/DarkIceConfig.h Examining data/darkice-1.3/src/aflibConverter.cc Examining data/darkice-1.3/src/BufferedSink.h Examining data/darkice-1.3/src/VorbisLibEncoder.h Examining data/darkice-1.3/src/TcpSocket.h Examining data/darkice-1.3/src/Exception.h Examining data/darkice-1.3/src/SerialUlaw.h Examining data/darkice-1.3/src/aflibDebug.h Examining data/darkice-1.3/src/DarkIce.h Examining data/darkice-1.3/src/aflibDebug.cc Examining data/darkice-1.3/src/JackDspSource.h Examining data/darkice-1.3/src/Source.h Examining data/darkice-1.3/src/OpusLibEncoder.h Examining data/darkice-1.3/src/ShoutCast.cpp Examining data/darkice-1.3/src/FileCast.cpp Examining data/darkice-1.3/src/FaacEncoder.h Examining data/darkice-1.3/src/Ref.h Examining data/darkice-1.3/src/Exception.cpp Examining data/darkice-1.3/src/Connector.h Examining data/darkice-1.3/src/FileCast.h Examining data/darkice-1.3/src/MultiThreadedConnector.h Examining data/darkice-1.3/src/Util.cpp Examining data/darkice-1.3/src/IceCast2.cpp Examining data/darkice-1.3/src/TwoLameLibEncoder.h Examining data/darkice-1.3/src/ConfigSection.cpp Examining data/darkice-1.3/src/IceCast.h Examining data/darkice-1.3/src/Referable.h Examining data/darkice-1.3/src/AudioSource.h Examining data/darkice-1.3/src/IceCast.cpp Examining data/darkice-1.3/src/CastSink.h Examining data/darkice-1.3/src/AudioSource.cpp Examining data/darkice-1.3/src/PulseAudioDspSource.h Examining data/darkice-1.3/src/AudioEncoder.h Examining data/darkice-1.3/src/main.cpp Examining data/darkice-1.3/src/ConfigSection.h Examining data/darkice-1.3/src/AlsaDspSource.cpp Examining data/darkice-1.3/src/DarkIceConfig.cpp Examining data/darkice-1.3/src/SolarisDspSource.cpp Examining data/darkice-1.3/src/ShoutCast.h Examining data/darkice-1.3/src/OssDspSource.h Examining data/darkice-1.3/src/TcpSocket.cpp Examining data/darkice-1.3/src/TwoLameLibEncoder.cpp Examining data/darkice-1.3/src/FileSink.cpp Examining data/darkice-1.3/src/aflibConverterSmallFilter.h Examining data/darkice-1.3/src/Reporter.cpp Examining data/darkice-1.3/src/aflibConverter.h Examining data/darkice-1.3/src/LameLibEncoder.h Examining data/darkice-1.3/src/PulseAudioDspSource.cpp Examining data/darkice-1.3/src/FaacEncoder.cpp Examining data/darkice-1.3/src/OpusLibEncoder.cpp Examining data/darkice-1.3/src/VorbisLibEncoder.cpp Examining data/darkice-1.3/src/aacPlusEncoder.cpp FINAL RESULTS: data/darkice-1.3/src/AudioSource.h:90:43: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. #error No DSP audio input device found on system data/darkice-1.3/src/Exception.cpp:85:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( str, description1); data/darkice-1.3/src/Exception.cpp:88:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( str, description2); data/darkice-1.3/src/Exception.cpp:128:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( str, description1); data/darkice-1.3/src/Exception.cpp:131:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( str, description2); data/darkice-1.3/src/Exception.cpp:134:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( str, description3); data/darkice-1.3/src/Util.cpp:152:5: [4] (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). strcpy( dest, src); data/darkice-1.3/src/Util.cpp:167:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( dest, src); data/darkice-1.3/src/aflibDebug.cc:89:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s -e \"aflib fatal error:\n\n%s\" &", messageAppName, msg); data/darkice-1.3/src/aflibDebug.cc:92:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s -w \"aflib warning message:\n\n%s\" &", messageAppName, msg); data/darkice-1.3/src/aflibDebug.cc:95:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s -i \"aflib informational message:\n\n%s\" &", messageAppName, msg); data/darkice-1.3/src/aflibDebug.cc:100:10: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int r = system(buff); data/darkice-1.3/src/aflibDebug.cc:124:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s\n(The previous message was repeated %d times.)", lastMsg, msgCount); data/darkice-1.3/src/aflibDebug.cc:178:4: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buff, fmt, ap); data/darkice-1.3/src/aflibDebug.cc:193:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buff, fmt, ap); data/darkice-1.3/src/aflibDebug.cc:206:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buff, fmt, ap); data/darkice-1.3/src/aflibDebug.cc:219:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buff, fmt, ap); data/darkice-1.3/src/aflibDebug.cc:228:4: [4] (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). strcpy(messageAppName, appName); data/darkice-1.3/src/aflibDebug.cc:140:21: [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 *env = getenv("AFLIB_DEBUG"); data/darkice-1.3/src/aflibDebug.cc:158:13: [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. env = getenv("AFLIB_DEBUG_ABORT"); data/darkice-1.3/src/main.cpp:129:22: [3] (buffer) getopt: 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 ( (i = getopt( argc, argv, opts)) != -1 ) { data/darkice-1.3/src/AlsaDspSource.cpp:108: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). AlsaDspSource :: open ( void ) throw ( Exception ) data/darkice-1.3/src/AlsaDspSource.h:219: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/BufferedSink.cpp:119: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( this->buffer, buffer.buffer, this->bufferSize); data/darkice-1.3/src/BufferedSink.cpp:154: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( this->buffer, buffer.buffer, this->bufferSize); data/darkice-1.3/src/BufferedSink.cpp:221: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( inp, buf, size); data/darkice-1.3/src/BufferedSink.cpp:235: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( inp, buf, i); data/darkice-1.3/src/BufferedSink.cpp:240: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( this->buffer, buf, i); data/darkice-1.3/src/BufferedSink.cpp:296:23: [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( sink->open() ) { data/darkice-1.3/src/BufferedSink.h:325: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). open ( void ) throw ( Exception ) data/darkice-1.3/src/BufferedSink.h:327: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). bOpen = sink->open(); data/darkice-1.3/src/BufferedSink.h:384: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 b[1]; data/darkice-1.3/src/CastSink.cpp:107: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). CastSink :: open ( void ) throw ( Exception ) data/darkice-1.3/src/CastSink.cpp:113: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). if ( !getSink()->open() ) { data/darkice-1.3/src/CastSink.cpp:124:31: [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 ( !streamDump->open() ) { data/darkice-1.3/src/CastSink.h:283: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/Connector.cpp:217:14: [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). Connector :: open ( void ) throw ( Exception ) data/darkice-1.3/src/Connector.cpp:222:23: [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 ( !source->open() ) { data/darkice-1.3/src/Connector.cpp:229:29: [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 ( !sinks[u]->open() ) { data/darkice-1.3/src/Connector.h:207: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/DarkIce.cpp:1272:25: [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 ( !encConnector->open() ) { data/darkice-1.3/src/DarkIceConfig.cpp:151: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 line[LINE_SIZE]; data/darkice-1.3/src/Exception.cpp:164: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( this->file, file, len); data/darkice-1.3/src/Exception.cpp:176: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( this->description, description, len); data/darkice-1.3/src/FaacEncoder.cpp:66:16: [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). FaacEncoder :: open ( void ) data/darkice-1.3/src/FaacEncoder.cpp:74: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). if ( !getSink()->open() ) { data/darkice-1.3/src/FaacEncoder.h:422:20: [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 open(); data/darkice-1.3/src/FaacEncoder.h:443: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/FileCast.cpp:76: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). FileCast :: open ( void ) throw ( Exception ) data/darkice-1.3/src/FileCast.cpp:82:23: [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 ( !targetFile->open() ) { data/darkice-1.3/src/FileCast.h:185: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/FileSink.cpp:237: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). FileSink :: open ( void ) throw ( Exception ) data/darkice-1.3/src/FileSink.cpp:243:30: [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 ( (fileDescriptor = ::open( fileName, O_WRONLY | O_TRUNC, 0)) == -1 ) { data/darkice-1.3/src/FileSink.cpp:365:5: [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). open(); data/darkice-1.3/src/FileSink.h:204: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/IceCast.cpp:124: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 resp[STRBUF_SIZE]; data/darkice-1.3/src/IceCast.cpp:152: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( resp, "%d", getBitRate()); data/darkice-1.3/src/IceCast2.cpp:123: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 resp[buflen]; // a little buffer data/darkice-1.3/src/IceCast2.cpp:200: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( resp, "%d", getBitRate()); data/darkice-1.3/src/JackDspSource.cpp:204: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). JackDspSource :: open ( void ) throw ( Exception ) data/darkice-1.3/src/JackDspSource.cpp: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 client_name[255]; data/darkice-1.3/src/JackDspSource.h:224: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/LameLibEncoder.cpp:66:19: [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). LameLibEncoder :: open ( void ) data/darkice-1.3/src/LameLibEncoder.cpp:74: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). if ( !getSink()->open() ) { data/darkice-1.3/src/LameLibEncoder.h:343:20: [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 open(); data/darkice-1.3/src/LameLibEncoder.h:364: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/MultiThreadedConnector.cpp:148: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). MultiThreadedConnector :: open ( void ) throw ( Exception ) data/darkice-1.3/src/MultiThreadedConnector.cpp:153: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). if ( !Connector::open() ) { data/darkice-1.3/src/MultiThreadedConnector.cpp:331: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). sink->open(); data/darkice-1.3/src/MultiThreadedConnector.h:293: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/OpusLibEncoder.cpp:151:19: [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). OpusLibEncoder :: open ( void ) data/darkice-1.3/src/OpusLibEncoder.cpp:161: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). if ( !getSink()->open() ) { data/darkice-1.3/src/OpusLibEncoder.cpp:235: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 vendor[8] = "darkice"; data/darkice-1.3/src/OpusLibEncoder.cpp:236: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 titlestr[7] = "TITLE="; data/darkice-1.3/src/OpusLibEncoder.cpp:238: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 name[40]; data/darkice-1.3/src/OpusLibEncoder.cpp:374: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( tempBuffer, internalBuffer, internalBufferLength); data/darkice-1.3/src/OpusLibEncoder.cpp:375: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( tempBuffer+internalBufferLength, buf, len); data/darkice-1.3/src/OpusLibEncoder.cpp:453: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( internalBuffer, b, newLen); data/darkice-1.3/src/OpusLibEncoder.h:83: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 magic[8]; /* "OpusHead" */ data/darkice-1.3/src/OpusLibEncoder.h:141: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 magic[8]; /* "OpusTags" */ data/darkice-1.3/src/OpusLibEncoder.h:470:20: [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 open(); data/darkice-1.3/src/OpusLibEncoder.h:491: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/OssDspSource.cpp:169: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). OssDspSource :: open ( void ) throw ( Exception ) data/darkice-1.3/src/OssDspSource.cpp:192:30: [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 ( (fileDescriptor = ::open( fileName, O_RDONLY)) == -1 ) { data/darkice-1.3/src/OssDspSource.h:196: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/PulseAudioDspSource.cpp:157:24: [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). PulseAudioDspSource :: open ( void ) throw ( Exception ) data/darkice-1.3/src/PulseAudioDspSource.cpp:160: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 client_name[255]; data/darkice-1.3/src/PulseAudioDspSource.cpp:190:7: [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 client_name[255]; data/darkice-1.3/src/PulseAudioDspSource.h:196: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/PulseAudioDspSource.h:443: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/Reporter.h:111:17: [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 str[32]; data/darkice-1.3/src/SerialUlaw.cpp:203: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). SerialUlaw :: open ( void ) throw ( Exception ) data/darkice-1.3/src/SerialUlaw.cpp:228:30: [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 ( (fileDescriptor = ::open( fileName, O_RDONLY)) == -1 ) { data/darkice-1.3/src/SerialUlaw.cpp:290:14: [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 ubuf[256], * ptr; data/darkice-1.3/src/SerialUlaw.h:197: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/ShoutCast.cpp:133: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 resp[STRBUF_SIZE]; data/darkice-1.3/src/ShoutCast.cpp:137: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 header_line[HEADERLINE_LENGTH+2]; // ... + \n + \0 data/darkice-1.3/src/Sink.h:115: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). open ( void ) throw ( Exception ) = 0; data/darkice-1.3/src/SolarisDspSource.cpp:149: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). SolarisDspSource :: open ( void ) throw ( Exception ) data/darkice-1.3/src/SolarisDspSource.cpp:157:30: [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 ( (fileDescriptor = ::open( fileName, O_RDONLY)) == -1 ) { data/darkice-1.3/src/SolarisDspSource.h:198: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/Source.h:117: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). open ( void ) throw ( Exception ) = 0; data/darkice-1.3/src/TcpSocket.cpp:193:14: [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). TcpSocket :: open ( void ) throw ( Exception ) data/darkice-1.3/src/TcpSocket.cpp:201: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 portstr[6]; data/darkice-1.3/src/TcpSocket.cpp:221: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 ( addr, ptr->ai_addr, ptr->ai_addrlen); data/darkice-1.3/src/TcpSocket.cpp:317: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). open(); data/darkice-1.3/src/TcpSocket.h:185: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/TwoLameLibEncoder.cpp:100: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). TwoLameLibEncoder :: open ( void ) data/darkice-1.3/src/TwoLameLibEncoder.cpp:108: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). if ( !getSink()->open() ) { data/darkice-1.3/src/TwoLameLibEncoder.h:272:20: [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 open(); data/darkice-1.3/src/TwoLameLibEncoder.h:293: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/Util.cpp:187: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( s, str, len); data/darkice-1.3/src/Util.cpp:329: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( s, str, strlen (str)-strlen(last)); data/darkice-1.3/src/Util.cpp:330: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( s + strlen(str) - strlen(last), strdate, strlen (strdate)); data/darkice-1.3/src/Util.cpp:331: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( s + strlen(str) - strlen(last) + strlen(strdate), data/darkice-1.3/src/VorbisLibEncoder.cpp:148: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). VorbisLibEncoder :: open ( void ) data/darkice-1.3/src/VorbisLibEncoder.cpp:158: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). if ( !getSink()->open() ) { data/darkice-1.3/src/VorbisLibEncoder.h:354:20: [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 open(); data/darkice-1.3/src/VorbisLibEncoder.h:375: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/aacPlusEncoder.cpp:66:19: [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). aacPlusEncoder :: open ( void ) data/darkice-1.3/src/aacPlusEncoder.cpp:74: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). if ( !sink->open() ) { data/darkice-1.3/src/aacPlusEncoder.h:424:20: [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 open(); data/darkice-1.3/src/aacPlusEncoder.h:445: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). open ( void ) throw ( Exception ); data/darkice-1.3/src/aflibDebug.cc:78:4: [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 buff[1024]; data/darkice-1.3/src/aflibDebug.cc:113:10: [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. static char lastMsg[1024]; data/darkice-1.3/src/aflibDebug.cc:123:4: [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 buff[1024]; data/darkice-1.3/src/aflibDebug.cc:175:4: [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 buff[1024]; data/darkice-1.3/src/aflibDebug.cc:190:7: [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 buff[1024]; data/darkice-1.3/src/aflibDebug.cc:203:7: [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 buff[1024]; data/darkice-1.3/src/aflibDebug.cc:216:7: [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 buff[1024]; data/darkice-1.3/src/AlsaDspSource.cpp:244:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AlsaDspSource :: read ( void * buf, data/darkice-1.3/src/AlsaDspSource.h:257:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/Connector.cpp:281:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). d = source->read( buf, bufSize); data/darkice-1.3/src/DarkIceConfig.cpp:149:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Config :: read ( std::istream & is ) throw ( Exception ) data/darkice-1.3/src/DarkIceConfig.h:128:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( is ); data/darkice-1.3/src/DarkIceConfig.h:187:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( std::istream & is ) throw ( Exception ); data/darkice-1.3/src/Exception.cpp:74: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). len += strlen( description1); data/darkice-1.3/src/Exception.cpp:77: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). len += strlen( description2); data/darkice-1.3/src/Exception.cpp:114: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). len += strlen( description1); data/darkice-1.3/src/Exception.cpp:117: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). len += strlen( description2); data/darkice-1.3/src/Exception.cpp:120: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). len += strlen( description3); data/darkice-1.3/src/Exception.cpp:161:22: [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). len = strlen( file ) + 1; data/darkice-1.3/src/Exception.cpp:173:29: [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). len = strlen( description ) + 1; data/darkice-1.3/src/IceCast.cpp:137: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:139: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:141: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:143: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:147: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:153:24: [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). sink->write( resp, strlen( resp)); data/darkice-1.3/src/IceCast.cpp:156: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:158: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:162:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:164:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:169:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:171:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:176:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:178:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:183:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:185:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:190:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:192:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:196: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast.cpp:200:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = source->read( resp, STRBUF_SIZE); data/darkice-1.3/src/IceCast.cpp:218:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (len = source->read( resp, STRBUF_SIZE)) ) { data/darkice-1.3/src/IceCast2.cpp:137: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:139: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:141: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:145: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:173: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:177: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). sink->write( str, strlen(str)); data/darkice-1.3/src/IceCast2.cpp:188:30: [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). sink->write( base64, strlen(base64)); data/darkice-1.3/src/IceCast2.cpp:194: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:198: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:201:24: [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). sink->write( resp, strlen( resp)); data/darkice-1.3/src/IceCast2.cpp:204: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:206: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:210:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:212:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:217:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:219:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:224:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:226:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:231:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:233:27: [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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:237: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). sink->write( str, strlen( str)); data/darkice-1.3/src/IceCast2.cpp:242:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( (len = source->read( resp, buflen )) < lenExpected ) { data/darkice-1.3/src/IceCast2.cpp:267:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (len = source->read( resp, buflen ))); data/darkice-1.3/src/JackDspSource.cpp:333:9: [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 ( wait_increment ); data/darkice-1.3/src/JackDspSource.cpp:336:5: [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( usec ); data/darkice-1.3/src/JackDspSource.cpp:351:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). JackDspSource :: read ( void * buf, data/darkice-1.3/src/JackDspSource.h:262:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/MultiThreadedConnector.cpp:239:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dataSize = source->read( dataBuffer, bufSize); data/darkice-1.3/src/OpusLibEncoder.cpp:224:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(header.magic, "OpusHead", 8); data/darkice-1.3/src/OpusLibEncoder.cpp:241:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, (char*)sink->getName(), 39); data/darkice-1.3/src/OpusLibEncoder.cpp:245:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(name, "Darkice Stream", 39); data/darkice-1.3/src/OpusLibEncoder.cpp:247: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). tags[0].tag_len = strlen(titlestr) + strlen(name); data/darkice-1.3/src/OpusLibEncoder.cpp:247: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). tags[0].tag_len = strlen(titlestr) + strlen(name); data/darkice-1.3/src/OpusLibEncoder.cpp:252:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( tags[0].tag_str, titlestr, tags[0].tag_len); data/darkice-1.3/src/OpusLibEncoder.cpp:253:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( tags[0].tag_str, name, tags[0].tag_len); data/darkice-1.3/src/OpusLibEncoder.cpp:256:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(commentHeader.magic, "OpusTags", 8); data/darkice-1.3/src/OpusLibEncoder.cpp:257:35: [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). commentHeader.vendor_length = strlen(vendor); data/darkice-1.3/src/OssDspSource.cpp:251:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( b, getChannel()*getBitsPerSample()/8); data/darkice-1.3/src/OssDspSource.cpp:279:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OssDspSource :: read ( void * buf, data/darkice-1.3/src/OssDspSource.cpp:288:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = ::read( fileDescriptor, buf, len); data/darkice-1.3/src/OssDspSource.h:234:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/PulseAudioDspSource.cpp:210:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PulseAudioDspSource :: read ( void * buf, data/darkice-1.3/src/PulseAudioDspSource.h:231:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/PulseAudioDspSource.h:478:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/SerialUlaw.cpp:286:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SerialUlaw :: read ( void * buf, data/darkice-1.3/src/SerialUlaw.cpp:304:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). plen = ::read( fileDescriptor, ubuf, plen); data/darkice-1.3/src/SerialUlaw.h:235:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/ShoutCast.cpp:150:9: [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). && strlen(mountPoint) > 0 && 0 != strcmp("/", mountPoint)) { data/darkice-1.3/src/ShoutCast.cpp:178: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). sink->write( str, strlen( str)); data/darkice-1.3/src/ShoutCast.cpp:182:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = source->read( resp, STRBUF_SIZE); data/darkice-1.3/src/ShoutCast.cpp:197:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (len = source->read( resp, STRBUF_SIZE)) ) { data/darkice-1.3/src/ShoutCast.cpp:204:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:205:33: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:210:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:211:33: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:216:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:217:33: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:222:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:223:33: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:228:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:229:33: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:234:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:235:33: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:239:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:240:31: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:243:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(header_line, "\n"); data/darkice-1.3/src/ShoutCast.cpp:244:31: [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). sink->write( header_line, strlen( header_line)); data/darkice-1.3/src/ShoutCast.cpp:247: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). sink->write( str, strlen( str)); data/darkice-1.3/src/SolarisDspSource.cpp:243:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SolarisDspSource :: read ( void * buf, data/darkice-1.3/src/SolarisDspSource.cpp:252:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = ::read( fileDescriptor, buf, len); data/darkice-1.3/src/SolarisDspSource.h:236:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/Source.h:150:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/TcpSocket.cpp:300:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TcpSocket :: read ( void * buf, data/darkice-1.3/src/TcpSocket.h:221:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read ( void * buf, data/darkice-1.3/src/Util.cpp:135:11: [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). len = strlen( str); data/darkice-1.3/src/Util.cpp:185:11: [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). len = strlen( str) + 1; data/darkice-1.3/src/Util.cpp:204:31: [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( data); data/darkice-1.3/src/Util.cpp:323:31: [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). last = (char *) str + strlen( str); data/darkice-1.3/src/Util.cpp:326:12: [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 = strlen( str) + strlen( strdate) + 1; data/darkice-1.3/src/Util.cpp:326:27: [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 = strlen( str) + strlen( strdate) + 1; data/darkice-1.3/src/Util.cpp:329:21: [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). memcpy( s, str, strlen (str)-strlen(last)); data/darkice-1.3/src/Util.cpp:329:34: [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). memcpy( s, str, strlen (str)-strlen(last)); data/darkice-1.3/src/Util.cpp:330:17: [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). memcpy( s + strlen(str) - strlen(last), strdate, strlen (strdate)); data/darkice-1.3/src/Util.cpp:330:32: [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). memcpy( s + strlen(str) - strlen(last), strdate, strlen (strdate)); data/darkice-1.3/src/Util.cpp:330:55: [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). memcpy( s + strlen(str) - strlen(last), strdate, strlen (strdate)); data/darkice-1.3/src/Util.cpp:331:17: [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). memcpy( s + strlen(str) - strlen(last) + strlen(strdate), data/darkice-1.3/src/Util.cpp:331:32: [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). memcpy( s + strlen(str) - strlen(last) + strlen(strdate), data/darkice-1.3/src/Util.cpp:331:47: [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). memcpy( s + strlen(str) - strlen(last) + strlen(strdate), data/darkice-1.3/src/Util.cpp:333:13: [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). strlen(last)); data/darkice-1.3/src/aflibDebug.cc:128:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lastMsg, msg, 1024); data/darkice-1.3/src/aflibDebug.cc:227:53: [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). messageAppName = (char*) realloc(messageAppName, strlen(appName)+1); ANALYSIS SUMMARY: Hits = 255 Lines analyzed = 43652 in approximately 0.97 seconds (44858 lines/second) Physical Source Lines of Code (SLOC) = 32044 Hits@level = [0] 18 [1] 125 [2] 109 [3] 3 [4] 18 [5] 0 Hits@level+ = [0+] 273 [1+] 255 [2+] 130 [3+] 21 [4+] 18 [5+] 0 Hits/KSLOC@level+ = [0+] 8.51954 [1+] 7.95781 [2+] 4.05692 [3+] 0.655349 [4+] 0.561728 [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.