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/xoreos-tools-0.0.5/src/aurora/2dafile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/2dafile.h
Examining data/xoreos-tools-0.0.5/src/aurora/archive.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/archive.h
Examining data/xoreos-tools-0.0.5/src/aurora/aurorafile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/aurorafile.h
Examining data/xoreos-tools-0.0.5/src/aurora/biffile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/biffile.h
Examining data/xoreos-tools-0.0.5/src/aurora/erffile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/erffile.h
Examining data/xoreos-tools-0.0.5/src/aurora/erfwriter.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/erfwriter.h
Examining data/xoreos-tools-0.0.5/src/aurora/gdafile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/gdafile.h
Examining data/xoreos-tools-0.0.5/src/aurora/gdaheaders.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/gdaheaders.h
Examining data/xoreos-tools-0.0.5/src/aurora/gff3file.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/gff3file.h
Examining data/xoreos-tools-0.0.5/src/aurora/gff4fields.h
Examining data/xoreos-tools-0.0.5/src/aurora/gff4file.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/gff4file.h
Examining data/xoreos-tools-0.0.5/src/aurora/herffile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/herffile.h
Examining data/xoreos-tools-0.0.5/src/aurora/keyfile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/keyfile.h
Examining data/xoreos-tools-0.0.5/src/aurora/language.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/language.h
Examining data/xoreos-tools-0.0.5/src/aurora/language_strings.h
Examining data/xoreos-tools-0.0.5/src/aurora/locstring.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/locstring.h
Examining data/xoreos-tools-0.0.5/src/aurora/ndsrom.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/ndsrom.h
Examining data/xoreos-tools-0.0.5/src/aurora/nitrofile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/nitrofile.h
Examining data/xoreos-tools-0.0.5/src/aurora/nsbtxfile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/nsbtxfile.h
Examining data/xoreos-tools-0.0.5/src/aurora/rimfile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/rimfile.h
Examining data/xoreos-tools-0.0.5/src/aurora/smallfile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/smallfile.h
Examining data/xoreos-tools-0.0.5/src/aurora/ssffile.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/ssffile.h
Examining data/xoreos-tools-0.0.5/src/aurora/talktable.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/talktable.h
Examining data/xoreos-tools-0.0.5/src/aurora/talktable_gff.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/talktable_gff.h
Examining data/xoreos-tools-0.0.5/src/aurora/talktable_tlk.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/talktable_tlk.h
Examining data/xoreos-tools-0.0.5/src/aurora/types.h
Examining data/xoreos-tools-0.0.5/src/aurora/util.cpp
Examining data/xoreos-tools-0.0.5/src/aurora/util.h
Examining data/xoreos-tools-0.0.5/src/cbgt2tga.cpp
Examining data/xoreos-tools-0.0.5/src/cdpth2tga.cpp
Examining data/xoreos-tools-0.0.5/src/common/base64.cpp
Examining data/xoreos-tools-0.0.5/src/common/base64.h
Examining data/xoreos-tools-0.0.5/src/common/binsearch.h
Examining data/xoreos-tools-0.0.5/src/common/blowfish.cpp
Examining data/xoreos-tools-0.0.5/src/common/blowfish.h
Examining data/xoreos-tools-0.0.5/src/common/cli.cpp
Examining data/xoreos-tools-0.0.5/src/common/cli.h
Examining data/xoreos-tools-0.0.5/src/common/deallocator.h
Examining data/xoreos-tools-0.0.5/src/common/deflate.cpp
Examining data/xoreos-tools-0.0.5/src/common/deflate.h
Examining data/xoreos-tools-0.0.5/src/common/disposableptr.h
Examining data/xoreos-tools-0.0.5/src/common/encoding.cpp
Examining data/xoreos-tools-0.0.5/src/common/encoding.h
Examining data/xoreos-tools-0.0.5/src/common/encoding_strings.h
Examining data/xoreos-tools-0.0.5/src/common/endianness.h
Examining data/xoreos-tools-0.0.5/src/common/error.cpp
Examining data/xoreos-tools-0.0.5/src/common/error.h
Examining data/xoreos-tools-0.0.5/src/common/fallthrough.h
Examining data/xoreos-tools-0.0.5/src/common/filepath.cpp
Examining data/xoreos-tools-0.0.5/src/common/filepath.h
Examining data/xoreos-tools-0.0.5/src/common/hash.h
Examining data/xoreos-tools-0.0.5/src/common/maths.cpp
Examining data/xoreos-tools-0.0.5/src/common/maths.h
Examining data/xoreos-tools-0.0.5/src/common/md5.cpp
Examining data/xoreos-tools-0.0.5/src/common/md5.h
Examining data/xoreos-tools-0.0.5/src/common/memreadstream.cpp
Examining data/xoreos-tools-0.0.5/src/common/memreadstream.h
Examining data/xoreos-tools-0.0.5/src/common/memwritestream.cpp
Examining data/xoreos-tools-0.0.5/src/common/memwritestream.h
Examining data/xoreos-tools-0.0.5/src/common/noreturn.h
Examining data/xoreos-tools-0.0.5/src/common/platform.cpp
Examining data/xoreos-tools-0.0.5/src/common/platform.h
Examining data/xoreos-tools-0.0.5/src/common/ptrlist.h
Examining data/xoreos-tools-0.0.5/src/common/ptrmap.h
Examining data/xoreos-tools-0.0.5/src/common/ptrvector.h
Examining data/xoreos-tools-0.0.5/src/common/readfile.cpp
Examining data/xoreos-tools-0.0.5/src/common/readfile.h
Examining data/xoreos-tools-0.0.5/src/common/readstream.cpp
Examining data/xoreos-tools-0.0.5/src/common/readstream.h
Examining data/xoreos-tools-0.0.5/src/common/scopedptr.h
Examining data/xoreos-tools-0.0.5/src/common/singleton.h
Examining data/xoreos-tools-0.0.5/src/common/stdinstream.cpp
Examining data/xoreos-tools-0.0.5/src/common/stdinstream.h
Examining data/xoreos-tools-0.0.5/src/common/stdoutstream.cpp
Examining data/xoreos-tools-0.0.5/src/common/stdoutstream.h
Examining data/xoreos-tools-0.0.5/src/common/streamtokenizer.cpp
Examining data/xoreos-tools-0.0.5/src/common/streamtokenizer.h
Examining data/xoreos-tools-0.0.5/src/common/strutil.cpp
Examining data/xoreos-tools-0.0.5/src/common/strutil.h
Examining data/xoreos-tools-0.0.5/src/common/system.h
Examining data/xoreos-tools-0.0.5/src/common/types.h
Examining data/xoreos-tools-0.0.5/src/common/ustring.cpp
Examining data/xoreos-tools-0.0.5/src/common/ustring.h
Examining data/xoreos-tools-0.0.5/src/common/util.cpp
Examining data/xoreos-tools-0.0.5/src/common/util.h
Examining data/xoreos-tools-0.0.5/src/common/writefile.cpp
Examining data/xoreos-tools-0.0.5/src/common/writefile.h
Examining data/xoreos-tools-0.0.5/src/common/writestream.cpp
Examining data/xoreos-tools-0.0.5/src/common/writestream.h
Examining data/xoreos-tools-0.0.5/src/convert2da.cpp
Examining data/xoreos-tools-0.0.5/src/desmall.cpp
Examining data/xoreos-tools-0.0.5/src/erf.cpp
Examining data/xoreos-tools-0.0.5/src/files_dragonage.cpp
Examining data/xoreos-tools-0.0.5/src/files_dragonage.h
Examining data/xoreos-tools-0.0.5/src/files_sonic.cpp
Examining data/xoreos-tools-0.0.5/src/files_sonic.h
Examining data/xoreos-tools-0.0.5/src/fixpremiumgff.cpp
Examining data/xoreos-tools-0.0.5/src/gff2xml.cpp
Examining data/xoreos-tools-0.0.5/src/images/cbgt.cpp
Examining data/xoreos-tools-0.0.5/src/images/cbgt.h
Examining data/xoreos-tools-0.0.5/src/images/cdpth.cpp
Examining data/xoreos-tools-0.0.5/src/images/cdpth.h
Examining data/xoreos-tools-0.0.5/src/images/dds.cpp
Examining data/xoreos-tools-0.0.5/src/images/dds.h
Examining data/xoreos-tools-0.0.5/src/images/decoder.cpp
Examining data/xoreos-tools-0.0.5/src/images/decoder.h
Examining data/xoreos-tools-0.0.5/src/images/dumptga.cpp
Examining data/xoreos-tools-0.0.5/src/images/dumptga.h
Examining data/xoreos-tools-0.0.5/src/images/nbfs.cpp
Examining data/xoreos-tools-0.0.5/src/images/nbfs.h
Examining data/xoreos-tools-0.0.5/src/images/ncgr.cpp
Examining data/xoreos-tools-0.0.5/src/images/ncgr.h
Examining data/xoreos-tools-0.0.5/src/images/nclr.cpp
Examining data/xoreos-tools-0.0.5/src/images/nclr.h
Examining data/xoreos-tools-0.0.5/src/images/s3tc.cpp
Examining data/xoreos-tools-0.0.5/src/images/s3tc.h
Examining data/xoreos-tools-0.0.5/src/images/sbm.cpp
Examining data/xoreos-tools-0.0.5/src/images/sbm.h
Examining data/xoreos-tools-0.0.5/src/images/tga.cpp
Examining data/xoreos-tools-0.0.5/src/images/tga.h
Examining data/xoreos-tools-0.0.5/src/images/tpc.cpp
Examining data/xoreos-tools-0.0.5/src/images/tpc.h
Examining data/xoreos-tools-0.0.5/src/images/txb.cpp
Examining data/xoreos-tools-0.0.5/src/images/txb.h
Examining data/xoreos-tools-0.0.5/src/images/types.h
Examining data/xoreos-tools-0.0.5/src/images/util.h
Examining data/xoreos-tools-0.0.5/src/images/winiconimage.cpp
Examining data/xoreos-tools-0.0.5/src/images/winiconimage.h
Examining data/xoreos-tools-0.0.5/src/images/xoreositex.cpp
Examining data/xoreos-tools-0.0.5/src/images/xoreositex.h
Examining data/xoreos-tools-0.0.5/src/nbfs2tga.cpp
Examining data/xoreos-tools-0.0.5/src/ncgr2tga.cpp
Examining data/xoreos-tools-0.0.5/src/ncsdis.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/block.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/block.h
Examining data/xoreos-tools-0.0.5/src/nwscript/controlflow.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/controlflow.h
Examining data/xoreos-tools-0.0.5/src/nwscript/disassembler.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/disassembler.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/game.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_dragonage.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_dragonage2.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_jade.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_kotor.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_kotor2.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_nwn.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_nwn2.h
Examining data/xoreos-tools-0.0.5/src/nwscript/game_witcher.h
Examining data/xoreos-tools-0.0.5/src/nwscript/instruction.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/instruction.h
Examining data/xoreos-tools-0.0.5/src/nwscript/ncsfile.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/ncsfile.h
Examining data/xoreos-tools-0.0.5/src/nwscript/stack.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/stack.h
Examining data/xoreos-tools-0.0.5/src/nwscript/subroutine.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/subroutine.h
Examining data/xoreos-tools-0.0.5/src/nwscript/util.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/util.h
Examining data/xoreos-tools-0.0.5/src/nwscript/variable.cpp
Examining data/xoreos-tools-0.0.5/src/nwscript/variable.h
Examining data/xoreos-tools-0.0.5/src/ssf2xml.cpp
Examining data/xoreos-tools-0.0.5/src/tlk2xml.cpp
Examining data/xoreos-tools-0.0.5/src/unerf.cpp
Examining data/xoreos-tools-0.0.5/src/unherf.cpp
Examining data/xoreos-tools-0.0.5/src/unkeybif.cpp
Examining data/xoreos-tools-0.0.5/src/unnds.cpp
Examining data/xoreos-tools-0.0.5/src/unnsbtx.cpp
Examining data/xoreos-tools-0.0.5/src/unrim.cpp
Examining data/xoreos-tools-0.0.5/src/util.cpp
Examining data/xoreos-tools-0.0.5/src/util.h
Examining data/xoreos-tools-0.0.5/src/version/version.cpp
Examining data/xoreos-tools-0.0.5/src/version/version.h
Examining data/xoreos-tools-0.0.5/src/xml/gff3dumper.cpp
Examining data/xoreos-tools-0.0.5/src/xml/gff3dumper.h
Examining data/xoreos-tools-0.0.5/src/xml/gff4dumper.cpp
Examining data/xoreos-tools-0.0.5/src/xml/gff4dumper.h
Examining data/xoreos-tools-0.0.5/src/xml/gff4fields.h
Examining data/xoreos-tools-0.0.5/src/xml/gffdumper.cpp
Examining data/xoreos-tools-0.0.5/src/xml/gffdumper.h
Examining data/xoreos-tools-0.0.5/src/xml/ssfcreator.cpp
Examining data/xoreos-tools-0.0.5/src/xml/ssfcreator.h
Examining data/xoreos-tools-0.0.5/src/xml/ssfdumper.cpp
Examining data/xoreos-tools-0.0.5/src/xml/ssfdumper.h
Examining data/xoreos-tools-0.0.5/src/xml/tlkcreator.cpp
Examining data/xoreos-tools-0.0.5/src/xml/tlkcreator.h
Examining data/xoreos-tools-0.0.5/src/xml/tlkdumper.cpp
Examining data/xoreos-tools-0.0.5/src/xml/tlkdumper.h
Examining data/xoreos-tools-0.0.5/src/xml/xmlparser.cpp
Examining data/xoreos-tools-0.0.5/src/xml/xmlparser.h
Examining data/xoreos-tools-0.0.5/src/xml/xmlwriter.cpp
Examining data/xoreos-tools-0.0.5/src/xml/xmlwriter.h
Examining data/xoreos-tools-0.0.5/src/xml2ssf.cpp
Examining data/xoreos-tools-0.0.5/src/xml2tlk.cpp
Examining data/xoreos-tools-0.0.5/src/xoreostex2tga.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/2dafile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/gdafile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/gff3file.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/gff4file.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/keyfile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/language.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/locstring.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/ndsrom.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/rimfile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/ssffile.cpp
Examining data/xoreos-tools-0.0.5/tests/aurora/util.cpp
Examining data/xoreos-tools-0.0.5/tests/common/binsearch.cpp
Examining data/xoreos-tools-0.0.5/tests/common/blowfish.cpp
Examining data/xoreos-tools-0.0.5/tests/common/deflate.cpp
Examining data/xoreos-tools-0.0.5/tests/common/disposableptr.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding.h
Examining data/xoreos-tools-0.0.5/tests/common/encoding_ascii.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp1250.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp1251.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp1252.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp932.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp936.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp949.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_cp950.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_latin9.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_tests.h
Examining data/xoreos-tools-0.0.5/tests/common/encoding_utf16be.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_utf16le.cpp
Examining data/xoreos-tools-0.0.5/tests/common/encoding_utf8.cpp
Examining data/xoreos-tools-0.0.5/tests/common/filepath.cpp
Examining data/xoreos-tools-0.0.5/tests/common/hash.cpp
Examining data/xoreos-tools-0.0.5/tests/common/maths.cpp
Examining data/xoreos-tools-0.0.5/tests/common/md5.cpp
Examining data/xoreos-tools-0.0.5/tests/common/memreadstream.cpp
Examining data/xoreos-tools-0.0.5/tests/common/memwritestream.cpp
Examining data/xoreos-tools-0.0.5/tests/common/ptrlist.cpp
Examining data/xoreos-tools-0.0.5/tests/common/ptrmap.cpp
Examining data/xoreos-tools-0.0.5/tests/common/ptrvector.cpp
Examining data/xoreos-tools-0.0.5/tests/common/readfile.cpp
Examining data/xoreos-tools-0.0.5/tests/common/scopedptr.cpp
Examining data/xoreos-tools-0.0.5/tests/common/streamtokenizer.cpp
Examining data/xoreos-tools-0.0.5/tests/common/strutil.cpp
Examining data/xoreos-tools-0.0.5/tests/common/ustring.cpp
Examining data/xoreos-tools-0.0.5/tests/common/util.cpp
Examining data/xoreos-tools-0.0.5/tests/common/writefile.cpp
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-death-test.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-message.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-param-test.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-printers.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-spi.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-test-part.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest-typed-test.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest_pred_impl.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest_prod.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/custom/gtest-port.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/custom/gtest-printers.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/custom/gtest.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-death-test-internal.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-filepath.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-internal.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-linked_ptr.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-param-util-generated.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-param-util.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port-arch.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-string.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-tuple.h
Examining data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-type-util.h
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-all.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-death-test.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-filepath.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-internal-inl.h
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-printers.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-test-part.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest-typed-test.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc
Examining data/xoreos-tools-0.0.5/tests/googletest/src/gtest_main.cc
Examining data/xoreos-tools-0.0.5/tests/images/util.cpp
Examining data/xoreos-tools-0.0.5/tests/images/xoreositex.cpp
Examining data/xoreos-tools-0.0.5/tests/skip.h
Examining data/xoreos-tools-0.0.5/tests/version/version.cpp
Examining data/xoreos-tools-0.0.5/tests/xml/xmlparser.cpp
Examining data/xoreos-tools-0.0.5/utf8cpp/utf8.h
Examining data/xoreos-tools-0.0.5/utf8cpp/utf8/checked.h
Examining data/xoreos-tools-0.0.5/utf8cpp/utf8/core.h
Examining data/xoreos-tools-0.0.5/utf8cpp/utf8/unchecked.h

FINAL RESULTS:

data/xoreos-tools-0.0.5/src/common/error.cpp:42:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/common/error.cpp:63:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/common/filepath.cpp:195:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/xoreos-tools-0.0.5/src/common/system.h:66:10:  [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 c99_snprintf
data/xoreos-tools-0.0.5/src/common/system.h:67:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	#define vsnprintf c99_vsnprintf
data/xoreos-tools-0.0.5/src/common/system.h:139:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	#error No system type defined
data/xoreos-tools-0.0.5/src/common/system.h:147:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	#define GCC_PRINTF(x,y) __attribute__((__format__(printf, x, y)))
data/xoreos-tools-0.0.5/src/common/ustring.cpp:717:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/common/util.cpp:37:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/common/util.cpp:52:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/common/util.cpp:66:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/common/util.cpp:80:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, s, va);
data/xoreos-tools-0.0.5/src/xml/xmlparser.cpp:49:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, STRINGBUFLEN, msg, va);
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-death-test-internal.h:165:5:  [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.
    fprintf(\
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2366:20:  [4] (buffer) StrNCpy:
  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).
inline const char* StrNCpy(char* dest, const char* src, size_t n) {
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2437:26:  [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 GTEST_SNPRINTF_ _snprintf
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2439:26:  [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 GTEST_SNPRINTF_ snprintf
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:146:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define vsnprintf _vsnprintf
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:2971:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:2991:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:2998:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/xoreos-tools-0.0.5/src/common/platform.cpp:191: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.
	const char *pathStr = getenv("HOME");
data/xoreos-tools-0.0.5/src/common/platform.cpp:245: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.
	const char *pathStr = getenv("XDG_CONFIG_HOME");
data/xoreos-tools-0.0.5/src/common/platform.cpp:285: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.
	const char *pathStr = getenv("XDG_DATA_HOME");
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/gtest.h:925:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  void ShuffleTests(internal::Random* random);
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2405:27:  [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* const env = getenv(name);
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2408: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(name);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-internal-inl.h:312:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void ShuffleRange(internal::Random* random, int begin, int end,
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-internal-inl.h:333:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline void Shuffle(internal::Random* random, std::vector<E>* v) {
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-internal-inl.h:334:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random, 0, static_cast<int>(v->size()), v);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-internal-inl.h:792:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  internal::Random* random() { return &random_; }
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:243:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  ::InitializeCriticalSection(critical_section_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:261:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  ::EnterCriticalSection(critical_section_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:293:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        ::InitializeCriticalSection(critical_section_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:194:44:  [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* const testbridge_test_only = getenv(GTEST_TEST_FILTER_ENV_VAR_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:2793:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void TestCase::ShuffleTests(internal::Random* random) {
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:2794:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  Shuffle(random, &test_indices_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:4627:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      random()->Reseed(random_seed_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:4941:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:4944:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random(), last_death_test_case_ + 1,
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:4949:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    test_cases_[i]->ShuffleTests(random());
data/xoreos-tools-0.0.5/src/aurora/2dafile.cpp:506:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!file.open(fileName))
data/xoreos-tools-0.0.5/src/aurora/2dafile.cpp:613:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!file.open(fileName))
data/xoreos-tools-0.0.5/src/aurora/2dafile.cpp:668:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!file.open(fileName))
data/xoreos-tools-0.0.5/src/aurora/erffile.cpp:244: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.
		std::memcpy(&password[0], kNWNPremiumKeys[i], kNWNPremiumKeyLength);
data/xoreos-tools-0.0.5/src/aurora/erffile.cpp:246: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.
			std::memcpy(&password[0] + kNWNPremiumKeyLength - Common::kMD5Length, &md5[0], Common::kMD5Length);
data/xoreos-tools-0.0.5/src/aurora/language_strings.h:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *strings[32];
data/xoreos-tools-0.0.5/src/aurora/nitrofile.cpp:52:49:  [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).
Common::SeekableSubReadStreamEndian *NitroFile::open(Common::SeekableReadStream &stream) {
data/xoreos-tools-0.0.5/src/aurora/nitrofile.cpp:61:49:  [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).
Common::SeekableSubReadStreamEndian *NitroFile::open(Common::SeekableReadStream *stream) {
data/xoreos-tools-0.0.5/src/aurora/nitrofile.h:38:46:  [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).
	static Common::SeekableSubReadStreamEndian *open(Common::SeekableReadStream &stream);
data/xoreos-tools-0.0.5/src/aurora/nitrofile.h:40:46:  [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).
	static Common::SeekableSubReadStreamEndian *open(Common::SeekableReadStream *stream);
data/xoreos-tools-0.0.5/src/aurora/nsbtxfile.cpp:87: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).
	_nsbtx.reset(open(nsbtx));
data/xoreos-tools-0.0.5/src/aurora/ssffile.cpp:310:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!file.open(fileName))
data/xoreos-tools-0.0.5/src/aurora/talktable_tlk.cpp:363: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).
	if (!tlk.open(file))
data/xoreos-tools-0.0.5/src/common/base64.cpp:37: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 const char kBase64Char[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
data/xoreos-tools-0.0.5/src/common/cli.cpp:72:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	_val = atoi(str);
data/xoreos-tools-0.0.5/src/common/cli.cpp:87:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	_val = atoi(str);
data/xoreos-tools-0.0.5/src/common/deallocator.h:42: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.
		typedef char type_must_be_complete[sizeof(T) ? 1 : -1];
data/xoreos-tools-0.0.5/src/common/deallocator.h:53: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.
		typedef char type_must_be_complete[sizeof(T) ? 1 : -1];
data/xoreos-tools-0.0.5/src/common/encoding.cpp:43: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 const char * const kEncodingName[kEncodingMAX] = {
data/xoreos-tools-0.0.5/src/common/encoding.cpp:332:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(&output[0], data, size);
data/xoreos-tools-0.0.5/src/common/encoding_strings.h:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *strings[10];
data/xoreos-tools-0.0.5/src/common/error.cpp:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/error.cpp:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/md5.cpp:250: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.
			std::memcpy(&ctx.buffer[used], data, size);
data/xoreos-tools-0.0.5/src/common/md5.cpp:254: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.
		std::memcpy(&ctx.buffer[used], data, available);
data/xoreos-tools-0.0.5/src/common/md5.cpp:265:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(ctx.buffer, data, size);
data/xoreos-tools-0.0.5/src/common/memreadstream.cpp:67:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(dataPtr, _ptr, dataSize);
data/xoreos-tools-0.0.5/src/common/memwritestream.cpp:65:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(_ptr, dataPtr, dataSize);
data/xoreos-tools-0.0.5/src/common/memwritestream.cpp:114: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(newData, _data.get(), _size);
data/xoreos-tools-0.0.5/src/common/memwritestream.cpp:134:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(_ptr, dataPtr, dataSize);
data/xoreos-tools-0.0.5/src/common/platform.cpp:108:15:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const wchar_t * const modeStrings[kFileModeMAX] = { L"rb", L"wb" };
data/xoreos-tools-0.0.5/src/common/platform.cpp:112:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char * const modeStrings[kFileModeMAX] = { "rb", "wb" };
data/xoreos-tools-0.0.5/src/common/platform.cpp:114: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 = std::fopen(boost::filesystem::path(fileName.c_str()).c_str(), modeStrings[(uint) mode]);
data/xoreos-tools-0.0.5/src/common/readfile.cpp:38:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!open(fileName))
data/xoreos-tools-0.0.5/src/common/readfile.cpp:61: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).
bool ReadFile::open(const UString &fileName) {
data/xoreos-tools-0.0.5/src/common/readfile.h:52: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).
	bool open(const UString &fileName);
data/xoreos-tools-0.0.5/src/common/strutil.cpp:309: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 buf[64], *strStart = buf + sizeof(buf) - 1;
data/xoreos-tools-0.0.5/src/common/ustring.cpp:713: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 buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/util.cpp:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/util.cpp:48: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 buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/util.cpp:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/util.cpp:76: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 buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/src/common/writefile.cpp:39:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!open(fileName))
data/xoreos-tools-0.0.5/src/common/writefile.cpp:50:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool WriteFile::open(const UString &fileName) {
data/xoreos-tools-0.0.5/src/common/writefile.h:51: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).
	bool open(const UString &fileName);
data/xoreos-tools-0.0.5/src/images/decoder.cpp:59:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(data.get(), mipMap.data.get(), size);
data/xoreos-tools-0.0.5/src/images/ncgr.cpp:115: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).
		ctx.ncgrs[i].ncgr = open(*ncgrs[i]);
data/xoreos-tools-0.0.5/src/images/nclr.cpp:70:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		nclrEndian.reset(open(nclr));
data/xoreos-tools-0.0.5/src/images/nclr.cpp:154: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.
		std::memcpy(palette.get() + i, kPink, sizeof(kPink));
data/xoreos-tools-0.0.5/src/images/util.h:136:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer.get(), dataStart   , bpp);
data/xoreos-tools-0.0.5/src/images/util.h:137: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(dataStart   , dataEnd     , bpp);
data/xoreos-tools-0.0.5/src/images/util.h:138: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(dataEnd     , buffer.get(), bpp);
data/xoreos-tools-0.0.5/src/images/util.h:162:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer.get(), dataStart   , pitch);
data/xoreos-tools-0.0.5/src/images/util.h:163: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(dataStart   , dataEnd     , pitch);
data/xoreos-tools-0.0.5/src/images/util.h:164: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(dataEnd     , buffer.get(), pitch);
data/xoreos-tools-0.0.5/src/ncgr2tga.cpp:106:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	width  = (args.size() >= 2) ? atoi(args[0].c_str()) : 0;
data/xoreos-tools-0.0.5/src/ncgr2tga.cpp:107:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	height = (args.size() >= 2) ? atoi(args[1].c_str()) : 0;
data/xoreos-tools-0.0.5/src/nwscript/util.cpp:36: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 const char * const kOpcodeName[kOpcodeMAX] = {
data/xoreos-tools-0.0.5/src/nwscript/util.cpp:56: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 const char * const kInstTypeName[kInstTypeInstTypeMAX] = {
data/xoreos-tools-0.0.5/src/unerf.cpp:67:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *kCommandChar[kCommandMAX] = { "i", "l", "v", "e", "s" };
data/xoreos-tools-0.0.5/src/unherf.cpp:55:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *kCommandChar[kCommandMAX] = { "l", "e" };
data/xoreos-tools-0.0.5/src/unkeybif.cpp:56:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *kCommandChar[kCommandMAX] = { "l", "e" };
data/xoreos-tools-0.0.5/src/unnds.cpp:51:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *kCommandChar[kCommandMAX] = { "i", "l", "e" };
data/xoreos-tools-0.0.5/src/unnsbtx.cpp:52:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *kCommandChar[kCommandMAX] = { "l", "e" };
data/xoreos-tools-0.0.5/src/unrim.cpp:50:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *kCommandChar[kCommandMAX] = { "l", "e" };
data/xoreos-tools-0.0.5/src/util.cpp:46:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!file.open(fileName))
data/xoreos-tools-0.0.5/src/xml/xmlparser.cpp:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STRINGBUFLEN];
data/xoreos-tools-0.0.5/tests/aurora/2dafile.cpp:72: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 const char * const kHeaders[3] = {
data/xoreos-tools-0.0.5/tests/aurora/2dafile.cpp:76: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 const char * const kDataString[3][11] = {
data/xoreos-tools-0.0.5/tests/aurora/gdafile.cpp:68: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 const char * const kHeaders[kColumnCount] = {
data/xoreos-tools-0.0.5/tests/aurora/gdafile.cpp:72: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 const char * const kHeadersLow[kColumnCount] = {
data/xoreos-tools-0.0.5/tests/aurora/gdafile.cpp:84: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 const char * const kDataString  [kRowCount] = { "Foobar" , "Barfoo" , "Quuuux"  };
data/xoreos-tools-0.0.5/tests/aurora/gdafile.cpp:88: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 const char * const kDataResource[kRowCount] = { "foo.bar", "bar.foo", "qux.qux" };
data/xoreos-tools-0.0.5/tests/common/filepath.cpp:82: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.
		const char buf[23] = { 0 };
data/xoreos-tools-0.0.5/tests/common/md5.cpp:47: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(&v[0], data, N);
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2378:10:  [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).
  return fopen(path, mode);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-death-test.cc:325:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[256];
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-death-test.cc:741: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 executable_path[_MAX_PATH + 1];  // NOLINT
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-death-test.cc:1027: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).
  const int cwd_fd = open(".", O_RDONLY);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-filepath.cc:105: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-filepath.cc:108: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:139: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).
  const int fd = open("/proc/self/as", O_RDONLY);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:865:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buffer, regex, len);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:938: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 temp_dir_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:939: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 temp_file_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:976:29:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    const int captured_fd = mkstemp(name_template);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-printers.cc:65: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 text[5] = "";
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:862:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:865:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:1680: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 error_text[kBufSize] = { '\0' };
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:1764: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 str[5];  // Big enough for the largest valid code point.
data/xoreos-tools-0.0.5/tests/images/util.cpp:202:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(data1, data2, N);
data/xoreos-tools-0.0.5/src/aurora/erffile.cpp:382:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (erf.read(&header.passwordDigest[0], Common::kMD5Length) != Common::kMD5Length)
data/xoreos-tools-0.0.5/src/aurora/erffile.cpp:400:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (erf.read(&header.passwordDigest[0], Common::kMD5Length) != Common::kMD5Length)
data/xoreos-tools-0.0.5/src/aurora/erffile.cpp:404:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (erf.read(header.stringTable.get(), header.stringTableSize) != header.stringTableSize) {
data/xoreos-tools-0.0.5/src/aurora/gff3file.cpp:49:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GFF3File::Header::read(Common::SeekableReadStream &gff3) {
data/xoreos-tools-0.0.5/src/aurora/gff3file.cpp:144:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	_header.read(*_stream);
data/xoreos-tools-0.0.5/src/aurora/gff3file.h:116:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		void read(Common::SeekableReadStream &gff3);
data/xoreos-tools-0.0.5/src/aurora/gff4file.cpp:45:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GFF4File::Header::read(Common::SeekableReadStream &gff4, uint32 version) {
data/xoreos-tools-0.0.5/src/aurora/gff4file.cpp:132:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	_header.read(*_stream, _version);
data/xoreos-tools-0.0.5/src/aurora/gff4file.h:118:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		void read(Common::SeekableReadStream &gff4, uint32 version);
data/xoreos-tools-0.0.5/src/aurora/language.cpp:432:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (stream.read(&b, 1) == 1) {
data/xoreos-tools-0.0.5/src/aurora/smallfile.cpp:184:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (in.read(inBuffer.get(), size) != size)
data/xoreos-tools-0.0.5/src/common/base64.cpp:112:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = data.read(input, 3)) != 0) {
data/xoreos-tools-0.0.5/src/common/blowfish.cpp:355:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (input.read(buffer, toRead) != toRead)
data/xoreos-tools-0.0.5/src/common/cli.cpp:48: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).
	for (int i = (maxArgLength - strlen(longName) - strlen(optionArgs) - 4);
data/xoreos-tools-0.0.5/src/common/cli.cpp:48:50:  [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 = (maxArgLength - strlen(longName) - strlen(optionArgs) - 4);
data/xoreos-tools-0.0.5/src/common/cli.cpp:267: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 tmpLen = strlen(option.name().c_str());
data/xoreos-tools-0.0.5/src/common/cli.cpp:270: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).
			tmpLen += strlen(option.getter()->name()) + 8;
data/xoreos-tools-0.0.5/src/common/cli.cpp:272: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).
			tmpLen += strlen(option.callback()->argName()) + 8;
data/xoreos-tools-0.0.5/src/common/deflate.cpp:88:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (input.read(compressedData.get(), inputSize) != inputSize)
data/xoreos-tools-0.0.5/src/common/encoding.cpp:164: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).
		size_t nIn    = std::strlen(str.c_str());
data/xoreos-tools-0.0.5/src/common/encoding.cpp:213:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (stream.read(data, 1) != 1)
data/xoreos-tools-0.0.5/src/common/encoding.cpp:219:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (stream.read(data, 2) != 2)
data/xoreos-tools-0.0.5/src/common/encoding.cpp:225:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (stream.read(data, 2) != 2)
data/xoreos-tools-0.0.5/src/common/encoding.cpp:302:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = stream.read(&output[0], length);
data/xoreos-tools-0.0.5/src/common/encoding.cpp:359: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).
		                            std::strlen(str.c_str()) + (terminateString ? 1 : 0));
data/xoreos-tools-0.0.5/src/common/md5.cpp:321:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size_t bufRead = stream.read(buf, 4096);
data/xoreos-tools-0.0.5/src/common/md5.cpp:340:63:  [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).
	hashMD5(reinterpret_cast<const byte *>(string.c_str()), std::strlen(string.c_str()), digest);
data/xoreos-tools-0.0.5/src/common/md5.cpp:369:79:  [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 compareMD5Digest(reinterpret_cast<const byte *>(string.c_str()), std::strlen(string.c_str()), digest);
data/xoreos-tools-0.0.5/src/common/memreadstream.cpp:59:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t MemoryReadStream::read(void *dataPtr, size_t dataSize) {
data/xoreos-tools-0.0.5/src/common/memreadstream.h:80: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).
		_size(strlen(str) + (useTerminator ? 1 : 0)), _pos(0), _eos(false) {
data/xoreos-tools-0.0.5/src/common/memreadstream.h:94:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read(void *dataPtr, size_t dataSize);
data/xoreos-tools-0.0.5/src/common/platform.cpp:81:70:  [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).
		args.push_back(readString(reinterpret_cast<const byte *>(argv[i]), wcslen(argv[i]) * 2, kEncodingUTF16LE));
data/xoreos-tools-0.0.5/src/common/readfile.cpp:134:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t ReadFile::read(void *dataPtr, size_t dataSize) {
data/xoreos-tools-0.0.5/src/common/readfile.h:69:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read(void *dataPtr, size_t dataSize);
data/xoreos-tools-0.0.5/src/common/readstream.cpp:70:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(buf.get(), dataSize) != dataSize)
data/xoreos-tools-0.0.5/src/common/readstream.cpp:114:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t SubReadStream::read(void *dataPtr, size_t dataSize) {
data/xoreos-tools-0.0.5/src/common/readstream.cpp:120:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	dataSize = _parentStream->read(dataPtr, dataSize);
data/xoreos-tools-0.0.5/src/common/readstream.h:87:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual size_t read(void *dataPtr, size_t dataSize) = 0;
data/xoreos-tools-0.0.5/src/common/readstream.h:94:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&b, 1) != 1)
data/xoreos-tools-0.0.5/src/common/readstream.h:124:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&val, 2) != 2)
data/xoreos-tools-0.0.5/src/common/readstream.h:135:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&val, 4) != 4)
data/xoreos-tools-0.0.5/src/common/readstream.h:146:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&val, 8) != 8)
data/xoreos-tools-0.0.5/src/common/readstream.h:157:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&val, 2) != 2)
data/xoreos-tools-0.0.5/src/common/readstream.h:168:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&val, 4) != 4)
data/xoreos-tools-0.0.5/src/common/readstream.h:179:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(&val, 8) != 8)
data/xoreos-tools-0.0.5/src/common/readstream.h:340:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read(void *dataPtr, size_t dataSize);
data/xoreos-tools-0.0.5/src/common/stdinstream.cpp:41:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t StdInStream::read(void *dataPtr, size_t dataSize) {
data/xoreos-tools-0.0.5/src/common/stdinstream.h:43:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read(void *dataPtr, size_t dataSize);
data/xoreos-tools-0.0.5/src/common/strutil.cpp:55:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (stream.read(rowData, n) != n)
data/xoreos-tools-0.0.5/src/common/writestream.cpp:78:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const size_t bufRead = stream.read(buf, toRead);
data/xoreos-tools-0.0.5/src/common/writestream.cpp:95:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(str.c_str(), std::strlen(str.c_str())) != std::strlen(str.c_str()))
data/xoreos-tools-0.0.5/src/common/writestream.cpp:95:59:  [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 (write(str.c_str(), std::strlen(str.c_str())) != std::strlen(str.c_str()))
data/xoreos-tools-0.0.5/src/images/dds.cpp:242:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (dds.read((*mipMap)->data.get(), (*mipMap)->size) != (*mipMap)->size)
data/xoreos-tools-0.0.5/src/images/sbm.cpp:85:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (sbm.read(buffer, 1024) != 1024)
data/xoreos-tools-0.0.5/src/images/tga.cpp:166:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				tga.read(_mipMaps[0]->data.get(), _mipMaps[0]->size);
data/xoreos-tools-0.0.5/src/images/tpc.cpp:277:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (tpc.read(&tmp[0], (*mipMap)->size) != (*mipMap)->size)
data/xoreos-tools-0.0.5/src/images/tpc.cpp:283:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (tpc.read((*mipMap)->data.get(), (*mipMap)->size) != (*mipMap)->size)
data/xoreos-tools-0.0.5/src/images/tpc.cpp:310:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (tpc.read(_txiData.get(), _txiDataSize) != _txiDataSize)
data/xoreos-tools-0.0.5/src/images/txb.cpp:182:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (txb.read((*mipMap)->data.get(), (*mipMap)->size) != (*mipMap)->size)
data/xoreos-tools-0.0.5/src/images/txb.cpp:225:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (txb.read(_txiData.get(), _txiDataSize) != _txiDataSize)
data/xoreos-tools-0.0.5/src/images/winiconimage.cpp:126:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cur.read(palette, 256 * 4);
data/xoreos-tools-0.0.5/src/images/winiconimage.cpp:130:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (cur.read(xorMap.get(), pitch * height) != (pitch * height))
data/xoreos-tools-0.0.5/src/images/winiconimage.cpp:136:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (cur.read(andMap.get(), andWidth * height) != (andWidth * height))
data/xoreos-tools-0.0.5/src/images/xoreositex.cpp:100:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (xeositex.read(_mipMaps[i]->data.get(), _mipMaps[i]->size) != _mipMaps[i]->size)
data/xoreos-tools-0.0.5/src/xml/xmlparser.cpp:60:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return stream->read(buffer, len);
data/xoreos-tools-0.0.5/tests/aurora/2dafile.cpp:237:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(writeStream.size(), strlen(k2DAASCII));
data/xoreos-tools-0.0.5/tests/aurora/2dafile.cpp:238: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).
	for (size_t i = 0; i < strlen(k2DAASCII); i++)
data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp:127: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).
	EXPECT_EQ(bif.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp:156:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp:158: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp:253: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).
	EXPECT_EQ(bif.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp:282:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/biffile.cpp:284: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:180: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:207:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:209: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:409: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:439:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:441: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:637: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:664:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:666: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:851: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:878:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:880: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1043: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1070:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1072: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1177: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1204:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1206: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1311: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1338:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1340: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1469: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1499:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1501: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1614: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1644:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1646: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1764: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1793:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1795: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1912: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1940:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:1942: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2045: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2074:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2076: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2179: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2208:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2210: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2336: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2368:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2370: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2481: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).
	EXPECT_EQ(erf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2513:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/erffile.cpp:2515: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp:457:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const size_t kFileDataSize = strlen(kFileData) + 1;
data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp:478:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readStream->read(fileData.get(), readStream->size());
data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp:488:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const size_t kFileDataSize = strlen(kFileData) + 1;
data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp:522:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readStream1->read(fileData1.get(), readStream1->size());
data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp:524:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readStream2->read(fileData2.get(), readStream2->size());
data/xoreos-tools-0.0.5/tests/aurora/erfwriter.cpp:526:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readStream3->read(fileData3.get(), readStream3->size());
data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp:121: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).
	EXPECT_EQ(herf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp:151:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp:153: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp:250: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).
	EXPECT_EQ(herf.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp:282:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/herffile.cpp:284: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/ndsrom.cpp:4847: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).
	EXPECT_EQ(nds.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/ndsrom.cpp:4877:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/ndsrom.cpp:4879: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/rimfile.cpp:122: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).
	EXPECT_EQ(rim.getResourceSize(0), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/rimfile.cpp:152:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ASSERT_EQ(file->size(), strlen(kFileData));
data/xoreos-tools-0.0.5/tests/aurora/rimfile.cpp:154: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).
	for (size_t i = 0; i < strlen(kFileData); i++)
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:106: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).
	for (size_t i = 0; i < strlen(data2); i++)
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp: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).
	for (size_t i = 0; i < strlen(data2); i++)
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:127: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).
	ASSERT_EQ(uncompressed.size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:136: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).
	ASSERT_EQ(uncompressed->size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:147: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).
	ASSERT_EQ(uncompressed->size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:158: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).
	ASSERT_EQ(uncompressed->size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:189: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).
	ASSERT_EQ(uncompressedWrite.size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:200: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).
	ASSERT_EQ(uncompressed.size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:209: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).
	ASSERT_EQ(uncompressed->size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:220: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).
	ASSERT_EQ(uncompressed->size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:231: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).
	ASSERT_EQ(uncompressed->size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/aurora/smallfile.cpp:262: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).
	ASSERT_EQ(uncompressedWrite.size(), strlen(kDataUncompressed));
data/xoreos-tools-0.0.5/tests/common/deflate.cpp:78: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).
	static const size_t kSizeDecompressed = strlen(kDataUncompressed);
data/xoreos-tools-0.0.5/tests/common/deflate.cpp:92: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).
	static const size_t kSizeDecompressed = strlen(kDataUncompressed);
data/xoreos-tools-0.0.5/tests/common/deflate.cpp:110: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).
	static const size_t kSizeDecompressed = strlen(kDataUncompressed) / 2;
data/xoreos-tools-0.0.5/tests/common/deflate.cpp:119: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).
	static const size_t kSizeDecompressed = strlen(kDataUncompressed) * 2;
data/xoreos-tools-0.0.5/tests/common/deflate.cpp:128: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).
	static const size_t kSizeDecompressed = strlen(kDataUncompressed);
data/xoreos-tools-0.0.5/tests/common/memreadstream.cpp:68:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
GTEST_TEST(MemoryReadStream, read) {
data/xoreos-tools-0.0.5/tests/common/memreadstream.cpp:77:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readCount = stream.read(readData, ARRAYSIZE(data));
data/xoreos-tools-0.0.5/tests/common/memreadstream.cpp:85:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readCount = stream.read(readData, ARRAYSIZE(data));
data/xoreos-tools-0.0.5/tests/common/memreadstream.cpp:286:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const size_t readCount = subStream.read(readData, 4);
data/xoreos-tools-0.0.5/tests/common/memreadstream.cpp:303:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const size_t readCount = subStream.read(readData, 4);
data/xoreos-tools-0.0.5/tests/common/readfile.cpp:79:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const size_t readCount = file.read(readData, sizeof(readData));
data/xoreos-tools-0.0.5/tests/common/writefile.cpp:89:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	testFile.read(reinterpret_cast<char *>(readData), ARRAYSIZE(readData));
data/xoreos-tools-0.0.5/tests/common/writefile.cpp:119:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	testFile.read(reinterpret_cast<char *>(data), 6);
data/xoreos-tools-0.0.5/tests/common/writefile.cpp:150:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	testFile.read(reinterpret_cast<char *>(data), 14);
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2367:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(dest, src, n);
data/xoreos-tools-0.0.5/tests/googletest/include/gtest/internal/gtest-port.h:2389:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return static_cast<int>(read(fd, buf, count));
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:599: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).
  const size_t full_regex_len = strlen(regex) + 10;
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:853: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).
  const size_t len = strlen(regex);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-port.cc:1065: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).
  else if (temp_dir[strlen(temp_dir) - 1] == '\\')
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-printers.cc:325: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).
    PrintCharsAsStringTo(s, strlen(s), os);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest-printers.cc:342:34:  [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).
    PrintCharsAsStringTo(s, std::wcslen(s), os);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:860: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).
  const int length = strlen(ansi);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:1825:34:  [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).
    num_chars = static_cast<int>(wcslen(str));
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:3598:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      segment = next_segment + strlen("]]>");
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:3763: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).
  result.reserve(strlen(str) + 1);
data/xoreos-tools-0.0.5/tests/googletest/src/gtest.cc:5002:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const size_t prefix_len = strlen(prefix);

ANALYSIS SUMMARY:

Hits = 307
Lines analyzed = 368342 in approximately 17.18 seconds (21437 lines/second)
Physical Source Lines of Code (SLOC) = 332900
Hits@level = [0] 141 [1] 174 [2]  92 [3]  20 [4]  21 [5]   0
Hits@level+ = [0+] 448 [1+] 307 [2+] 133 [3+]  41 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 1.34575 [1+] 0.922199 [2+] 0.399519 [3+] 0.12316 [4+] 0.063082 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.