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/opensp-1.5.2/config.h Examining data/opensp-1.5.2/include/ISet.cxx Examining data/opensp-1.5.2/include/Named.h Examining data/opensp-1.5.2/include/Options.cxx Examining data/opensp-1.5.2/include/OutputCharStream.h Examining data/opensp-1.5.2/include/Vector.cxx Examining data/opensp-1.5.2/include/IListBase.h Examining data/opensp-1.5.2/include/OutputByteStream.h Examining data/opensp-1.5.2/include/MessageTable.h Examining data/opensp-1.5.2/include/ConsoleOutput.h Examining data/opensp-1.5.2/include/CopyOwner.cxx Examining data/opensp-1.5.2/include/Win32CodingSystem.h Examining data/opensp-1.5.2/include/ExtendEntityManager.h Examining data/opensp-1.5.2/include/Attributed.h Examining data/opensp-1.5.2/include/IQueue.h Examining data/opensp-1.5.2/include/ArcEngine.h Examining data/opensp-1.5.2/include/xnew.h Examining data/opensp-1.5.2/include/ExternalId.h Examining data/opensp-1.5.2/include/IQueue.cxx Examining data/opensp-1.5.2/include/IList.h Examining data/opensp-1.5.2/include/InternalInputSource.h Examining data/opensp-1.5.2/include/Big5CodingSystem.h Examining data/opensp-1.5.2/include/NamedResource.h Examining data/opensp-1.5.2/include/SgmlParser.h Examining data/opensp-1.5.2/include/Fixed4CodingSystem.h Examining data/opensp-1.5.2/include/Ptr.h Examining data/opensp-1.5.2/include/StringOf.cxx Examining data/opensp-1.5.2/include/Ptr.cxx Examining data/opensp-1.5.2/include/SubstTable.h Examining data/opensp-1.5.2/include/ErrorCountEventHandler.h Examining data/opensp-1.5.2/include/HashTableItemBase.h Examining data/opensp-1.5.2/include/NotationStorage.h Examining data/opensp-1.5.2/include/sptchar.h Examining data/opensp-1.5.2/include/MessageArg.h Examining data/opensp-1.5.2/include/MessageBuilder.h Examining data/opensp-1.5.2/include/CharMap.h Examining data/opensp-1.5.2/include/ContentToken.h Examining data/opensp-1.5.2/include/URLStorage.h Examining data/opensp-1.5.2/include/ParserOptions.h Examining data/opensp-1.5.2/include/rtti.h Examining data/opensp-1.5.2/include/RangeMap.cxx Examining data/opensp-1.5.2/include/HashTableItemBase.cxx Examining data/opensp-1.5.2/include/CharMap.cxx Examining data/opensp-1.5.2/include/CodingSystem.h Examining data/opensp-1.5.2/include/PointerTable.h Examining data/opensp-1.5.2/include/StringResource.h Examining data/opensp-1.5.2/include/Event.h Examining data/opensp-1.5.2/include/Sd.h Examining data/opensp-1.5.2/include/LinkProcess.h Examining data/opensp-1.5.2/include/MessageFormatter.h Examining data/opensp-1.5.2/include/Hash.h Examining data/opensp-1.5.2/include/Lpd.h Examining data/opensp-1.5.2/include/MessageReporter.h Examining data/opensp-1.5.2/include/Syntax.h Examining data/opensp-1.5.2/include/Link.h Examining data/opensp-1.5.2/include/ISet.h Examining data/opensp-1.5.2/include/HashTable.h Examining data/opensp-1.5.2/include/Mode.h Examining data/opensp-1.5.2/include/Entity.h Examining data/opensp-1.5.2/include/CodingSystemKit.h Examining data/opensp-1.5.2/include/Owner.cxx Examining data/opensp-1.5.2/include/EUCJPCodingSystem.h Examining data/opensp-1.5.2/include/UnivCharsetDesc.h Examining data/opensp-1.5.2/include/ElementType.h Examining data/opensp-1.5.2/include/CharsetRegistry.h Examining data/opensp-1.5.2/include/ContentState.h Examining data/opensp-1.5.2/include/MessageModule.h Examining data/opensp-1.5.2/include/List.cxx Examining data/opensp-1.5.2/include/EntityApp.h Examining data/opensp-1.5.2/include/DescriptorManager.h Examining data/opensp-1.5.2/include/UnicodeCodingSystem.h Examining data/opensp-1.5.2/include/OwnerTable.h Examining data/opensp-1.5.2/include/Allocator.h Examining data/opensp-1.5.2/include/Owner.h Examining data/opensp-1.5.2/include/Text.h Examining data/opensp-1.5.2/include/UTF8CodingSystem.h Examining data/opensp-1.5.2/include/EntityManager.h Examining data/opensp-1.5.2/include/Attribute.h Examining data/opensp-1.5.2/include/StringC.h Examining data/opensp-1.5.2/include/RangeMap.h Examining data/opensp-1.5.2/include/RewindStorageObject.h Examining data/opensp-1.5.2/include/Options.h Examining data/opensp-1.5.2/include/IdentityCodingSystem.h Examining data/opensp-1.5.2/include/MessageEventHandler.h Examining data/opensp-1.5.2/include/ErrnoMessageArg.h Examining data/opensp-1.5.2/include/TypeId.h Examining data/opensp-1.5.2/include/types.h Examining data/opensp-1.5.2/include/NamedTable.h Examining data/opensp-1.5.2/include/ParserApp.h Examining data/opensp-1.5.2/include/InputSource.h Examining data/opensp-1.5.2/include/StdioStorage.h Examining data/opensp-1.5.2/include/ShortReferenceMap.h Examining data/opensp-1.5.2/include/PosixStorage.h Examining data/opensp-1.5.2/include/Vector.h Examining data/opensp-1.5.2/include/List.h Examining data/opensp-1.5.2/include/NCVector.h Examining data/opensp-1.5.2/include/GenericEventHandler.h Examining data/opensp-1.5.2/include/ISetIter.h Examining data/opensp-1.5.2/include/SdText.h Examining data/opensp-1.5.2/include/OpenElement.h Examining data/opensp-1.5.2/include/XcharMap.h Examining data/opensp-1.5.2/include/CharsetDecl.h Examining data/opensp-1.5.2/include/WinInetStorage.h Examining data/opensp-1.5.2/include/CopyOwner.h Examining data/opensp-1.5.2/include/XMLCodingSystem.h Examining data/opensp-1.5.2/include/EntityCatalog.h Examining data/opensp-1.5.2/include/NamedResourceTable.h Examining data/opensp-1.5.2/include/Notation.h Examining data/opensp-1.5.2/include/OwnerTable.cxx Examining data/opensp-1.5.2/include/Boolean.h Examining data/opensp-1.5.2/include/Markup.h Examining data/opensp-1.5.2/include/Resource.h Examining data/opensp-1.5.2/include/StorageManager.h Examining data/opensp-1.5.2/include/Dtd.h Examining data/opensp-1.5.2/include/SearchResultMessageArg.h Examining data/opensp-1.5.2/include/XcharMap.cxx Examining data/opensp-1.5.2/include/constant.h Examining data/opensp-1.5.2/include/UTF16CodingSystem.h Examining data/opensp-1.5.2/include/Location.h Examining data/opensp-1.5.2/include/TranslateCodingSystem.h Examining data/opensp-1.5.2/include/IListIterBase.h Examining data/opensp-1.5.2/include/WinApp.h Examining data/opensp-1.5.2/include/macros.h Examining data/opensp-1.5.2/include/EventsWanted.h Examining data/opensp-1.5.2/include/LiteralStorage.h Examining data/opensp-1.5.2/include/Fixed2CodingSystem.h Examining data/opensp-1.5.2/include/SOEntityCatalog.h Examining data/opensp-1.5.2/include/CmdLineApp.h Examining data/opensp-1.5.2/include/Message.h Examining data/opensp-1.5.2/include/StringOf.h Examining data/opensp-1.5.2/include/EntityDecl.h Examining data/opensp-1.5.2/include/HashTable.cxx Examining data/opensp-1.5.2/include/IListIter.h Examining data/opensp-1.5.2/include/CharsetInfo.h Examining data/opensp-1.5.2/include/SJISCodingSystem.h Examining data/opensp-1.5.2/include/ListIter.h Examining data/opensp-1.5.2/include/PointerTable.cxx Examining data/opensp-1.5.2/intl/l10nflist.c Examining data/opensp-1.5.2/intl/localename.c Examining data/opensp-1.5.2/intl/printf.c Examining data/opensp-1.5.2/intl/localcharset.c Examining data/opensp-1.5.2/intl/printf-args.h Examining data/opensp-1.5.2/intl/textdomain.c Examining data/opensp-1.5.2/intl/xsize.h Examining data/opensp-1.5.2/intl/bindtextdom.c Examining data/opensp-1.5.2/intl/os2compat.h Examining data/opensp-1.5.2/intl/explodename.c Examining data/opensp-1.5.2/intl/gettext.c Examining data/opensp-1.5.2/intl/log.c Examining data/opensp-1.5.2/intl/relocatable.h Examining data/opensp-1.5.2/intl/printf-args.c Examining data/opensp-1.5.2/intl/localcharset.h Examining data/opensp-1.5.2/intl/gettextP.h Examining data/opensp-1.5.2/intl/dcigettext.c Examining data/opensp-1.5.2/intl/relocatable.c Examining data/opensp-1.5.2/intl/eval-plural.h Examining data/opensp-1.5.2/intl/printf-parse.c Examining data/opensp-1.5.2/intl/dngettext.c Examining data/opensp-1.5.2/intl/localealias.c Examining data/opensp-1.5.2/intl/osdep.c Examining data/opensp-1.5.2/intl/printf-parse.h Examining data/opensp-1.5.2/intl/os2compat.c Examining data/opensp-1.5.2/intl/gmo.h Examining data/opensp-1.5.2/intl/langprefs.c Examining data/opensp-1.5.2/intl/ngettext.c Examining data/opensp-1.5.2/intl/vasnprintf.c Examining data/opensp-1.5.2/intl/dgettext.c Examining data/opensp-1.5.2/intl/dcgettext.c Examining data/opensp-1.5.2/intl/loadinfo.h Examining data/opensp-1.5.2/intl/vasnwprintf.h Examining data/opensp-1.5.2/intl/intl-compat.c Examining data/opensp-1.5.2/intl/plural.c Examining data/opensp-1.5.2/intl/vasnprintf.h Examining data/opensp-1.5.2/intl/dcngettext.c Examining data/opensp-1.5.2/intl/plural-exp.c Examining data/opensp-1.5.2/intl/finddomain.c Examining data/opensp-1.5.2/intl/wprintf-parse.h Examining data/opensp-1.5.2/intl/loadmsgcat.c Examining data/opensp-1.5.2/intl/hash-string.h Examining data/opensp-1.5.2/intl/plural-exp.h Examining data/opensp-1.5.2/spcat/spcat.cxx Examining data/opensp-1.5.2/spcat/SpcatMessages.h Examining data/opensp-1.5.2/spcat/spcat_inst.cxx Examining data/opensp-1.5.2/generic/SGMLApplication.h Examining data/opensp-1.5.2/generic/ParserEventGeneratorKit.h Examining data/opensp-1.5.2/generic/EventGenerator.h Examining data/opensp-1.5.2/spent/SpentMessages.h Examining data/opensp-1.5.2/spent/spent.cxx Examining data/opensp-1.5.2/sx/SxMessages.h Examining data/opensp-1.5.2/sx/sx.cxx Examining data/opensp-1.5.2/sx/XmlOutputMessages.h Examining data/opensp-1.5.2/sx/XmlOutputEventHandler.h Examining data/opensp-1.5.2/sx/sx_inst.cxx Examining data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx Examining data/opensp-1.5.2/spam/spam_inst.cxx Examining data/opensp-1.5.2/spam/MarkupEventHandler.cxx Examining data/opensp-1.5.2/spam/spam.cxx Examining data/opensp-1.5.2/spam/CopyEventHandler.cxx Examining data/opensp-1.5.2/spam/SpamMessages.h Examining data/opensp-1.5.2/spam/CopyEventHandler.h Examining data/opensp-1.5.2/spam/MarkupEventHandler.h Examining data/opensp-1.5.2/nsgmls/nsgmls.h Examining data/opensp-1.5.2/nsgmls/RastEventHandler.h Examining data/opensp-1.5.2/nsgmls/RastEventHandlerMessages.h Examining data/opensp-1.5.2/nsgmls/NsgmlsMessages.h Examining data/opensp-1.5.2/nsgmls/SgmlsEventHandler.cxx Examining data/opensp-1.5.2/nsgmls/StringSet.h Examining data/opensp-1.5.2/nsgmls/nsgmls_inst.cxx Examining data/opensp-1.5.2/nsgmls/RastEventHandler.cxx Examining data/opensp-1.5.2/nsgmls/SgmlsEventHandler.h Examining data/opensp-1.5.2/nsgmls/StringSet.cxx Examining data/opensp-1.5.2/nsgmls/nsgmls.cxx Examining data/opensp-1.5.2/sgmlnorm/sgmlnorm.cxx Examining data/opensp-1.5.2/sgmlnorm/SgmlnormMessages.h Examining data/opensp-1.5.2/sgmlnorm/SGMLGenerator.cxx Examining data/opensp-1.5.2/sgmlnorm/SGMLGenerator.h Examining data/opensp-1.5.2/lib/SrInfo.h Examining data/opensp-1.5.2/lib/Entity.cxx Examining data/opensp-1.5.2/lib/Id.h Examining data/opensp-1.5.2/lib/MessageTable.cxx Examining data/opensp-1.5.2/lib/DtdDeclEventHandler.h Examining data/opensp-1.5.2/lib/Location.cxx Examining data/opensp-1.5.2/lib/IdentityCodingSystem.cxx Examining data/opensp-1.5.2/lib/OffsetOrderedList.h Examining data/opensp-1.5.2/lib/LinkProcess.cxx Examining data/opensp-1.5.2/lib/Param.cxx Examining data/opensp-1.5.2/lib/TrieBuilder.cxx Examining data/opensp-1.5.2/lib/OutputByteStream.cxx Examining data/opensp-1.5.2/lib/memcmp.c Examining data/opensp-1.5.2/lib/Fixed2CodingSystem.cxx Examining data/opensp-1.5.2/lib/Undo.cxx Examining data/opensp-1.5.2/lib/MarkupScan.h Examining data/opensp-1.5.2/lib/SOEntityCatalog.cxx Examining data/opensp-1.5.2/lib/Group.cxx Examining data/opensp-1.5.2/lib/EntityManager.cxx Examining data/opensp-1.5.2/lib/Partition.h Examining data/opensp-1.5.2/lib/parseSd.cxx Examining data/opensp-1.5.2/lib/SdText.cxx Examining data/opensp-1.5.2/lib/Syntax.cxx Examining data/opensp-1.5.2/lib/URLStorageMessages.h Examining data/opensp-1.5.2/lib/TrieBuilder.h Examining data/opensp-1.5.2/lib/parseAttribute.cxx Examining data/opensp-1.5.2/lib/TokenMessageArg.cxx Examining data/opensp-1.5.2/lib/MessageFormatter.cxx Examining data/opensp-1.5.2/lib/jis0201.h Examining data/opensp-1.5.2/lib/OutputState.cxx Examining data/opensp-1.5.2/lib/EquivClass.h Examining data/opensp-1.5.2/lib/ArcProcessor.h Examining data/opensp-1.5.2/lib/CharsetInfo.cxx Examining data/opensp-1.5.2/lib/MessageReporter.cxx Examining data/opensp-1.5.2/lib/Message.cxx Examining data/opensp-1.5.2/lib/ParserApp.cxx Examining data/opensp-1.5.2/lib/iso8859-5.h Examining data/opensp-1.5.2/lib/Partition.cxx Examining data/opensp-1.5.2/lib/Mutex.h Examining data/opensp-1.5.2/lib/splib.h Examining data/opensp-1.5.2/lib/StdioStorage.cxx Examining data/opensp-1.5.2/lib/gb2312.h Examining data/opensp-1.5.2/lib/EntityCatalog.cxx Examining data/opensp-1.5.2/lib/Priority.h Examining data/opensp-1.5.2/lib/WinInetStorageMessages.h Examining data/opensp-1.5.2/lib/ParserEventGeneratorKit.cxx Examining data/opensp-1.5.2/lib/ModeInfo.cxx Examining data/opensp-1.5.2/lib/ksc5601.h Examining data/opensp-1.5.2/lib/Parser.cxx Examining data/opensp-1.5.2/lib/EventGenerator.cxx Examining data/opensp-1.5.2/lib/SubstTable.cxx Examining data/opensp-1.5.2/lib/WinInetStorage.cxx Examining data/opensp-1.5.2/lib/EventQueue.h Examining data/opensp-1.5.2/lib/ElementType.cxx Examining data/opensp-1.5.2/lib/ContentToken.cxx Examining data/opensp-1.5.2/lib/parser_inst.cxx Examining data/opensp-1.5.2/lib/DescriptorManager.cxx Examining data/opensp-1.5.2/lib/MessageReporterMessages.h Examining data/opensp-1.5.2/lib/CatalogEntry.h Examining data/opensp-1.5.2/lib/StorageObjectPosition.h Examining data/opensp-1.5.2/lib/Param.h Examining data/opensp-1.5.2/lib/OutputCharStream.cxx Examining data/opensp-1.5.2/lib/iso8859-2.h Examining data/opensp-1.5.2/lib/SJISCodingSystem.cxx Examining data/opensp-1.5.2/lib/Link.cxx Examining data/opensp-1.5.2/lib/EntityAppMessages.h Examining data/opensp-1.5.2/lib/parseParam.cxx Examining data/opensp-1.5.2/lib/NotationStorage.cxx Examining data/opensp-1.5.2/lib/TokenMessageArg.h Examining data/opensp-1.5.2/lib/Markup.cxx Examining data/opensp-1.5.2/lib/StorageManager.cxx Examining data/opensp-1.5.2/lib/Hash.cxx Examining data/opensp-1.5.2/lib/Attribute.cxx Examining data/opensp-1.5.2/lib/ErrorCountEventHandler.cxx Examining data/opensp-1.5.2/lib/SGMLApplication.cxx Examining data/opensp-1.5.2/lib/NumericCharRefOrigin.cxx Examining data/opensp-1.5.2/lib/strerror.c Examining data/opensp-1.5.2/lib/ModeInfo.h Examining data/opensp-1.5.2/lib/ConsoleOutput.cxx Examining data/opensp-1.5.2/lib/NumericCharRefOrigin.h Examining data/opensp-1.5.2/lib/PosixStorage.cxx Examining data/opensp-1.5.2/lib/LpdEntityRef.h Examining data/opensp-1.5.2/lib/Fixed4CodingSystem.cxx Examining data/opensp-1.5.2/lib/SgmlParser.cxx Examining data/opensp-1.5.2/lib/CodingSystemKit.cxx Examining data/opensp-1.5.2/lib/parseInstance.cxx Examining data/opensp-1.5.2/lib/Recognizer.h Examining data/opensp-1.5.2/lib/iso8859-4.h Examining data/opensp-1.5.2/lib/Dtd.cxx Examining data/opensp-1.5.2/lib/Text.cxx Examining data/opensp-1.5.2/lib/CmdLineApp.cxx Examining data/opensp-1.5.2/lib/token.h Examining data/opensp-1.5.2/lib/splibpch.h Examining data/opensp-1.5.2/lib/arc_inst.cxx Examining data/opensp-1.5.2/lib/InternalInputSource.cxx Examining data/opensp-1.5.2/lib/ParserMessages.h Examining data/opensp-1.5.2/lib/Undo.h Examining data/opensp-1.5.2/lib/parseDecl.cxx Examining data/opensp-1.5.2/lib/ArcEngine.cxx Examining data/opensp-1.5.2/lib/NameToken.h Examining data/opensp-1.5.2/lib/splib.cxx Examining data/opensp-1.5.2/lib/InputSource.cxx Examining data/opensp-1.5.2/lib/Big5CodingSystem.cxx Examining data/opensp-1.5.2/lib/OffsetOrderedList.cxx Examining data/opensp-1.5.2/lib/XMLCodingSystem.cxx Examining data/opensp-1.5.2/lib/ExternalId.cxx Examining data/opensp-1.5.2/lib/IListBase.cxx Examining data/opensp-1.5.2/lib/ArcEngineMessages.h Examining data/opensp-1.5.2/lib/Sd.cxx Examining data/opensp-1.5.2/lib/app_inst.cxx Examining data/opensp-1.5.2/lib/iso8859-8.h Examining data/opensp-1.5.2/lib/StdioStorageMessages.h Examining data/opensp-1.5.2/lib/SdFormalError.h Examining data/opensp-1.5.2/lib/koi8-r.h Examining data/opensp-1.5.2/lib/ContentState.cxx Examining data/opensp-1.5.2/lib/xentmgr_inst.cxx Examining data/opensp-1.5.2/lib/EUCJPCodingSystem.cxx Examining data/opensp-1.5.2/lib/iso8859-6.h Examining data/opensp-1.5.2/lib/MessageArg.cxx Examining data/opensp-1.5.2/lib/jis0212.h Examining data/opensp-1.5.2/lib/ErrnoMessageArg.cxx Examining data/opensp-1.5.2/lib/DtdDeclEventHandler.cxx Examining data/opensp-1.5.2/lib/ParserMessages.cxx Examining data/opensp-1.5.2/lib/TranslateCodingSystem.cxx Examining data/opensp-1.5.2/lib/ShortReferenceMap.cxx Examining data/opensp-1.5.2/lib/CharsetRegistry.cxx Examining data/opensp-1.5.2/lib/entmgr_inst.cxx Examining data/opensp-1.5.2/lib/EntityApp.cxx Examining data/opensp-1.5.2/lib/GenericEventHandler.cxx Examining data/opensp-1.5.2/lib/iso646-jis.h Examining data/opensp-1.5.2/lib/iso8859-7.h Examining data/opensp-1.5.2/lib/MessageFormatterMessages.h Examining data/opensp-1.5.2/lib/CatalogMessages.h Examining data/opensp-1.5.2/lib/OpenElement.cxx Examining data/opensp-1.5.2/lib/Notation.cxx Examining data/opensp-1.5.2/lib/Group.h Examining data/opensp-1.5.2/lib/Trie.h Examining data/opensp-1.5.2/lib/parseMode.cxx Examining data/opensp-1.5.2/lib/CmdLineAppMessages.h Examining data/opensp-1.5.2/lib/UnivCharsetDesc.cxx Examining data/opensp-1.5.2/lib/UTF8CodingSystem.cxx Examining data/opensp-1.5.2/lib/OutputState.h Examining data/opensp-1.5.2/lib/Win32CodingSystem.cxx Examining data/opensp-1.5.2/lib/UTF16CodingSystem.cxx Examining data/opensp-1.5.2/lib/assert.cxx Examining data/opensp-1.5.2/lib/parseCommon.cxx Examining data/opensp-1.5.2/lib/MessageEventHandler.cxx Examining data/opensp-1.5.2/lib/Parser.h Examining data/opensp-1.5.2/lib/Recognizer.cxx Examining data/opensp-1.5.2/lib/iso8859-9.h Examining data/opensp-1.5.2/lib/Allocator.cxx Examining data/opensp-1.5.2/lib/UnicodeCodingSystem.cxx Examining data/opensp-1.5.2/lib/ParserState.cxx Examining data/opensp-1.5.2/lib/LiteralStorage.cxx Examining data/opensp-1.5.2/lib/URLStorage.cxx Examining data/opensp-1.5.2/lib/EntityDecl.cxx Examining data/opensp-1.5.2/lib/ParserState.h Examining data/opensp-1.5.2/lib/SearchResultMessageArg.cxx Examining data/opensp-1.5.2/lib/big5.h Examining data/opensp-1.5.2/lib/memmove.c Examining data/opensp-1.5.2/lib/EntityManagerMessages.h Examining data/opensp-1.5.2/lib/jis0208.h Examining data/opensp-1.5.2/lib/Id.cxx Examining data/opensp-1.5.2/lib/TypeId.cxx Examining data/opensp-1.5.2/lib/PosixStorageMessages.h Examining data/opensp-1.5.2/lib/iso8859-3.h Examining data/opensp-1.5.2/lib/Event.cxx Examining data/opensp-1.5.2/lib/WinApp.cxx Examining data/opensp-1.5.2/lib/ParserOptions.cxx Examining data/opensp-1.5.2/lib/ParserAppMessages.h Examining data/opensp-1.5.2/lib/RewindStorageObject.cxx Examining data/opensp-1.5.2/lib/CharsetDecl.cxx Examining data/opensp-1.5.2/lib/CodingSystem.cxx Examining data/opensp-1.5.2/lib/Lpd.cxx Examining data/opensp-1.5.2/lib/events.h Examining data/opensp-1.5.2/lib/ExtendEntityManager.cxx FINAL RESULTS: data/opensp-1.5.2/intl/langprefs.c:107:8: [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 (p, buf); data/opensp-1.5.2/intl/localcharset.c:200:8: [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/opensp-1.5.2/intl/localcharset.c:201:8: [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 (res_ptr + res_size - (l2 + 1), buf2); data/opensp-1.5.2/intl/localename.c:911:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, legacy_table[i1].unixy); data/opensp-1.5.2/intl/localename.c:935:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, langtag_table[i1].unixy); data/opensp-1.5.2/intl/localename.c:955:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name + 3, script_table[i1].unixy); data/opensp-1.5.2/intl/log.c:78:7: [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 (last_logfilename, logfilename); data/opensp-1.5.2/intl/os2compat.c:97:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (libintl_nl_default_dirname, _nlos2_localedir); data/opensp-1.5.2/intl/plural.c:525:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/opensp-1.5.2/intl/printf.c:83:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfprintf (stream, format, args); data/opensp-1.5.2/intl/printf.c:137:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf (resultbuf, format, args); data/opensp-1.5.2/intl/printf.c:172:28: [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. # define system_vsnprintf vsnprintf data/opensp-1.5.2/intl/printf.c:268:28: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define system_vswprintf vswprintf data/opensp-1.5.2/intl/printf.c:276:12: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfwprintf (stream, format, args); data/opensp-1.5.2/intl/relocatable.c:440:8: [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 (result + curr_prefix_len, pathname_tail); data/opensp-1.5.2/intl/vasnprintf.c:96:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/opensp-1.5.2/intl/vasnprintf.c:107:20: [4] (format) _snprintf: 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. # define SNPRINTF _snprintf data/opensp-1.5.2/intl/vasnprintf.c:110:20: [4] (format) snprintf: 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. # define SNPRINTF snprintf data/opensp-1.5.2/intl/vasnprintf.c:626:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/opensp-1.5.2/intl/vasnprintf.c:629:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/opensp-1.5.2/intl/vasnprintf.c:632:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/opensp-1.5.2/intl/vasnprintf.h:37:22: [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 __printf__ printf data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:118:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (filePath, outputDir_); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:120:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (filePath, EXT_ENT_FILE); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:153:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (filePath, outputDir_); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:155:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (filePath, INT_ENT_FILE); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1170:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (filePath, outputDir_); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1197:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(filePath, originalFilePath); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1543:3: [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 (baseFilePath, filePath); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1551:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (filePath, baseFilePath); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1554:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (filePath, numStr); data/opensp-1.5.2/include/sptchar.h:99:10: [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. return getenv(s); data/opensp-1.5.2/intl/dcigettext.c:148:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/opensp-1.5.2/intl/dcigettext.c:149:28: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, max) getwd (buf) data/opensp-1.5.2/intl/dcigettext.c:705:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); data/opensp-1.5.2/intl/dcigettext.c:1183: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. language = getenv ("LANGUAGE"); data/opensp-1.5.2/intl/loadmsgcat.c:830: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. outcharset = getenv ("OUTPUT_CHARSET"); data/opensp-1.5.2/intl/localcharset.c:125:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dir = getenv ("CHARSETALIASDIR"); data/opensp-1.5.2/intl/localcharset.c:308:16: [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. locale = getenv ("LC_ALL"); data/opensp-1.5.2/intl/localcharset.c:311:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/opensp-1.5.2/intl/localcharset.c:313:15: [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. locale = getenv ("LANG"); data/opensp-1.5.2/intl/localcharset.c:341:12: [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. locale = getenv ("LC_ALL"); data/opensp-1.5.2/intl/localcharset.c:344:16: [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. locale = getenv ("LC_CTYPE"); data/opensp-1.5.2/intl/localcharset.c:346:11: [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. locale = getenv ("LANG"); data/opensp-1.5.2/intl/localename.c:998:12: [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. retval = getenv ("LC_ALL"); data/opensp-1.5.2/intl/localename.c:1002:12: [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. retval = getenv (categoryname); data/opensp-1.5.2/intl/localename.c:1006:12: [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. retval = getenv ("LANG"); data/opensp-1.5.2/intl/os2compat.c:51:16: [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. char *root = getenv ("UNIXROOT"); data/opensp-1.5.2/intl/os2compat.c:52:24: [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. char *gnulocaledir = getenv ("GNULOCALEDIR"); data/opensp-1.5.2/intl/os2compat.h:43:9: [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. #define getenv _nl_getenv data/opensp-1.5.2/lib/MessageReporter.cxx:30:15: [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. char* fmt = getenv("SP_MESSAGE_FORMAT") ; data/opensp-1.5.2/lib/Mutex.h:26:17: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. if (mp) ::EnterCriticalSection(&mp->cs_); data/opensp-1.5.2/lib/Mutex.h:35:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(&cs_); data/opensp-1.5.2/lib/URLStorage.cxx:563:19: [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. char* http_ua = getenv("SP_HTTP_USER_AGENT") ; data/opensp-1.5.2/lib/URLStorage.cxx:569:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* http_accept = getenv("SP_HTTP_ACCEPT") ; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:33:6: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. void realpath(const char*,char*); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1212:11: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath((const char *)dirname(dirs), realDirs); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1213:11: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath((const char *)dirname(outputDir), realOutputDir); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1215:22: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realDirs = realpath((const char *)dirname(dirs), NULL); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1216:27: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realOutputDir = realpath((const char *)dirname(outputDir), NULL); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1683:6: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. void realpath(const char* in,char* out) data/opensp-1.5.2/include/EntityManager.h:33:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual InputSource *open(const StringC &sysid, data/opensp-1.5.2/include/Location.h:145: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). enum Position { open, close }; data/opensp-1.5.2/include/OutputByteStream.h:118:11: [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). Boolean open(const wchar_t *); data/opensp-1.5.2/include/OutputByteStream.h:120:11: [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). Boolean open(const char *); data/opensp-1.5.2/include/OutputCharStream.h:53: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). void open(OutputByteStream *, const OutputCodingSystem *); data/opensp-1.5.2/include/StringOf.cxx:20: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(ptr_, ptr, length*sizeof(T)); data/opensp-1.5.2/include/StringOf.cxx:38: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(ptr_, s.ptr_, length_*sizeof(T)); data/opensp-1.5.2/include/StringOf.cxx:54: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(ptr_, s.ptr_, s.length_*sizeof(T)); data/opensp-1.5.2/include/StringOf.cxx:68: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_ + i, s.ptr_, s.length_*sizeof(T)); data/opensp-1.5.2/include/StringOf.cxx:77: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_ + length_, p, length*sizeof(T)); data/opensp-1.5.2/include/StringOf.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(s, ptr_, length_*sizeof(T)); data/opensp-1.5.2/include/StringOf.cxx:141:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr_, oldPtr, length_*sizeof(T)); data/opensp-1.5.2/include/Vector.cxx:150: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(p, ptr_, size_*sizeof(T)); data/opensp-1.5.2/intl/bindtextdom.c:157: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 (result, dirname, len); data/opensp-1.5.2/intl/bindtextdom.c:195:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, codeset, len); data/opensp-1.5.2/intl/bindtextdom.c:231:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_binding->domainname, domainname, len); data/opensp-1.5.2/intl/bindtextdom.c:256: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 (result, dirname, len); data/opensp-1.5.2/intl/bindtextdom.c:287:8: [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 (result, codeset, len); data/opensp-1.5.2/intl/dcigettext.c:240: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 msgid[ZERO]; data/opensp-1.5.2/intl/dcigettext.c:367: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 data[ZERO]; data/opensp-1.5.2/intl/dcigettext.c:483: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 (search->msgid, msgid1, msgid_len); data/opensp-1.5.2/intl/dcigettext.c:657:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (newp->domainname, domainname, domainname_len + 1); data/opensp-1.5.2/intl/dcigettext.c:1220:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (void *) ((char *) memcpy (dest, src, n) + n); data/opensp-1.5.2/intl/finddomain.c:130:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (locale, alias_value, len); data/opensp-1.5.2/intl/gettextP.h:145: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 domainname[ZERO]; data/opensp-1.5.2/intl/l10nflist.c:219:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, dirlist, dirlist_len); data/opensp-1.5.2/intl/langprefs.c:62:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/opensp-1.5.2/intl/loadmsgcat.c:460: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). # define open __open data/opensp-1.5.2/intl/loadmsgcat.c:817: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 (charset, charsetstr, len); data/opensp-1.5.2/intl/loadmsgcat.c:864:8: [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 (tmp, outcharset, len); data/opensp-1.5.2/intl/loadmsgcat.c:865:8: [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 (tmp + len, "//TRANSLIT", 10 + 1); data/opensp-1.5.2/intl/loadmsgcat.c:940:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (domain_file->filename, O_RDONLY | O_BINARY); data/opensp-1.5.2/intl/loadmsgcat.c:1293:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (mem, static_segments, segsize); data/opensp-1.5.2/intl/loadmsgcat.c:1302:6: [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 (mem, sysdep_segment_values[sysdepref], n); data/opensp-1.5.2/intl/localcharset.c:137:6: [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 (file_name, dir, dir_len); data/opensp-1.5.2/intl/localcharset.c:140:6: [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 (file_name + dir_len + add_slash, base, base_len + 1); data/opensp-1.5.2/intl/localcharset.c:144:38: [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). if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) data/opensp-1.5.2/intl/localcharset.c:156: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. char buf1[50+1]; data/opensp-1.5.2/intl/localcharset.c:157: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. char buf2[50+1]; data/opensp-1.5.2/intl/localcharset.c:326:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/opensp-1.5.2/intl/localcharset.c:329: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 (buf, "CP%u", GetACP ()); data/opensp-1.5.2/intl/localcharset.c:335:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/opensp-1.5.2/intl/localcharset.c:364:8: [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 (buf, dot, modifier - dot); data/opensp-1.5.2/intl/localcharset.c:380:4: [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 (buf, "CP%u", cp[0]); data/opensp-1.5.2/intl/localealias.c:229: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 (full_fname, fname, fname_len); data/opensp-1.5.2/intl/localealias.c:230: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile); data/opensp-1.5.2/intl/localealias.c:233:8: [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). fp = fopen (relocate (full_fname), "r"); data/opensp-1.5.2/intl/localealias.c:253:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[400]; data/opensp-1.5.2/intl/localealias.c:333:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. map[nmap].alias = memcpy (&string_space[string_space_act], data/opensp-1.5.2/intl/localealias.c:337:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. map[nmap].value = memcpy (&string_space[string_space_act], data/opensp-1.5.2/intl/localename.c:716:26: [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. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/opensp-1.5.2/intl/localename.c:716:51: [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. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/opensp-1.5.2/intl/localename.c:854:26: [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. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/opensp-1.5.2/intl/localename.c:854:51: [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. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/opensp-1.5.2/intl/localename.c:884:26: [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. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/opensp-1.5.2/intl/localename.c:884:50: [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. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/opensp-1.5.2/intl/localename.c:1047: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 namebuf[256]; data/opensp-1.5.2/intl/log.c:79:22: [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). last_logfile = fopen (logfilename, "a"); data/opensp-1.5.2/intl/os2compat.c:42:1: [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 libintl_nl_default_dirname[MAXPATHLEN+1]; data/opensp-1.5.2/intl/os2compat.c:61:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir, root, sl); data/opensp-1.5.2/intl/os2compat.c:62:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/opensp-1.5.2/intl/os2compat.c:75:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath, root, sl); data/opensp-1.5.2/intl/os2compat.c:76:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/opensp-1.5.2/intl/os2compat.c:89:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir, root, sl); data/opensp-1.5.2/intl/os2compat.c:90:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/opensp-1.5.2/intl/printf.c:191:8: [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 (resultbuf, result, maxlength - 1); data/opensp-1.5.2/intl/printf.c:345:8: [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 (resultbuf, result, (maxlength - 1) * sizeof (wchar_t)); data/opensp-1.5.2/intl/relocatable.c:124: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 (memory, orig_prefix_arg, orig_prefix_len + 1); data/opensp-1.5.2/intl/relocatable.c:127: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 (memory, curr_prefix_arg, curr_prefix_len + 1); data/opensp-1.5.2/intl/relocatable.c:208: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 (q, curr_pathname, p - curr_pathname); data/opensp-1.5.2/intl/relocatable.c:268:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (curr_prefix, curr_installdir, curr_prefix_len); data/opensp-1.5.2/intl/relocatable.c:295:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char location[MAX_PATH]; data/opensp-1.5.2/intl/relocatable.c:321:8: [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). fp = fopen ("/proc/self/maps", "r"); data/opensp-1.5.2/intl/relocatable.c:439:8: [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 (result, curr_prefix, curr_prefix_len); data/opensp-1.5.2/intl/textdomain.c:115: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 (new_domain, domainname, len); data/opensp-1.5.2/intl/vasnprintf.c: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 (memory, result, length * sizeof (CHAR_T)); \ data/opensp-1.5.2/intl/vasnprintf.c:220:6: [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 (result + length, cp, n * sizeof (CHAR_T)); data/opensp-1.5.2/intl/vasnprintf.c:524:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, dp->width_start, n * sizeof (CHAR_T)); data/opensp-1.5.2/intl/vasnprintf.c:530:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, dp->precision_start, n * sizeof (CHAR_T)); data/opensp-1.5.2/intl/vasnprintf.c:841:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (CHAR_T)); data/opensp-1.5.2/lib/CmdLineApp.cxx:416:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(errorFile_)) { data/opensp-1.5.2/lib/CmdLineApp.cxx:487: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 buf[256]; data/opensp-1.5.2/lib/CmdLineApp.cxx:533:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_CS_NAME]; data/opensp-1.5.2/lib/ConsoleOutput.cxx:56: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 buf[2]; data/opensp-1.5.2/lib/Entity.cxx:447:11: [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(externalId().effectiveSystemId(), data/opensp-1.5.2/lib/Event.cxx:144: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(alloc_, p_, length_*sizeof(Char)); data/opensp-1.5.2/lib/ExtendEntityManager.cxx:58: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). InputSource *open(const StringC &sysid, data/opensp-1.5.2/lib/ExtendEntityManager.cxx:312:33: [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). InputSource *EntityManagerImpl::open(const StringC &sysid, data/opensp-1.5.2/lib/ExtendEntityManager.cxx:1085: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(newBuf, buf_, bufSize_*sizeof(Char)); data/opensp-1.5.2/lib/ExtendEntityManager.cxx:2164:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/opensp-1.5.2/lib/ExtendEntityManager.cxx:2165:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "&#%lu;", (unsigned long)soi[i]); data/opensp-1.5.2/lib/ExtendEntityManager.cxx:2185:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/opensp-1.5.2/lib/ExtendEntityManager.cxx:2186:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "^%lu;", (unsigned long)soi[i]); data/opensp-1.5.2/lib/ExtendEntityManager.cxx:2196: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 buf[32]; data/opensp-1.5.2/lib/ExtendEntityManager.cxx:2197:4: [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(buf, "&#%lu;", (unsigned long)to); data/opensp-1.5.2/lib/InternalInputSource.cxx:40: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(buf_ + 1, cur(), (end() - start())*sizeof(Char)); data/opensp-1.5.2/lib/LiteralStorage.cxx:103: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(buf, (char *)str_.data() + nBytesRead_, nread); data/opensp-1.5.2/lib/Location.cxx:195: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). return pos_ == open; data/opensp-1.5.2/lib/MessageTable.cxx:49: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 bufmb[bufSize*2]; data/opensp-1.5.2/lib/MessageTable.cxx:55:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). len = MultiByteToWideChar(CP_ACP, 0, bufmb, len, buf, bufSize); data/opensp-1.5.2/lib/ModeInfo.cxx:34: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 contents[2]; // components of the delimiter or d-i-c data/opensp-1.5.2/lib/ModeInfo.cxx:35: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 modes[25]; // list of modes in which it is recognized, data/opensp-1.5.2/lib/OffsetOrderedList.h:21: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 bytes[size]; data/opensp-1.5.2/lib/OutputByteStream.cxx:142: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 buf[32]; data/opensp-1.5.2/lib/OutputByteStream.cxx:143: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(buf, "%ld", n); data/opensp-1.5.2/lib/OutputByteStream.cxx:149: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 buf[32]; data/opensp-1.5.2/lib/OutputByteStream.cxx:150: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(buf, "%lu", n); data/opensp-1.5.2/lib/OutputByteStream.cxx:211:31: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Boolean FileOutputByteStream::open(const wchar_t *filename) data/opensp-1.5.2/lib/OutputByteStream.cxx:222: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). return attach(::open(buf.data(), openFlags, protMode)); data/opensp-1.5.2/lib/OutputByteStream.cxx:227:31: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Boolean FileOutputByteStream::open(const char *filename) data/opensp-1.5.2/lib/OutputByteStream.cxx:229: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). return attach(::open(filename, openFlags, protMode)); data/opensp-1.5.2/lib/OutputCharStream.cxx:32:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr_, s, n*sizeof(Char)); data/opensp-1.5.2/lib/OutputCharStream.cxx:37:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr_, s, spare*sizeof(Char)); data/opensp-1.5.2/lib/OutputCharStream.cxx:59: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 buf[sizeof(unsigned long)*3 + 1]; data/opensp-1.5.2/lib/OutputCharStream.cxx:60: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(buf, "%lu", n); data/opensp-1.5.2/lib/OutputCharStream.cxx:66: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 buf[sizeof(int)*3 + 2]; data/opensp-1.5.2/lib/OutputCharStream.cxx:67: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(buf, "%d", n); data/opensp-1.5.2/lib/OutputCharStream.cxx:106:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void EncodeOutputCharStream::open(OutputByteStream *byteStream, data/opensp-1.5.2/lib/OutputCharStream.cxx:184: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(buf_, oldBuf, oldSize * sizeof(Char)); data/opensp-1.5.2/lib/Parser.cxx:91:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pushInput(entityManager().open(sysid, data/opensp-1.5.2/lib/PosixStorage.cxx:155:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return ::open(buf.data(), O_RDONLY|O_BINARY); data/opensp-1.5.2/lib/PosixStorage.cxx:159:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return ::open(s, O_RDONLY|O_BINARY); data/opensp-1.5.2/lib/RewindStorageObject.cxx:71: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(buf, savedBytes_.data() + nBytesRead_, nread); data/opensp-1.5.2/lib/SOEntityCatalog.cxx:860: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). in_ = em->open(sysid, sysidCharset, origin, data/opensp-1.5.2/lib/SOEntityCatalog.cxx:919:28: [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). InputSource *in = em->open(tem, data/opensp-1.5.2/lib/StdioStorage.cxx:72: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 *fp = fopen(filenameBytes.data(), "r"); data/opensp-1.5.2/lib/URLStorage.cxx:89:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). HTTP_RESPONSE_TYPE open(const String<char> &host, data/opensp-1.5.2/lib/URLStorage.cxx:304: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 locbuf[256] ; data/opensp-1.5.2/lib/URLStorage.cxx:307: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). switch (p->open(host, port, path, mgr, locbuf)) { data/opensp-1.5.2/lib/URLStorage.cxx:508: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(&sock.sin_addr, hp->h_addr, hp->h_length); data/opensp-1.5.2/lib/URLStorage.cxx:540:45: [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). HTTP_RESPONSE_TYPE HttpSocketStorageObject::open(const String<char> &host, data/opensp-1.5.2/lib/URLStorage.cxx:556:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portstr[sizeof(unsigned short)*3 + 1]; data/opensp-1.5.2/lib/URLStorage.cxx:557:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(portstr, "%u", port); data/opensp-1.5.2/lib/UnicodeCodingSystem.cxx:77: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 bytes[2]; data/opensp-1.5.2/lib/Win32CodingSystem.cxx:95:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(codePage, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, data/opensp-1.5.2/lib/Win32CodingSystem.cxx:145:15: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int count = MultiByteToWideChar(codePage_, data/opensp-1.5.2/lib/Win32CodingSystem.cxx:160:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(codePage_, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, data/opensp-1.5.2/lib/WinApp.cxx:208:20: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int nChars = MultiByteToWideChar(CP_ACP, 0, buf.data(), size - 1, 0, 0); data/opensp-1.5.2/lib/WinApp.cxx:214:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_ACP, 0, buf.data(), size - 1, (wchar_t *)valuew.data(), nChars) == nChars) data/opensp-1.5.2/lib/memmove.c:8:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(p2, p1, n); data/opensp-1.5.2/lib/parseDecl.cxx:1707: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). StringC open; data/opensp-1.5.2/lib/parseDecl.cxx:1737:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). text.insertChars(open, Location(new BracketOrigin(typeLocation, data/opensp-1.5.2/lib/parseDecl.cxx:1738:28: [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). BracketOrigin::open), data/opensp-1.5.2/lib/parseDecl.cxx:1744: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). && text.size() - open.size() - close.size() <= syntax().litlen()) data/opensp-1.5.2/lib/parseSd.cxx:180:41: [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). InputSource *in = entityManager().open(systemId, data/opensp-1.5.2/lib/parseSd.cxx:704:31: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pushInput(entityManager().open(entity->externalId().effectiveSystemId(), data/opensp-1.5.2/lib/parseSd.cxx:1206:39: [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). InputSource *in = entityManager().open(sysid, data/opensp-1.5.2/lib/strerror.c:14:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[sizeof("Error ") + 1 + INT_DIGITS]; data/opensp-1.5.2/lib/strerror.c:18:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "Error %d", n); data/opensp-1.5.2/nsgmls/RastEventHandler.h:43: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 v_[UCHAR_MAX + 1]; data/opensp-1.5.2/nsgmls/nsgmls.cxx:238:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file_.open(filename)) { data/opensp-1.5.2/nsgmls/nsgmls.cxx:244: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). os_.open(&file_, codingSystem); data/opensp-1.5.2/nsgmls/nsgmls.cxx:262:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file_.open(filename_)) { data/opensp-1.5.2/sgmlnorm/SGMLGenerator.h:69: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 nonSgml_[256]; // bool data/opensp-1.5.2/spent/spent.cxx:57:38: [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). InputSource *in = entityManager()->open(sysid, data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:133:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!extEntFile_->open(filePath)) { data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:168:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!intEntFile_->open(filePath)) { data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:880:41: [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). Owner<InputSource> in(entityManager_->open(fsi, data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1203: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. char realDirs[MAXPATHLEN]; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1204: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. char realOutputDir[MAXPATHLEN]; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1277:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file->open(filePath)) { data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1448:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(name, ".xml"); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1454:5: [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 (suffix, ".xml"); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1464:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (name, ".xml"); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1547: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 numStr[3]; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1553:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(numStr, "%d", num); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1670: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[MAXPATHLEN]; data/opensp-1.5.2/include/StorageManager.h:28:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual Boolean read(char *buf, size_t bufSize, Messenger &, data/opensp-1.5.2/include/sptchar.h:68:10: [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). return wcslen(s); data/opensp-1.5.2/include/sptchar.h:141: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). return strlen(s); data/opensp-1.5.2/intl/bindtextdom.c:154: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 len = strlen (dirname) + 1; data/opensp-1.5.2/intl/bindtextdom.c:192: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 len = strlen (codeset) + 1; data/opensp-1.5.2/intl/bindtextdom.c:224: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). size_t len = strlen (domainname) + 1; data/opensp-1.5.2/intl/bindtextdom.c:252: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 len = strlen (dirname) + 1; data/opensp-1.5.2/intl/bindtextdom.c:283: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). size_t len = strlen (codeset) + 1; data/opensp-1.5.2/intl/dcigettext.c:477: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). msgid_len = strlen (msgid1) + 1; data/opensp-1.5.2/intl/dcigettext.c:531: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 dirname_len = strlen (binding->dirname) + 1; data/opensp-1.5.2/intl/dcigettext.c:564: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). domainname_len = strlen (domainname); data/opensp-1.5.2/intl/dcigettext.c:565:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdomainname = (char *) alloca (strlen (categoryname) data/opensp-1.5.2/intl/dcigettext.c:574: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). single_locale = (char *) alloca (strlen (categoryvalue) + 1); data/opensp-1.5.2/intl/dcigettext.c:745:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nls_uint32 len = strlen (msgid); data/opensp-1.5.2/intl/eval-plural.h:88:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. case equal: data/opensp-1.5.2/intl/finddomain.c:89: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). strlen (dirname) + 1, 0, locale, NULL, NULL, data/opensp-1.5.2/intl/finddomain.c:125: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). size_t len = strlen (alias_value) + 1; data/opensp-1.5.2/intl/finddomain.c:144: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). strlen (dirname) + 1, mask, language, territory, data/opensp-1.5.2/intl/l10nflist.c:93: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 part_len = strlen (argz); data/opensp-1.5.2/intl/l10nflist.c:116: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 part_len = strlen (argz); data/opensp-1.5.2/intl/l10nflist.c:192:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen (language) data/opensp-1.5.2/intl/l10nflist.c:194: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). ? strlen (territory) + 1 : 0) data/opensp-1.5.2/intl/l10nflist.c:196: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). ? strlen (codeset) + 1 : 0) data/opensp-1.5.2/intl/l10nflist.c:198: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). ? strlen (normalized_codeset) + 1 : 0) data/opensp-1.5.2/intl/l10nflist.c:201: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). ? strlen (modifier) + 1 : 0) data/opensp-1.5.2/intl/l10nflist.c:203: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). ? strlen (special) + 1 : 0) data/opensp-1.5.2/intl/l10nflist.c:207:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (sponsor) : 0) data/opensp-1.5.2/intl/l10nflist.c:209: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). ? strlen (revision) + 1 : 0)) : 0) data/opensp-1.5.2/intl/l10nflist.c:210:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + 1 + strlen (filename) + 1); data/opensp-1.5.2/intl/l10nflist.c:346:45: [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). = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, data/opensp-1.5.2/intl/langprefs.c:76: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 += strlen (buf) + 1; data/opensp-1.5.2/intl/langprefs.c:108:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (buf); data/opensp-1.5.2/intl/loadmsgcat.c:462:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read __read data/opensp-1.5.2/intl/loadmsgcat.c:810: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). charsetstr += strlen ("charset="); data/opensp-1.5.2/intl/loadmsgcat.c:862:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (outcharset); data/opensp-1.5.2/intl/loadmsgcat.c:988:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). long int nb = (long int) read (fd, read_ptr, to_read); data/opensp-1.5.2/intl/loadmsgcat.c:1166: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). need += strlen (sysdep_segment_values[sysdepref]); data/opensp-1.5.2/intl/loadmsgcat.c:1301: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). n = strlen (sysdep_segment_values[sysdepref]); data/opensp-1.5.2/intl/localcharset.c:90:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/opensp-1.5.2/intl/localcharset.c:91:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/opensp-1.5.2/intl/localcharset.c:131:19: [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 dir_len = strlen (dir); data/opensp-1.5.2/intl/localcharset.c:132: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). size_t base_len = strlen (base); data/opensp-1.5.2/intl/localcharset.c:161:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/opensp-1.5.2/intl/localcharset.c:170:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/opensp-1.5.2/intl/localcharset.c:177:12: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/opensp-1.5.2/intl/localcharset.c:179:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l1 = strlen (buf1); data/opensp-1.5.2/intl/localcharset.c:180:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l2 = strlen (buf2); data/opensp-1.5.2/intl/localcharset.c:394:19: [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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/opensp-1.5.2/intl/localcharset.c:394:52: [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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/opensp-1.5.2/intl/localcharset.c:398: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). codeset = aliases + strlen (aliases) + 1; data/opensp-1.5.2/intl/localealias.c:305: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). alias_len = strlen (alias) + 1; data/opensp-1.5.2/intl/localealias.c:306: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_len = strlen (value) + 1; data/opensp-1.5.2/intl/localename.c:917:7: [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). if (strlen (name) == 7 && name[2] == '-') data/opensp-1.5.2/intl/log.c:75:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). last_logfilename = (char *) malloc (strlen (logfilename) + 1); data/opensp-1.5.2/intl/os2compat.c:59: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 sl = strlen (root); data/opensp-1.5.2/intl/os2compat.c:60:49: [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). _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); data/opensp-1.5.2/intl/os2compat.c:62:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/opensp-1.5.2/intl/os2compat.c: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 sl = strlen (root); data/opensp-1.5.2/intl/os2compat.c:74:58: [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). _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); data/opensp-1.5.2/intl/os2compat.c:76:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/opensp-1.5.2/intl/os2compat.c:87: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 sl = strlen (root); data/opensp-1.5.2/intl/os2compat.c:88:52: [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). _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); data/opensp-1.5.2/intl/os2compat.c:90:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/opensp-1.5.2/intl/os2compat.c:96:7: [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). if (strlen (_nlos2_localedir) <= MAXPATHLEN) data/opensp-1.5.2/intl/plural-exp.h:54:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal, /* Comparison for equality. */ data/opensp-1.5.2/intl/plural.c:564: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). # define yystrlen strlen data/opensp-1.5.2/intl/plural.c:1385:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. lval->op = equal; data/opensp-1.5.2/intl/relocatable.c:117: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). orig_prefix_len = strlen (orig_prefix_arg); data/opensp-1.5.2/intl/relocatable.c:118: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). curr_prefix_len = strlen (curr_prefix_arg); data/opensp-1.5.2/intl/relocatable.c:184:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/opensp-1.5.2/intl/relocatable.c:188: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). rel_installdir = orig_installdir + strlen (orig_installprefix); data/opensp-1.5.2/intl/relocatable.c:193:37: [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 char *p = curr_pathname + strlen (curr_pathname); data/opensp-1.5.2/intl/relocatable.c:216:39: [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 char *rp = rel_installdir + strlen (rel_installdir); data/opensp-1.5.2/intl/relocatable.c:217:40: [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 char *cp = curr_installdir + strlen (curr_installdir); data/opensp-1.5.2/intl/relocatable.c:335:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/opensp-1.5.2/intl/relocatable.c:354:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/opensp-1.5.2/intl/relocatable.c:433:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/opensp-1.5.2/intl/textdomain.c:112: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). size_t len = strlen (domainname) + 1; data/opensp-1.5.2/intl/vasnprintf.c:62:24: [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). # define local_wcslen wcslen data/opensp-1.5.2/intl/vasnprintf.c:467:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_length = strlen (a.arg[dp->arg_index].a.a_string); data/opensp-1.5.2/lib/ArcEngine.cxx:2003: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). if (name.size() != strlen(key)) data/opensp-1.5.2/lib/CmdLineApp.cxx:251:20: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. s += convertInput(equal); data/opensp-1.5.2/lib/CmdLineApp.cxx:287: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). int n = (int)strlen(s); data/opensp-1.5.2/lib/CodingSystem.cxx:25:14: [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). str.resize(strlen(s)); data/opensp-1.5.2/lib/CodingSystem.cxx:26:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str.resize(decoder->decode(&str[0], s, strlen(s), &s)); data/opensp-1.5.2/lib/ExtendEntityManager.cxx:454:7: [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). if (strlen(s) != type.size()) data/opensp-1.5.2/lib/ExtendEntityManager.cxx:509:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &mgr, data/opensp-1.5.2/lib/ExtendEntityManager.cxx:514:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return sub_->read(buf, bufSize, mgr, nread); data/opensp-1.5.2/lib/ExtendEntityManager.cxx:517:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!sub_->read(buf_, bufSize_, mgr, bufAvail_)) data/opensp-1.5.2/lib/ExtendEntityManager.cxx:871:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (so_->read((char *)(buf_ + bufSize_ - readSizeChars), readSize_, data/opensp-1.5.2/lib/ExtendEntityManager.cxx:1313:7: [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). if (strlen(s) != str.size()) data/opensp-1.5.2/lib/ExternalId.cxx:98:12: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. UnivChar equal, at, semicolon, dollar, uline, bang, star, apos; data/opensp-1.5.2/lib/ExternalId.cxx:107:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. charset.descToUniv('=', equal); data/opensp-1.5.2/lib/ExternalId.cxx:173:70: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. && !(c == minus) && !(c == period) && !(c == colon) && !(c == equal) data/opensp-1.5.2/lib/LiteralStorage.cxx:26:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &, size_t &nread); data/opensp-1.5.2/lib/LiteralStorage.cxx:95:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean LiteralStorageObject::read(char *buf, size_t bufSize, data/opensp-1.5.2/lib/MessageTable.cxx:133:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str.assign(s, strlen(s)); data/opensp-1.5.2/lib/PosixStorage.cxx:129:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); data/opensp-1.5.2/lib/PosixStorage.cxx:525:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean PosixStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, data/opensp-1.5.2/lib/PosixStorage.cxx:536:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = ::read(fd_, buf, bufSize); data/opensp-1.5.2/lib/PosixStorage.cxx:663:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); data/opensp-1.5.2/lib/PosixStorage.cxx:730:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean PosixFdStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, data/opensp-1.5.2/lib/PosixStorage.cxx:739:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = ::read(fd_, buf, bufSize); data/opensp-1.5.2/lib/StdioStorage.cxx:36:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); data/opensp-1.5.2/lib/StdioStorage.cxx:119:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean StdioStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, data/opensp-1.5.2/lib/StdioStorage.cxx:128:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(fp); data/opensp-1.5.2/lib/URLStorage.cxx:45:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define readsocket(s, p, n) ::read(s, p, n) data/opensp-1.5.2/lib/URLStorage.cxx:94:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); data/opensp-1.5.2/lib/URLStorage.cxx:207:8: [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). if ( strlen(buf) <= strlen (str) ) data/opensp-1.5.2/lib/URLStorage.cxx:207: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). if ( strlen(buf) <= strlen (str) ) data/opensp-1.5.2/lib/URLStorage.cxx:210:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for ( int i = 0; i < strlen(str); ++i) data/opensp-1.5.2/lib/URLStorage.cxx:320: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). line += strlen("location:") ; data/opensp-1.5.2/lib/URLStorage.cxx:343: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("http://") ; data/opensp-1.5.2/lib/URLStorage.cxx:559: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). request.append(portstr, strlen(portstr)); data/opensp-1.5.2/lib/URLStorage.cxx:567: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). request.append(http_ua, strlen(http_ua)) ; data/opensp-1.5.2/lib/URLStorage.cxx:572: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). request.append(http_accept, strlen(http_accept)) ; data/opensp-1.5.2/lib/URLStorage.cxx:635:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(locbuf, buf.data(), sz) ; data/opensp-1.5.2/lib/URLStorage.cxx:771:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean HttpSocketStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, data/opensp-1.5.2/lib/WinInetStorage.cxx:70:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); data/opensp-1.5.2/lib/WinInetStorage.cxx:199:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Boolean WinInetStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, data/opensp-1.5.2/nsgmls/RastEventHandler.cxx:345:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. Boolean equal(const Char *s1, size_t n1, const StringC &s2) data/opensp-1.5.2/nsgmls/RastEventHandler.cxx:366:7: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal(data, dataLength, rastParseSubdocNoString_)) { data/opensp-1.5.2/nsgmls/RastEventHandler.cxx:370:7: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal(data, dataLength, rastParseSubdocYesString_)) { data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:111: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). if (outputDir_ == NULL || strlen(outputDir_) == 0) data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:117:57: [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). ParserApp::AppChar* filePath=new ParserApp::AppChar[strlen(outputDir_) + 21]; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:119:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (filePath, "/"); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:152: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). char* filePath=new char[strlen(outputDir_) + 21]; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:154:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (filePath, "/"); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1166: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). char* filePath=new char[strlen(outputDir_) + 9 + data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1196:11: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (filePath, "/"); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1219:48: [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). if (strncmp(realDirs, realOutputDir, strlen (realOutputDir)) != 0) { data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1542: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). char* baseFilePath=new char[strlen(filePath)]; data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1552:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (filePath, "."); data/opensp-1.5.2/sx/XmlOutputEventHandler.cxx:1678:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,path,p-path); ANALYSIS SUMMARY: Hits = 362 Lines analyzed = 95324 in approximately 2.09 seconds (45605 lines/second) Physical Source Lines of Code (SLOC) = 83123 Hits@level = [0] 9 [1] 134 [2] 167 [3] 30 [4] 31 [5] 0 Hits@level+ = [0+] 371 [1+] 362 [2+] 228 [3+] 61 [4+] 31 [5+] 0 Hits/KSLOC@level+ = [0+] 4.46327 [1+] 4.35499 [2+] 2.74292 [3+] 0.733852 [4+] 0.372941 [5+] 0 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.