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/mpd-0.22.3/src/AudioCompress/compress.c Examining data/mpd-0.22.3/src/AudioCompress/compress.h Examining data/mpd-0.22.3/src/AudioCompress/config.h Examining data/mpd-0.22.3/src/CommandLine.cxx Examining data/mpd-0.22.3/src/GitVersion.cxx Examining data/mpd-0.22.3/src/IcyMetaDataParser.cxx Examining data/mpd-0.22.3/src/Idle.cxx Examining data/mpd-0.22.3/src/IdleFlags.cxx Examining data/mpd-0.22.3/src/Instance.cxx Examining data/mpd-0.22.3/src/Listen.cxx Examining data/mpd-0.22.3/src/LocateUri.cxx Examining data/mpd-0.22.3/src/Log.cxx Examining data/mpd-0.22.3/src/LogBackend.cxx Examining data/mpd-0.22.3/src/LogInit.cxx Examining data/mpd-0.22.3/src/Main.cxx Examining data/mpd-0.22.3/src/Mapper.cxx Examining data/mpd-0.22.3/src/MusicBuffer.cxx Examining data/mpd-0.22.3/src/MusicChunk.cxx Examining data/mpd-0.22.3/src/MusicChunkPtr.cxx Examining data/mpd-0.22.3/src/MusicPipe.cxx Examining data/mpd-0.22.3/src/Partition.cxx Examining data/mpd-0.22.3/src/Permission.cxx Examining data/mpd-0.22.3/src/PlaylistDatabase.cxx Examining data/mpd-0.22.3/src/PlaylistError.cxx Examining data/mpd-0.22.3/src/PlaylistFile.cxx Examining data/mpd-0.22.3/src/PlaylistPrint.cxx Examining data/mpd-0.22.3/src/PlaylistSave.cxx Examining data/mpd-0.22.3/src/RemoteTagCache.cxx Examining data/mpd-0.22.3/src/ReplayGainGlobal.cxx Examining data/mpd-0.22.3/src/ReplayGainInfo.cxx Examining data/mpd-0.22.3/src/ReplayGainMode.cxx Examining data/mpd-0.22.3/src/SingleMode.cxx Examining data/mpd-0.22.3/src/SongLoader.cxx Examining data/mpd-0.22.3/src/SongPrint.cxx Examining data/mpd-0.22.3/src/SongSave.cxx Examining data/mpd-0.22.3/src/SongUpdate.cxx Examining data/mpd-0.22.3/src/StateFile.cxx Examining data/mpd-0.22.3/src/StateFileConfig.cxx Examining data/mpd-0.22.3/src/Stats.cxx Examining data/mpd-0.22.3/src/TagAny.cxx Examining data/mpd-0.22.3/src/TagArchive.cxx Examining data/mpd-0.22.3/src/TagFile.cxx Examining data/mpd-0.22.3/src/TagPrint.cxx Examining data/mpd-0.22.3/src/TagSave.cxx Examining data/mpd-0.22.3/src/TagStream.cxx Examining data/mpd-0.22.3/src/TimePrint.cxx Examining data/mpd-0.22.3/src/android/AudioManager.cxx Examining data/mpd-0.22.3/src/android/Context.cxx Examining data/mpd-0.22.3/src/android/Environment.cxx Examining data/mpd-0.22.3/src/android/LogListener.cxx Examining data/mpd-0.22.3/src/apple/AudioObject.cxx Examining data/mpd-0.22.3/src/apple/Throw.cxx Examining data/mpd-0.22.3/src/archive/ArchiveList.cxx Examining data/mpd-0.22.3/src/archive/ArchivePlugin.cxx Examining data/mpd-0.22.3/src/archive/plugins/Bzip2ArchivePlugin.cxx Examining data/mpd-0.22.3/src/archive/plugins/Iso9660ArchivePlugin.cxx Examining data/mpd-0.22.3/src/archive/plugins/ZzipArchivePlugin.cxx Examining data/mpd-0.22.3/src/client/Client.cxx Examining data/mpd-0.22.3/src/client/Config.cxx Examining data/mpd-0.22.3/src/client/Domain.cxx Examining data/mpd-0.22.3/src/client/Event.cxx Examining data/mpd-0.22.3/src/client/Expire.cxx Examining data/mpd-0.22.3/src/client/File.cxx Examining data/mpd-0.22.3/src/client/Idle.cxx Examining data/mpd-0.22.3/src/client/List.cxx Examining data/mpd-0.22.3/src/client/Listener.cxx Examining data/mpd-0.22.3/src/client/Message.cxx Examining data/mpd-0.22.3/src/client/New.cxx Examining data/mpd-0.22.3/src/client/Process.cxx Examining data/mpd-0.22.3/src/client/Read.cxx Examining data/mpd-0.22.3/src/client/Response.cxx Examining data/mpd-0.22.3/src/client/Subscribe.cxx Examining data/mpd-0.22.3/src/client/ThreadBackgroundCommand.cxx Examining data/mpd-0.22.3/src/client/Write.cxx Examining data/mpd-0.22.3/src/command/AllCommands.cxx Examining data/mpd-0.22.3/src/command/ClientCommands.cxx Examining data/mpd-0.22.3/src/command/CommandError.cxx Examining data/mpd-0.22.3/src/command/CommandListBuilder.cxx Examining data/mpd-0.22.3/src/command/DatabaseCommands.cxx Examining data/mpd-0.22.3/src/command/FileCommands.cxx Examining data/mpd-0.22.3/src/command/FingerprintCommands.cxx Examining data/mpd-0.22.3/src/command/MessageCommands.cxx Examining data/mpd-0.22.3/src/command/NeighborCommands.cxx Examining data/mpd-0.22.3/src/command/OtherCommands.cxx Examining data/mpd-0.22.3/src/command/OutputCommands.cxx Examining data/mpd-0.22.3/src/command/PartitionCommands.cxx Examining data/mpd-0.22.3/src/command/PlayerCommands.cxx Examining data/mpd-0.22.3/src/command/PlaylistCommands.cxx Examining data/mpd-0.22.3/src/command/QueueCommands.cxx Examining data/mpd-0.22.3/src/command/StickerCommands.cxx Examining data/mpd-0.22.3/src/command/StorageCommands.cxx Examining data/mpd-0.22.3/src/command/TagCommands.cxx Examining data/mpd-0.22.3/src/config/Block.cxx Examining data/mpd-0.22.3/src/config/Check.cxx Examining data/mpd-0.22.3/src/config/Data.cxx Examining data/mpd-0.22.3/src/config/Domain.cxx Examining data/mpd-0.22.3/src/config/File.cxx Examining data/mpd-0.22.3/src/config/Migrate.cxx Examining data/mpd-0.22.3/src/config/Net.cxx Examining data/mpd-0.22.3/src/config/Param.cxx Examining data/mpd-0.22.3/src/config/Parser.cxx Examining data/mpd-0.22.3/src/config/Path.cxx Examining data/mpd-0.22.3/src/config/Templates.cxx Examining data/mpd-0.22.3/src/db/Configured.cxx Examining data/mpd-0.22.3/src/db/Count.cxx Examining data/mpd-0.22.3/src/db/DatabaseGlue.cxx Examining data/mpd-0.22.3/src/db/DatabaseLock.cxx Examining data/mpd-0.22.3/src/db/DatabasePlaylist.cxx Examining data/mpd-0.22.3/src/db/DatabasePrint.cxx Examining data/mpd-0.22.3/src/db/DatabaseQueue.cxx Examining data/mpd-0.22.3/src/db/DatabaseSong.cxx Examining data/mpd-0.22.3/src/db/Helpers.cxx Examining data/mpd-0.22.3/src/db/PlaylistVector.cxx Examining data/mpd-0.22.3/src/db/Registry.cxx Examining data/mpd-0.22.3/src/db/Selection.cxx Examining data/mpd-0.22.3/src/db/UniqueTags.cxx Examining data/mpd-0.22.3/src/db/VHelper.cxx Examining data/mpd-0.22.3/src/db/plugins/ProxyDatabasePlugin.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/DatabaseSave.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/Directory.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/DirectorySave.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/Mount.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/SimpleDatabasePlugin.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/Song.cxx Examining data/mpd-0.22.3/src/db/plugins/simple/SongSort.cxx Examining data/mpd-0.22.3/src/db/plugins/upnp/ContentDirectoryService.cxx Examining data/mpd-0.22.3/src/db/plugins/upnp/Directory.cxx Examining data/mpd-0.22.3/src/db/plugins/upnp/Object.cxx Examining data/mpd-0.22.3/src/db/plugins/upnp/Tags.cxx Examining data/mpd-0.22.3/src/db/plugins/upnp/UpnpDatabasePlugin.cxx Examining data/mpd-0.22.3/src/db/update/Archive.cxx Examining data/mpd-0.22.3/src/db/update/Config.cxx Examining data/mpd-0.22.3/src/db/update/Container.cxx Examining data/mpd-0.22.3/src/db/update/Editor.cxx Examining data/mpd-0.22.3/src/db/update/ExcludeList.cxx Examining data/mpd-0.22.3/src/db/update/InotifyDomain.cxx Examining data/mpd-0.22.3/src/db/update/InotifyQueue.cxx Examining data/mpd-0.22.3/src/db/update/InotifySource.cxx Examining data/mpd-0.22.3/src/db/update/InotifyUpdate.cxx Examining data/mpd-0.22.3/src/db/update/Playlist.cxx Examining data/mpd-0.22.3/src/db/update/Queue.cxx Examining data/mpd-0.22.3/src/db/update/Remove.cxx Examining data/mpd-0.22.3/src/db/update/Service.cxx Examining data/mpd-0.22.3/src/db/update/SpecialDirectory.cxx Examining data/mpd-0.22.3/src/db/update/UpdateDomain.cxx Examining data/mpd-0.22.3/src/db/update/UpdateIO.cxx Examining data/mpd-0.22.3/src/db/update/UpdateSong.cxx Examining data/mpd-0.22.3/src/db/update/VirtualDirectory.cxx Examining data/mpd-0.22.3/src/db/update/Walk.cxx Examining data/mpd-0.22.3/src/decoder/Bridge.cxx Examining data/mpd-0.22.3/src/decoder/Control.cxx Examining data/mpd-0.22.3/src/decoder/DecoderAPI.cxx Examining data/mpd-0.22.3/src/decoder/DecoderBuffer.cxx Examining data/mpd-0.22.3/src/decoder/DecoderList.cxx Examining data/mpd-0.22.3/src/decoder/DecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/DecoderPrint.cxx Examining data/mpd-0.22.3/src/decoder/Domain.cxx Examining data/mpd-0.22.3/src/decoder/Reader.cxx Examining data/mpd-0.22.3/src/decoder/Thread.cxx Examining data/mpd-0.22.3/src/decoder/plugins/AdPlugDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/AdPlugDecoderPlugin.h Examining data/mpd-0.22.3/src/decoder/plugins/AudiofileDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/DsdLib.cxx Examining data/mpd-0.22.3/src/decoder/plugins/DsdiffDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/DsfDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FaadDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FfmpegDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FfmpegIo.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FfmpegMetaData.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FlacCommon.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FlacDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FlacDecoderPlugin.h Examining data/mpd-0.22.3/src/decoder/plugins/FlacDomain.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FlacInput.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FlacPcm.cxx Examining data/mpd-0.22.3/src/decoder/plugins/FluidsynthDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/GmeDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/HybridDsdDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/MadDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/MikmodDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/ModplugDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/MpcdecDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/Mpg123DecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/OggCodec.cxx Examining data/mpd-0.22.3/src/decoder/plugins/OggDecoder.cxx Examining data/mpd-0.22.3/src/decoder/plugins/OpusDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/OpusDecoderPlugin.h Examining data/mpd-0.22.3/src/decoder/plugins/OpusDomain.cxx Examining data/mpd-0.22.3/src/decoder/plugins/OpusHead.cxx Examining data/mpd-0.22.3/src/decoder/plugins/OpusTags.cxx Examining data/mpd-0.22.3/src/decoder/plugins/PcmDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/SidplayDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/SndfileDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/VorbisDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/VorbisDecoderPlugin.h Examining data/mpd-0.22.3/src/decoder/plugins/VorbisDomain.cxx Examining data/mpd-0.22.3/src/decoder/plugins/WavpackDecoderPlugin.cxx Examining data/mpd-0.22.3/src/decoder/plugins/WildmidiDecoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/Configured.cxx Examining data/mpd-0.22.3/src/encoder/EncoderList.cxx Examining data/mpd-0.22.3/src/encoder/ToOutputStream.cxx Examining data/mpd-0.22.3/src/encoder/plugins/FlacEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/LameEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/NullEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/ShineEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/TwolameEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/VorbisEncoderPlugin.cxx Examining data/mpd-0.22.3/src/encoder/plugins/WaveEncoderPlugin.cxx Examining data/mpd-0.22.3/src/event/BufferedSocket.cxx Examining data/mpd-0.22.3/src/event/Call.cxx Examining data/mpd-0.22.3/src/event/DeferEvent.cxx Examining data/mpd-0.22.3/src/event/FullyBufferedSocket.cxx Examining data/mpd-0.22.3/src/event/IdleMonitor.cxx Examining data/mpd-0.22.3/src/event/Loop.cxx Examining data/mpd-0.22.3/src/event/MaskMonitor.cxx Examining data/mpd-0.22.3/src/event/MultiSocketMonitor.cxx Examining data/mpd-0.22.3/src/event/PollGroupPoll.cxx Examining data/mpd-0.22.3/src/event/PollGroupWinSelect.cxx Examining data/mpd-0.22.3/src/event/ServerSocket.cxx Examining data/mpd-0.22.3/src/event/SignalMonitor.cxx Examining data/mpd-0.22.3/src/event/SocketMonitor.cxx Examining data/mpd-0.22.3/src/event/Thread.cxx Examining data/mpd-0.22.3/src/event/TimerEvent.cxx Examining data/mpd-0.22.3/src/event/UringManager.cxx Examining data/mpd-0.22.3/src/filter/Factory.cxx Examining data/mpd-0.22.3/src/filter/Filter.cxx Examining data/mpd-0.22.3/src/filter/LoadChain.cxx Examining data/mpd-0.22.3/src/filter/LoadOne.cxx Examining data/mpd-0.22.3/src/filter/Observer.cxx Examining data/mpd-0.22.3/src/filter/Registry.cxx Examining data/mpd-0.22.3/src/filter/plugins/AutoConvertFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/ChainFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/ConvertFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/FfmpegFilter.cxx Examining data/mpd-0.22.3/src/filter/plugins/FfmpegFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/HdcdFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/NormalizeFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/NullFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/ReplayGainFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/RouteFilterPlugin.cxx Examining data/mpd-0.22.3/src/filter/plugins/TwoFilters.cxx Examining data/mpd-0.22.3/src/filter/plugins/VolumeFilterPlugin.cxx Examining data/mpd-0.22.3/src/fs/AllocatedPath.cxx Examining data/mpd-0.22.3/src/fs/Charset.cxx Examining data/mpd-0.22.3/src/fs/CheckFile.cxx Examining data/mpd-0.22.3/src/fs/Config.cxx Examining data/mpd-0.22.3/src/fs/DirectoryReader.cxx Examining data/mpd-0.22.3/src/fs/Domain.cxx Examining data/mpd-0.22.3/src/fs/FileSystem.cxx Examining data/mpd-0.22.3/src/fs/List.cxx Examining data/mpd-0.22.3/src/fs/LookupFile.cxx Examining data/mpd-0.22.3/src/fs/NarrowPath.cxx Examining data/mpd-0.22.3/src/fs/Path.cxx Examining data/mpd-0.22.3/src/fs/Path2.cxx Examining data/mpd-0.22.3/src/fs/StandardDirectory.cxx Examining data/mpd-0.22.3/src/fs/Traits.cxx Examining data/mpd-0.22.3/src/fs/io/AutoGunzipReader.cxx Examining data/mpd-0.22.3/src/fs/io/BufferedOutputStream.cxx Examining data/mpd-0.22.3/src/fs/io/BufferedReader.cxx Examining data/mpd-0.22.3/src/fs/io/FileOutputStream.cxx Examining data/mpd-0.22.3/src/fs/io/FileReader.cxx Examining data/mpd-0.22.3/src/fs/io/GunzipReader.cxx Examining data/mpd-0.22.3/src/fs/io/GzipOutputStream.cxx Examining data/mpd-0.22.3/src/fs/io/PeekReader.cxx Examining data/mpd-0.22.3/src/fs/io/TextFile.cxx Examining data/mpd-0.22.3/src/input/AsyncInputStream.cxx Examining data/mpd-0.22.3/src/input/BufferedInputStream.cxx Examining data/mpd-0.22.3/src/input/BufferingInputStream.cxx Examining data/mpd-0.22.3/src/input/Error.cxx Examining data/mpd-0.22.3/src/input/IcyInputStream.cxx Examining data/mpd-0.22.3/src/input/Init.cxx Examining data/mpd-0.22.3/src/input/InputPlugin.cxx Examining data/mpd-0.22.3/src/input/InputStream.cxx Examining data/mpd-0.22.3/src/input/LocalOpen.cxx Examining data/mpd-0.22.3/src/input/MaybeBufferedInputStream.cxx Examining data/mpd-0.22.3/src/input/Open.cxx Examining data/mpd-0.22.3/src/input/ProxyInputStream.cxx Examining data/mpd-0.22.3/src/input/Reader.cxx Examining data/mpd-0.22.3/src/input/Registry.cxx Examining data/mpd-0.22.3/src/input/RewindInputStream.cxx Examining data/mpd-0.22.3/src/input/ScanTags.cxx Examining data/mpd-0.22.3/src/input/TextInputStream.cxx Examining data/mpd-0.22.3/src/input/ThreadInputStream.cxx Examining data/mpd-0.22.3/src/input/cache/Config.cxx Examining data/mpd-0.22.3/src/input/cache/Item.cxx Examining data/mpd-0.22.3/src/input/cache/Manager.cxx Examining data/mpd-0.22.3/src/input/cache/Stream.cxx Examining data/mpd-0.22.3/src/input/plugins/AlsaInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/ArchiveInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/CdioParanoiaInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/CurlInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/FfmpegInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/FileInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/MmsInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/NfsInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/QobuzClient.cxx Examining data/mpd-0.22.3/src/input/plugins/QobuzErrorParser.cxx Examining data/mpd-0.22.3/src/input/plugins/QobuzInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/QobuzLoginRequest.cxx Examining data/mpd-0.22.3/src/input/plugins/QobuzTagScanner.cxx Examining data/mpd-0.22.3/src/input/plugins/QobuzTrackRequest.cxx Examining data/mpd-0.22.3/src/input/plugins/SmbclientInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/TidalErrorParser.cxx Examining data/mpd-0.22.3/src/input/plugins/TidalInputPlugin.cxx Examining data/mpd-0.22.3/src/input/plugins/TidalLoginRequest.cxx Examining data/mpd-0.22.3/src/input/plugins/TidalSessionManager.cxx Examining data/mpd-0.22.3/src/input/plugins/TidalTagScanner.cxx Examining data/mpd-0.22.3/src/input/plugins/TidalTrackRequest.cxx Examining data/mpd-0.22.3/src/input/plugins/UringInputPlugin.cxx Examining data/mpd-0.22.3/src/io/FileDescriptor.cxx Examining data/mpd-0.22.3/src/io/Open.cxx Examining data/mpd-0.22.3/src/io/uring/Operation.cxx Examining data/mpd-0.22.3/src/io/uring/Queue.cxx Examining data/mpd-0.22.3/src/io/uring/ReadOperation.cxx Examining data/mpd-0.22.3/src/io/uring/Ring.cxx Examining data/mpd-0.22.3/src/java/Exception.cxx Examining data/mpd-0.22.3/src/java/File.cxx Examining data/mpd-0.22.3/src/java/Global.cxx Examining data/mpd-0.22.3/src/java/Object.cxx Examining data/mpd-0.22.3/src/java/String.cxx Examining data/mpd-0.22.3/src/lib/alsa/AllowedFormat.cxx Examining data/mpd-0.22.3/src/lib/alsa/HwSetup.cxx Examining data/mpd-0.22.3/src/lib/alsa/NonBlock.cxx Examining data/mpd-0.22.3/src/lib/alsa/Version.cxx Examining data/mpd-0.22.3/src/lib/chromaprint/DecoderClient.cxx Examining data/mpd-0.22.3/src/lib/crypto/Base64.cxx Examining data/mpd-0.22.3/src/lib/crypto/MD5.cxx Examining data/mpd-0.22.3/src/lib/curl/Delegate.cxx Examining data/mpd-0.22.3/src/lib/curl/Escape.cxx Examining data/mpd-0.22.3/src/lib/curl/Form.cxx Examining data/mpd-0.22.3/src/lib/curl/Global.cxx Examining data/mpd-0.22.3/src/lib/curl/Init.cxx Examining data/mpd-0.22.3/src/lib/curl/Request.cxx Examining data/mpd-0.22.3/src/lib/curl/Version.cxx Examining data/mpd-0.22.3/src/lib/dbus/Connection.cxx Examining data/mpd-0.22.3/src/lib/dbus/Error.cxx Examining data/mpd-0.22.3/src/lib/dbus/Glue.cxx Examining data/mpd-0.22.3/src/lib/dbus/Message.cxx Examining data/mpd-0.22.3/src/lib/dbus/ScopeMatch.cxx Examining data/mpd-0.22.3/src/lib/dbus/UDisks2.cxx Examining data/mpd-0.22.3/src/lib/dbus/Watch.cxx Examining data/mpd-0.22.3/src/lib/expat/ExpatParser.cxx Examining data/mpd-0.22.3/src/lib/expat/StreamExpatParser.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/Domain.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/Error.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/Filter.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/Init.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/Interleave.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/LogCallback.cxx Examining data/mpd-0.22.3/src/lib/ffmpeg/LogError.cxx Examining data/mpd-0.22.3/src/lib/gcrypt/MD5.cxx Examining data/mpd-0.22.3/src/lib/icu/CaseFold.cxx Examining data/mpd-0.22.3/src/lib/icu/Collate.cxx Examining data/mpd-0.22.3/src/lib/icu/Compare.cxx Examining data/mpd-0.22.3/src/lib/icu/Converter.cxx Examining data/mpd-0.22.3/src/lib/icu/Init.cxx Examining data/mpd-0.22.3/src/lib/icu/Util.cxx Examining data/mpd-0.22.3/src/lib/icu/Win32.cxx Examining data/mpd-0.22.3/src/lib/nfs/Base.cxx Examining data/mpd-0.22.3/src/lib/nfs/Blocking.cxx Examining data/mpd-0.22.3/src/lib/nfs/Connection.cxx Examining data/mpd-0.22.3/src/lib/nfs/Error.cxx Examining data/mpd-0.22.3/src/lib/nfs/FileReader.cxx Examining data/mpd-0.22.3/src/lib/nfs/Glue.cxx Examining data/mpd-0.22.3/src/lib/nfs/Manager.cxx Examining data/mpd-0.22.3/src/lib/pcre/UniqueRegex.cxx Examining data/mpd-0.22.3/src/lib/pulse/Domain.cxx Examining data/mpd-0.22.3/src/lib/pulse/Error.cxx Examining data/mpd-0.22.3/src/lib/pulse/LogError.cxx Examining data/mpd-0.22.3/src/lib/smbclient/Context.cxx Examining data/mpd-0.22.3/src/lib/smbclient/Domain.cxx Examining data/mpd-0.22.3/src/lib/smbclient/Init.cxx Examining data/mpd-0.22.3/src/lib/sqlite/Database.cxx Examining data/mpd-0.22.3/src/lib/sqlite/Error.cxx Examining data/mpd-0.22.3/src/lib/systemd/Watchdog.cxx Examining data/mpd-0.22.3/src/lib/upnp/ClientInit.cxx Examining data/mpd-0.22.3/src/lib/upnp/ContentDirectoryService.cxx Examining data/mpd-0.22.3/src/lib/upnp/Device.cxx Examining data/mpd-0.22.3/src/lib/upnp/Discovery.cxx Examining data/mpd-0.22.3/src/lib/upnp/Init.cxx Examining data/mpd-0.22.3/src/lib/upnp/Util.cxx Examining data/mpd-0.22.3/src/lib/upnp/ixmlwrap.cxx Examining data/mpd-0.22.3/src/lib/xiph/FlacIOHandle.cxx Examining data/mpd-0.22.3/src/lib/xiph/FlacMetadataChain.cxx Examining data/mpd-0.22.3/src/lib/xiph/FlacStreamMetadata.cxx Examining data/mpd-0.22.3/src/lib/xiph/OggFind.cxx Examining data/mpd-0.22.3/src/lib/xiph/OggPacket.cxx Examining data/mpd-0.22.3/src/lib/xiph/OggSerial.cxx Examining data/mpd-0.22.3/src/lib/xiph/OggSyncState.cxx Examining data/mpd-0.22.3/src/lib/xiph/OggVisitor.cxx Examining data/mpd-0.22.3/src/lib/xiph/ScanVorbisComment.cxx Examining data/mpd-0.22.3/src/lib/xiph/VorbisComments.cxx Examining data/mpd-0.22.3/src/lib/xiph/VorbisPicture.cxx Examining data/mpd-0.22.3/src/lib/xiph/XiphTags.cxx Examining data/mpd-0.22.3/src/lib/yajl/Handle.cxx Examining data/mpd-0.22.3/src/lib/yajl/ParseInputStream.cxx Examining data/mpd-0.22.3/src/lib/yajl/ResponseParser.cxx Examining data/mpd-0.22.3/src/lib/zlib/Error.cxx Examining data/mpd-0.22.3/src/ls.cxx Examining data/mpd-0.22.3/src/mixer/MixerAll.cxx Examining data/mpd-0.22.3/src/mixer/MixerControl.cxx Examining data/mpd-0.22.3/src/mixer/MixerType.cxx Examining data/mpd-0.22.3/src/mixer/Volume.cxx Examining data/mpd-0.22.3/src/mixer/plugins/AlsaMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/AndroidMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/HaikuMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/NullMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/OSXMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/OssMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/PulseMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/SndioMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/SoftwareMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/WasapiMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/WinmmMixerPlugin.cxx Examining data/mpd-0.22.3/src/mixer/plugins/volume_mapping.c Examining data/mpd-0.22.3/src/mixer/plugins/volume_mapping.h Examining data/mpd-0.22.3/src/neighbor/Glue.cxx Examining data/mpd-0.22.3/src/neighbor/Registry.cxx Examining data/mpd-0.22.3/src/neighbor/plugins/SmbclientNeighborPlugin.cxx Examining data/mpd-0.22.3/src/neighbor/plugins/UdisksNeighborPlugin.cxx Examining data/mpd-0.22.3/src/neighbor/plugins/UpnpNeighborPlugin.cxx Examining data/mpd-0.22.3/src/net/AddressInfo.cxx Examining data/mpd-0.22.3/src/net/AllocatedSocketAddress.cxx Examining data/mpd-0.22.3/src/net/HostParser.cxx Examining data/mpd-0.22.3/src/net/IPv4Address.cxx Examining data/mpd-0.22.3/src/net/IPv6Address.cxx Examining data/mpd-0.22.3/src/net/Resolver.cxx Examining data/mpd-0.22.3/src/net/SocketAddress.cxx Examining data/mpd-0.22.3/src/net/SocketDescriptor.cxx Examining data/mpd-0.22.3/src/net/SocketError.cxx Examining data/mpd-0.22.3/src/net/SocketUtil.cxx Examining data/mpd-0.22.3/src/net/StaticSocketAddress.cxx Examining data/mpd-0.22.3/src/net/ToString.cxx Examining data/mpd-0.22.3/src/open.h Examining data/mpd-0.22.3/src/output/Control.cxx Examining data/mpd-0.22.3/src/output/Defaults.cxx Examining data/mpd-0.22.3/src/output/Domain.cxx Examining data/mpd-0.22.3/src/output/Filtered.cxx Examining data/mpd-0.22.3/src/output/Finish.cxx Examining data/mpd-0.22.3/src/output/Init.cxx Examining data/mpd-0.22.3/src/output/Interface.cxx Examining data/mpd-0.22.3/src/output/MultipleOutputs.cxx Examining data/mpd-0.22.3/src/output/OutputCommand.cxx Examining data/mpd-0.22.3/src/output/OutputPlugin.cxx Examining data/mpd-0.22.3/src/output/Print.cxx Examining data/mpd-0.22.3/src/output/Registry.cxx Examining data/mpd-0.22.3/src/output/SharedPipeConsumer.cxx Examining data/mpd-0.22.3/src/output/Source.cxx Examining data/mpd-0.22.3/src/output/State.cxx Examining data/mpd-0.22.3/src/output/Thread.cxx Examining data/mpd-0.22.3/src/output/Timer.cxx Examining data/mpd-0.22.3/src/output/plugins/AlsaOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/AoOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/FifoOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/HaikuOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/JackOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/NullOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/OSXOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/OpenALOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/OssOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/PipeOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/PulseOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/RecorderOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/ShoutOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/SndioOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/SolarisOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/WasapiOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/WinmmOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/httpd/HttpdClient.cxx Examining data/mpd-0.22.3/src/output/plugins/httpd/HttpdOutputPlugin.cxx Examining data/mpd-0.22.3/src/output/plugins/httpd/IcyMetaDataServer.cxx Examining data/mpd-0.22.3/src/output/plugins/httpd/Page.cxx Examining data/mpd-0.22.3/src/output/plugins/sles/SlesOutputPlugin.cxx Examining data/mpd-0.22.3/src/pcm/AudioFormat.cxx Examining data/mpd-0.22.3/src/pcm/AudioParser.cxx Examining data/mpd-0.22.3/src/pcm/Buffer.cxx Examining data/mpd-0.22.3/src/pcm/ChannelsConverter.cxx Examining data/mpd-0.22.3/src/pcm/CheckAudioFormat.cxx Examining data/mpd-0.22.3/src/pcm/ConfiguredResampler.cxx Examining data/mpd-0.22.3/src/pcm/Convert.cxx Examining data/mpd-0.22.3/src/pcm/Dither.cxx Examining data/mpd-0.22.3/src/pcm/Dop.cxx Examining data/mpd-0.22.3/src/pcm/Dsd16.cxx Examining data/mpd-0.22.3/src/pcm/Dsd2Pcm.cxx Examining data/mpd-0.22.3/src/pcm/Dsd32.cxx Examining data/mpd-0.22.3/src/pcm/Export.cxx Examining data/mpd-0.22.3/src/pcm/FallbackResampler.cxx Examining data/mpd-0.22.3/src/pcm/FormatConverter.cxx Examining data/mpd-0.22.3/src/pcm/GlueResampler.cxx Examining data/mpd-0.22.3/src/pcm/Interleave.cxx Examining data/mpd-0.22.3/src/pcm/LibsamplerateResampler.cxx Examining data/mpd-0.22.3/src/pcm/Mix.cxx Examining data/mpd-0.22.3/src/pcm/Order.cxx Examining data/mpd-0.22.3/src/pcm/Pack.cxx Examining data/mpd-0.22.3/src/pcm/PcmChannels.cxx Examining data/mpd-0.22.3/src/pcm/PcmDsd.cxx Examining data/mpd-0.22.3/src/pcm/PcmFormat.cxx Examining data/mpd-0.22.3/src/pcm/SampleFormat.cxx Examining data/mpd-0.22.3/src/pcm/Silence.cxx Examining data/mpd-0.22.3/src/pcm/SoxrResampler.cxx Examining data/mpd-0.22.3/src/pcm/Volume.cxx Examining data/mpd-0.22.3/src/player/Control.cxx Examining data/mpd-0.22.3/src/player/CrossFade.cxx Examining data/mpd-0.22.3/src/player/Thread.cxx Examining data/mpd-0.22.3/src/playlist/MemorySongEnumerator.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistAny.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistMapper.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistQueue.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistRegistry.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistSong.cxx Examining data/mpd-0.22.3/src/playlist/PlaylistStream.cxx Examining data/mpd-0.22.3/src/playlist/Print.cxx Examining data/mpd-0.22.3/src/playlist/cue/CueParser.cxx Examining data/mpd-0.22.3/src/playlist/plugins/AsxPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/CuePlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/FlacPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/M3uPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/PlsPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/RssPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/SoundCloudPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/playlist/plugins/XspfPlaylistPlugin.cxx Examining data/mpd-0.22.3/src/protocol/ArgParser.cxx Examining data/mpd-0.22.3/src/protocol/Result.cxx Examining data/mpd-0.22.3/src/queue/Playlist.cxx Examining data/mpd-0.22.3/src/queue/PlaylistControl.cxx Examining data/mpd-0.22.3/src/queue/PlaylistEdit.cxx Examining data/mpd-0.22.3/src/queue/PlaylistState.cxx Examining data/mpd-0.22.3/src/queue/PlaylistTag.cxx Examining data/mpd-0.22.3/src/queue/PlaylistUpdate.cxx Examining data/mpd-0.22.3/src/queue/Queue.cxx Examining data/mpd-0.22.3/src/queue/QueuePrint.cxx Examining data/mpd-0.22.3/src/queue/QueueSave.cxx Examining data/mpd-0.22.3/src/song/AndSongFilter.cxx Examining data/mpd-0.22.3/src/song/AudioFormatSongFilter.cxx Examining data/mpd-0.22.3/src/song/BaseSongFilter.cxx Examining data/mpd-0.22.3/src/song/DetachedSong.cxx Examining data/mpd-0.22.3/src/song/Escape.cxx Examining data/mpd-0.22.3/src/song/Filter.cxx Examining data/mpd-0.22.3/src/song/LightSong.cxx Examining data/mpd-0.22.3/src/song/ModifiedSinceSongFilter.cxx Examining data/mpd-0.22.3/src/song/OptimizeFilter.cxx Examining data/mpd-0.22.3/src/song/StringFilter.cxx Examining data/mpd-0.22.3/src/song/TagSongFilter.cxx Examining data/mpd-0.22.3/src/song/UriSongFilter.cxx Examining data/mpd-0.22.3/src/sticker/Database.cxx Examining data/mpd-0.22.3/src/sticker/Print.cxx Examining data/mpd-0.22.3/src/sticker/SongSticker.cxx Examining data/mpd-0.22.3/src/storage/CompositeStorage.cxx Examining data/mpd-0.22.3/src/storage/Configured.cxx Examining data/mpd-0.22.3/src/storage/MemoryDirectoryReader.cxx Examining data/mpd-0.22.3/src/storage/Registry.cxx Examining data/mpd-0.22.3/src/storage/StorageInterface.cxx Examining data/mpd-0.22.3/src/storage/StorageState.cxx Examining data/mpd-0.22.3/src/storage/plugins/CurlStorage.cxx Examining data/mpd-0.22.3/src/storage/plugins/LocalStorage.cxx Examining data/mpd-0.22.3/src/storage/plugins/NfsStorage.cxx Examining data/mpd-0.22.3/src/storage/plugins/SmbclientStorage.cxx Examining data/mpd-0.22.3/src/storage/plugins/UdisksStorage.cxx Examining data/mpd-0.22.3/src/system/Clock.cxx Examining data/mpd-0.22.3/src/system/EpollFD.cxx Examining data/mpd-0.22.3/src/system/EventFD.cxx Examining data/mpd-0.22.3/src/system/EventPipe.cxx Examining data/mpd-0.22.3/src/system/FatalError.cxx Examining data/mpd-0.22.3/src/system/KernelVersion.cxx Examining data/mpd-0.22.3/src/system/SignalFD.cxx Examining data/mpd-0.22.3/src/tag/Aiff.cxx Examining data/mpd-0.22.3/src/tag/ApeLoader.cxx Examining data/mpd-0.22.3/src/tag/ApeReplayGain.cxx Examining data/mpd-0.22.3/src/tag/ApeTag.cxx Examining data/mpd-0.22.3/src/tag/Builder.cxx Examining data/mpd-0.22.3/src/tag/Config.cxx Examining data/mpd-0.22.3/src/tag/FixString.cxx Examining data/mpd-0.22.3/src/tag/Format.cxx Examining data/mpd-0.22.3/src/tag/GenParseName.cxx Examining data/mpd-0.22.3/src/tag/Generic.cxx Examining data/mpd-0.22.3/src/tag/Handler.cxx Examining data/mpd-0.22.3/src/tag/Id3Load.cxx Examining data/mpd-0.22.3/src/tag/Id3MusicBrainz.cxx Examining data/mpd-0.22.3/src/tag/Id3Picture.cxx Examining data/mpd-0.22.3/src/tag/Id3ReplayGain.cxx Examining data/mpd-0.22.3/src/tag/Id3Scan.cxx Examining data/mpd-0.22.3/src/tag/MixRamp.cxx Examining data/mpd-0.22.3/src/tag/Names.c Examining data/mpd-0.22.3/src/tag/ParseName.cxx Examining data/mpd-0.22.3/src/tag/Pool.cxx Examining data/mpd-0.22.3/src/tag/ReplayGain.cxx Examining data/mpd-0.22.3/src/tag/Riff.cxx Examining data/mpd-0.22.3/src/tag/Rva2.cxx Examining data/mpd-0.22.3/src/tag/Settings.cxx Examining data/mpd-0.22.3/src/tag/Table.cxx Examining data/mpd-0.22.3/src/tag/Tag.cxx Examining data/mpd-0.22.3/src/tag/Type.h Examining data/mpd-0.22.3/src/tag/VorbisComment.cxx Examining data/mpd-0.22.3/src/thread/Thread.cxx Examining data/mpd-0.22.3/src/thread/Util.cxx Examining data/mpd-0.22.3/src/time/Convert.cxx Examining data/mpd-0.22.3/src/time/ISO8601.cxx Examining data/mpd-0.22.3/src/time/Parser.cxx Examining data/mpd-0.22.3/src/unix/Daemon.cxx Examining data/mpd-0.22.3/src/unix/SignalHandlers.cxx Examining data/mpd-0.22.3/src/util/Alloc.cxx Examining data/mpd-0.22.3/src/util/BitReverse.cxx Examining data/mpd-0.22.3/src/util/ByteReverse.cxx Examining data/mpd-0.22.3/src/util/Compiler.h Examining data/mpd-0.22.3/src/util/DivideString.cxx Examining data/mpd-0.22.3/src/util/Exception.cxx Examining data/mpd-0.22.3/src/util/FormatString.cxx Examining data/mpd-0.22.3/src/util/HexFormat.cxx Examining data/mpd-0.22.3/src/util/HugeAllocator.cxx Examining data/mpd-0.22.3/src/util/LazyRandomEngine.cxx Examining data/mpd-0.22.3/src/util/MimeType.cxx Examining data/mpd-0.22.3/src/util/NumberParser.cxx Examining data/mpd-0.22.3/src/util/OptionParser.cxx Examining data/mpd-0.22.3/src/util/PeakBuffer.cxx Examining data/mpd-0.22.3/src/util/PrintException.cxx Examining data/mpd-0.22.3/src/util/SparseBuffer.cxx Examining data/mpd-0.22.3/src/util/SplitString.cxx Examining data/mpd-0.22.3/src/util/StringCompare.cxx Examining data/mpd-0.22.3/src/util/StringStrip.cxx Examining data/mpd-0.22.3/src/util/StringUtil.cxx Examining data/mpd-0.22.3/src/util/StringView.cxx Examining data/mpd-0.22.3/src/util/Tokenizer.cxx Examining data/mpd-0.22.3/src/util/TruncateString.cxx Examining data/mpd-0.22.3/src/util/UTF8.cxx Examining data/mpd-0.22.3/src/util/UriExtract.cxx Examining data/mpd-0.22.3/src/util/UriQueryParser.cxx Examining data/mpd-0.22.3/src/util/UriRelative.cxx Examining data/mpd-0.22.3/src/util/UriUtil.cxx Examining data/mpd-0.22.3/src/util/WStringCompare.cxx Examining data/mpd-0.22.3/src/util/format.c Examining data/mpd-0.22.3/src/util/format.h Examining data/mpd-0.22.3/src/win32/Win32Main.cxx Examining data/mpd-0.22.3/src/zeroconf/AvahiPoll.cxx Examining data/mpd-0.22.3/src/zeroconf/ZeroconfAvahi.cxx Examining data/mpd-0.22.3/src/zeroconf/ZeroconfBonjour.cxx Examining data/mpd-0.22.3/src/zeroconf/ZeroconfGlue.cxx Examining data/mpd-0.22.3/test/ContainerScan.cxx Examining data/mpd-0.22.3/test/DumpDatabase.cxx Examining data/mpd-0.22.3/test/DumpDecoderClient.cxx Examining data/mpd-0.22.3/test/ParseSongFilter.cxx Examining data/mpd-0.22.3/test/ReadApeTags.cxx Examining data/mpd-0.22.3/test/RunChromaprint.cxx Examining data/mpd-0.22.3/test/RunCurl.cxx Examining data/mpd-0.22.3/test/ShutdownHandler.cxx Examining data/mpd-0.22.3/test/TestAudioFormat.cxx Examining data/mpd-0.22.3/test/TestCircularBuffer.cxx Examining data/mpd-0.22.3/test/TestDivideString.cxx Examining data/mpd-0.22.3/test/TestFs.cxx Examining data/mpd-0.22.3/test/TestIcu.cxx Examining data/mpd-0.22.3/test/TestLookupFile.cxx Examining data/mpd-0.22.3/test/TestMimeType.cxx Examining data/mpd-0.22.3/test/TestRewindInputStream.cxx Examining data/mpd-0.22.3/test/TestSplitString.cxx Examining data/mpd-0.22.3/test/TestTagSongFilter.cxx Examining data/mpd-0.22.3/test/TestUriExtract.cxx Examining data/mpd-0.22.3/test/TestUriQueryParser.cxx Examining data/mpd-0.22.3/test/TestUriRelative.cxx Examining data/mpd-0.22.3/test/TestUriUtil.cxx Examining data/mpd-0.22.3/test/WriteFile.cxx Examining data/mpd-0.22.3/test/dump_playlist.cxx Examining data/mpd-0.22.3/test/dump_rva2.cxx Examining data/mpd-0.22.3/test/dump_text_file.cxx Examining data/mpd-0.22.3/test/fuzzer/FuzzCueParser.cxx Examining data/mpd-0.22.3/test/net/TestIPv4Address.cxx Examining data/mpd-0.22.3/test/net/TestIPv6Address.cxx Examining data/mpd-0.22.3/test/net/TestLocalSocketAddress.cxx Examining data/mpd-0.22.3/test/read_conf.cxx Examining data/mpd-0.22.3/test/read_mixer.cxx Examining data/mpd-0.22.3/test/read_tags.cxx Examining data/mpd-0.22.3/test/run_avahi.cxx Examining data/mpd-0.22.3/test/run_convert.cxx Examining data/mpd-0.22.3/test/run_decoder.cxx Examining data/mpd-0.22.3/test/run_encoder.cxx Examining data/mpd-0.22.3/test/run_filter.cxx Examining data/mpd-0.22.3/test/run_gunzip.cxx Examining data/mpd-0.22.3/test/run_gzip.cxx Examining data/mpd-0.22.3/test/run_inotify.cxx Examining data/mpd-0.22.3/test/run_input.cxx Examining data/mpd-0.22.3/test/run_neighbor_explorer.cxx Examining data/mpd-0.22.3/test/run_normalize.cxx Examining data/mpd-0.22.3/test/run_output.cxx Examining data/mpd-0.22.3/test/run_resolver.cxx Examining data/mpd-0.22.3/test/run_storage.cxx Examining data/mpd-0.22.3/test/software_volume.cxx Examining data/mpd-0.22.3/test/test_byte_reverse.cxx Examining data/mpd-0.22.3/test/test_icy_parser.cxx Examining data/mpd-0.22.3/test/test_mixramp.cxx Examining data/mpd-0.22.3/test/test_pcm_channels.cxx Examining data/mpd-0.22.3/test/test_pcm_dither.cxx Examining data/mpd-0.22.3/test/test_pcm_export.cxx Examining data/mpd-0.22.3/test/test_pcm_format.cxx Examining data/mpd-0.22.3/test/test_pcm_interleave.cxx Examining data/mpd-0.22.3/test/test_pcm_mix.cxx Examining data/mpd-0.22.3/test/test_pcm_pack.cxx Examining data/mpd-0.22.3/test/test_pcm_volume.cxx Examining data/mpd-0.22.3/test/test_protocol.cxx Examining data/mpd-0.22.3/test/test_queue_priority.cxx Examining data/mpd-0.22.3/test/test_translate_song.cxx Examining data/mpd-0.22.3/test/test_vorbis_encoder.cxx Examining data/mpd-0.22.3/test/time/TestConvert.cxx Examining data/mpd-0.22.3/test/time/TestISO8601.cxx Examining data/mpd-0.22.3/test/visit_archive.cxx FINAL RESULTS: data/mpd-0.22.3/src/Listen.cxx:97:3: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(socket_path.c_str(), 0600); data/mpd-0.22.3/src/event/ServerSocket.cxx:183:3: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(path.c_str(), 0666); data/mpd-0.22.3/src/fs/FileSystem.cxx:51:17: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. ssize_t size = readlink(path.c_str(), buffer, MPD_PATH_MAX); data/mpd-0.22.3/src/CommandLine.cxx:205:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("" data/mpd-0.22.3/src/Log.cxx:36:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(msg, sizeof(msg), fmt, ap); data/mpd-0.22.3/src/Log.cxx:112:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(msg, sizeof(msg), fmt, ap); data/mpd-0.22.3/src/Log.cxx:137:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(msg, sizeof(msg), fmt, ap); data/mpd-0.22.3/src/Log.cxx:159:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(msg, sizeof(msg), fmt, ap); data/mpd-0.22.3/src/apple/Throw.cxx:60:2: [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(msg, _msg); data/mpd-0.22.3/src/fs/io/BufferedOutputStream.cxx:91:16: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size_t size = vsnprintf(r.data, r.size, fmt, ap); data/mpd-0.22.3/src/fs/io/BufferedOutputStream.cxx:111:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size = vsnprintf(r.data, r.size, fmt, ap); data/mpd-0.22.3/src/lib/ffmpeg/Filter.cxx:59:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(abuffer_args, data/mpd-0.22.3/src/output/plugins/PipeOutputPlugin.cxx:62:7: [4] (shell) popen: 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. fh = popen(cmd.c_str(), "w"); data/mpd-0.22.3/src/output/plugins/SolarisOutputPlugin.cxx:89:3: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access("/dev/audio", W_OK) == 0; data/mpd-0.22.3/src/pcm/AudioFormat.cxx:62:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. p += sprintf(p, "%u:%s:", af.sample_rate, data/mpd-0.22.3/src/pcm/AudioFormat.cxx:65:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. p += sprintf(p, "*:%s:", sample_format); data/mpd-0.22.3/src/system/FatalError.cxx:95:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. std::vsnprintf(buffer, sizeof(buffer), fmt, ap); data/mpd-0.22.3/src/util/Compiler.h:74:47: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gcc_printf(a,b) __attribute__((format(printf, a, b))) data/mpd-0.22.3/src/util/FormatString.cxx:31:21: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. const int length = vsnprintf(nullptr, 0, fmt, tmp); data/mpd-0.22.3/src/util/FormatString.cxx:39:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buffer, length + 1, fmt, args); data/mpd-0.22.3/src/Listen.cxx:81:38: [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. Path xdg_runtime_dir = Path::FromFS(getenv("XDG_RUNTIME_DIR")); data/mpd-0.22.3/src/LogInit.cxx:158:8: [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. getenv("NOTIFY_SOCKET") != nullptr) { data/mpd-0.22.3/src/Partition.cxx:106:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. mode = playlist.queue.random data/mpd-0.22.3/src/fs/StandardDirectory.cxx:227: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. auto config_home = getenv("XDG_CONFIG_HOME"); data/mpd-0.22.3/src/fs/StandardDirectory.cxx:264:20: [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. auto cache_home = getenv("XDG_CACHE_HOME"); data/mpd-0.22.3/src/fs/StandardDirectory.cxx:316:14: [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. auto home = getenv("HOME"); data/mpd-0.22.3/src/pcm/Dither.cxx:39:25: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. const T rnd = pcm_prng(random); data/mpd-0.22.3/src/pcm/Dither.cxx:40:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. output += (rnd & mask) - (random & mask); data/mpd-0.22.3/src/queue/Playlist.cxx:140:31: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (next_order == 0 && queue.random && queue.single == SingleMode::OFF) { data/mpd-0.22.3/src/queue/Playlist.cxx:304:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (status == queue.random) data/mpd-0.22.3/src/queue/Playlist.cxx:311:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (queue.random) { data/mpd-0.22.3/src/queue/PlaylistControl.cxx:44:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (queue.random) { data/mpd-0.22.3/src/queue/PlaylistControl.cxx:61:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (!queue.random) data/mpd-0.22.3/src/queue/PlaylistControl.cxx:107:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (queue.random) { data/mpd-0.22.3/src/queue/PlaylistControl.cxx:163:32: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (next_order == 0 && queue.random) { data/mpd-0.22.3/src/queue/PlaylistControl.cxx:247:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. unsigned i = queue.random data/mpd-0.22.3/src/queue/PlaylistEdit.cxx:102:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (queue.random) { data/mpd-0.22.3/src/queue/PlaylistEdit.cxx:138:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (queue.random) { data/mpd-0.22.3/src/queue/PlaylistEdit.cxx:360:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (!queue.random) { data/mpd-0.22.3/src/queue/PlaylistEdit.cxx:403:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (queue.random) { data/mpd-0.22.3/src/queue/PlaylistState.cxx:88:62: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. os.Format(PLAYLIST_STATE_FILE_RANDOM "%i\n", playlist.queue.random); data/mpd-0.22.3/src/queue/PlaylistState.cxx:239:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. (playlist.queue.random << 27) ^ data/mpd-0.22.3/src/queue/PlaylistState.cxx:242:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. (playlist.queue.random << 31); data/mpd-0.22.3/src/queue/Queue.cxx:137:6: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random) { data/mpd-0.22.3/src/queue/Queue.cxx:177:6: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random) { data/mpd-0.22.3/src/queue/Queue.cxx:283:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. assert(queue->random); data/mpd-0.22.3/src/queue/Queue.cxx:300:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. assert(random); data/mpd-0.22.3/src/queue/Queue.cxx:315:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. assert(random); data/mpd-0.22.3/src/queue/Queue.cxx:402:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. assert(random); data/mpd-0.22.3/src/queue/Queue.cxx:418:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. assert(random); data/mpd-0.22.3/src/queue/Queue.cxx:445:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (!random || !reorder) data/mpd-0.22.3/src/IcyMetaDataParser.cxx:228:2: [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(meta_data + meta_position, p, length); data/mpd-0.22.3/src/Log.cxx:35:2: [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 msg[1024]; data/mpd-0.22.3/src/Log.cxx:109:2: [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 msg[1024]; data/mpd-0.22.3/src/Log.cxx:134:2: [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 msg[1024]; data/mpd-0.22.3/src/Log.cxx:158:2: [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 msg[1024]; data/mpd-0.22.3/src/LogBackend.cxx:95:9: [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 buf[LOG_DATE_BUF_SIZE]; data/mpd-0.22.3/src/LogInit.cxx:214:12: [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). out_fd = open("/dev/null", O_WRONLY); data/mpd-0.22.3/src/SongSave.cxx:127:64: [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). song.SetLastModified(std::chrono::system_clock::from_time_t(atoi(value))); data/mpd-0.22.3/src/apple/Throw.cxx:45:2: [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 msg[1024]; data/mpd-0.22.3/src/apple/Throw.cxx:59:2: [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 msg[1024]; data/mpd-0.22.3/src/archive/ArchivePlugin.cxx:30: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). assert(plugin->open != nullptr); data/mpd-0.22.3/src/archive/ArchivePlugin.cxx:33: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). return plugin->open(path); data/mpd-0.22.3/src/archive/plugins/Bzip2ArchivePlugin.cxx:66:2: [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 buffer[5000]; data/mpd-0.22.3/src/archive/plugins/Iso9660ArchivePlugin.cxx:110:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path + length, filename, filename_length + 1); data/mpd-0.22.3/src/archive/plugins/Iso9660ArchivePlugin.cxx:114:4: [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(path + new_length, "/", 2); data/mpd-0.22.3/src/archive/plugins/Iso9660ArchivePlugin.cxx:138:2: [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 path[4096] = "/"; data/mpd-0.22.3/src/archive/plugins/Iso9660ArchivePlugin.cxx:308:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, r.data, nbytes); data/mpd-0.22.3/src/command/AllCommands.cxx:399:2: [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 *argv[COMMAND_ARGV_MAX]; data/mpd-0.22.3/src/command/QueueCommands.cxx:53:44: [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. AddDatabaseSelection(Client &client, const char *uri, data/mpd-0.22.3/src/db/plugins/simple/DatabaseSave.cxx:86:13: [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). format = atoi(p); data/mpd-0.22.3/src/db/update/InotifyUpdate.cxx:265:31: [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. [[maybe_unused]] const char *name, [[maybe_unused]] void *ctx) data/mpd-0.22.3/src/decoder/Bridge.cxx:551:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest.data, data, nbytes); data/mpd-0.22.3/src/decoder/DecoderAPI.cxx:88:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/mpd-0.22.3/src/decoder/plugins/DsdiffDecoderPlugin.cxx:208:2: [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 string[MAX_LENGTH]; data/mpd-0.22.3/src/decoder/plugins/DsfDecoderPlugin.cxx:194:2: [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(dest, src, DSF_BLOCK_SIZE); data/mpd-0.22.3/src/decoder/plugins/FfmpegDecoderPlugin.cxx:271: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 msg[256]; data/mpd-0.22.3/src/decoder/plugins/FfmpegDecoderPlugin.cxx:327: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 msg[256]; data/mpd-0.22.3/src/decoder/plugins/FfmpegDecoderPlugin.cxx:354:2: [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 buffer[64]; data/mpd-0.22.3/src/decoder/plugins/HybridDsdDecoderPlugin.cxx:58:2: [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 type[4]; data/mpd-0.22.3/src/decoder/plugins/MadDecoderPlugin.cxx:107:11: [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 input_buffer[READ_BUFFER_SIZE]; data/mpd-0.22.3/src/decoder/plugins/MadDecoderPlugin.cxx:311:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(allocated.get(), stream.this_frame, count); data/mpd-0.22.3/src/decoder/plugins/MadDecoderPlugin.cxx:442:11: [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 toc[100]; /* 100-point seek table */ data/mpd-0.22.3/src/decoder/plugins/MadDecoderPlugin.cxx:457:2: [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 encoder[10]; /* 9 byte encoder name/version ("LAME3.97b") */ data/mpd-0.22.3/src/decoder/plugins/ModplugDecoderPlugin.cxx:138:2: [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 audio_buffer[MODPLUG_FRAME_SIZE]; data/mpd-0.22.3/src/decoder/plugins/Mpg123DecoderPlugin.cxx:236:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[8192]; data/mpd-0.22.3/src/decoder/plugins/OggCodec.cxx:35:11: [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 buf[41]; data/mpd-0.22.3/src/decoder/plugins/OpusHead.cxx:26:2: [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 signature[8]; data/mpd-0.22.3/src/decoder/plugins/SidplayDecoderPlugin.cxx:107: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). bool error = !db->open(path.c_str()); data/mpd-0.22.3/src/decoder/plugins/SidplayDecoderPlugin.cxx:109: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). bool error = db->open(path.c_str()) < 0; data/mpd-0.22.3/src/decoder/plugins/SndfileDecoderPlugin.cxx:217:2: [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 buffer[16384]; data/mpd-0.22.3/src/decoder/plugins/WavpackDecoderPlugin.cxx:57:2: [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 error[ERRORLEN]; data/mpd-0.22.3/src/decoder/plugins/WavpackDecoderPlugin.cxx:73:2: [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 error[ERRORLEN]; data/mpd-0.22.3/src/decoder/plugins/WavpackDecoderPlugin.cxx:89:2: [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 error[ERRORLEN]; data/mpd-0.22.3/src/decoder/plugins/WildmidiDecoderPlugin.cxx:90:2: [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 buffer[4096]; data/mpd-0.22.3/src/encoder/ToOutputStream.cxx:30:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[32768]; data/mpd-0.22.3/src/encoder/plugins/LameEncoderPlugin.cxx:203:2: [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(dest, begin, length); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:47:11: [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 buffer2[1275 * 3 + 7]; data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:268:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + buffer_position, data, nbytes); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:288:11: [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 header[19]; data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:289:2: [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(header, "OpusHead", 8); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:329:2: [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(comments, "OpusTags", 8); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:333:2: [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(p, version, version_length); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:337:2: [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(p, &tag_count, 4); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:346:4: [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(p, &tag_len_le, 4); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:349:18: [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. ToUpperASCII((char *)p, tag_item_names[item.type], tag_name_len + 1); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:354:4: [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(p, item.value, tag_val_len); data/mpd-0.22.3/src/encoder/plugins/TwolameEncoderPlugin.cxx:40:11: [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 output_buffer[32768]; data/mpd-0.22.3/src/encoder/plugins/TwolameEncoderPlugin.cxx:227:2: [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(dest, output_buffer + output_buffer_position, length); data/mpd-0.22.3/src/encoder/plugins/VorbisEncoderPlugin.cxx:212:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/mpd-0.22.3/src/encoder/plugins/WaveEncoderPlugin.cxx:199:4: [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(dst, src, length); data/mpd-0.22.3/src/encoder/plugins/WaveEncoderPlugin.cxx:208:4: [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(dst, src, length); data/mpd-0.22.3/src/filter/plugins/FfmpegFilter.cxx:62:2: [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(frame.GetData(0), src.data, src.size); data/mpd-0.22.3/src/filter/plugins/NormalizeFilterPlugin.cxx:73:2: [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(dest, src.data, src.size); data/mpd-0.22.3/src/filter/plugins/RouteFilterPlugin.cxx:258: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(chan_destination, data/mpd-0.22.3/src/fs/Charset.cxx:119:22: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). const auto buffer = MultiByteToWideChar(CP_UTF8, path_utf8); data/mpd-0.22.3/src/fs/FileSystem.cxx:50:2: [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 buffer[MPD_PATH_MAX]; data/mpd-0.22.3/src/fs/NarrowPath.cxx:40:2: [2] (buffer) wchar_t: 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. wchar_t buffer[MAX_PATH]; data/mpd-0.22.3/src/fs/NarrowPath.cxx:41:16: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). auto result = MultiByteToWideChar(CP_ACP, 0, s, -1, data/mpd-0.22.3/src/fs/io/BufferedOutputStream.cxx:50:2: [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(r.data, data, size); data/mpd-0.22.3/src/fs/io/BufferedReader.cxx:83:2: [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(dest.data, src.data, nbytes); data/mpd-0.22.3/src/fs/io/PeekReader.cxx:53:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, buffer + buffer_position, nbytes); data/mpd-0.22.3/src/input/AsyncInputStream.cxx:94: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 && buffer.empty()); data/mpd-0.22.3/src/input/AsyncInputStream.cxx:196:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, r.data, nbytes); data/mpd-0.22.3/src/input/AsyncInputStream.cxx:225:2: [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(w.data, data, nbytes); data/mpd-0.22.3/src/input/AsyncInputStream.cxx:234:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(w.data, (const uint8_t *)data + nbytes, remaining); data/mpd-0.22.3/src/input/BufferingInputStream.cxx:86:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, r.defined_buffer.data, nbytes); data/mpd-0.22.3/src/input/Init.cxx:52: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). assert(plugin->open != nullptr); data/mpd-0.22.3/src/input/Open.cxx:43: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). auto is = plugin->open(url, mutex); data/mpd-0.22.3/src/input/RewindInputStream.cxx:47:2: [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 buffer[64 * 1024]; data/mpd-0.22.3/src/input/RewindInputStream.cxx:91:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, buffer + head, read_size); data/mpd-0.22.3/src/input/RewindInputStream.cxx:107:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + tail, ptr, nbytes); data/mpd-0.22.3/src/input/ThreadInputStream.cxx:148:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, r.data, nbytes); data/mpd-0.22.3/src/input/plugins/CdioParanoiaInputPlugin.cxx:54:2: [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 buffer[CDIO_CD_FRAMESIZE_RAW]; data/mpd-0.22.3/src/input/plugins/CdioParanoiaInputPlugin.cxx:120:2: [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 device[64]; data/mpd-0.22.3/src/input/plugins/CdioParanoiaInputPlugin.cxx:148:2: [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(dest.device, src, device_length); data/mpd-0.22.3/src/input/plugins/CdioParanoiaInputPlugin.cxx:310:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, rbuf, CDIO_CD_FRAMESIZE_RAW); data/mpd-0.22.3/src/input/plugins/CdioParanoiaInputPlugin.cxx:326:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(wptr, ((const char *)rbuf) + diff, len); data/mpd-0.22.3/src/input/plugins/TidalErrorParser.cxx:55:2: [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 what[1024]; data/mpd-0.22.3/src/input/plugins/UringInputPlugin.cxx:162:2: [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(w.data, data.get(), nbytes); data/mpd-0.22.3/src/io/FileDescriptor.cxx:103: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). fd = ::open(pathname, flags | O_NOCTTY | O_CLOEXEC, mode); data/mpd-0.22.3/src/lib/alsa/AllowedFormat.cxx:41:2: [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 buffer[64]; data/mpd-0.22.3/src/lib/alsa/AllowedFormat.cxx:45:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, s.data, s.size); data/mpd-0.22.3/src/lib/expat/StreamExpatParser.cxx:29:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/mpd-0.22.3/src/lib/ffmpeg/Error.cxx:30:2: [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 msg[256]; data/mpd-0.22.3/src/lib/ffmpeg/Error.cxx:38:2: [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 msg[256]; data/mpd-0.22.3/src/lib/ffmpeg/Filter.cxx:58:2: [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 abuffer_args[256]; data/mpd-0.22.3/src/lib/ffmpeg/LogError.cxx:31:2: [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 msg[256]; data/mpd-0.22.3/src/lib/ffmpeg/LogError.cxx:39:2: [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 msg[256]; data/mpd-0.22.3/src/lib/icu/Collate.cxx:94:8: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). wa = MultiByteToWideChar(CP_UTF8, a); data/mpd-0.22.3/src/lib/icu/Collate.cxx:97:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). wb = MultiByteToWideChar(CP_UTF8, b); data/mpd-0.22.3/src/lib/icu/Collate.cxx:105:8: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). wb = MultiByteToWideChar(CP_UTF8, b); data/mpd-0.22.3/src/lib/icu/Compare.cxx:41:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). needle = MultiByteToWideChar(CP_UTF8, _needle); data/mpd-0.22.3/src/lib/icu/Compare.cxx:65:21: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). auto w_haystack = MultiByteToWideChar(CP_UTF8, haystack); data/mpd-0.22.3/src/lib/icu/Compare.cxx:92:21: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). auto w_haystack = MultiByteToWideChar(CP_UTF8, haystack); data/mpd-0.22.3/src/lib/icu/Converter.cxx:84:2: [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 buffer[4096]; data/mpd-0.22.3/src/lib/icu/Converter.cxx:142:2: [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 buffer[4096], *target = buffer; data/mpd-0.22.3/src/lib/icu/Win32.cxx:49:1: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(unsigned code_page, std::string_view src) data/mpd-0.22.3/src/lib/icu/Win32.cxx:51:15: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int length = MultiByteToWideChar(code_page, 0, src.data(), src.size(), data/mpd-0.22.3/src/lib/icu/Win32.cxx:57:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). length = MultiByteToWideChar(code_page, 0, src.data(), src.size(), data/mpd-0.22.3/src/lib/nfs/Base.cxx:26:8: [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 nfs_base_server[64]; data/mpd-0.22.3/src/lib/nfs/Base.cxx:27:8: [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 nfs_base_export_name[256]; data/mpd-0.22.3/src/lib/nfs/Base.cxx:43:2: [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(nfs_base_server, server, server_length + 1); data/mpd-0.22.3/src/lib/nfs/Base.cxx:44:2: [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(nfs_base_export_name, export_name, export_name_length); data/mpd-0.22.3/src/lib/nfs/Connection.cxx:120:10: [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). assert(!open); data/mpd-0.22.3/src/lib/nfs/Connection.cxx:156:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) { data/mpd-0.22.3/src/lib/smbclient/Context.cxx:30:47: [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. mpd_smbc_get_auth_data([[maybe_unused]] const char *srv, data/mpd-0.22.3/src/lib/smbclient/Context.cxx:31:33: [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. [[maybe_unused]] const char *shr, data/mpd-0.22.3/src/lib/smbclient/Context.cxx:32: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. char *wg, [[maybe_unused]] int wglen, data/mpd-0.22.3/src/lib/smbclient/Context.cxx:33: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. char *un, [[maybe_unused]] int unlen, data/mpd-0.22.3/src/lib/smbclient/Context.cxx:34: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. char *pw, [[maybe_unused]] int pwlen) data/mpd-0.22.3/src/lib/smbclient/Context.cxx:37:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wg, "WORKGROUP"); data/mpd-0.22.3/src/lib/yajl/ParseInputStream.cxx:28:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[4096]; data/mpd-0.22.3/src/mixer/MixerControl.cxx:57: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). if (mixer->open) data/mpd-0.22.3/src/mixer/MixerControl.cxx:74: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). assert(mixer->open); data/mpd-0.22.3/src/mixer/MixerControl.cxx:87: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). if (mixer->open) data/mpd-0.22.3/src/mixer/MixerControl.cxx:105: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). assert(mixer->open); data/mpd-0.22.3/src/mixer/MixerControl.cxx:124: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). if (mixer->open) { data/mpd-0.22.3/src/mixer/MixerControl.cxx:148: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). if (mixer->open) data/mpd-0.22.3/src/mixer/plugins/OssMixerPlugin.cxx:72:8: [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. const char *labels[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS; data/mpd-0.22.3/src/net/AllocatedSocketAddress.cxx:48:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(address, src.GetAddress(), size); data/mpd-0.22.3/src/net/AllocatedSocketAddress.cxx:86:2: [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(sun->sun_path, path, path_length); data/mpd-0.22.3/src/net/Resolver.cxx:80:2: [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(interface, "%u", i); data/mpd-0.22.3/src/net/Resolver.cxx:91:2: [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 buffer[256], port_string[16]; data/mpd-0.22.3/src/net/Resolver.cxx:107:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, eh.host.data, eh.host.size); data/mpd-0.22.3/src/net/SocketError.cxx:31:2: [2] (buffer) wchar_t: 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. wchar_t buffer[msg_size]; data/mpd-0.22.3/src/net/SocketError.cxx:42:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(msg, "Unknown error"); data/mpd-0.22.3/src/net/SocketError.cxx:51:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(msg, "WideCharToMultiByte() error"); data/mpd-0.22.3/src/net/StaticSocketAddress.cxx:43:2: [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(&address, other.GetAddress(), size); data/mpd-0.22.3/src/net/ToString.cxx:98:2: [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 host[NI_MAXHOST], serv[NI_MAXSERV]; data/mpd-0.22.3/src/output/Control.cxx:249:6: [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 (open && audio_format == request.audio_format) { data/mpd-0.22.3/src/output/Control.cxx:271: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). const bool open2 = open; data/mpd-0.22.3/src/output/Control.cxx:298:10: [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). assert(!open || !fail_timer.IsDefined()); data/mpd-0.22.3/src/output/Control.cxx:300:6: [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 (open) data/mpd-0.22.3/src/output/Control.cxx:327:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!open) data/mpd-0.22.3/src/output/Control.cxx:423:10: [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). assert(!open || !fail_timer.IsDefined()); data/mpd-0.22.3/src/output/Control.cxx:435:10: [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). assert(!open || !fail_timer.IsDefined()); data/mpd-0.22.3/src/output/Source.cxx:201:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, other_data.data, other_data.size); data/mpd-0.22.3/src/output/Thread.cxx:53:6: [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 (open && cf != output->filter_audio_format) data/mpd-0.22.3/src/output/Thread.cxx:60:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!open) { data/mpd-0.22.3/src/output/Thread.cxx:437:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open && allow_play && !caught_interrupted && data/mpd-0.22.3/src/output/Thread.cxx:468: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). if (!open) { data/mpd-0.22.3/src/output/Thread.cxx:482: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). if (!open) { data/mpd-0.22.3/src/output/Thread.cxx:509:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) data/mpd-0.22.3/src/output/Thread.cxx:520:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) { data/mpd-0.22.3/src/output/plugins/FifoOutputPlugin.cxx:189:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[16384]; data/mpd-0.22.3/src/output/plugins/HaikuOutputPlugin.cxx:281:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + buffer_filled, data, data/mpd-0.22.3/src/output/plugins/HaikuOutputPlugin.cxx:346:2: [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 timebuf[16]; data/mpd-0.22.3/src/output/plugins/JackOutputPlugin.cxx:517:8: [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. const char *dports[MAX_PORTS], **jports; data/mpd-0.22.3/src/output/plugins/OSXOutputPlugin.cxx:544:2: [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 actual_name[256]; data/mpd-0.22.3/src/output/plugins/ShoutOutputPlugin.cxx:346:9: [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 silence[1020]; data/mpd-0.22.3/src/output/plugins/ShoutOutputPlugin.cxx:380:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char song[1024]; data/mpd-0.22.3/src/output/plugins/WinmmOutputPlugin.cxx:87:2: [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 buffer[256]; data/mpd-0.22.3/src/output/plugins/WinmmOutputPlugin.cxx:220:2: [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(dest, data, size); data/mpd-0.22.3/src/output/plugins/httpd/HttpdClient.cxx:138:2: [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 buffer[1024]; data/mpd-0.22.3/src/output/plugins/httpd/HttpdOutputPlugin.cxx:78:10: [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). assert(!open); data/mpd-0.22.3/src/output/plugins/httpd/HttpdOutputPlugin.cxx:132:6: [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 (open && (clients_max == 0 || clients.size() < clients_max)) data/mpd-0.22.3/src/output/plugins/httpd/HttpdOutputPlugin.cxx:186:10: [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). assert(!open); data/mpd-0.22.3/src/output/plugins/httpd/HttpdOutputPlugin.cxx: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). assert(open); data/mpd-0.22.3/src/output/plugins/httpd/HttpdOutputPlugin.cxx:324:16: [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 const char silence[1020] = { 0 }; data/mpd-0.22.3/src/output/plugins/httpd/IcyMetaDataServer.cxx:88:8: [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. const char *tag_items[TAG_NUM_OF_ITEM_TYPES]; data/mpd-0.22.3/src/output/plugins/httpd/IcyMetaDataServer.cxx:100:2: [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 stream_title[(1 + 255 - 28) * 16]; data/mpd-0.22.3/src/output/plugins/httpd/Page.cxx:27:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buffer.front(), data, size); data/mpd-0.22.3/src/output/plugins/sles/SlesOutputPlugin.cxx:359:2: [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(buffers[next] + filled, chunk, nbytes); data/mpd-0.22.3/src/pcm/AudioFormat.cxx:55:8: [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. p += sprintf(p, "dsd%u:", af.sample_rate * 8 / 44100); data/mpd-0.22.3/src/pcm/AudioFormat.cxx:69:8: [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. p += sprintf(p, "%u", af.channels); data/mpd-0.22.3/src/pcm/Export.cxx:97:2: [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 buffer[sizeof(silence_buffer)]; data/mpd-0.22.3/src/pcm/Export.cxx:104:2: [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(silence_buffer, s.data, s.size); data/mpd-0.22.3/src/pcm/Interleave.cxx:31:4: [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(dest, src[channel] + frame * sample_size, data/mpd-0.22.3/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx:83:32: [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. embcue_playlist_open_uri(const char *uri, data/mpd-0.22.3/src/playlist/plugins/PlsPlaylistPlugin.cxx:117: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). entries[i - 1].length = atoi(value); data/mpd-0.22.3/src/queue/PlaylistState.cxx:162:34: [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). pc.SetCrossFade(FloatDuration(atoi(p))); data/mpd-0.22.3/src/queue/PlaylistState.cxx:173:14: [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). current = atoi(p); data/mpd-0.22.3/src/song/Filter.cxx:175:2: [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 buffer[4096]; data/mpd-0.22.3/src/system/EventPipe.cxx:71:2: [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 buffer[256]; data/mpd-0.22.3/src/system/FatalError.cxx:67:2: [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 buffer[256]; data/mpd-0.22.3/src/system/FatalError.cxx:92:2: [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 buffer[1024]; data/mpd-0.22.3/src/tag/Aiff.cxx:31:2: [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 id[4]; data/mpd-0.22.3/src/tag/Aiff.cxx:33:2: [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 format[4]; data/mpd-0.22.3/src/tag/Aiff.cxx:37:2: [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 id[4]; data/mpd-0.22.3/src/tag/ApeLoader.cxx:31:11: [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 id[8]; data/mpd-0.22.3/src/tag/ApeLoader.cxx:35:11: [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 flags[4]; data/mpd-0.22.3/src/tag/ApeLoader.cxx:36:11: [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 reserved[8]; data/mpd-0.22.3/src/tag/ApeReplayGain.cxx:36:2: [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 value[16]; data/mpd-0.22.3/src/tag/ApeReplayGain.cxx:40:2: [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(value, _value.data, _value.size); data/mpd-0.22.3/src/tag/Format.cxx:35:2: [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 buffer[256]; data/mpd-0.22.3/src/tag/GenParseName.cxx:42:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *out = fopen(argv[1], "w"); data/mpd-0.22.3/src/tag/Names.c:22: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. const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = { data/mpd-0.22.3/src/tag/Pool.cxx:48:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(item.value, value.data, value.size); data/mpd-0.22.3/src/tag/Riff.cxx:31:2: [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 id[4]; data/mpd-0.22.3/src/tag/Riff.cxx:33:2: [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 format[4]; data/mpd-0.22.3/src/tag/Riff.cxx:37:2: [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 id[4]; data/mpd-0.22.3/src/unix/Daemon.cxx:89:2: [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("/dev/null", O_RDONLY); data/mpd-0.22.3/src/util/Alloc.cxx:50:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(p, s, size); data/mpd-0.22.3/src/util/Alloc.cxx:73:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(p, s, n); data/mpd-0.22.3/src/util/DivideString.cxx:46:2: [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(first, s, length); data/mpd-0.22.3/src/util/HexFormat.cxx:38:3: [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(dest, "%02x", i); data/mpd-0.22.3/src/util/NumberParser.cxx:40:2: [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 buffer[32]; data/mpd-0.22.3/src/util/PeakBuffer.cxx:93:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p.data, data, nbytes); data/mpd-0.22.3/src/util/UriExtract.cxx:149:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer.data, suffix, q - suffix); data/mpd-0.22.3/src/util/format.c:41:2: [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(dest + destlen, src, len); data/mpd-0.22.3/src/util/format.c:203: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 name[32]; data/mpd-0.22.3/src/util/format.c:210:4: [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(name, p + 1, length - 2); data/mpd-0.22.3/src/zeroconf/ZeroconfBonjour.cxx:62:44: [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. DNSServiceErrorType errorCode, const char *name, data/mpd-0.22.3/src/zeroconf/ZeroconfBonjour.cxx:63:30: [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. [[maybe_unused]] const char *regtype, data/mpd-0.22.3/src/zeroconf/ZeroconfBonjour.cxx:64:30: [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. [[maybe_unused]] const char *domain, data/mpd-0.22.3/src/zeroconf/ZeroconfGlue.cxx:76:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[HOST_NAME_MAX+1]; data/mpd-0.22.3/test/TestLookupFile.cxx:19:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fclose(fopen("dummy", "w")); data/mpd-0.22.3/test/TestRewindInputStream.cxx:34:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, data, nbytes); data/mpd-0.22.3/test/TestRewindInputStream.cxx:62:2: [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 buffer[16]; data/mpd-0.22.3/test/net/TestIPv4Address.cxx:51:2: [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 buffer[256]; data/mpd-0.22.3/test/net/TestIPv6Address.cxx:51:2: [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 buffer[256]; data/mpd-0.22.3/test/run_encoder.cxx:40:9: [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 buffer[32768]; data/mpd-0.22.3/test/run_filter.cxx:133:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/mpd-0.22.3/test/run_gunzip.cxx:34:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/mpd-0.22.3/test/run_gzip.cxx:33:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/mpd-0.22.3/test/run_inotify.cxx:38:13: [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. const char *name, [[maybe_unused]] void *ctx) data/mpd-0.22.3/test/run_input.cxx:176:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_CHUNK_SIZE]; data/mpd-0.22.3/test/run_normalize.cxx:42:9: [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 buffer[4096]; data/mpd-0.22.3/test/run_output.cxx:84:2: [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 buffer[4096]; data/mpd-0.22.3/test/run_storage.cxx:71:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mtime_buffer[32]; data/mpd-0.22.3/test/software_volume.cxx:40:9: [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 buffer[4096]; data/mpd-0.22.3/src/LogBackend.cxx:108:18: [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 length = strlen(p); data/mpd-0.22.3/src/apple/Throw.cxx:61:18: [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 length = strlen(msg); data/mpd-0.22.3/src/archive/plugins/Iso9660ArchivePlugin.cxx:105:28: [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 filename_length = strlen(filename); data/mpd-0.22.3/src/client/Write.cxx:34: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). return Write(data, strlen(data)); data/mpd-0.22.3/src/command/CommandListBuilder.cxx:35:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(cmd) + 1; data/mpd-0.22.3/src/config/Path.cxx:108:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? path + strlen(path) data/mpd-0.22.3/src/db/plugins/upnp/Directory.cxx:237: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). parser.Parse(input, strlen(input), true); data/mpd-0.22.3/src/decoder/plugins/DsdLib.cxx:43: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). assert(strlen(s) == sizeof(value)); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:313:26: [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 version_length = strlen(version); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:322:25: [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). comments_size += 4 + strlen(tag_item_names[item.type]) + 1 + strlen(item.value); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:322:65: [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). comments_size += 4 + strlen(tag_item_names[item.type]) + 1 + strlen(item.value); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:342:26: [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 tag_name_len = strlen(tag_item_names[item.type]); data/mpd-0.22.3/src/encoder/plugins/OpusEncoderPlugin.cxx:343:25: [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 tag_val_len = strlen(item.value); data/mpd-0.22.3/src/fs/StandardDirectory.cxx:140:10: [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). line += strlen(dir_name); data/mpd-0.22.3/src/fs/StandardDirectory.cxx:159: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). line += strlen(home_prefix); data/mpd-0.22.3/src/fs/StandardDirectory.cxx:171:38: [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). line_end = StripRight(line, line + strlen(line)); data/mpd-0.22.3/src/fs/io/BufferedOutputStream.cxx:76: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). Write(p, strlen(p)); data/mpd-0.22.3/src/fs/io/BufferedOutputStream.cxx:126:21: [1] (buffer) wcslen: 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). WriteWideToUTF8(p, wcslen(p)); data/mpd-0.22.3/src/lib/icu/Compare.cxx:107: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). for (const size_t length = strlen(needle.c_str()); data/mpd-0.22.3/src/lib/nfs/Base.cxx:36: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). const size_t server_length = strlen(server); data/mpd-0.22.3/src/lib/nfs/Base.cxx:37:36: [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). const size_t export_name_length = strlen(export_name); data/mpd-0.22.3/src/lib/smbclient/Context.cxx:38:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(un, ""); data/mpd-0.22.3/src/lib/smbclient/Context.cxx:39:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(pw, ""); data/mpd-0.22.3/src/lib/upnp/Device.cxx:102: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). mparser.Parse(description, strlen(description), true); data/mpd-0.22.3/src/mixer/plugins/OssMixerPlugin.cxx:73: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). size_t name_length = strlen(name); data/mpd-0.22.3/src/net/AllocatedSocketAddress.cxx:80: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). const size_t path_length = strlen(path) + !is_abstract; data/mpd-0.22.3/src/net/SocketDescriptor.cxx:335:54: [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). return SetOption(SOL_SOCKET, SO_BINDTODEVICE, name, strlen(name)); data/mpd-0.22.3/src/output/plugins/FifoOutputPlugin.cxx:190:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read(input, buffer, sizeof(buffer)); data/mpd-0.22.3/src/output/plugins/JackOutputPlugin.cxx:711:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/mpd-0.22.3/src/output/plugins/OpenALOutputPlugin.cxx:197:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/mpd-0.22.3/src/output/plugins/httpd/HttpdClient.cxx:170: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). ssize_t nbytes = GetSocket().Write(response, strlen(response)); data/mpd-0.22.3/src/output/plugins/httpd/IcyMetaDataServer.cxx:71: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). size_t meta_length = strlen(icy_metadata.c_str()); data/mpd-0.22.3/src/pcm/LibsamplerateResampler.cxx:51:18: [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 length = strlen(s); data/mpd-0.22.3/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx:132: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). next += strlen(line); data/mpd-0.22.3/src/sticker/SongSticker.cxx:131:25: [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). data.base_uri_length = strlen(data.base_uri); data/mpd-0.22.3/src/system/EventPipe.cxx:75:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(fds[0], buffer, sizeof(buffer)) > 0; data/mpd-0.22.3/src/unix/Daemon.cxx:177:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nbytes = read(fds[0], &result, sizeof(result)); data/mpd-0.22.3/src/util/StringStrip.cxx:74: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). size_t old_length = strlen(p); data/mpd-0.22.3/src/util/TruncateString.cxx:40:18: [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 length = strlen(src); data/mpd-0.22.3/src/util/UriUtil.cxx:98:18: [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). slash = auth + strlen(auth); data/mpd-0.22.3/src/util/format.c:37:5: [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(dest) data/mpd-0.22.3/src/util/format.c:122: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). ret = string_append(ret, t, strlen(t)); data/mpd-0.22.3/src/util/format.c:218:20: [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). value_length = strlen(value); data/mpd-0.22.3/test/TestRewindInputStream.cxx:22: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). data(_data), remaining(strlen(data)) { data/mpd-0.22.3/test/WriteFile.cxx:37:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nbytes = read(src, buffer, sizeof(buffer)); data/mpd-0.22.3/test/net/TestLocalSocketAddress.cxx:49: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). EXPECT_EQ(sun.sun_path + strlen(path) + 1, (const char *)a.GetAddress() + a.GetSize()); data/mpd-0.22.3/test/net/TestLocalSocketAddress.cxx:70: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). EXPECT_EQ(memcmp(sun.sun_path + 1, path + 1, strlen(path) - 1), 0); data/mpd-0.22.3/test/net/TestLocalSocketAddress.cxx:71: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). EXPECT_EQ(sun.sun_path + strlen(path), (const char *)a.GetAddress() + a.GetSize()); data/mpd-0.22.3/test/run_convert.cxx:122:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nbytes = read(0, dest.data, dest.size); data/mpd-0.22.3/test/run_encoder.cxx:83:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) { data/mpd-0.22.3/test/run_gzip.cxx:34:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nbytes = read(src, buffer, sizeof(buffer)); data/mpd-0.22.3/test/run_normalize.cxx:56:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) { data/mpd-0.22.3/test/run_output.cxx:87:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nbytes = read(0, buffer + length, data/mpd-0.22.3/test/software_volume.cxx:59:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) { data/mpd-0.22.3/test/test_icy_parser.cxx:25: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). q, q + strlen(q)); ANALYSIS SUMMARY: Hits = 337 Lines analyzed = 103862 in approximately 2.33 seconds (44564 lines/second) Physical Source Lines of Code (SLOC) = 68122 Hits@level = [0] 141 [1] 55 [2] 231 [3] 31 [4] 17 [5] 3 Hits@level+ = [0+] 478 [1+] 337 [2+] 282 [3+] 51 [4+] 20 [5+] 3 Hits/KSLOC@level+ = [0+] 7.01682 [1+] 4.94701 [2+] 4.13963 [3+] 0.748657 [4+] 0.293591 [5+] 0.0440386 Dot directories skipped = 2 (--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.