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/python3.10-3.10.0~a2/Tools/msi/bundle/bootstrap/pch.cpp
Examining data/python3.10-3.10.0~a2/Tools/msi/bundle/bootstrap/pch.h
Examining data/python3.10-3.10.0~a2/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
Examining data/python3.10-3.10.0~a2/Tools/msi/bundle/bootstrap/resource.h
Examining data/python3.10-3.10.0~a2/Tools/msi/bundle/bootstrap/pythonba.cpp
Examining data/python3.10-3.10.0~a2/Tools/peg_generator/peg_extension/peg_extension.c
Examining data/python3.10-3.10.0~a2/Modules/tkinter.h
Examining data/python3.10-3.10.0~a2/Modules/main.c
Examining data/python3.10-3.10.0~a2/Modules/_tkinter.c
Examining data/python3.10-3.10.0~a2/Modules/rotatingtree.h
Examining data/python3.10-3.10.0~a2/Modules/winreparse.h
Examining data/python3.10-3.10.0~a2/Modules/_threadmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_codecsmodule.c
Examining data/python3.10-3.10.0~a2/Modules/xxsubtype.c
Examining data/python3.10-3.10.0~a2/Modules/socketmodule.h
Examining data/python3.10-3.10.0~a2/Modules/sre.h
Examining data/python3.10-3.10.0~a2/Modules/readline.c
Examining data/python3.10-3.10.0~a2/Modules/_bisectmodule.c
Examining data/python3.10-3.10.0~a2/Modules/unicodename_db.h
Examining data/python3.10-3.10.0~a2/Modules/arraymodule.c
Examining data/python3.10-3.10.0~a2/Modules/signalmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_io/iobase.c
Examining data/python3.10-3.10.0~a2/Modules/_io/fileio.c
Examining data/python3.10-3.10.0~a2/Modules/_io/bytesio.c
Examining data/python3.10-3.10.0~a2/Modules/_io/textio.c
Examining data/python3.10-3.10.0~a2/Modules/_io/_iomodule.c
Examining data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/fileio.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/bytesio.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/winconsoleio.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/iobase.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/bufferedio.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/textio.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/_iomodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/clinic/stringio.c.h
Examining data/python3.10-3.10.0~a2/Modules/_io/_iomodule.h
Examining data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c
Examining data/python3.10-3.10.0~a2/Modules/_io/stringio.c
Examining data/python3.10-3.10.0~a2/Modules/_struct.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/difradix2.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/bits.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/difradix2.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/numbertheory.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/fourstep.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/context.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/basearith.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/constants.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpalloc.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/fnt.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/convolute.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpalloc.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/crt.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/sixstep.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/fourstep.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/typearith.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/numbertheory.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/crt.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/basearith.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/sixstep.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/fnt.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/convolute.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/umodarith.h
Examining data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/constants.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c
Examining data/python3.10-3.10.0~a2/Modules/_decimal/docstrings.h
Examining data/python3.10-3.10.0~a2/Modules/_weakref.c
Examining data/python3.10-3.10.0~a2/Modules/fcntlmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-SnP.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-SnP-opt32.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakHash.c
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakSponge.c
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakHash.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakSponge.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/SnP-Relaned.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-SnP-opt64.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64-config.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/align.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c
Examining data/python3.10-3.10.0~a2/Modules/_sha3/clinic/sha3module.c.h
Examining data/python3.10-3.10.0~a2/Modules/_sha3/sha3module.c
Examining data/python3.10-3.10.0~a2/Modules/posixmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_sre.c
Examining data/python3.10-3.10.0~a2/Modules/symtablemodule.c
Examining data/python3.10-3.10.0~a2/Modules/errnomodule.c
Examining data/python3.10-3.10.0~a2/Modules/_contextvarsmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_scproxy.c
Examining data/python3.10-3.10.0~a2/Modules/sre_lib.h
Examining data/python3.10-3.10.0~a2/Modules/_zoneinfo.c
Examining data/python3.10-3.10.0~a2/Modules/_math.c
Examining data/python3.10-3.10.0~a2/Modules/_statisticsmodule.c
Examining data/python3.10-3.10.0~a2/Modules/cmathmodule.c
Examining data/python3.10-3.10.0~a2/Modules/getaddrinfo.c
Examining data/python3.10-3.10.0~a2/Modules/tkappinit.c
Examining data/python3.10-3.10.0~a2/Modules/audioop.c
Examining data/python3.10-3.10.0~a2/Modules/_hashopenssl.c
Examining data/python3.10-3.10.0~a2/Modules/_cryptmodule.c
Examining data/python3.10-3.10.0~a2/Modules/expat/siphash.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmlrole.c
Examining data/python3.10-3.10.0~a2/Modules/expat/expat.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmltok.c
Examining data/python3.10-3.10.0~a2/Modules/expat/asciitab.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c
Examining data/python3.10-3.10.0~a2/Modules/expat/ascii.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmlrole.h
Examining data/python3.10-3.10.0~a2/Modules/expat/nametab.h
Examining data/python3.10-3.10.0~a2/Modules/expat/utf8tab.h
Examining data/python3.10-3.10.0~a2/Modules/expat/iasciitab.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmltok.h
Examining data/python3.10-3.10.0~a2/Modules/expat/pyexpatns.h
Examining data/python3.10-3.10.0~a2/Modules/expat/expat_config.h
Examining data/python3.10-3.10.0~a2/Modules/expat/winconfig.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmltok_ns.c
Examining data/python3.10-3.10.0~a2/Modules/expat/internal.h
Examining data/python3.10-3.10.0~a2/Modules/expat/expat_external.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.h
Examining data/python3.10-3.10.0~a2/Modules/expat/latin1tab.h
Examining data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c
Examining data/python3.10-3.10.0~a2/Modules/_ssl/debughelpers.c
Examining data/python3.10-3.10.0~a2/Modules/getnameinfo.c
Examining data/python3.10-3.10.0~a2/Modules/grpmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_ssl_data.h
Examining data/python3.10-3.10.0~a2/Modules/nismodule.c
Examining data/python3.10-3.10.0~a2/Modules/timemodule.c
Examining data/python3.10-3.10.0~a2/Modules/resource.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/microprotocols.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/microprotocols.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/cache.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/module.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/prepare_protocol.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/cache.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/row.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/cursor.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/util.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/module.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/connection.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/clinic/module.c.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/connection.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/statement.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/util.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/prepare_protocol.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/row.c
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/cursor.h
Examining data/python3.10-3.10.0~a2/Modules/_sqlite/statement.c
Examining data/python3.10-3.10.0~a2/Modules/_elementtree.c
Examining data/python3.10-3.10.0~a2/Modules/rotatingtree.c
Examining data/python3.10-3.10.0~a2/Modules/_ssl.c
Examining data/python3.10-3.10.0~a2/Modules/testcapi_long.h
Examining data/python3.10-3.10.0~a2/Modules/_queuemodule.c
Examining data/python3.10-3.10.0~a2/Modules/_operator.c
Examining data/python3.10-3.10.0~a2/Modules/_testbuffer.c
Examining data/python3.10-3.10.0~a2/Modules/xxmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_gdbmmodule.c
Examining data/python3.10-3.10.0~a2/Modules/selectmodule.c
Examining data/python3.10-3.10.0~a2/Modules/sre_constants.h
Examining data/python3.10-3.10.0~a2/Modules/pwdmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_stat.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/blake2ns.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/blake2module.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-round.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2-kat.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2bp.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2sp.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-test.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-load-sse2.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2-impl.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-load-xop.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2bp-test.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-test.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-round.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2sp-test.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-load-sse2.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-load-sse41.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-load-sse41.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2-dispatch.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2-config.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/clinic/blake2s_impl.c.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/clinic/blake2b_impl.c.h
Examining data/python3.10-3.10.0~a2/Modules/_blake2/blake2b_impl.c
Examining data/python3.10-3.10.0~a2/Modules/_blake2/blake2s_impl.c
Examining data/python3.10-3.10.0~a2/Modules/unicodedata.c
Examining data/python3.10-3.10.0~a2/Modules/spwdmodule.c
Examining data/python3.10-3.10.0~a2/Modules/atexitmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_testmultiphase.c
Examining data/python3.10-3.10.0~a2/Modules/_asynciomodule.c
Examining data/python3.10-3.10.0~a2/Modules/sha1module.c
Examining data/python3.10-3.10.0~a2/Modules/_datetimemodule.c
Examining data/python3.10-3.10.0~a2/Modules/hashlib.h
Examining data/python3.10-3.10.0~a2/Modules/md5module.c
Examining data/python3.10-3.10.0~a2/Modules/_xxtestfuzz/_xxtestfuzz.c
Examining data/python3.10-3.10.0~a2/Modules/_xxtestfuzz/fuzzer.c
Examining data/python3.10-3.10.0~a2/Modules/getpath.c
Examining data/python3.10-3.10.0~a2/Modules/ossaudiodev.c
Examining data/python3.10-3.10.0~a2/Modules/_lzmamodule.c
Examining data/python3.10-3.10.0~a2/Modules/gcmodule.c
Examining data/python3.10-3.10.0~a2/Modules/getbuildinfo.c
Examining data/python3.10-3.10.0~a2/Modules/clinic/symtablemodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_bz2module.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_heapqmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/resource.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_sre.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/overlapped.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/mathmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/sha256module.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/audioop.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_elementtree.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/sha512module.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_cryptmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_lsprof.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/cmathmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_curses_panel.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/termios.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_ssl.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_hashopenssl.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_winapi.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/sha1module.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_operator.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/zlibmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/fcntlmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/spwdmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_statisticsmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_lzmamodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/itertoolsmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_contextvarsmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_asynciomodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/pwdmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_tracemalloc.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/unicodedata.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/selectmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_cursesmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_abc.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/posixmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/binascii.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_dbmmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_testmultiphase.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_struct.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_collectionsmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_bisectmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_datetimemodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_gdbmmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/arraymodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/pyexpat.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_randommodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/md5module.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_queuemodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/grpmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_weakref.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/gcmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/readline.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/signalmodule.c.h
Examining data/python3.10-3.10.0~a2/Modules/clinic/_opcode.c.h
Examining data/python3.10-3.10.0~a2/Modules/addrinfo.h
Examining data/python3.10-3.10.0~a2/Modules/sha512module.c
Examining data/python3.10-3.10.0~a2/Modules/_collectionsmodule.c
Examining data/python3.10-3.10.0~a2/Modules/syslogmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/posixshmem.c
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/multiprocessing.c
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/semaphore.c
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/multiprocessing.h
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/clinic/multiprocessing.c.h
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/clinic/posixshmem.c.h
Examining data/python3.10-3.10.0~a2/Modules/_multiprocessing/clinic/semaphore.c.h
Examining data/python3.10-3.10.0~a2/Modules/termios.c
Examining data/python3.10-3.10.0~a2/Modules/_functoolsmodule.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/alg_jisx0201.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/mappings_jp.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_jp.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_iso2022.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/emu_jisx0213_2000.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_tw.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_cn.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/clinic/multibytecodec.c.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_hk.c
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/mappings_cn.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/mappings_kr.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/mappings_hk.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/mappings_tw.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/cjkcodecs.h
Examining data/python3.10-3.10.0~a2/Modules/cjkcodecs/mappings_jisx0213_pair.h
Examining data/python3.10-3.10.0~a2/Modules/_opcode.c
Examining data/python3.10-3.10.0~a2/Modules/_localemodule.c
Examining data/python3.10-3.10.0~a2/Modules/_cursesmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_testcapimodule.c
Examining data/python3.10-3.10.0~a2/Modules/sha256module.c
Examining data/python3.10-3.10.0~a2/Modules/_csv.c
Examining data/python3.10-3.10.0~a2/Modules/_bz2module.c
Examining data/python3.10-3.10.0~a2/Modules/socketmodule.c
Examining data/python3.10-3.10.0~a2/Modules/binascii.c
Examining data/python3.10-3.10.0~a2/Modules/posixmodule.h
Examining data/python3.10-3.10.0~a2/Modules/_winapi.c
Examining data/python3.10-3.10.0~a2/Modules/mathmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_testinternalcapi.c
Examining data/python3.10-3.10.0~a2/Modules/_math.h
Examining data/python3.10-3.10.0~a2/Modules/zlibmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_heapqmodule.c
Examining data/python3.10-3.10.0~a2/Modules/faulthandler.c
Examining data/python3.10-3.10.0~a2/Modules/_json.c
Examining data/python3.10-3.10.0~a2/Modules/overlapped.c
Examining data/python3.10-3.10.0~a2/Modules/pyexpat.c
Examining data/python3.10-3.10.0~a2/Modules/xxlimited.c
Examining data/python3.10-3.10.0~a2/Modules/mmapmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/ctypes.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/malloc_closure.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/callbacks.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/types.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/fficonfig.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffitarget.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi_common.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/x86-ffitarget.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ppc-ffitarget.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/ffi.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn.h
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c
Examining data/python3.10-3.10.0~a2/Modules/_ctypes/ctypes_dlfcn.h
Examining data/python3.10-3.10.0~a2/Modules/itertoolsmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_curses_panel.c
Examining data/python3.10-3.10.0~a2/Modules/_testimportmultiple.c
Examining data/python3.10-3.10.0~a2/Modules/_dbmmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_uuidmodule.c
Examining data/python3.10-3.10.0~a2/Modules/_lsprof.c
Examining data/python3.10-3.10.0~a2/Modules/_tracemalloc.c
Examining data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c
Examining data/python3.10-3.10.0~a2/Modules/unicodedata_db.h
Examining data/python3.10-3.10.0~a2/Modules/_abc.c
Examining data/python3.10-3.10.0~a2/Modules/_randommodule.c
Examining data/python3.10-3.10.0~a2/Modules/_pickle.c
Examining data/python3.10-3.10.0~a2/Parser/myreadline.c
Examining data/python3.10-3.10.0~a2/Parser/string_parser.c
Examining data/python3.10-3.10.0~a2/Parser/string_parser.h
Examining data/python3.10-3.10.0~a2/Parser/parser.c
Examining data/python3.10-3.10.0~a2/Parser/pegen.c
Examining data/python3.10-3.10.0~a2/Parser/peg_api.c
Examining data/python3.10-3.10.0~a2/Parser/pegen.h
Examining data/python3.10-3.10.0~a2/Parser/tokenizer.c
Examining data/python3.10-3.10.0~a2/Parser/tokenizer.h
Examining data/python3.10-3.10.0~a2/Parser/token.c
Examining data/python3.10-3.10.0~a2/Programs/_freeze_importlib.c
Examining data/python3.10-3.10.0~a2/Programs/python.c
Examining data/python3.10-3.10.0~a2/Programs/_testembed.c
Examining data/python3.10-3.10.0~a2/Include/pydecimal.h
Examining data/python3.10-3.10.0~a2/Include/memoryobject.h
Examining data/python3.10-3.10.0~a2/Include/py_curses.h
Examining data/python3.10-3.10.0~a2/Include/picklebufobject.h
Examining data/python3.10-3.10.0~a2/Include/pystrhex.h
Examining data/python3.10-3.10.0~a2/Include/errcode.h
Examining data/python3.10-3.10.0~a2/Include/pystrcmp.h
Examining data/python3.10-3.10.0~a2/Include/asdl.h
Examining data/python3.10-3.10.0~a2/Include/moduleobject.h
Examining data/python3.10-3.10.0~a2/Include/pyport.h
Examining data/python3.10-3.10.0~a2/Include/pylifecycle.h
Examining data/python3.10-3.10.0~a2/Include/parser_interface.h
Examining data/python3.10-3.10.0~a2/Include/bltinmodule.h
Examining data/python3.10-3.10.0~a2/Include/pyfpe.h
Examining data/python3.10-3.10.0~a2/Include/pyctype.h
Examining data/python3.10-3.10.0~a2/Include/dictobject.h
Examining data/python3.10-3.10.0~a2/Include/marshal.h
Examining data/python3.10-3.10.0~a2/Include/pymacro.h
Examining data/python3.10-3.10.0~a2/Include/pycapsule.h
Examining data/python3.10-3.10.0~a2/Include/pytime.h
Examining data/python3.10-3.10.0~a2/Include/object.h
Examining data/python3.10-3.10.0~a2/Include/namespaceobject.h
Examining data/python3.10-3.10.0~a2/Include/dynamic_annotations.h
Examining data/python3.10-3.10.0~a2/Include/pyhash.h
Examining data/python3.10-3.10.0~a2/Include/longobject.h
Examining data/python3.10-3.10.0~a2/Include/pystrtod.h
Examining data/python3.10-3.10.0~a2/Include/modsupport.h
Examining data/python3.10-3.10.0~a2/Include/unicodeobject.h
Examining data/python3.10-3.10.0~a2/Include/ast.h
Examining data/python3.10-3.10.0~a2/Include/frameobject.h
Examining data/python3.10-3.10.0~a2/Include/osdefs.h
Examining data/python3.10-3.10.0~a2/Include/tupleobject.h
Examining data/python3.10-3.10.0~a2/Include/import.h
Examining data/python3.10-3.10.0~a2/Include/exports.h
Examining data/python3.10-3.10.0~a2/Include/Python-ast.h
Examining data/python3.10-3.10.0~a2/Include/structmember.h
Examining data/python3.10-3.10.0~a2/Include/floatobject.h
Examining data/python3.10-3.10.0~a2/Include/fileutils.h
Examining data/python3.10-3.10.0~a2/Include/pythonrun.h
Examining data/python3.10-3.10.0~a2/Include/osmodule.h
Examining data/python3.10-3.10.0~a2/Include/pyexpat.h
Examining data/python3.10-3.10.0~a2/Include/pymacconfig.h
Examining data/python3.10-3.10.0~a2/Include/weakrefobject.h
Examining data/python3.10-3.10.0~a2/Include/pyarena.h
Examining data/python3.10-3.10.0~a2/Include/cellobject.h
Examining data/python3.10-3.10.0~a2/Include/methodobject.h
Examining data/python3.10-3.10.0~a2/Include/compile.h
Examining data/python3.10-3.10.0~a2/Include/odictobject.h
Examining data/python3.10-3.10.0~a2/Include/bytesobject.h
Examining data/python3.10-3.10.0~a2/Include/abstract.h
Examining data/python3.10-3.10.0~a2/Include/iterobject.h
Examining data/python3.10-3.10.0~a2/Include/classobject.h
Examining data/python3.10-3.10.0~a2/Include/rangeobject.h
Examining data/python3.10-3.10.0~a2/Include/funcobject.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_gil.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_tuple.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_abstract.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_warnings.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_pymem.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_object.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_getopt.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_hamt.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_long.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_pyerrors.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_code.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_accu.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_runtime.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_context.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_fileutils.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_hashtable.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_import.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_sysmodule.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_list.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_ceval.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_interp.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_ucnhash.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_bitutils.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_call.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_traceback.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_ast.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_initconfig.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_pylifecycle.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_dtoa.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_bytes_methods.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_gc.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_pathconfig.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_unionobject.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_pystate.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_atomic.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_condvar.h
Examining data/python3.10-3.10.0~a2/Include/internal/pycore_pyhash.h
Examining data/python3.10-3.10.0~a2/Include/pymem.h
Examining data/python3.10-3.10.0~a2/Include/genobject.h
Examining data/python3.10-3.10.0~a2/Include/objimpl.h
Examining data/python3.10-3.10.0~a2/Include/pydtrace.h
Examining data/python3.10-3.10.0~a2/Include/complexobject.h
Examining data/python3.10-3.10.0~a2/Include/listobject.h
Examining data/python3.10-3.10.0~a2/Include/enumobject.h
Examining data/python3.10-3.10.0~a2/Include/eval.h
Examining data/python3.10-3.10.0~a2/Include/traceback.h
Examining data/python3.10-3.10.0~a2/Include/symtable.h
Examining data/python3.10-3.10.0~a2/Include/setobject.h
Examining data/python3.10-3.10.0~a2/Include/descrobject.h
Examining data/python3.10-3.10.0~a2/Include/pyerrors.h
Examining data/python3.10-3.10.0~a2/Include/bytearrayobject.h
Examining data/python3.10-3.10.0~a2/Include/boolobject.h
Examining data/python3.10-3.10.0~a2/Include/sliceobject.h
Examining data/python3.10-3.10.0~a2/Include/genericaliasobject.h
Examining data/python3.10-3.10.0~a2/Include/patchlevel.h
Examining data/python3.10-3.10.0~a2/Include/pystate.h
Examining data/python3.10-3.10.0~a2/Include/Python.h
Examining data/python3.10-3.10.0~a2/Include/interpreteridobject.h
Examining data/python3.10-3.10.0~a2/Include/datetime.h
Examining data/python3.10-3.10.0~a2/Include/ceval.h
Examining data/python3.10-3.10.0~a2/Include/codecs.h
Examining data/python3.10-3.10.0~a2/Include/context.h
Examining data/python3.10-3.10.0~a2/Include/cpython/pylifecycle.h
Examining data/python3.10-3.10.0~a2/Include/cpython/dictobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/object.h
Examining data/python3.10-3.10.0~a2/Include/cpython/unicodeobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/frameobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/tupleobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/import.h
Examining data/python3.10-3.10.0~a2/Include/cpython/fileutils.h
Examining data/python3.10-3.10.0~a2/Include/cpython/methodobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/bytesobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/abstract.h
Examining data/python3.10-3.10.0~a2/Include/cpython/pymem.h
Examining data/python3.10-3.10.0~a2/Include/cpython/objimpl.h
Examining data/python3.10-3.10.0~a2/Include/cpython/listobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/traceback.h
Examining data/python3.10-3.10.0~a2/Include/cpython/pyerrors.h
Examining data/python3.10-3.10.0~a2/Include/cpython/bytearrayobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/pystate.h
Examining data/python3.10-3.10.0~a2/Include/cpython/interpreteridobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/ceval.h
Examining data/python3.10-3.10.0~a2/Include/cpython/initconfig.h
Examining data/python3.10-3.10.0~a2/Include/cpython/code.h
Examining data/python3.10-3.10.0~a2/Include/cpython/fileobject.h
Examining data/python3.10-3.10.0~a2/Include/cpython/sysmodule.h
Examining data/python3.10-3.10.0~a2/Include/token.h
Examining data/python3.10-3.10.0~a2/Include/code.h
Examining data/python3.10-3.10.0~a2/Include/fileobject.h
Examining data/python3.10-3.10.0~a2/Include/sysmodule.h
Examining data/python3.10-3.10.0~a2/Include/structseq.h
Examining data/python3.10-3.10.0~a2/Include/tracemalloc.h
Examining data/python3.10-3.10.0~a2/Include/typeslots.h
Examining data/python3.10-3.10.0~a2/Include/pymath.h
Examining data/python3.10-3.10.0~a2/Include/opcode.h
Examining data/python3.10-3.10.0~a2/Include/warnings.h
Examining data/python3.10-3.10.0~a2/Include/pyframe.h
Examining data/python3.10-3.10.0~a2/Include/pydebug.h
Examining data/python3.10-3.10.0~a2/Include/longintrepr.h
Examining data/python3.10-3.10.0~a2/Include/intrcheck.h
Examining data/python3.10-3.10.0~a2/Include/pythread.h
Examining data/python3.10-3.10.0~a2/Misc/coverity_model.c
Examining data/python3.10-3.10.0~a2/Python/hashtable.c
Examining data/python3.10-3.10.0~a2/Python/marshal.c
Examining data/python3.10-3.10.0~a2/Python/pyarena.c
Examining data/python3.10-3.10.0~a2/Python/fileutils.c
Examining data/python3.10-3.10.0~a2/Python/structmember.c
Examining data/python3.10-3.10.0~a2/Python/sysmodule.c
Examining data/python3.10-3.10.0~a2/Python/pystate.c
Examining data/python3.10-3.10.0~a2/Python/importdl.h
Examining data/python3.10-3.10.0~a2/Python/pylifecycle.c
Examining data/python3.10-3.10.0~a2/Python/modsupport.c
Examining data/python3.10-3.10.0~a2/Python/condvar.h
Examining data/python3.10-3.10.0~a2/Python/getversion.c
Examining data/python3.10-3.10.0~a2/Python/ceval_gil.h
Examining data/python3.10-3.10.0~a2/Python/ast.c
Examining data/python3.10-3.10.0~a2/Python/getplatform.c
Examining data/python3.10-3.10.0~a2/Python/dup2.c
Examining data/python3.10-3.10.0~a2/Python/bootstrap_hash.c
Examining data/python3.10-3.10.0~a2/Python/asdl.c
Examining data/python3.10-3.10.0~a2/Python/dynload_win.c
Examining data/python3.10-3.10.0~a2/Python/pystrcmp.c
Examining data/python3.10-3.10.0~a2/Python/context.c
Examining data/python3.10-3.10.0~a2/Python/thread_nt.h
Examining data/python3.10-3.10.0~a2/Python/formatter_unicode.c
Examining data/python3.10-3.10.0~a2/Python/pystrhex.c
Examining data/python3.10-3.10.0~a2/Python/getcompiler.c
Examining data/python3.10-3.10.0~a2/Python/pythonrun.c
Examining data/python3.10-3.10.0~a2/Python/thread.c
Examining data/python3.10-3.10.0~a2/Python/symtable.c
Examining data/python3.10-3.10.0~a2/Python/mysnprintf.c
Examining data/python3.10-3.10.0~a2/Python/ast_opt.c
Examining data/python3.10-3.10.0~a2/Python/pyhash.c
Examining data/python3.10-3.10.0~a2/Python/pathconfig.c
Examining data/python3.10-3.10.0~a2/Python/importlib.h
Examining data/python3.10-3.10.0~a2/Python/wordcode_helpers.h
Examining data/python3.10-3.10.0~a2/Python/importlib_zipimport.h
Examining data/python3.10-3.10.0~a2/Python/codecs.c
Examining data/python3.10-3.10.0~a2/Python/Python-ast.c
Examining data/python3.10-3.10.0~a2/Python/ceval.c
Examining data/python3.10-3.10.0~a2/Python/bltinmodule.c
Examining data/python3.10-3.10.0~a2/Python/getargs.c
Examining data/python3.10-3.10.0~a2/Python/hamt.c
Examining data/python3.10-3.10.0~a2/Python/pymath.c
Examining data/python3.10-3.10.0~a2/Python/getopt.c
Examining data/python3.10-3.10.0~a2/Python/_warnings.c
Examining data/python3.10-3.10.0~a2/Python/importlib_external.h
Examining data/python3.10-3.10.0~a2/Python/mystrtoul.c
Examining data/python3.10-3.10.0~a2/Python/frozenmain.c
Examining data/python3.10-3.10.0~a2/Python/pyfpe.c
Examining data/python3.10-3.10.0~a2/Python/pyctype.c
Examining data/python3.10-3.10.0~a2/Python/dynamic_annotations.c
Examining data/python3.10-3.10.0~a2/Python/clinic/marshal.c.h
Examining data/python3.10-3.10.0~a2/Python/clinic/sysmodule.c.h
Examining data/python3.10-3.10.0~a2/Python/clinic/import.c.h
Examining data/python3.10-3.10.0~a2/Python/clinic/traceback.c.h
Examining data/python3.10-3.10.0~a2/Python/clinic/bltinmodule.c.h
Examining data/python3.10-3.10.0~a2/Python/clinic/_warnings.c.h
Examining data/python3.10-3.10.0~a2/Python/clinic/context.c.h
Examining data/python3.10-3.10.0~a2/Python/import.c
Examining data/python3.10-3.10.0~a2/Python/dynload_hpux.c
Examining data/python3.10-3.10.0~a2/Python/traceback.c
Examining data/python3.10-3.10.0~a2/Python/pystrtod.c
Examining data/python3.10-3.10.0~a2/Python/preconfig.c
Examining data/python3.10-3.10.0~a2/Python/initconfig.c
Examining data/python3.10-3.10.0~a2/Python/importdl.c
Examining data/python3.10-3.10.0~a2/Python/errors.c
Examining data/python3.10-3.10.0~a2/Python/compile.c
Examining data/python3.10-3.10.0~a2/Python/dynload_shlib.c
Examining data/python3.10-3.10.0~a2/Python/dynload_stub.c
Examining data/python3.10-3.10.0~a2/Python/ast_unparse.c
Examining data/python3.10-3.10.0~a2/Python/dtoa.c
Examining data/python3.10-3.10.0~a2/Python/opcode_targets.h
Examining data/python3.10-3.10.0~a2/Python/getcopyright.c
Examining data/python3.10-3.10.0~a2/Python/future.c
Examining data/python3.10-3.10.0~a2/Python/pytime.c
Examining data/python3.10-3.10.0~a2/Python/frozen.c
Examining data/python3.10-3.10.0~a2/Python/thread_pthread.h
Examining data/python3.10-3.10.0~a2/Doc/includes/sublist.c
Examining data/python3.10-3.10.0~a2/Doc/includes/custom2.c
Examining data/python3.10-3.10.0~a2/Doc/includes/custom3.c
Examining data/python3.10-3.10.0~a2/Doc/includes/custom.c
Examining data/python3.10-3.10.0~a2/Doc/includes/typestruct.h
Examining data/python3.10-3.10.0~a2/Doc/includes/custom4.c
Examining data/python3.10-3.10.0~a2/Doc/includes/run-func.c
Examining data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c
Examining data/python3.10-3.10.0~a2/Mac/PythonLauncher/FileSettings.h
Examining data/python3.10-3.10.0~a2/Mac/PythonLauncher/MyDocument.h
Examining data/python3.10-3.10.0~a2/Mac/PythonLauncher/PreferencesWindowController.h
Examining data/python3.10-3.10.0~a2/Mac/PythonLauncher/MyAppDelegate.h
Examining data/python3.10-3.10.0~a2/Mac/PythonLauncher/doscript.h
Examining data/python3.10-3.10.0~a2/PC/invalid_parameter_handler.c
Examining data/python3.10-3.10.0~a2/PC/python_uwp.cpp
Examining data/python3.10-3.10.0~a2/PC/winsound.c
Examining data/python3.10-3.10.0~a2/PC/config.c
Examining data/python3.10-3.10.0~a2/PC/dl_nt.c
Examining data/python3.10-3.10.0~a2/PC/msvcrtmodule.c
Examining data/python3.10-3.10.0~a2/PC/errmap.h
Examining data/python3.10-3.10.0~a2/PC/getpathp.c
Examining data/python3.10-3.10.0~a2/PC/winreg.c
Examining data/python3.10-3.10.0~a2/PC/python3dll.c
Examining data/python3.10-3.10.0~a2/PC/launcher.c
Examining data/python3.10-3.10.0~a2/PC/frozen_dllmain.c
Examining data/python3.10-3.10.0~a2/PC/empty.c
Examining data/python3.10-3.10.0~a2/PC/_testconsole.c
Examining data/python3.10-3.10.0~a2/PC/python_ver_rc.h
Examining data/python3.10-3.10.0~a2/PC/pyshellext.cpp
Examining data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h
Examining data/python3.10-3.10.0~a2/PC/clinic/msvcrtmodule.c.h
Examining data/python3.10-3.10.0~a2/PC/clinic/winsound.c.h
Examining data/python3.10-3.10.0~a2/PC/clinic/_testconsole.c.h
Examining data/python3.10-3.10.0~a2/PC/clinic/_msi.c.h
Examining data/python3.10-3.10.0~a2/PC/_msi.c
Examining data/python3.10-3.10.0~a2/PC/bdist_wininst/archive.h
Examining data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c
Examining data/python3.10-3.10.0~a2/PC/bdist_wininst/resource.h
Examining data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c
Examining data/python3.10-3.10.0~a2/PC/WinMain.c
Examining data/python3.10-3.10.0~a2/PC/pyconfig.h
Examining data/python3.10-3.10.0~a2/Objects/call.c
Examining data/python3.10-3.10.0~a2/Objects/abstract.c
Examining data/python3.10-3.10.0~a2/Objects/unicodectype.c
Examining data/python3.10-3.10.0~a2/Objects/sliceobject.c
Examining data/python3.10-3.10.0~a2/Objects/odictobject.c
Examining data/python3.10-3.10.0~a2/Objects/moduleobject.c
Examining data/python3.10-3.10.0~a2/Objects/bytearrayobject.c
Examining data/python3.10-3.10.0~a2/Objects/iterobject.c
Examining data/python3.10-3.10.0~a2/Objects/genericaliasobject.c
Examining data/python3.10-3.10.0~a2/Objects/structseq.c
Examining data/python3.10-3.10.0~a2/Objects/obmalloc.c
Examining data/python3.10-3.10.0~a2/Objects/boolobject.c
Examining data/python3.10-3.10.0~a2/Objects/tupleobject.c
Examining data/python3.10-3.10.0~a2/Objects/codeobject.c
Examining data/python3.10-3.10.0~a2/Objects/descrobject.c
Examining data/python3.10-3.10.0~a2/Objects/funcobject.c
Examining data/python3.10-3.10.0~a2/Objects/capsule.c
Examining data/python3.10-3.10.0~a2/Objects/bytes_methods.c
Examining data/python3.10-3.10.0~a2/Objects/unicodetype_db.h
Examining data/python3.10-3.10.0~a2/Objects/accu.c
Examining data/python3.10-3.10.0~a2/Objects/fileobject.c
Examining data/python3.10-3.10.0~a2/Objects/weakrefobject.c
Examining data/python3.10-3.10.0~a2/Objects/memoryobject.c
Examining data/python3.10-3.10.0~a2/Objects/rangeobject.c
Examining data/python3.10-3.10.0~a2/Objects/typeobject.c
Examining data/python3.10-3.10.0~a2/Objects/floatobject.c
Examining data/python3.10-3.10.0~a2/Objects/interpreteridobject.c
Examining data/python3.10-3.10.0~a2/Objects/object.c
Examining data/python3.10-3.10.0~a2/Objects/bytesobject.c
Examining data/python3.10-3.10.0~a2/Objects/dictobject.c
Examining data/python3.10-3.10.0~a2/Objects/clinic/enumobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/tupleobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/moduleobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/typeobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/codeobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/longobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/structseq.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/funcobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/bytearrayobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/descrobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/unicodeobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/listobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/floatobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/dictobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/bytesobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/complexobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/memoryobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/clinic/odictobject.c.h
Examining data/python3.10-3.10.0~a2/Objects/dict-common.h
Examining data/python3.10-3.10.0~a2/Objects/listobject.c
Examining data/python3.10-3.10.0~a2/Objects/frameobject.c
Examining data/python3.10-3.10.0~a2/Objects/picklebufobject.c
Examining data/python3.10-3.10.0~a2/Objects/genobject.c
Examining data/python3.10-3.10.0~a2/Objects/cellobject.c
Examining data/python3.10-3.10.0~a2/Objects/enumobject.c
Examining data/python3.10-3.10.0~a2/Objects/longobject.c
Examining data/python3.10-3.10.0~a2/Objects/namespaceobject.c
Examining data/python3.10-3.10.0~a2/Objects/complexobject.c
Examining data/python3.10-3.10.0~a2/Objects/classobject.c
Examining data/python3.10-3.10.0~a2/Objects/unicodeobject.c
Examining data/python3.10-3.10.0~a2/Objects/unionobject.c
Examining data/python3.10-3.10.0~a2/Objects/methodobject.c
Examining data/python3.10-3.10.0~a2/Objects/stringlib/undef.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/ucs4lib.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/join.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/unicodedefs.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/fastsearch.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/stringdefs.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/find.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/count.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/asciilib.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/eq.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/ctype.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/localeutil.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/replace.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/find_max_char.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/clinic/transmogrify.h.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/split.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/unicode_format.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/codecs.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/partition.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/ucs1lib.h
Examining data/python3.10-3.10.0~a2/Objects/stringlib/ucs2lib.h
Examining data/python3.10-3.10.0~a2/Objects/setobject.c
Examining data/python3.10-3.10.0~a2/Objects/exceptions.c
Examining data/python3.10-3.10.0~a2/debian/tests/packages/fibc/fibc.c

FINAL RESULTS:

data/python3.10-3.10.0~a2/Modules/posixmodule.c:3119:18:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        result = chmod(path->narrow, mode);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3467:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        result = chown(path->narrow, uid, gid);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:8125:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        length = readlink(path->narrow, buffer, MAXPATHLEN);
data/python3.10-3.10.0~a2/Python/fileutils.c:1779:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    res = readlink(cpath, cbuf, cbuf_len);
data/python3.10-3.10.0~a2/Include/bytesobject.h:41:58:  [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.
                                Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
data/python3.10-3.10.0~a2/Include/bytesobject.h:43:58:  [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.
                                Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
data/python3.10-3.10.0~a2/Include/internal/pycore_gil.h:15:58:  [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 You need either a POSIX-compatible or a Windows system!
data/python3.10-3.10.0~a2/Include/pyerrors.h:313:50:  [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.
                        Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
data/python3.10-3.10.0~a2/Include/pyerrors.h:315:50:  [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.
                        Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
data/python3.10-3.10.0~a2/Include/sysmodule.h:18:43:  [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.
                 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
data/python3.10-3.10.0~a2/Include/sysmodule.h:20:43:  [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.
                 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:76:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(g_path, info.dli_fname);
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:85:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(end, "Resources/Python.app/Contents/MacOS/" PYTHONFRAMEWORK);
data/python3.10-3.10.0~a2/Modules/_cryptmodule.c:41:20:  [4] (crypto) crypt_r:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    crypt_result = crypt_r(word, salt, &data);
data/python3.10-3.10.0~a2/Modules/_cryptmodule.c:43:20:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    crypt_result = crypt(word, salt);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:346:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(result, prefix);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:349:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(result, suffix);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:379:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(new_prefix, prefix);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:389:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(new_prefix, buf);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:3406:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(mangled_name, "_%s@%d", name, i*4);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:284:14:  [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.
    result = vprintf(fmt, argptr);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:372:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dst, src);
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:511:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buffer,
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1800:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "LP_%s", name);
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1818:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "LP_%s", typ->tp_name);
data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c:92:9:  [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(errstr + 10, ERR_STR_LEN - 10, str, arg);
data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c:231:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(malloc_sym, "_%s", symbol);
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:98:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(dst->format, src->format);
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:584:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "%s:%s:", fieldfmt, fieldname);
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:2550:13:  [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.
        n = snprintf(cp, MPD_EXPDIGITS+2, "%" PRI_mpd_ssize_t, exp);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.h:811:9:  [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(stderr, __VA_ARGS__);  fputc('\n', stderr);    \
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.h:816:9:  [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(stderr, __VA_ARGS__); fputc('\n', stderr);       \
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:43: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.
  #undef snprintf
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:44:11:  [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 sprintf_s
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:369:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            self->handle = CreateFileW(name, access,
data/python3.10-3.10.0~a2/Modules/_multiprocessing/semaphore.c:500:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(name_copy, name);
data/python3.10-3.10.0~a2/Modules/_multiprocessing/semaphore.c:552:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(name_copy, name);
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:646:13:  [4] (shell) execv:
  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.
            execv(executable, argv);
data/python3.10-3.10.0~a2/Modules/_sre.c:82:18:  [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 TRACE(v) printf v
data/python3.10-3.10.0~a2/Modules/_sre.c:1443:19:  [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 VTRACE(v) printf v
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:815:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fmt, PyBytes_AS_STRING(tmp));
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2278:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(format, view->format);
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:3285:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s module: \"%s\" attribute: \"%s\"", \
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:5919:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(ob->structmembers.inplace_member, s);
data/python3.10-3.10.0~a2/Modules/_tkinter.c:712:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(argv0, className);
data/python3.10-3.10.0~a2/Modules/_tkinter.c:753:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(args, use);
data/python3.10-3.10.0~a2/Modules/_tracemalloc.c:141:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/python3.10-3.10.0~a2/Modules/_winapi.c:618:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(rdb->MountPointReparseBuffer.PathBuffer +
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:22:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(copied, str);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/cjkcodecs.h:313:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(mhname + sizeof("__map_") - 1, h->charset);
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:113:18:  [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.
    to the build system, please open a bug.  Thank you!
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:160:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((ai)->ai_canonname, (str));\
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:142:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(serv, numserv);
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:148:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(serv, sp->s_name);
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:178:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(host, numaddr);
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:198:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(host, hp->h_name);
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:210:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(host, numaddr);
data/python3.10-3.10.0~a2/Modules/getpath.c:297:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(new_path, path);
data/python3.10-3.10.0~a2/Modules/getpath.c:299:9:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
        wcscat(new_path, separator);
data/python3.10-3.10.0~a2/Modules/getpath.c:301:5:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    wcscat(new_path, path2);
data/python3.10-3.10.0~a2/Modules/getpath.c:1380:9:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
        wcscpy(buf, calculate->pythonpath_env);
data/python3.10-3.10.0~a2/Modules/getpath.c:1381:9:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
        wcscat(buf, delimiter);
data/python3.10-3.10.0~a2/Modules/getpath.c:1385:5:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    wcscat(buf, calculate->zip_path);
data/python3.10-3.10.0~a2/Modules/getpath.c:1386:5:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    wcscat(buf, delimiter);
data/python3.10-3.10.0~a2/Modules/getpath.c:1396:13:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
            wcscat(buf, calculate->prefix);
data/python3.10-3.10.0~a2/Modules/getpath.c:1401:17:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
                wcscat(buf, separator);
data/python3.10-3.10.0~a2/Modules/getpath.c:1412:13:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
            wcscat(buf, defpath);
data/python3.10-3.10.0~a2/Modules/getpath.c:1417:5:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    wcscat(buf, delimiter);
data/python3.10-3.10.0~a2/Modules/getpath.c:1420:5:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    wcscat(buf, calculate->exec_prefix);
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:113:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access_mode access;
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:344:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (self->access != ACCESS_READ)
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:719:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        switch (mobj->access) {
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1154:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                                     &access, &offset))
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1167:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access != (int)ACCESS_DEFAULT) &&
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1171:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch ((access_mode)access) {
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1202:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    fd, map_size, access, offset) < 0) {
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1298:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    m_obj->access = (access_mode)access;
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1332:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                                     &tagname, &access, &offset)) {
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1337:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    fileno, map_size, access, offset) < 0) {
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1341:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch((access_mode)access) {
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1473:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(m_obj->tagname, tagname);
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1478:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    m_obj->access = (access_mode)access;
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1757:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    hFile = CreateFileW(path, access, 0, NULL, OPEN_EXISTING, flags, NULL);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1782:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            hFile = CreateFileW(path, access | GENERIC_READ,
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1796:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                hFile = CreateFileW(path, access, 0, NULL, OPEN_EXISTING,
data/python3.10-3.10.0~a2/Modules/posixmodule.c:2854:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        result = access(path->narrow, mode);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3795:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(wnamebuf, po_wchars);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:4534:14:  [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.
    result = system(bytes);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:5359:5:  [4] (shell) execv:
  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.
    execv(path->narrow, argvlist);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:7431:12:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    name = getlogin();
data/python3.10-3.10.0~a2/Modules/posixmodule.c:8436:58:  [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.
build_times_result(PyObject *module, double user, double system,
data/python3.10-3.10.0~a2/Modules/posixmodule.c:8456: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.
    SET(1, system);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13162:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(result, path_wide);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13167:9:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
        wcscpy(result + path_len, filename);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13250:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(result, path_narrow);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13253:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(result + path_len, filename);
data/python3.10-3.10.0~a2/Modules/readline.c:181:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(copy, PyBytes_AS_STRING(encoded));
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1102:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buffer, hangul_syllables[L][0]);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1104:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buffer, hangul_syllables[V][1]);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1106:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buffer, hangul_syllables[T][2]);
data/python3.10-3.10.0~a2/Objects/memoryobject.c:823:31:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        mbuf->master.format = strcpy(cp, fmt);
data/python3.10-3.10.0~a2/PC/_msi.c:163:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pszTempName, name);
data/python3.10-3.10.0~a2/PC/_msi.c:296:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(ccab.szCab, cabname+i);
data/python3.10-3.10.0~a2/PC/_msi.c:299:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(ccab.szCab, cabname);
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:252:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pathname, dirname);
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:270:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(pathname, scheme[i].prefix);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:674:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(fullpath, fname);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:916:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(err_buf, prefix);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:955:5:  [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.
    _snprintf(Buffer+n, sizeof(Buffer)-n, msg);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1314:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(bound_image_dll, fname);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1671:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(python_dir, ivi->prefix);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1700:25:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                        strcpy(install_path, python_dir);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1703:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(install_path, scheme[0].prefix);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1787:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s\\%s-wininst.log", dir, meta_name);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1792:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(error, "Can't create \"%s\" (%s).\n\n"
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1804: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(logfile, buffer);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1810:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(subkey_name, "%s-py%d.%d", meta_name, py_major, py_minor);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1827:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "Python %d.%d %s", py_major, py_minor, title);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1843:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s\\Remove%s.exe", dir, meta_name);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1848:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "\"%s\\Remove%s.exe\" -u \"%s\\%s-wininst.log\"",
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1877: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(logfile, buffer);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2067:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(fname, python_dir);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2069:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(fname, install_script);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2221:20:  [4] (shell) ShellExecute:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int ret = (int)ShellExecute(0, "runas", modulename, "", NULL,
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2266:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(target_version, REGISTRY_SUFFIX_6432);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2331:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(batname, "%s.bat", exename);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2498:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(lastscript, scriptname);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2581:22:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            if (2 == sscanf(cp, "%d Root Key: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2595:29:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            } else if (2 == sscanf(cp, "%d Made Dir: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2604:29:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            } else if (2 == sscanf(cp, "%d File Copy: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2613:29:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            } else if (2 == sscanf(cp, "%d File Overwrite: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2622:29:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            } else if (2 == sscanf(cp, "%d Reg DB Key: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2624:29:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            } else if (2 == sscanf(cp, "%d Reg DB Value: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2626:29:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            } else if (2 == sscanf(cp, "%d Run Script: %s", &ign, &buffer)) {
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:295:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        REGSAM access);
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:310:101:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        clinic_HKEY_converter, &key, _PyUnicode_WideCharString_Opt_Converter, &sub_key, &reserved, &access)) {
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:313:77:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    _return_value = winreg_CreateKeyEx_impl(module, key, sub_key, reserved, access);
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:418:59:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        const Py_UNICODE *sub_key, REGSAM access,
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:433:86:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        clinic_HKEY_converter, &key, _PyUnicode_WideCharString_Converter, &sub_key, &access, &reserved)) {
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:436:66:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return_value = winreg_DeleteKeyEx_impl(module, key, sub_key, access, reserved);
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:796:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    int reserved, REGSAM access);
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:811:101:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        clinic_HKEY_converter, &key, _PyUnicode_WideCharString_Opt_Converter, &sub_key, &reserved, &access)) {
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:814:73:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    _return_value = winreg_OpenKey_impl(module, key, sub_key, reserved, access);
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:853:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                      int reserved, REGSAM access);
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:868:101:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        clinic_HKEY_converter, &key, _PyUnicode_WideCharString_Opt_Converter, &sub_key, &reserved, &access)) {
data/python3.10-3.10.0~a2/PC/clinic/winreg.c.h:871:75:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    _return_value = winreg_OpenKeyEx_impl(module, key, sub_key, reserved, access);
data/python3.10-3.10.0~a2/PC/frozen_dllmain.c:123:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(funcName, modName);
data/python3.10-3.10.0~a2/PC/getpathp.c:908:9:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
        wcscpy(buf, argv0_path);
data/python3.10-3.10.0~a2/PC/getpathp.c:1135:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(py3path, Py_GetPrefix());
data/python3.10-3.10.0~a2/PC/launcher.c:1593:17:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fwprintf(stdout, fmt, version, ip->exe_display);
data/python3.10-3.10.0~a2/PC/launcher.c:1596:17:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fwprintf(stdout, fmt, version, ip->executable);
data/python3.10-3.10.0~a2/PC/launcher.c:1600:17:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fwprintf(stderr, defind);
data/python3.10-3.10.0~a2/PC/launcher.c:1951:17:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fwprintf(stdout, \
data/python3.10-3.10.0~a2/PC/pyshellext.cpp:378:13:  [4] (shell) ShellExecute:
  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.
            ShellExecute(NULL, NULL, target, args, target_dir, SW_NORMAL);
data/python3.10-3.10.0~a2/PC/winreg.c:942:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        REGSAM access)
data/python3.10-3.10.0~a2/PC/winreg.c:950:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    (Py_ssize_t)access) < 0) {
data/python3.10-3.10.0~a2/PC/winreg.c:954:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                         access, NULL, &retKey, NULL);
data/python3.10-3.10.0~a2/PC/winreg.c:1026:59:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        const Py_UNICODE *sub_key, REGSAM access,
data/python3.10-3.10.0~a2/PC/winreg.c:1037:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    (Py_ssize_t)access) < 0) {
data/python3.10-3.10.0~a2/PC/winreg.c:1053:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    rc = (*pfn)(key, sub_key, access, reserved);
data/python3.10-3.10.0~a2/PC/winreg.c:1392:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    int reserved, REGSAM access)
data/python3.10-3.10.0~a2/PC/winreg.c:1400:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    (Py_ssize_t)access) < 0) {
data/python3.10-3.10.0~a2/PC/winreg.c:1404:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    rc = RegOpenKeyExW(key, sub_key, reserved, access, &retKey);
data/python3.10-3.10.0~a2/PC/winreg.c:1428:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                      int reserved, REGSAM access)
data/python3.10-3.10.0~a2/PC/winreg.c:1431:64:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return winreg_OpenKey_impl(module, key, sub_key, reserved, access);
data/python3.10-3.10.0~a2/Parser/pegen.c:1394:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, first_str);
data/python3.10-3.10.0~a2/Parser/pegen.c:1397:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, second_str);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:798:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(tok->encoding, enc);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:878:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(newtok, buf);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:908:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(tok->buf + oldlen, newtok);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:1899:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(encoding, tok->encoding);
data/python3.10-3.10.0~a2/Programs/_freeze_importlib.c:102:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "<frozen %s>", name);
data/python3.10-3.10.0~a2/Programs/_testembed.c:147:9:  [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.
    do {printf(msg); fflush(stdout);} while (0);
data/python3.10-3.10.0~a2/Python/codecs.c:1016:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy((char *)outp, buffer);
data/python3.10-3.10.0~a2/Python/fileutils.c:851:5:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
    swprintf(encoding, Py_ARRAY_LENGTH(encoding), L"cp%u", ansi_codepage);
data/python3.10-3.10.0~a2/Python/initconfig.c:1858: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(f, usage_line, program);
data/python3.10-3.10.0~a2/Python/initconfig.c:1865:9:  [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(f, usage_4, (wint_t)DELIM);
data/python3.10-3.10.0~a2/Python/initconfig.c:1866:9:  [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(f, usage_5, (wint_t)DELIM, PYTHONHOMEHELP);
data/python3.10-3.10.0~a2/Python/mysnprintf.c:71:11:  [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.
    len = vsnprintf(str, size, format, va);
data/python3.10-3.10.0~a2/Python/pylifecycle.c:313:9:  [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(stderr, C_LOCALE_COERCION_WARNING, newloc);
data/python3.10-3.10.0~a2/Python/pylifecycle.c:2600:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stream, format, vargs);
data/python3.10-3.10.0~a2/Python/pystrtod.c:761:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(tmp_format, format);
data/python3.10-3.10.0~a2/Python/thread.c:47:54:  [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 dprintf(args)   (void)((thread_debug & 1) && printf args)
data/python3.10-3.10.0~a2/Python/thread.c:48:48:  [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 d2printf(args)  ((thread_debug & 8) && printf args)
data/python3.10-3.10.0~a2/Python/thread_pthread.h:202:56:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define CHECK_STATUS_PTHREAD(name)  if (status != 0) { fprintf(stderr, \
data/python3.10-3.10.0~a2/Python/traceback.c:347:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(namebuf, PyBytes_AS_STRING(path));
data/python3.10-3.10.0~a2/Python/traceback.c:353:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(namebuf+len, tail);
data/python3.10-3.10.0~a2/Include/pydebug.h:32:57:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:176:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
            if (realpath(path, real_path) == NULL) {
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:186:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
            if (realpath(".", real_path) == NULL) {
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:39:10:  [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.
  #undef random
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:40: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.
  #define random rand
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:41:10:  [3] (random) srandom:
  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.
  #undef srandom
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:42:11:  [3] (random) srandom:
  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.
  #define srandom srand
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/vccompat.h:42:19:  [3] (random) srand:
  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.
  #define srandom srand
data/python3.10-3.10.0~a2/Modules/_io/_iomodule.c:761:18:  [3] (random) setstate:
  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.
    ADD_INTERNED(setstate)
data/python3.10-3.10.0~a2/Modules/_io/textio.c:41:16:  [3] (random) setstate:
  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.
_Py_IDENTIFIER(setstate);
data/python3.10-3.10.0~a2/Modules/_pickle.c:6639:15:  [3] (random) setstate:
  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.
    PyObject *setstate;
data/python3.10-3.10.0~a2/Modules/_pickle.c:6655:59:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if (_PyObject_LookupAttrId(inst, &PyId___setstate__, &setstate) < 0) {
data/python3.10-3.10.0~a2/Modules/_pickle.c:6659:9:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if (setstate != NULL) {
data/python3.10-3.10.0~a2/Modules/_pickle.c:6663:35:  [3] (random) setstate:
  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.
        result = _Pickle_FastCall(setstate, state);
data/python3.10-3.10.0~a2/Modules/_pickle.c:6664:19:  [3] (random) setstate:
  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.
        Py_DECREF(setstate);
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:792:43:  [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 EXPAT_ENTROPY_DEBUG = getenv("EXPAT_ENTROPY_DEBUG");
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:254:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            const char *q = getenv("GAI");
data/python3.10-3.10.0~a2/Modules/getpath.c:1436: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 *path = getenv("PATH");
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:112:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
       devicename = getenv("AUDIODEV");
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:177:22:  [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.
        devicename = getenv("MIXERDEV");
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3309:11:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    res = chroot(path->narrow);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:465:26:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        HINSTANCE hLib = LoadLibrary("shell32.dll");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:662:9:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    h = LoadLibrary(fname);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:677:12:  [3] (misc) LoadLibraryEx:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    return LoadLibraryEx(fullpath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:807:16:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    tempname = tempnam(NULL, NULL);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:876:22:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    char *tempname = tempnam(NULL, NULL);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1120:13:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
        || !GetTempFileName(tempdir, "~du", 0, ini_file)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1350:15:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    hPython = LoadLibrary(dll);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2180:23:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    if (0 == (shell32=LoadLibrary("shell32.dll")))
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2343:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    if (CreateProcess(NULL,
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2343:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    if (CreateProcess(NULL,
data/python3.10-3.10.0~a2/Programs/_testembed.c:1393:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *env = getenv("TESTPATH");
data/python3.10-3.10.0~a2/Programs/_testembed.c:1426:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *env = getenv("TESTPATH");
data/python3.10-3.10.0~a2/Programs/_testembed.c:1455:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *env = getenv("TESTHOME");
data/python3.10-3.10.0~a2/Python/condvar.h:111:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(cs);
data/python3.10-3.10.0~a2/Python/condvar.h:125:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(cs);
data/python3.10-3.10.0~a2/Python/dynamic_annotations.c:123:41:  [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 *running_on_valgrind_str = getenv("RUNNING_ON_VALGRIND");
data/python3.10-3.10.0~a2/Python/fileutils.c:1827:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    res = realpath(cpath, cresolved_path);
data/python3.10-3.10.0~a2/Python/initconfig.c:1005:23:  [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 *var = getenv(name);
data/python3.10-3.10.0~a2/Python/initconfig.c:1140:39:  [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* pyvenv_launcher = getenv("__PYVENV_LAUNCHER__");
data/python3.10-3.10.0~a2/Python/preconfig.c:527:23:  [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 *var = getenv(name);
data/python3.10-3.10.0~a2/Python/pylifecycle.c:230:39:  [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 *locale_override = getenv("LC_ALL");
data/python3.10-3.10.0~a2/Python/pylifecycle.c:334:35:  [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 *locale_override = getenv("LC_ALL");
data/python3.10-3.10.0~a2/Python/pylifecycle.c:394:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        locale = getenv(*pvar);
data/python3.10-3.10.0~a2/Python/pylifecycle.c:411:23:  [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.
    coerce_c_locale = getenv("PYTHONCOERCECLOCALE");
data/python3.10-3.10.0~a2/Doc/includes/run-func.c:30:42:  [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).
                pValue = PyLong_FromLong(atoi(argv[i + 3]));
data/python3.10-3.10.0~a2/Include/cpython/bytesobject.h:8: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 ob_sval[1];
data/python3.10-3.10.0~a2/Include/cpython/bytesobject.h:64: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 small_buffer[512];
data/python3.10-3.10.0~a2/Include/cpython/unicodeobject.h:55:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
data/python3.10-3.10.0~a2/Include/datetime.h:74:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[_PyDateTime_TIME_DATASIZE];
data/python3.10-3.10.0~a2/Include/datetime.h:97:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[_PyDateTime_DATE_DATASIZE];
data/python3.10-3.10.0~a2/Include/datetime.h:102:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[_PyDateTime_DATETIME_DATASIZE];
data/python3.10-3.10.0~a2/Include/pyhash.h:58:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char uc[24];
data/python3.10-3.10.0~a2/Include/pyhash.h:71:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char padding[16];
data/python3.10-3.10.0~a2/Include/pyhash.h:75:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char padding[16];
data/python3.10-3.10.0~a2/Include/pymath.h:178:39:  [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 union { unsigned char buf[8]; double __icc_nan; } __nan_store = {0,0,0,0,0,0,0xf8,0x7f};
data/python3.10-3.10.0~a2/Include/pyport.h:199:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define Py_MEMCPY memcpy
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:154:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char path[PATH_MAX * 2];
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:155:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char real_path[PATH_MAX * 2];
data/python3.10-3.10.0~a2/Misc/coverity_model.c:106:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[4];
data/python3.10-3.10.0~a2/Modules/_blake2/blake2b_impl.c:124:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->param.salt, salt->buf, salt->len);
data/python3.10-3.10.0~a2/Modules/_blake2/blake2b_impl.c:135:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->param.personal, person->buf, person->len);
data/python3.10-3.10.0~a2/Modules/_blake2/blake2b_impl.c:212:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(block, key->buf, key->len);
data/python3.10-3.10.0~a2/Modules/_blake2/blake2s_impl.c:123:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->param.salt, salt->buf, salt->len);
data/python3.10-3.10.0~a2/Modules/_blake2/blake2s_impl.c:134:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->param.personal, person->buf, person->len);
data/python3.10-3.10.0~a2/Modules/_blake2/blake2s_impl.c:211:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(block, key->buf, key->len);
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2-impl.h:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( dst, &w, sizeof( w ) );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2-impl.h:81: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( dst, &w, sizeof( w ) );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:129:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->salt, salt, BLAKE2B_SALTBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:135:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->personal, personal, BLAKE2B_PERSONALBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:223:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:303:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, fill ); // Fill buffer
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:307:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); // Shift buffer left
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:314:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, inlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:336:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b-ref.c:347: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( out, buffer, outlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:171:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->salt, salt, BLAKE2B_SALTBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:177:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->personal, personal, BLAKE2B_PERSONALBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:273:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:360:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, fill ); // Fill buffer
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:364:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, BLAKE2B_BLOCKBYTES ); // Shift buffer left
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:371:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, inlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:391:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2b.c:398: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( out, &S->h[0], outlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2bp.c:108:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2bp.c:126:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf + left, in, fill );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2bp.c:162:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf + left, in, inlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2bp.c:223:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:122:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->salt, salt, BLAKE2S_SALTBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:128:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->personal, personal, BLAKE2S_PERSONALBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:216:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:293:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, fill ); // Fill buffer
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:297:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); // Shift buffer left
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:304:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, inlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:326:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s-ref.c:337: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( out, buffer, outlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:159:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->salt, salt, BLAKE2S_SALTBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:165:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( P->personal, personal, BLAKE2S_PERSONALBYTES );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:258:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:333:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, fill ); // Fill buffer
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:337:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, BLAKE2S_BLOCKBYTES ); // Shift buffer left
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:344:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( S->buf + left, in, inlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:366:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2s.c:377: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( out, buffer, outlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2sp.c:105:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2sp.c:123:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf + left, in, fill );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2sp.c:159:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( S->buf + left, in, inlen );
data/python3.10-3.10.0~a2/Modules/_blake2/impl/blake2sp.c:221:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( block, key, keylen );
data/python3.10-3.10.0~a2/Modules/_bz2module.c:523:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((void*)(bzs->next_in + d->bzs_avail_in_real), data, len);
data/python3.10-3.10.0~a2/Modules/_bz2module.c:579:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(d->input_buffer, bzs->next_in, d->bzs_avail_in_real);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:365:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:385:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buf, "%"PY_FORMAT_SIZE_T"d,", shape[k]);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:387:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buf, "%"PY_FORMAT_SIZE_T"d)", shape[k]);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:446:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ptr, self->b_ptr, self->b_size);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:711:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(((CDataObject *)result)->b_ptr,
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:1287:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(self->b_ptr, ptr, size);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:1341:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(self->b_ptr, ptr, size);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:2060:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&parg->value, self->b_ptr, self->b_size);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:2683: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 string[256];
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:2688:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    cp += sprintf(cp, "%x", Py_SAFE_DOWNCAST(index, Py_ssize_t, int));
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:2697:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        cp += sprintf(cp, ":%x", Py_SAFE_DOWNCAST(target->b_index, Py_ssize_t, int));
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:3013:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cmem->b_ptr, adr, dict->size);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:3131:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ptr,
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:4872:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[256];
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:4905:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(name, "%.200s_Array_%Id",
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:4908:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(name, "%.200s_Array_%ld",
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:5657:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result->b_ptr, &ptr, sizeof(void *));
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:78:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[16];
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:388:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, src, (len+1) * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Modules/_ctypes/callbacks.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/python3.10-3.10.0~a2/Modules/_ctypes/callbacks.c:200:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(obj->b_ptr, *pArgs, dict->size);
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:486: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 buffer[256];
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:490:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%d)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:495:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%d)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:500:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%d)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:505:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%ld)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:520:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%f)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:524:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%f)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:530:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "<cparam '%c' ('%c')>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:534:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "<cparam '%c' ('\\x%02x')>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:546:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "<cparam '%c' (%p)>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:552:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "<cparam '%c' at %p>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:556:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "<cparam 0x%02x at %p>",
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1199:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(tmp, args[i].value.p, size);
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1201:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(tmp, (void*)&args[i].value, size);
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:523:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:540:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:572:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:588:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:621:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:637:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:718:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:734:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:767:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:783:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:816:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:832:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:865:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:881:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:913:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:929:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &field, sizeof(field));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:965:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(long double));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:973:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&val, ptr, sizeof(long double));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:985:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(double));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:1033:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, &x, sizeof(x));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:1146:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t chars[2];
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:1281:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)ptr, data, size);
data/python3.10-3.10.0~a2/Modules/_ctypes/ctypes.h:28:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char c[16];
data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c:84:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char errstr[ERR_STR_LEN];
data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c:216:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char undersym[257];          /* Saves calls to malloc(3) */
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi.h:196: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		data[FFI_SIZEOF_ARG];
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi.h:254: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		tramp[FFI_TRAMPOLINE_SIZE];
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi.h:271: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		tramp[FFI_TRAMPOLINE_SIZE];
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi_common.h:40:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#		define memcpy(d, s, n) bcopy((s), (d), (n))
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/include/ffi_common.h:40:27:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#		define memcpy(d, s, n) bcopy((s), (d), (n))
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c:276:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy((char*)dest_cpy, (char*)*p_argv, size_al);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c:1183:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(&outStruct[destMarker],
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c:1479:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
								memcpy(&outGPRs[destGMarker],
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:492: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 (argp, avalue[i], size);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:497: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.
			char *a = (char *) avalue[i];
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:521:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
							memcpy (&reg_args->gpr[gprcount], &actval, 8);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:529:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
							memcpy (&reg_args->gpr[gprcount], &actval, 8);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:546:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
							memcpy (&reg_args->gpr[gprcount], &actval, 8);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:554:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
							memcpy (&reg_args->gpr[gprcount], &actval, 8);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:723:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy (a, &reg_args->sse[ssecount++], 8);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c:725:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy (a, &reg_args->gpr[gprcount++], 8);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c:107:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(argp, *p_argv, z);
data/python3.10-3.10.0~a2/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c:380:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (stack, ecif->avalue, ecif->cif->bytes);
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:82:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(d + sizeof(PyDictObject),
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:106:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst->shape, src->shape,
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:118:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst->ffi_type_pointer.elements,
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:464:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(stgdict->ffi_type_pointer.elements,
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:804:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(element_types,
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:324:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buffer[2];
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:658: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.
        char *buffer[100];
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:735:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t wstr[2];
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:1526: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 rtn[1024]; /* This should be big enough.. I hope */
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:1730: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 rtn[1024]; /* This should be big enough.. I hope */
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:2147:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fp = tmpfile();
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:2157: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.
        char buf[BUFSIZ];
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:3038:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fp = tmpfile();
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:4408:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t buffer[2];
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1459: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 freplacement[64];
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1461:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(freplacement, "%06d", TIME_GET_MICROSECOND(object));
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1463:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(freplacement, "%06d", DATE_GET_MICROSECOND(object));
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1465:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(freplacement, "%06d", 0);
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1540:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[100];
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1614:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pnew, ptoappend, ntoappend);
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:2796:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(me->data, pdata, _PyDateTime_DATE_DATASIZE);
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:4161:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(me->data, pdata, _PyDateTime_TIME_DATASIZE);
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:4310:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:4830:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(me->data, pdata, _PyDateTime_DATETIME_DATASIZE);
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:5547: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 buffer[100];
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:5898: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.
        char buf[100];
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:193: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 *dec_signal_string[MPD_NUM_FLAGS] = {
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:610: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.
    const char *n[SIGNAL_MAP_LEN]; /* name */
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:611: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.
    const char *b[SIGNAL_MAP_LEN]; /* bool */
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:1329: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 flags[MPD_MAX_SIGNAL_LIST];
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:1330: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 traps[MPD_MAX_SIGNAL_LIST];
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:2425: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 sign_special[6];
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:2465:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(sign_special, "Inf");
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:2469:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(sign_special, "NaN");
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:2472:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(sign_special, "sNaN");
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3095:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyUnicode_1BYTE_DATA(res), s, size);
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3149:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, src, size);
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3170:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buf[2];
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3408:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pylong->ob_digit, ob_digit, n * sizeof(digit));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/constants.c:114: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 *mpd_round_string[MPD_ROUND_GUARD] = {
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/constants.c:126: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 *mpd_clamp_string[MPD_CLAMP_GUARD] = {
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:493:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(cp, "NaN");
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:497:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(cp, "sNaN");
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:505:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cp, "Infinity");
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:690:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
_mpd_copy_utf8(char dest[5], const char *s)
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:1428: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 *mpd_flag_string[MPD_NUM_FLAGS] = {
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:1446: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 *mpd_signal_string[MPD_NUM_FLAGS] = {
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpalloc.c:234:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result->data, p, result->alloc * (sizeof *result->data));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpalloc.c:320:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, result->data, result->alloc * (sizeof *result->data));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:2012:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result->data, a->data, a->len * (sizeof *result->data));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:2031:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result->data, a->data, a->len * (sizeof *result->data));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:2045:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result->data, a->data, a->len * (sizeof *result->data));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:2065:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result->data, a->data, a->len * (sizeof *result->data));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5495:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(w, a, m * sizeof *w);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5499:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(w+(m+1), b, m * sizeof *w);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5679:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(c1, u, ulen * (sizeof *c1));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5680:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(c2, u, ulen * (sizeof *c2));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5681:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(c3, u, ulen * (sizeof *c3));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5695:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(vtmp, v, vlen * (sizeof *vtmp));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5701:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(vtmp, v, vlen * (sizeof *vtmp));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5708:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(vtmp, v, vlen * (sizeof *vtmp));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5759:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(c, result, (la+lb) * (sizeof *result));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5798:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(w, a, m * sizeof *w);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:5802:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(w+(m+1), b, m * sizeof *w);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:8252:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*w, u, ulen * (sizeof **w));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.c:8622:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->data, srcdata, srclen * (sizeof *srcdata));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.h:245: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.
extern const char *mpd_round_string[MPD_ROUND_GUARD];
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.h:246: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.
extern const char *mpd_clamp_string[MPD_CLAMP_GUARD];
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/mpdecimal.h:410: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 fill[5];          /* fill character */
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:120:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(readbuf, hp+offset, stride*(sizeof *readbuf));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:128:17:  [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(readbuf, hp+offset, stride*(sizeof *readbuf));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:129:17:  [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(hp+offset, writebuf, stride*(sizeof *writebuf));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:139:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(hp+offset, writebuf, stride*(sizeof *writebuf));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:195:17:  [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(to, from, b*(sizeof *to));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:205:21:  [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(to, from, b*(sizeof *to));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:215:21:  [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(to, from, b*(sizeof *to));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:224:21:  [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(to, from, b*(sizeof *to));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/transpose.c:232:21:  [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(to, from, b*(sizeof *to));
data/python3.10-3.10.0~a2/Modules/_elementtree.c:485:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(children, self->extra->children,
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3127:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p+1, string, size);
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3242: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.
        char message[128] = "undefined entity ";
data/python3.10-3.10.0~a2/Modules/_functoolsmodule.c:201:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(stack, pto_args, pto_nargs * sizeof(PyObject*));
data/python3.10-3.10.0~a2/Modules/_functoolsmodule.c:202:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(stack + pto_nargs, args, nargs_total * sizeof(PyObject*));
data/python3.10-3.10.0~a2/Modules/_gdbmmodule.c:639: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.
        char buf[40];
data/python3.10-3.10.0~a2/Modules/_hashopenssl.c:392:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[EVP_MAX_MD_SIZE];
data/python3.10-3.10.0~a2/Modules/_hashopenssl.c:427:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[EVP_MAX_MD_SIZE];
data/python3.10-3.10.0~a2/Modules/_hashopenssl.c:1341:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char md[EVP_MAX_MD_SIZE] = {0};
data/python3.10-3.10.0~a2/Modules/_hashopenssl.c:1614:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[EVP_MAX_MD_SIZE];
data/python3.10-3.10.0~a2/Modules/_hashopenssl.c:1639:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[EVP_MAX_MD_SIZE];
data/python3.10-3.10.0~a2/Modules/_io/_iomodule.c:241: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 rawmode[6], *m;
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:88:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer->buf, PyBytes_AS_STRING(data), len);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:970:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buffer->buf, self->buffer + self->pos, buffer->len);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:974:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer->buf, self->buffer + self->pos, n);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1009:17:  [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((char *) buffer->buf + written,
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1652:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out, self->buffer + self->pos, current_size);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1709:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out + written, self->buffer + self->pos, r);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1715:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out + written, self->buffer + self->pos, remaining);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1949:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->buffer + self->pos, buffer->buf, buffer->len);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1982:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(self->buffer + self->write_end, buffer->buf, buffer->len);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:1989:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->buffer + self->write_end, buffer->buf, avail);
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:2026:17:  [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(self->buffer,
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:2050:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->buffer, (char *) buffer->buf + written, remaining);
data/python3.10-3.10.0~a2/Modules/_io/bytesio.c:115:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf),
data/python3.10-3.10.0~a2/Modules/_io/bytesio.c:228:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyBytes_AS_STRING(self->buf) + self->pos, buf.buf, len);
data/python3.10-3.10.0~a2/Modules/_io/bytesio.c:580:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer->buf, PyBytes_AS_STRING(self->buf) + self->pos, len);
data/python3.10-3.10.0~a2/Modules/_io/fileio.c:386:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                self->fd = open(name, flags, 0666);
data/python3.10-3.10.0~a2/Modules/_io/iobase.c:626:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyByteArray_AS_STRING(buffer) + old_size,
data/python3.10-3.10.0~a2/Modules/_io/stringio.c:895:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->buf, buf, bufsize * sizeof(Py_UCS4));
data/python3.10-3.10.0~a2/Modules/_io/textio.c:347:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out + kind, PyUnicode_DATA(output), kind * output_len);
data/python3.10-3.10.0~a2/Modules/_io/textio.c:1573:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf + pos, src, len);
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2334:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[COOKIE_BUF_LEN];
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2358:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[COOKIE_BUF_LEN];
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2360:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + OFF_START_POS, &cookie->start_pos, sizeof(cookie->start_pos));
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2361:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + OFF_DEC_FLAGS, &cookie->dec_flags, sizeof(cookie->dec_flags));
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2362:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + OFF_BYTES_TO_FEED, &cookie->bytes_to_feed, sizeof(cookie->bytes_to_feed));
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2363:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + OFF_CHARS_TO_SKIP, &cookie->chars_to_skip, sizeof(cookie->chars_to_skip));
data/python3.10-3.10.0~a2/Modules/_io/textio.c:2364:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + OFF_NEED_EOF, &cookie->need_eof, sizeof(cookie->need_eof));
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:104:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t name_buf[MAX_PATH], *pname_buf = name_buf;
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SMALLBUF];
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:977:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0);
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:986:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0);
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:996:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, wbuf, wlen);
data/python3.10-3.10.0~a2/Modules/_io/winconsoleio.c:1008:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len,
data/python3.10-3.10.0~a2/Modules/_localemodule.c:455: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 encoding[20];
data/python3.10-3.10.0~a2/Modules/_localemodule.c:456: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 locale[100];
data/python3.10-3.10.0~a2/Modules/_lzmamodule.c:1010:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((void*)(lzs->next_in + lzs->avail_in), data, len);
data/python3.10-3.10.0~a2/Modules/_lzmamodule.c:1079:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(d->input_buffer, lzs->next_in, lzs->avail_in);
data/python3.10-3.10.0~a2/Modules/_pickle.c:771:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new->mt_table, self->mt_table,
data/python3.10-3.10.0~a2/Modules/_pickle.c:1098:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer + self->output_len, s, data_len);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1365:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, self->input_buffer + self->next_read_idx, to_read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1407:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, PyBytes_AS_STRING(data), n);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1467:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(input_line, line, len);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1706: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 pdata[30];
data/python3.10-3.10.0~a2/Modules/_pickle.c:1754: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 pdata[30];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2095: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.
        char pdata[32];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2118:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(pdata, "%c%ld\n", INT,  val);
data/python3.10-3.10.0~a2/Modules/_pickle.c:2133: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.
        char header[5];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2242: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.
        char pdata[9];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2357:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[9];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2456:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[9];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2649:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[9];
data/python3.10-3.10.0~a2/Modules/_pickle.c:2784: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.
        char pdata[2];
data/python3.10-3.10.0~a2/Modules/_pickle.c:3039:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[3];
data/python3.10-3.10.0~a2/Modules/_pickle.c:3299:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[3];
data/python3.10-3.10.0~a2/Modules/_pickle.c:3655: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.
        char pdata[5];
data/python3.10-3.10.0~a2/Modules/_pickle.c:4503: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.
        char header[2];
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:292:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char           d_name[256];  /* Filename (null-terminated) */
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:321: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.
        char buffer[sizeof(struct linux_dirent64)];
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:518: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 hex_errno[sizeof(saved_errno)*2+1];
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:724:15:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
        pid = vfork();
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakHash.c:54:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char oneByte[1];
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:150:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(laneAsBytes+offset, data, length);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:180:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&low, pI++, 4);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:181:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&high, pI++, 4);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:193:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(laneAsBytes, data+lanePosition*8, 8);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:236:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&low, pI++, 4);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:237:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&high, pI++, 4);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:249:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(laneAsBytes, data+lanePosition*8, 8);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:308:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, laneAsBytes+offset, length);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:325:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pI++, &low, 4);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:326:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pI++, &high, 4);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:346:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data+lanePosition*8, laneAsBytes, 8);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c:105:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&lane, data, length);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c:209:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((unsigned char*)state+lanePosition*8+offset, data, length);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c:230:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(state, data, laneCount*8);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c:315:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, (UINT8*)lane1+offset, length);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c:342:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, state, laneCount*8);
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakP-1600-opt64.c:411:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char temp[8];
data/python3.10-3.10.0~a2/Modules/_sha3/kcp/KeccakSponge.h:135:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char state[size]; \
data/python3.10-3.10.0~a2/Modules/_sha3/sha3module.c:129:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SHA3_copystate(dest, src) memcpy(&(dest), &(src), sizeof(SHA3_state))
data/python3.10-3.10.0~a2/Modules/_sha3/sha3module.c:323:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA3_MAX_DIGESTSIZE + SHA3_LANESIZE];
data/python3.10-3.10.0~a2/Modules/_sha3/sha3module.c:350:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA3_MAX_DIGESTSIZE + SHA3_LANESIZE];
data/python3.10-3.10.0~a2/Modules/_sha3/sha3module.c:496:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char suffix[2];
data/python3.10-3.10.0~a2/Modules/_sqlite/cursor.c:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/python3.10-3.10.0~a2/Modules/_sre.c:1519:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                if (((unsigned char *)code)[i] >= arg)
data/python3.10-3.10.0~a2/Modules/_ssl.c:1136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[X509_NAME_MAXLEN];
data/python3.10-3.10.0~a2/Modules/_ssl.c:1308:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/python3.10-3.10.0~a2/Modules/_ssl.c:1452:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    len = sprintf(
data/python3.10-3.10.0~a2/Modules/_ssl.c:1684:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/python3.10-3.10.0~a2/Modules/_ssl.c:2001:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512] = {0};
data/python3.10-3.10.0~a2/Modules/_ssl.c:2778:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PySSL_CB_MAXLEN];
data/python3.10-3.10.0~a2/Modules/_ssl.c:3475:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(self->npn_protocols, protos->buf, protos->len);
data/python3.10-3.10.0~a2/Modules/_ssl.c:3531:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(self->alpn_protocols, protos->buf, protos->len);
data/python3.10-3.10.0~a2/Modules/_ssl.c:3919:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pw_info->password, data, size);
data/python3.10-3.10.0~a2/Modules/_ssl.c:3960:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, pw_info->password, pw_info->size);
data/python3.10-3.10.0~a2/Modules/_stat.c:402:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[10];
data/python3.10-3.10.0~a2/Modules/_struct.c:412:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:420:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:428:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:436:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:444:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:452:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:460:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:468:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:476:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:484:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:492:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:511:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:519:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:527:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&x, p, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:587:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&y, sizeof y);
data/python3.10-3.10.0~a2/Modules/_struct.c:605:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&y, sizeof y);
data/python3.10-3.10.0~a2/Modules/_struct.c:621:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&y, sizeof y);
data/python3.10-3.10.0~a2/Modules/_struct.c:637:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&y, sizeof y);
data/python3.10-3.10.0~a2/Modules/_struct.c:647:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:657:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:667:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:677:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:687:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:697:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:711:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:734:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:747:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof(double));
data/python3.10-3.10.0~a2/Modules/_struct.c:764:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, (char *)&x, sizeof x);
data/python3.10-3.10.0~a2/Modules/_struct.c:1812:21:  [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(res, p, n);
data/python3.10-3.10.0~a2/Modules/_struct.c:1834:21:  [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(res + 1, p, n);
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:492:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, xsptr, itemsize);
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:496:17:  [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(xdptr, p, itemsize);
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:622:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(item, ptr, itemsize);
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:1054:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data + addsize, ndbuf->data, ndbuf->len);
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2237:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char format[ND_MAX_NDIM+1];
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2268:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(infobuf, ndbuf->data, ndbuf->len);
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2287:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(shape, view->shape, view->ndim * sizeof(Py_ssize_t));
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2291:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(strides, view->strides, view->ndim * sizeof(Py_ssize_t));
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2295:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(suboffsets, view->suboffsets, view->ndim * sizeof(Py_ssize_t));
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2695:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char static_mem[12] = {0,1,2,3,4,5,6,7,8,9,10,11};
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:1611: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 *keywords[8 + 1]; /* space for NULL at end */
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:1784:11:  [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.
    const wchar_t wtext[2] = {(wchar_t)0x10ABCDu};
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:1786:11:  [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.
    const wchar_t invalid[1] = {(wchar_t)0x110000u};
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:1788:11:  [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.
    const wchar_t wtext[3] = {(wchar_t)0xDBEAu, (wchar_t)0xDFCDu};
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:2100:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyUnicode_AS_UNICODE(u), data, len * sizeof(Py_UNICODE));
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:3281:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buffer[256];
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:3644: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 *dummy[1];
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:5846: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 inplace_member[6];
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:6633: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 buffer[4];
data/python3.10-3.10.0~a2/Modules/_tkinter.c:748:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(args, "-sync");
data/python3.10-3.10.0~a2/Modules/_tkinter.c:752:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(args, "-use ");
data/python3.10-3.10.0~a2/Modules/_tracemalloc.c:451:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(copy, traceback, traceback_size);
data/python3.10-3.10.0~a2/Modules/_uuidmodule.c:35:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[sizeof(uuid)];
data/python3.10-3.10.0~a2/Modules/_winapi.c:611:5:  [2] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
    wcscpy(rdb->MountPointReparseBuffer.PathBuffer, L"\\??\\");
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:488:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int open;
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:619:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!end->open) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:715:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int open;
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:769: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).
    if (!chan->open) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:793: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).
    if (!chan->open) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:820: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).
    if (!chan->open) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:842: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).
    if (!chan->open) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:979:42:  [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 (ref->chan == NULL || !ref->chan->open) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:1405:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return (end != NULL && end->open);
data/python3.10-3.10.0~a2/Modules/_zoneinfo.c:2063:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(trans_local[i], trans_utc, num_transitions * sizeof(int64_t));
data/python3.10-3.10.0~a2/Modules/addrinfo.h:156: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        __ss_pad1[_SS_PAD1SIZE];
data/python3.10-3.10.0~a2/Modules/addrinfo.h:158: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        __ss_pad2[_SS_PAD2SIZE];
data/python3.10-3.10.0~a2/Modules/arraymodule.c:805:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:866:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(np->ob_item, a->ob_item, Py_SIZE(a)*a->ob_descr->itemsize);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:869:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(np->ob_item + Py_SIZE(a)*a->ob_descr->itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:900:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(np->ob_item, a->ob_item, oldbytes);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:903:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(np->ob_item+done, np->ob_item, ncopy);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1013:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->ob_item + oldsize * self->ob_descr->itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1058:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p, items, size);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1392: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 tmp[256];      /* 8 is probably enough -- but why skimp */
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1403:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tmp, p, itemsize);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1404:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p, q, itemsize);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1405:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(q, tmp, itemsize);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1615:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(self->ob_item + old_size * itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:2320:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(((arrayobject *)result)->ob_item,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:2333:17:  [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(ar->ob_item + i*itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:2450:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(self->ob_item + start * itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:2497:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(self->ob_item + cur * itemsize,
data/python3.10-3.10.0~a2/Modules/arraymodule.c:2694:17:  [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(self->ob_item, other->ob_item, len * other->ob_descr->itemsize);
data/python3.10-3.10.0~a2/Modules/arraymodule.c:2979: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 buffer[Py_ARRAY_LENGTH(descriptors)], *p;
data/python3.10-3.10.0~a2/Modules/binascii.c:85:23:  [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 unsigned char table_a2b_hqx[256] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:17:23:  [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 unsigned char u2cgk_choseong[19] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:22:23:  [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 unsigned char u2cgk_jungseong[21] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:27:23:  [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 unsigned char u2cgk_jongseong[28] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:235:23:  [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 unsigned char u2johabidx_choseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:240:23:  [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 unsigned char u2johabidx_jungseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:246:23:  [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 unsigned char u2johabidx_jongseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:323:23:  [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 unsigned char johabidx_choseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:329:23:  [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 unsigned char johabidx_jungseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:335:23:  [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 unsigned char johabidx_jongseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:342:23:  [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 unsigned char johabjamo_choseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:348:23:  [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 unsigned char johabjamo_jungseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/_codecs_kr.c:354:23:  [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 unsigned char johabjamo_jongseong[32] = {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/cjkcodecs.h:311: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.
        char mhname[256] = "__map_";
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:320:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf->outbuf, PyBytes_AS_STRING(retstr), retstrsize);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:834:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ctx->pending + ctx->pendingsize, buf->inbuf, npendings);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:906:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char statebytes[1 + MAXENCPENDING*4 + sizeof(self->state.c)];
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:921:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(statebytes + 1, pendingbuffer, pendingsize);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:927:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(statebytes+statesize, self->state.c,
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:948:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char statebytes[1 + MAXENCPENDING*4 + sizeof(self->state.c)];
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:988:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[4], *outbuf;
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1163:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wdata, self->pending, self->pendingsize);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1164:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wdata + self->pendingsize, data, size);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1178:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(self->pending, wdata, origpending);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1250:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char statebytes[8];
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1279:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(self->pending, bufferstr, self->pendingsize);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1280:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(self->state.c, statebytes, sizeof(statebytes));
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1472:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ctrdata, self->pending, self->pendingsize);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.c:1473:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ctrdata + self->pendingsize,
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.h:27:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c[8];
data/python3.10-3.10.0~a2/Modules/cjkcodecs/multibytecodec.h:90:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char pending[MAXDECPENDING];       \
data/python3.10-3.10.0~a2/Modules/expat/siphash.h:140:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[8], *p;
data/python3.10-3.10.0~a2/Modules/expat/siphash.h:295:25:  [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 unsigned char vectors[64][8] = {
data/python3.10-3.10.0~a2/Modules/expat/siphash.h:363:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char in[64];
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:113:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    to the build system, please open a bug.  Thank you!
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:274: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).
  XML_Bool open;
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:689: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("/dev/urandom", O_RDONLY);
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:1838:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(parser->m_buffer, end, nLeftOver);
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:1854:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buff, s, len);
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:2001:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newBuf, &parser->m_bufferPtr[-keep],
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:2018:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newBuf, parser->m_bufferPtr,
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:2432:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rawNameBuf, tag->rawName, tag->rawNameLength);
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:2659:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (entity->open)
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:3398:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(uri, binding->uri, binding->uriLen * sizeof(XML_Char));
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:3407: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(uri, localPart, i * sizeof(XML_Char));
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:3412:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(uri + 1, binding->prefix->name, prefixLen * sizeof(XML_Char));
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:3510: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(b->uri, uri, len * sizeof(XML_Char));
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:3768: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 encodingBuf[128];
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:4874:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (entity->open)
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:5395:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (entity->open) {
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:5507:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (entity->open) {
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:5958:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (! e->open)
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:6665:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pool->blocks->s, pool->start,
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:6744:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tem->s, pool->start, (pool->ptr - pool->start) * sizeof(XML_Char));
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:6891: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(result, s, charsRequired * sizeof(XML_Char));
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:188:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char type[256];
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:385:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*toP, *fromP, bytesToCopy);
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1036:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1];
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1065:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  char open;
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1124:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (c == open)
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1314: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 utf8[256][4];
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1353:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[XML_UTF8_ENCODE_MAX];
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1374:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*toP, utf8, n);
data/python3.10-3.10.0~a2/Modules/expat/xmltok.c:1405: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(mem, &latin1_encoding, sizeof(struct normal_encoding));
data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c:610: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).
      int open;
data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c:620: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).
        switch (open) {
data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c:636: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).
        if (t == open)
data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c:973:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
PREFIX(scanLit)(int open, const ENCODING *enc, const char *ptr, const char *end,
data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c:982: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).
      if (t != open)
data/python3.10-3.10.0~a2/Modules/expat/xmltok_impl.c:1563:60:  [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).
                   || BYTE_TYPE(enc, ptr + MINBPC(enc)) == open))
data/python3.10-3.10.0~a2/Modules/expat/xmltok_ns.c:92:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[ENCODING_MAX];
data/python3.10-3.10.0~a2/Modules/faulthandler.c:655: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 buffer[100];
data/python3.10-3.10.0~a2/Modules/faulthandler.c:1155:23:  [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.
    volatile unsigned char buffer[4096];
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:70:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, str, len);
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:164:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[IOCTL_BUFSZ+1];  /* argument plus NUL byte */
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:179:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(buf, str, len);
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:195:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(buf, str, len);
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:209:17:  [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(str, buf, len);
data/python3.10-3.10.0~a2/Modules/fcntlmodule.c:234:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, str, len);
data/python3.10-3.10.0~a2/Modules/gcmodule.c:1050:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:173:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ai, pai, sizeof(struct addrinfo));\
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:180:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p + (gai_afd)->a_off, (addr), (gai_afd)->a_addrlen);\
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:188:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ai, pai, sizeof(struct addrinfo));\
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:195:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p + (gai_afd)->a_off, (addr), (gai_afd)->a_addrlen);\
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:243: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 pton[PTON_MAX];
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:295:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pai, hints, sizeof(*pai));
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:342:35:  [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).
            port = htons((u_short)atoi(servname));
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:611:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&in6->s6_addr32[0], &faith_prefix,
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:613:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&in6->s6_addr32[3], ap, sizeof(struct in_addr));
data/python3.10-3.10.0~a2/Modules/getbuildinfo.c:37:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buildinfo[50 + sizeof(GITVERSION) +
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:109: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 numserv[512];
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:110: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 numaddr[512];
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:139:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(numserv, "%d", ntohs(port));
data/python3.10-3.10.0~a2/Modules/getpath.c:148:14:  [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 delimiter[2] = {DELIM, '\0'};
data/python3.10-3.10.0~a2/Modules/getpath.c:149:14:  [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 separator[2] = {SEP, '\0'};
data/python3.10-3.10.0~a2/Modules/getpath.c:273:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(substr, str, len * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Modules/getpath.c:314:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst, src, (srclen + 1) * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Modules/getpath.c:355:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t abs_path[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/Modules/getpath.c:395:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pyc, filename, len * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Modules/getpath.c:430:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(progpath2, progpath, n * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Modules/getpath.c:431:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(progpath2 + n, EXE_SUFFIX, s * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Modules/getpath.c:572:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t prefix[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/Modules/getpath.c:668:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/Modules/getpath.c:796:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t exec_prefix[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/Modules/getpath.c:925: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 execpath[MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/Modules/getpath.c:1055:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t new_path[MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/Modules/mathmodule.c:1368:17:  [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, ps, sizeof(double) * n);
data/python3.10-3.10.0~a2/Modules/md5module.c:48:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[MD5_BLOCKSIZE];
data/python3.10-3.10.0~a2/Modules/md5module.c:251:12:  [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(md5->buf + md5->curlen, in, (size_t)n);
data/python3.10-3.10.0~a2/Modules/md5module.c:384:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[MD5_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/md5module.c:402:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[MD5_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:387:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&self->data[self->pos], data.buf, data.len);
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1015:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(self->data + start, vbuf.buf, slicelen);
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:245: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 argfmt[33] = "i:";
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:270: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 argfmt[32] = ":";
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:290: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 argfmt[32] = ":";
data/python3.10-3.10.0~a2/Modules/overlapped.c:735: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.
        char buf[INET_ADDRSTRLEN];
data/python3.10-3.10.0~a2/Modules/overlapped.c:748: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.
        char buf[INET6_ADDRSTRLEN];
data/python3.10-3.10.0~a2/Modules/overlapped.c:1397: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 AddressBuf[sizeof(struct sockaddr_in6)];
data/python3.10-3.10.0~a2/Modules/overlapped.c:1652: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 AddressBuf[sizeof(struct sockaddr_in6)];
data/python3.10-3.10.0~a2/Modules/overlapped.c:1696: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 AddressBuf[sizeof(struct sockaddr_in6)];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1440: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 target_buffer[_Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1664:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t path_buf[MAX_PATH], *new_path = path_buf;
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1666:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t env[4] = L"=x:";
data/python3.10-3.10.0~a2/Modules/posixmodule.c:2925: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 buffer[L_ctermid];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3553:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t wbuf[MAXPATHLEN];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3774:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t namebuf[MAX_PATH+4]; /* Overallocate for "\*.*" */
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3800:9:  [2] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
        wcscpy(wnamebuf + len, L"*.*");
data/python3.10-3.10.0~a2/Modules/posixmodule.c:4060:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buf[MAXPATHLEN], *target_path = buf;
data/python3.10-3.10.0~a2/Modules/posixmodule.c:5167:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*out, PyBytes_AS_STRING(ub), size + 1);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:6668:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newmask, cpu_set, setsize);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:6837: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).
    master_fd = open(DEV_PTY_FILE, O_RDWR | O_NOCTTY); /* open master */
data/python3.10-3.10.0~a2/Modules/posixmodule.c:7417:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t user_name[UNLEN + 1];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:8116: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 buffer[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:8141: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 target_buffer[_Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:8691: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).
            fd = open(path->narrow, flags, mode);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:11222: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 buffer[255];
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13616:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&iterator->path, path, sizeof(path_t));
data/python3.10-3.10.0~a2/Modules/pyexpat.c:323:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(self->buffer + self->buffer_used,
data/python3.10-3.10.0~a2/Modules/pyexpat.c:786:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, ptr, len);
data/python3.10-3.10.0~a2/Modules/pyexpat.c:1060:21:  [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 unsigned char template_buffer[256] = {0};
data/python3.10-3.10.0~a2/Modules/pyexpat.c:1325: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.
        char errmsg[100];
data/python3.10-3.10.0~a2/Modules/pyexpat.c:1326:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(errmsg, "buffer_size must not be greater than %i", INT_MAX);
data/python3.10-3.10.0~a2/Modules/readline.c:1387:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, q, n);
data/python3.10-3.10.0~a2/Modules/selectmodule.c:1848:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/python3.10-3.10.0~a2/Modules/sha1module.c:48:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[SHA1_BLOCKSIZE];
data/python3.10-3.10.0~a2/Modules/sha1module.c:227:12:  [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(sha1->buf + sha1->curlen, in, (size_t)n);
data/python3.10-3.10.0~a2/Modules/sha1module.c:362:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA1_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/sha1module.c:380:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA1_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/sha256module.c:86:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->digest, src->digest, sizeof(src->digest));
data/python3.10-3.10.0~a2/Modules/sha256module.c:87:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->data, src->data, sizeof(src->data));
data/python3.10-3.10.0~a2/Modules/sha256module.c:135:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(W, sha_info->data, sizeof(sha_info->data));
data/python3.10-3.10.0~a2/Modules/sha256module.c:286:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i);
data/python3.10-3.10.0~a2/Modules/sha256module.c:298:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sha_info->data, buffer, SHA_BLOCKSIZE);
data/python3.10-3.10.0~a2/Modules/sha256module.c:303:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sha_info->data, buffer, count);
data/python3.10-3.10.0~a2/Modules/sha256module.c:310:20:  [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.
sha_final(unsigned char digest[SHA_DIGESTSIZE], SHAobject *sha_info)
data/python3.10-3.10.0~a2/Modules/sha256module.c:445:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/sha256module.c:463:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/sha512module.c:74:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->digest, src->digest, sizeof(src->digest));
data/python3.10-3.10.0~a2/Modules/sha512module.c:75:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->data, src->data, sizeof(src->data));
data/python3.10-3.10.0~a2/Modules/sha512module.c:123:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(W, sha_info->data, sizeof(sha_info->data));
data/python3.10-3.10.0~a2/Modules/sha512module.c:290:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i);
data/python3.10-3.10.0~a2/Modules/sha512module.c:302:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sha_info->data, buffer, SHA_BLOCKSIZE);
data/python3.10-3.10.0~a2/Modules/sha512module.c:307:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sha_info->data, buffer, count);
data/python3.10-3.10.0~a2/Modules/sha512module.c:314:23:  [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.
sha512_final(unsigned char digest[SHA_DIGESTSIZE], SHAobject *sha_info)
data/python3.10-3.10.0~a2/Modules/sha512module.c:503:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/sha512module.c:521:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[SHA_DIGESTSIZE];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:313: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.
    const char flag_name[20];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1084:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(addr_ret, res->ai_addr, addr_ret_size);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1173:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *) addr_ret, res->ai_addr, addr_ret_size);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[INET_ADDRSTRLEN];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1208:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[INET6_ADDRSTRLEN];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[(6 * 2) + 5 + 1];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1273:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X",
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1277:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X",
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1700:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(addr->sun_path, path.buf, path.len);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2042:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&addr->sll_addr, haddr.buf, haddr.len);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:4575:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(CMSG_DATA(cmsgh), cmsgs[i].data.buf, data_len);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:4744:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(alg_iv->iv, iv.buf, iv.len);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:5384:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buf[MAX_COMPUTERNAME_LENGTH + 1];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:5417:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:5598:17:  [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((char *) addr, &sin, sizeof(sin));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:5615:17:  [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((char *) addr, &sin6, sizeof(sin6));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:5664:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:5742:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384] Py_ALIGNED(8);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6327:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&packed_addr, packed_ip.buf, packed_ip.len);
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6349: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 packed[Py_MAX(sizeof(struct in_addr), sizeof(struct in6_addr))];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6351: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 packed[sizeof(struct in_addr)];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6399: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 ip[Py_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6401: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 ip[INET_ADDRSTRLEN];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6456: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 pbuf[30];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6583: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 hbuf[NI_MAXHOST], pbuf[NI_MAXSERV];
data/python3.10-3.10.0~a2/Modules/socketmodule.c:6841:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[IF_NAMESIZE + 1];
data/python3.10-3.10.0~a2/Modules/sre_lib.h:445:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(state->data_stack+state->data_stack_base, data, size); \
data/python3.10-3.10.0~a2/Modules/sre_lib.h:456:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void*) data, state->data_stack+state->data_stack_base-size, size); \
data/python3.10-3.10.0~a2/Modules/timemodule.c:504: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.
        char zone[100];
data/python3.10-3.10.0~a2/Modules/timemodule.c:892:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char wday_name[7][4] = {
data/python3.10-3.10.0~a2/Modules/timemodule.c:895:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char mon_name[12][4] = {
data/python3.10-3.10.0~a2/Modules/timemodule.c:1661: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 janname[10], julyname[10];
data/python3.10-3.10.0~a2/Modules/tkappinit.c:38: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 tclLibPath[MAX_PATH_LEN], tkLibPath[MAX_PATH_LEN];
data/python3.10-3.10.0~a2/Modules/unicodedata.c:411: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 decomp[256];
data/python3.10-3.10.0~a2/Modules/unicodedata.c:448:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(decomp, decomp_prefix[prefix_index], i);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1100:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "HANGUL SYLLABLE ");
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1116:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "CJK UNIFIED IDEOGRAPH-%X", code);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1175: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 buffer[NAME_MAXLEN+1];
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1339:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[NAME_MAXLEN+1];
data/python3.10-3.10.0~a2/Modules/zlibmodule.c:699:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PyBytes_AS_STRING(new_data),
data/python3.10-3.10.0~a2/Modules/zlibmodule.c:701:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PyBytes_AS_STRING(new_data) + old_size,
data/python3.10-3.10.0~a2/Objects/abstract.c:499:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(view->buf, buf, len);
data/python3.10-3.10.0~a2/Objects/abstract.c:528:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ptr, src, view->itemsize);
data/python3.10-3.10.0~a2/Objects/abstract.c:571:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(view_dest.buf, view_src.buf, view_src.len);
data/python3.10-3.10.0~a2/Objects/abstract.c:599:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dptr, sptr, view_src.itemsize);
data/python3.10-3.10.0~a2/Objects/abstract.c:2724:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(array[i], data, size);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:139:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(new->ob_bytes, bytes, size);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:227:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sval, PyByteArray_AS_STRING(self),
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:272:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->ob_bytes, va.buf, va.len);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:273:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->ob_bytes + va.len, vb.buf, vb.len);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:313:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:339:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(result->ob_bytes + i*mysize, self->ob_bytes, mysize);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:367:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf + i*mysize, buf, mysize);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:522:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf + lo, bytes, bytes_len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:164:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(op->ob_sval, str, size);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:207:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(op->ob_sval, str, size+1);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:233: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 buffer[21];
data/python3.10-3.10.0~a2/Objects/bytesobject.c:310:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%ld", va_arg(vargs, long));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:313:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%zd", va_arg(vargs, Py_ssize_t));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:316:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d", va_arg(vargs, int));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:324:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%lu", va_arg(vargs, unsigned long));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:327:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%zu", va_arg(vargs, size_t));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:330:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%u", va_arg(vargs, unsigned int));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:337:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "%i", va_arg(vargs, int));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:343:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "%x", va_arg(vargs, int));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:369:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "%p", va_arg(vargs, void*));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:487:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(str, p, len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:675:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(res, fmt, len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:1054:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(res, pbuf, len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:1437:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyBytes_AS_STRING(result), va.buf, va.len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:1438:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:1491:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(op->ob_sval, a->ob_sval, Py_SIZE(a));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:1496:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(op->ob_sval+i, op->ob_sval, j);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:2900:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyBytes_AS_STRING(pnew),
data/python3.10-3.10.0~a2/Objects/bytesobject.c:2997:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyBytes_AS_STRING(*pv) + oldsize, wb.buf, wb.len);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:3405:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest,
data/python3.10-3.10.0~a2/Objects/bytesobject.c:3541:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(str, bytes, size);
data/python3.10-3.10.0~a2/Objects/call.c:484:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&stack[1],
data/python3.10-3.10.0~a2/Objects/capsule.c:207:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(name_dup, name, name_length);
data/python3.10-3.10.0~a2/Objects/classobject.c:82:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newargs + 1, args, totalargs * sizeof(PyObject *));
data/python3.10-3.10.0~a2/Objects/dictobject.c:715:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(keys, orig->ma_keys, keys_size);
data/python3.10-3.10.0~a2/Objects/dictobject.c:1279:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newentries, oldentries, numentries * sizeof(PyDictKeyEntry));
data/python3.10-3.10.0~a2/Objects/fileobject.c:28: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).
_Py_IDENTIFIER(open);
data/python3.10-3.10.0~a2/Objects/floatobject.c:930:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *buf, *buf_end, shortbuf[100], *mybuf=shortbuf;
data/python3.10-3.10.0~a2/Objects/floatobject.c:1210: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 s[(TOHEX_NBITS-1)/4+3];
data/python3.10-3.10.0~a2/Objects/floatobject.c:2264:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char s[sizeof(float)];
data/python3.10-3.10.0~a2/Objects/floatobject.c:2265:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s, &y, sizeof(float));
data/python3.10-3.10.0~a2/Objects/floatobject.c:2545:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[4];
data/python3.10-3.10.0~a2/Objects/floatobject.c:2552:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&x, buf, 4);
data/python3.10-3.10.0~a2/Objects/floatobject.c:2555:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&x, p, 4);
data/python3.10-3.10.0~a2/Objects/floatobject.c:2640:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[8];
data/python3.10-3.10.0~a2/Objects/floatobject.c:2647:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&x, buf, 8);
data/python3.10-3.10.0~a2/Objects/floatobject.c:2650:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&x, p, 8);
data/python3.10-3.10.0~a2/Objects/listobject.c:677:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(recycle, &item[ilow], s);
data/python3.10-3.10.0~a2/Objects/listobject.c:686:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&item[ilow], recycle, s);
data/python3.10-3.10.0~a2/Objects/listobject.c:1098:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&s1->keys[i], &s2->keys[j], sizeof(PyObject *) * n);
data/python3.10-3.10.0~a2/Objects/listobject.c:1100:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&s1->values[i], &s2->values[j], sizeof(PyObject *) * n);
data/python3.10-3.10.0~a2/Objects/longobject.c:1991:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char _PyLong_DigitValue[256] = {
data/python3.10-3.10.0~a2/Objects/longobject.c:2408:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(tmp->ob_digit,
data/python3.10-3.10.0~a2/Objects/longobject.c:3242:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(lo->ob_digit, n->ob_digit, size_lo * sizeof(digit));
data/python3.10-3.10.0~a2/Objects/longobject.c:3243:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hi->ob_digit, n->ob_digit + size_lo, size_hi * sizeof(digit));
data/python3.10-3.10.0~a2/Objects/longobject.c:3350:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ret->ob_digit + 2*shift, t1->ob_digit,
data/python3.10-3.10.0~a2/Objects/longobject.c:3366:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ret->ob_digit, t2->ob_digit, Py_SIZE(t2) * sizeof(digit));
data/python3.10-3.10.0~a2/Objects/longobject.c:3506:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bslice->ob_digit, b->ob_digit + nbdone,
data/python3.10-3.10.0~a2/Objects/longobject.c:4648:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&z->ob_digit[i], &a->ob_digit[i],
data/python3.10-3.10.0~a2/Objects/memoryobject.c:340:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dptr, sptr, size); /* no overlapping */
data/python3.10-3.10.0~a2/Objects/memoryobject.c:349:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p, xsptr, itemsize);
data/python3.10-3.10.0~a2/Objects/memoryobject.c:353:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(xdptr, p, itemsize);
data/python3.10-3.10.0~a2/Objects/memoryobject.c:999:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *)buf, src->buf, len);
data/python3.10-3.10.0~a2/Objects/memoryobject.c:1680:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *)&x, ptr, sizeof x); \
data/python3.10-3.10.0~a2/Objects/memoryobject.c:1772:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ptr, (char *)&x, sizeof x);   \
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2022:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(x->item, ptr, x->itemsize);
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2708:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *)&x, p, sizeof x); \
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2709:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *)&y, q, sizeof y); \
data/python3.10-3.10.0~a2/Objects/obmalloc.c:649:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(str2, str, size);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:662:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(copy, str, size);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:675:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(copy, str, size);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:1990:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bp, p, size);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2252:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(save, data, original_nbytes);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2257:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(save, data, ERASED_SIZE);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2259:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&save[ERASED_SIZE], tail - ERASED_SIZE, ERASED_SIZE);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2292:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, save, Py_MIN(nbytes, original_nbytes));
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2296:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, save, Py_MIN(nbytes, ERASED_SIZE));
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2298:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data + i, &save[ERASED_SIZE],
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2517:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2553: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 buf1[128];
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2554: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 buf2[128];
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2626:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/python3.10-3.10.0~a2/Objects/setobject.c:1065:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a->smalltable, b->smalltable, sizeof(tab));
data/python3.10-3.10.0~a2/Objects/setobject.c:1066:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(b->smalltable, tab, sizeof(tab));
data/python3.10-3.10.0~a2/Objects/stringlib/find.h:94: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 format[FORMAT_BUFFER_SIZE] = "O|OO:";
data/python3.10-3.10.0~a2/Objects/stringlib/join.h:128:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p, q, n);
data/python3.10-3.10.0~a2/Objects/stringlib/join.h:137:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, sepstr, seplen);
data/python3.10-3.10.0~a2/Objects/stringlib/join.h:142:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p, q, n);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:123:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(STRINGLIB_STR(u) + left,
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:320:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result_s, to_s, to_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:326:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, to_s, to_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:342:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, self_s, self_len - i);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:382:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result_s, start, next - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:386:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, start, end - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:435:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result_s, start, next - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:440:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, start, end - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:472:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, self_s, self_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:522:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, self_s, self_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:526:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(start, to_s, from_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:536:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(start + offset, to_s, from_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:589:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, to_s, to_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:594:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, start, next - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:596:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, to_s, to_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:602:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, start, end - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:658:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, to_s, to_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:663:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, start, next - start);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:665:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result_s, to_s, to_len);
data/python3.10-3.10.0~a2/Objects/stringlib/transmogrify.h:671:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result_s, start, end - start);
data/python3.10-3.10.0~a2/Objects/tupleobject.c:42:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[128];
data/python3.10-3.10.0~a2/Objects/typeobject.c:1665:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1000];
data/python3.10-3.10.0~a2/Objects/typeobject.c:2710:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tp_doc, doc_str, len + 1);
data/python3.10-3.10.0~a2/Objects/typeobject.c:3022:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tp_doc, slot->pfunc, len);
data/python3.10-3.10.0~a2/Objects/typeobject.c:3028:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PyHeapType_GET_MEMBERS(res), slot->pfunc, len);
data/python3.10-3.10.0~a2/Objects/typeobject.c:3670: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.
        char msg[200];
data/python3.10-3.10.0~a2/Objects/typeobject.c:3671:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "type_traverse() called on non-heap type '%.100s'",
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:842:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        str += sprintf(str, "&#%d;", PyUnicode_READ(kind, data, i));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:1205:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(_PyUnicode_WSTR(w), _PyUnicode_WSTR(unicode),
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:1612:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)to_data + to_kind * to_start,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2108:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *) data + index, str, len);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2253:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyUnicode_2BYTE_DATA(unicode), u, size * 2);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2266:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyUnicode_4BYTE_DATA(unicode), u, size * 4);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2362:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyUnicode_1BYTE_DATA(unicode), s, size);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2400:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyUnicode_1BYTE_DATA(res), u, size);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2422:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyUnicode_2BYTE_DATA(res), u, sizeof(Py_UCS2)*size);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2454:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(PyUnicode_4BYTE_DATA(res), u, sizeof(Py_UCS4)*size);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2581:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(PyUnicode_DATA(copy), PyUnicode_DATA(unicode),
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2675:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(target, data, len * sizeof(Py_UCS4));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2881: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.
        char buffer[MAX_LONG_LONG_CHARS];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2886:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%lu", va_arg(*vargs, unsigned long));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2889:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%llu", va_arg(*vargs, unsigned long long));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2892:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%zu", va_arg(*vargs, size_t));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2895:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%u", va_arg(*vargs, unsigned int));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2899:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            len = sprintf(buffer, "%x", va_arg(*vargs, int));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2903:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%li", va_arg(*vargs, long));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2906:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%lli", va_arg(*vargs, long long));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2909:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%zi", va_arg(*vargs, Py_ssize_t));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2912:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                len = sprintf(buffer, "%i", va_arg(*vargs, int));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2946: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.
        char number[MAX_LONG_LONG_CHARS];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2948:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        len = sprintf(number, "%p", va_arg(*vargs, void*));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3184:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(w, wstr, size * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3189:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(w, PyUnicode_DATA(unicode), size * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3519: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 buflower[11];   /* strlen("iso-8859-1\0") == 11, longest shortcut */
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3807: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 buflower[11];   /* strlen("iso_8859_1\0") == 11, longest shortcut */
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:4634:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char utf7_category[128] = {
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:5098:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, start, p - start);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:5634:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cache, start, len);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:5942:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out, PyBytes_AS_STRING(rep), repsize);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:6294:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out, PyBytes_AS_STRING(rep), repsize);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7472:23:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    while ((outsize = MultiByteToWideChar(code_page, flags,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7490:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    outsize = MultiByteToWideChar(code_page, flags, in, insize, out, outsize);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7525:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buffer[2], *out;
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7570:23:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            outsize = MultiByteToWideChar(code_page, flags,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7614:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out, buffer, outsize * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7880: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 buffer[4];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7944:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t chars[2];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7964:17:  [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(out, buffer, outsize);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:7993:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out, PyBytes_AS_STRING(rep), outsize);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8403:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char level1[32];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8405:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char level23[1];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8473:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char level1[32];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8474:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char level2[512];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8556:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(mlevel1, level1, 32);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8723:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(outstart + *outpos, repchars, repsize);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8811:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[2+29+1+1];
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8813:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buffer, "&#%d;", (int)PyUnicode_READ_CHAR(unicode, collpos));
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:8845:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PyBytes_AsString(*res) + *respos,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10228:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(outdata, tmp, sizeof(Py_UCS4) * newlength);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10387:17:  [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(res_data,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10395:17:  [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(res_data,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10907:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(res, sbuf, rkind * slen);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10909:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(res + rkind * i,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10920:17:  [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(res + rkind * i,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:10997:21:  [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(res + rkind * ires,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11004:21:  [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(res + rkind * ires,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11013:17:  [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(res + rkind * ires,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11020:17:  [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(res + rkind * ires,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11026:17:  [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(res + rkind * ires,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11032:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(res + rkind * ires,
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:12975:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(to, PyUnicode_DATA(str),
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:12979:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(to + (done * char_size), to, n * char_size);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:14187:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data + writer->pos, str, len);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:15582:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, PyUnicode_DATA(unicode),
data/python3.10-3.10.0~a2/PC/_msi.c:294:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ccab.szCabPath, cabname, i);
data/python3.10-3.10.0~a2/PC/_msi.c:298:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(ccab.szCabPath, ".\\");
data/python3.10-3.10.0~a2/PC/_msi.c:361:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2000];
data/python3.10-3.10.0~a2/PC/_msi.c:676: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 sbuf[1000];
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:190:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, src, uncomp_size);
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:206:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pathname[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:115:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char modulename[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:116:1:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
wchar_t wmodulename[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:123:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char info[4096];                /* [Setup] info= */
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:124:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char title[80];                 /* [Setup] title=, contains package name
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:126:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char target_version[10];        /* [Setup] target_version=, required python
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:128:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char build_info[80];            /* [Setup] build_info=, distutils version
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:131:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char meta_name[80];             /* package name without version like
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:133:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char install_script[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:136:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char user_access_control[10]; // one of 'auto', 'force', otherwise none.
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:143:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char python_dir[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:144:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pythondll[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:262: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 Buffer[MAX_PATH + 64];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:318:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    dest_cch = MultiByteToWideChar(CP_ACP, 0, src, src_len, NULL, 0);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:324:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (0==MultiByteToWideChar(CP_ACP, 0, src, src_len, result, dest_cch)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:457: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 lpszPath[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:595:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0,
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:653: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 fullpath[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:655: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 subkey_name[80];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:656: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 buffer[260 + 12];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:729:12:  [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 wchar_t *wargv[256];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:753:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fh = open(pathname, _O_RDONLY | O_NOINHERIT);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:893: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.
        char reason[128];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:934: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 Buffer[1024];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:962: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 Buffer[1024];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1091: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 tempdir[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1178: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 buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1235: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 Buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1279:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char bound_image_dll[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1289: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 fname[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1342: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.
        char Buffer[256];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1404: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.
        char core_version[12];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1419: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 vers_name[_MAX_PATH + 80];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1422: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 pathname[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1425:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(pathname, "python.exe");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1465: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 prefix[MAX_PATH+1]; // sys.prefix directory.
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1478: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 core_version[80];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1491: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.
        char subkey_name[80], vers_name[80];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1607:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1616:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char Buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1698:25:  [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 install_path[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1746: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 buffer[_MAX_PATH+1];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1751: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 subkey_name[256];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1788:15:  [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).
    logfile = fopen(buffer, "a");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1790: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.
        char error[1024];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1844: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).
        fp = fopen(buffer, "wb");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1868: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 buffer[_MAX_PATH+1];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1886: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 Buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2058:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char fname[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2063:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *argv[3] = {NULL, "-install", NULL};
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2068:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(fname, "\\Scripts\\");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2197: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 key_name[80];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2224: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.
        char msg[128];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2232: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 ini_buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2324: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 exename[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2325: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 batname[_MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2332: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).
    fp = fopen(batname, "w");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2471:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char lastscript[MAX_PATH];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2486: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.
        char *argv[3] = {NULL, "-remove", NULL};
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2506: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 buffer[4096];
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2531:15:  [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).
    logfile = fopen(argv[2], "r");
data/python3.10-3.10.0~a2/PC/clinic/msvcrtmodule.c.h:243: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 s[1];
data/python3.10-3.10.0~a2/PC/clinic/msvcrtmodule.c.h:291: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 s[1];
data/python3.10-3.10.0~a2/PC/frozen_dllmain.c:120: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 funcName[255];
data/python3.10-3.10.0~a2/PC/frozen_dllmain.c:122:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(funcName, "_DllMain");
data/python3.10-3.10.0~a2/PC/frozen_dllmain.c:124:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(funcName, "@12"); // stdcall convention.
data/python3.10-3.10.0~a2/PC/getpathp.c:283:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t filename[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:371:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(keyBufPtr, keySuffix, sizeof(keySuffix));
data/python3.10-3.10.0~a2/PC/getpathp.c:497:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t program_full_path[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:577: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.
        char line[MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/PC/getpathp.c:602:20:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        DWORD wn = MultiByteToWideChar(CP_UTF8, 0, line, -1, NULL, 0);
data/python3.10-3.10.0~a2/PC/getpathp.c:608:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        wn = MultiByteToWideChar(CP_UTF8, 0, line, -1, wline, wn + 1);
data/python3.10-3.10.0~a2/PC/getpathp.c:692:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t filename[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:710:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t filename[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:923:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t lookBuf[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:966:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t argv0_path[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:972:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t prefix[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:992:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t zip_path[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/getpathp.c:1109:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t py3path[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/PC/launcher.c:90:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t message[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:91:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t win_message[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:122:12:  [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 wchar_t buf[BUFSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:172:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t version[MAX_VERSION_SIZE]; /* m.n */
data/python3.10-3.10.0~a2/PC/launcher.c:174:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t executable[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:175:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t exe_display[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:254:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t message[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:260:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t ip_version[IP_VERSION_SIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:261:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t ip_path[IP_SIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:461:12:  [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 wchar_t venv_python[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:548:8:  [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 wchar_t appdata_ini_path[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:549:8:  [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 wchar_t launcher_ini_path[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:563:12:  [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 wchar_t configured_value[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:669:8:  [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 wchar_t wrapped_script_path[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:861:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t key[MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:862:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t value[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:987:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t keynames[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:988:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t value[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:1106: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 sequence[4];
data/python3.10-3.10.0~a2/PC/launcher.c:1229:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t version[MAX_VERSION_SIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:1282: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 buffer[BUFSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:1283:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t shebang_line[BUFSIZE + 1];
data/python3.10-3.10.0~a2/PC/launcher.c:1343:26:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                nchars = MultiByteToWideChar(bom->code_page,
data/python3.10-3.10.0~a2/PC/launcher.c:1370:21:  [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(shebang_line, start, header_len);
data/python3.10-3.10.0~a2/PC/launcher.c:1509:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t version_text [MAX_PATH];
data/python3.10-3.10.0~a2/PC/launcher.c:1584:13:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            wchar_t version[BUFSIZ];
data/python3.10-3.10.0~a2/PC/launcher.c:1705:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t message[MSGSIZE];
data/python3.10-3.10.0~a2/PC/launcher.c:1714:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t * av[2];
data/python3.10-3.10.0~a2/PC/launcher.c:1886: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.
        char buffer[4096]; /* 4KB should be enough for anybody */
data/python3.10-3.10.0~a2/PC/launcher.c:1902:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        cch = MultiByteToWideChar(CP_UTF8, 0, start, len, NULL, 0);
data/python3.10-3.10.0~a2/PC/launcher.c:1911:22:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        cch_actual = MultiByteToWideChar(CP_UTF8, 0, start, len, executable, cch);
data/python3.10-3.10.0~a2/PC/pyshellext.cpp:283:36:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                        int wlen = MultiByteToWideChar(CP_ACP, 0, temp, (int)len, NULL, 0);
data/python3.10-3.10.0~a2/PC/pyshellext.cpp:286:33:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                            if (MultiByteToWideChar(CP_ACP, 0, temp, (int)len, args, wlen + 1)) {
data/python3.10-3.10.0~a2/PC/winreg.c:578:17:  [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(*retDataBuf, &zero, sizeof(DWORD));
data/python3.10-3.10.0~a2/PC/winreg.c:582:17:  [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(*retDataBuf, &d, sizeof(DWORD));
data/python3.10-3.10.0~a2/PC/winreg.c:596:17:  [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(*retDataBuf, &zero, sizeof(DWORD64));
data/python3.10-3.10.0~a2/PC/winreg.c:600:17:  [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(*retDataBuf, &d, sizeof(DWORD64));
data/python3.10-3.10.0~a2/PC/winreg.c:623:23:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    ((wchar_t *)*retDataBuf)[0] = L'\0';
data/python3.10-3.10.0~a2/PC/winreg.c:720:17:  [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(*retDataBuf, view.buf, view.len);
data/python3.10-3.10.0~a2/PC/winreg.c:1124:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t tmpbuf[257];
data/python3.10-3.10.0~a2/Parser/myreadline.c:118:12:  [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 wchar_t wbuf_local[1024 * 16];
data/python3.10-3.10.0~a2/Parser/myreadline.c:263:28:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                    wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
data/python3.10-3.10.0~a2/Parser/myreadline.c:273:32:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                        wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
data/python3.10-3.10.0~a2/Parser/myreadline.c:407:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(res, rv, len);
data/python3.10-3.10.0~a2/Parser/pegen.c:404:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new_errmsg, fstring_msg, strlen(fstring_msg));
data/python3.10-3.10.0~a2/Parser/pegen.c:405:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg));
data/python3.10-3.10.0~a2/Parser/pegen.c:1206:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "rb");
data/python3.10-3.10.0~a2/Parser/string_parser.c:77:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(p, "u005c");
data/python3.10-3.10.0~a2/Parser/string_parser.c:100:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(p, "\\U%08x", chr);
data/python3.10-3.10.0~a2/Parser/string_parser.c:378:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(str+1, expr_start, len);
data/python3.10-3.10.0~a2/Parser/string_parser.c:552: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 parenstack[MAXLEVEL];
data/python3.10-3.10.0~a2/Parser/tokenizer.c:101:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result, s, len);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[13];
data/python3.10-3.10.0~a2/Parser/tokenizer.c:390:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s, buf, buflen);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:416: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).
    _Py_IDENTIFIER(open);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:673: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.
    const char *newl[2] = {NULL, NULL};
data/python3.10-3.10.0~a2/Parser/tokenizer.c:765:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(tok->encoding, "utf-8");
data/python3.10-3.10.0~a2/Parser/tokenizer.c:1135: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.
        char hex[9];
data/python3.10-3.10.0~a2/Parser/tokenizer.h:45: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 parenstack[MAXLEVEL];
data/python3.10-3.10.0~a2/Programs/_freeze_importlib.c:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/python3.10-3.10.0~a2/Programs/_freeze_importlib.c:54: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).
    infile = fopen(inpath, "rb");
data/python3.10-3.10.0~a2/Programs/_freeze_importlib.c:120:15:  [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).
    outfile = fopen(outpath, "w");
data/python3.10-3.10.0~a2/Python/_warnings.c:491: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 lineno_str[128];
data/python3.10-3.10.0~a2/Python/ast_opt.c:27:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define COPY_NODE(TO, FROM) (memcpy((TO), (FROM), sizeof(struct _expr)))
data/python3.10-3.10.0~a2/Python/codecs.c:972: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.
        char buffer[256]; /* NAME_MAXLEN */
data/python3.10-3.10.0~a2/Python/compile.c:5958: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 arg[128];
data/python3.10-3.10.0~a2/Python/compile.c:5962:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(arg, "arg: %d ", i->i_oparg);
data/python3.10-3.10.0~a2/Python/dtoa.c:444:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign,   \
data/python3.10-3.10.0~a2/Python/dynamic_annotations.c:131: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 value[100] = "1";
data/python3.10-3.10.0~a2/Python/dynload_hpux.c:36: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.
        char buf[256];
data/python3.10-3.10.0~a2/Python/dynload_hpux.c:60: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 funcname[258];
data/python3.10-3.10.0~a2/Python/dynload_shlib.c:66: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 funcname[258];
data/python3.10-3.10.0~a2/Python/dynload_shlib.c:67: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 pathbuf[260];
data/python3.10-3.10.0~a2/Python/dynload_win.c:168: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 funcname[258], *import_python;
data/python3.10-3.10.0~a2/Python/dynload_win.c:210:13:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            wchar_t theInfo[256]; /* Pointer to error text
data/python3.10-3.10.0~a2/Python/dynload_win.c:259:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[256];
data/python3.10-3.10.0~a2/Python/errors.c:1664: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 linebuf[1000];
data/python3.10-3.10.0~a2/Python/fileutils.c:143: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 encoding[20];   /* longest name: "iso_646.irv_1991\0" */
data/python3.10-3.10.0~a2/Python/fileutils.c:197: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.
        char ch[1];
data/python3.10-3.10.0~a2/Python/fileutils.c:198:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t wch[1];
data/python3.10-3.10.0~a2/Python/fileutils.c:622:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t c, buf[2];
data/python3.10-3.10.0~a2/Python/fileutils.c:849:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t encoding[23];
data/python3.10-3.10.0~a2/Python/fileutils.c:912:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out_ptr, &out, sizeof(out));
data/python3.10-3.10.0~a2/Python/fileutils.c:1361: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).
            fd = open(pathname, flags);
data/python3.10-3.10.0~a2/Python/fileutils.c:1377:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(pathname, flags);
data/python3.10-3.10.0~a2/Python/fileutils.c:1437: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 cmode[10];
data/python3.10-3.10.0~a2/Python/fileutils.c:1448:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(cpath, cmode);
data/python3.10-3.10.0~a2/Python/fileutils.c:1480:15:  [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 *f = fopen(pathname, mode);
data/python3.10-3.10.0~a2/Python/fileutils.c:1509:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t wmode[10];
data/python3.10-3.10.0~a2/Python/fileutils.c:1531:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    usize = MultiByteToWideChar(CP_ACP, 0, mode, -1,
data/python3.10-3.10.0~a2/Python/fileutils.c:1567:13:  [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).
        f = fopen(path_bytes, mode);
data/python3.10-3.10.0~a2/Python/fileutils.c:1768: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 cbuf[MAXPATHLEN];
data/python3.10-3.10.0~a2/Python/fileutils.c:1818: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 cresolved_path[MAXPATHLEN];
data/python3.10-3.10.0~a2/Python/fileutils.c:1868:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t woutbuf[MAX_PATH], *woutbufp = woutbuf;
data/python3.10-3.10.0~a2/Python/fileutils.c:1910:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t cwd[MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/Python/fileutils.c:1931:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(abspath, cwd, cwd_len * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Python/fileutils.c:1937:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(abspath, path, path_len * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Python/fileutils.c:1958: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 fname[MAXPATHLEN];
data/python3.10-3.10.0~a2/Python/formatter_unicode.c:693: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 no_grouping[1] = {CHAR_MAX};
data/python3.10-3.10.0~a2/Python/getargs.c:258: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 msgbuf[256];
data/python3.10-3.10.0~a2/Python/getargs.c:442:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/python3.10-3.10.0~a2/Python/getargs.c:1184:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*buffer, ptr, size+1);
data/python3.10-3.10.0~a2/Python/getargs.c:1219:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*buffer, ptr, size+1);
data/python3.10-3.10.0~a2/Python/getargs.c:1574: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 msgbuf[512];
data/python3.10-3.10.0~a2/Python/getargs.c:2009: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 msgbuf[512];
data/python3.10-3.10.0~a2/Python/getversion.c:11:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char version[250];
data/python3.10-3.10.0~a2/Python/import.c:2128: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.
        char data[sizeof(uint64_t)];
data/python3.10-3.10.0~a2/Python/import.c:2252:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, PyImport_Inittab, (i+1) * sizeof(struct _inittab));
data/python3.10-3.10.0~a2/Python/import.c:2254:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p + i, newtab, (n + 1) * sizeof(struct _inittab));
data/python3.10-3.10.0~a2/Python/initconfig.c:1900:17:  [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(command, _PyOS_optarg, (len - 2) * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Python/marshal.c:149:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p->ptr, s, n);
data/python3.10-3.10.0~a2/Python/marshal.c:159:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p->ptr, s, n);
data/python3.10-3.10.0~a2/Python/marshal.c:272:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[8];
data/python3.10-3.10.0~a2/Python/marshal.c:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4];
data/python3.10-3.10.0~a2/Python/marshal.c:597:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/python3.10-3.10.0~a2/Python/marshal.c:856:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/python3.10-3.10.0~a2/Python/marshal.c:868:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, ptr, n);
data/python3.10-3.10.0~a2/Python/marshal.c:1073:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PyBytes_AS_STRING(v), ptr, n);
data/python3.10-3.10.0~a2/Python/modsupport.c:383:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char p[1];
data/python3.10-3.10.0~a2/Python/pathconfig.c:134:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(str, path, len * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Python/pathconfig.c:229:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t py3path[MAX_PATH];
data/python3.10-3.10.0~a2/Python/pathconfig.c:291:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(path, sys_path, path_len * sizeof(wchar_t));
data/python3.10-3.10.0~a2/Python/pathconfig.c:697:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t fullpath[MAXPATHLEN];
data/python3.10-3.10.0~a2/Python/pathconfig.c:699:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t fullpath[MAX_PATH];
data/python3.10-3.10.0~a2/Python/pathconfig.c:715:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t link[MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/Python/pathconfig.c:717:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t path0copy[2 * MAXPATHLEN + 1];
data/python3.10-3.10.0~a2/Python/pathconfig.c:826: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 buffer[MAXPATHLEN * 2 + 1];  /* allow extra for key, '=', etc. */
data/python3.10-3.10.0~a2/Python/pyctype.c:145:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char _Py_ctype_tolower[256] = {
data/python3.10-3.10.0~a2/Python/pyctype.c:180:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char _Py_ctype_toupper[256] = {
data/python3.10-3.10.0~a2/Python/pyhash.c:235:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define PY_UHASH_CPY(dst, src) memcpy(dst, src, SIZEOF_PY_UHASH_T)
data/python3.10-3.10.0~a2/Python/pyhash.c:251:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char bytes[SIZEOF_PY_UHASH_T];
data/python3.10-3.10.0~a2/Python/pyhash.c:398:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        case 4: memcpy(pt, in, sizeof(uint32_t)); break;
data/python3.10-3.10.0~a2/Python/pylifecycle.c:2067: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).
    _Py_IDENTIFIER(open);
data/python3.10-3.10.0~a2/Python/pystrtod.c:267:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, digits_pos, decimal_point_pos - digits_pos);
data/python3.10-3.10.0~a2/Python/pystrtod.c:269:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, decimal_point, decimal_point_len);
data/python3.10-3.10.0~a2/Python/pystrtod.c:271:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, decimal_point_pos + 1,
data/python3.10-3.10.0~a2/Python/pystrtod.c:662:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p, chars_to_insert, insert_count);
data/python3.10-3.10.0~a2/Python/pystrtod.c:726: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 tmp_format[FLOAT_FORMATBUFLEN];
data/python3.10-3.10.0~a2/Python/pystrtod.c:802: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 format[32];
data/python3.10-3.10.0~a2/Python/pystrtod.c:903:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buf, "nan");
data/python3.10-3.10.0~a2/Python/pystrtod.c:907:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(buf, "inf");
data/python3.10-3.10.0~a2/Python/pystrtod.c:909:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(buf, "-inf");
data/python3.10-3.10.0~a2/Python/pystrtod.c:1226:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        exp_len = sprintf(p, "%+.02d", exp);
data/python3.10-3.10.0~a2/Python/pythonrun.c:284:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[2];
data/python3.10-3.10.0~a2/Python/sysmodule.c:923:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char * const whatnames[8] = {
data/python3.10-3.10.0~a2/Python/sysmodule.c:1499:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t kernel32_path[MAX_PATH];
data/python3.10-3.10.0~a2/Python/sysmodule.c:3218: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 buffer[1001];
data/python3.10-3.10.0~a2/Python/thread.c:66:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            thread_debug = atoi(p);
data/python3.10-3.10.0~a2/Python/thread.c:173: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 buffer[255];
data/python3.10-3.10.0~a2/Python/traceback.c:26: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).
_Py_IDENTIFIER(open);
data/python3.10-3.10.0~a2/Python/traceback.c:384:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXPATHLEN+1];
data/python3.10-3.10.0~a2/Python/traceback.c:483:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf, "          ");
data/python3.10-3.10.0~a2/Python/traceback.c:635: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 buffer[1 + (sizeof(unsigned long)*53-1) / 22 + 1];
data/python3.10-3.10.0~a2/Python/traceback.c:659: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 buffer[sizeof(unsigned long) * 2 + 1], *ptr, *end;
data/python3.10-3.10.0~a2/Mac/Tools/pythonw.c:69:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(info.dli_fname);
data/python3.10-3.10.0~a2/Modules/_csv.c:259:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *target = PyUnicode_DecodeASCII(dflt, strlen(dflt), NULL);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:337:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(suffix);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:339:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(prefix);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:371:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        prefix_len += strlen(prefix);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:382:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(new_prefix, "(");
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:3402:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mangled_name = alloca(strlen(name) + 1 + 1 + 1 + 3); /* \0 _ @ %d */
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:5580:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return PyBytes_FromStringAndSize(ptr, strlen(ptr));
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes.c:5674:17:  [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).
        ssize = wcslen(ptr);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:369: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).
    char *dst = (char *)malloc(strlen(src)+1);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:384:18:  [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).
    size_t len = wcslen(src);
data/python3.10-3.10.0~a2/Modules/_ctypes/_ctypes_test.c:394:12:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return wcslen(src);
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1286:51:  [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).
        result = PyUnicode_FromWideChar(lpMsgBuf, wcslen(lpMsgBuf));
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1797:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buf = PyMem_Malloc(strlen(name) + 3 + 1);
data/python3.10-3.10.0~a2/Modules/_ctypes/callproc.c:1815:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buf = PyMem_Malloc(strlen(typ->tp_name) + 3 + 1);
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:1267:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(data);
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:1318: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).
                                         strlen(*(char **)ptr));
data/python3.10-3.10.0~a2/Modules/_ctypes/cfield.c:1371:42:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return PyUnicode_FromWideChar(p, wcslen(p));
data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c:91:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errstr, "dlcompat: ", ERR_STR_LEN);
data/python3.10-3.10.0~a2/Modules/_ctypes/darwin/dlfcn_simple.c:217:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int sym_len = strlen(symbol);
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:59: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).
        res += strlen(self->format) + 1;
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:93: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).
        dst->format = PyMem_Malloc(strlen(src->format) + 1);
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:576:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(fieldname) + strlen(fieldfmt);
data/python3.10-3.10.0~a2/Modules/_ctypes/stgdict.c:576:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(fieldname) + strlen(fieldfmt);
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:3033:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/_cursesmodule.c:4857:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                key_n2 = PyMem_Malloc(strlen(key_n)+1);
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1467:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return PyBytes_FromStringAndSize(freplacement, strlen(freplacement));
data/python3.10-3.10.0~a2/Modules/_datetimemodule.c:1555:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen(buf));
data/python3.10-3.10.0~a2/Modules/_dbmmodule.c:478: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).
    if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) {
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3297:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t n = strlen(spec.dot);
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3306:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n = strlen(spec.sep);
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3329:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(decstring);
data/python3.10-3.10.0~a2/Modules/_decimal/_decimal.c:3747: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).
            intlen = strlen(intstring);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:777: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).
    n = strlen(spec->dot);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:781: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).
    if (strlen(spec->sep) > 4) {
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:999: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).
    n_sep = (mpd_ssize_t)strlen(spec->sep);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:1008: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).
        _mbstr_copy_char(dest, dot, (mpd_ssize_t)strlen(dot));
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:1161: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).
        n_fill = strlen(spec->fill);
data/python3.10-3.10.0~a2/Modules/_decimal/libmpdec/io.c:1284: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).
        assert(strlen(spec->fill) == 1); /* annotation for scan-build */
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3092: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).
    Py_ssize_t size = (Py_ssize_t) strlen(string);
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3243:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(message, data_in, data_len < 100?data_len:100);
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3281:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            PyObject* value = PyUnicode_DecodeUTF8(attrib_in[1], strlen(attrib_in[1]), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3402:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            prefix = PyUnicode_DecodeUTF8(prefix_in, strlen(prefix_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3405:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            uri = PyUnicode_DecodeUTF8(uri_in, strlen(uri_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3416: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).
        prefix = PyUnicode_DecodeUTF8(prefix_in, strlen(prefix_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3419:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        uri = PyUnicode_DecodeUTF8(uri_in, strlen(uri_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3455: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).
        prefix = PyUnicode_DecodeUTF8(prefix_in, strlen(prefix_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3479:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        comment = PyUnicode_DecodeUTF8(comment_in, strlen(comment_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3487:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        comment = PyUnicode_DecodeUTF8(comment_in, strlen(comment_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3575:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pi_target = PyUnicode_DecodeUTF8(target_in, strlen(target_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3578: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).
            data = PyUnicode_DecodeUTF8(data_in, strlen(data_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3587:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pi_target = PyUnicode_DecodeUTF8(target_in, strlen(target_in), "strict");
data/python3.10-3.10.0~a2/Modules/_elementtree.c:3590:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data = PyUnicode_DecodeUTF8(data_in, strlen(data_in), "strict");
data/python3.10-3.10.0~a2/Modules/_gdbmmodule.c:669: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).
    if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) {
data/python3.10-3.10.0~a2/Modules/_hashopenssl.c:1410: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).
    if ((digestmod == NULL) || !strlen(digestmod)) {
data/python3.10-3.10.0~a2/Modules/_io/_iomodule.c:272: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).
    for (i = 0; i < strlen(mode); i++) {
data/python3.10-3.10.0~a2/Modules/_io/_iomodule.c:752:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ADD_INTERNED(read)
data/python3.10-3.10.0~a2/Modules/_io/bufferedio.c:34:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/_io/clinic/_iomodule.c.h:172:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(mode) != (size_t)mode_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/_iomodule.c.h:199:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/_iomodule.c.h:222:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/_iomodule.c.h:245:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(newline) != (size_t)newline_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/fileio.c.h:81:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(mode) != (size_t)mode_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/textio.c.h:216:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/textio.c.h:245:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(newline) != (size_t)newline_length) {
data/python3.10-3.10.0~a2/Modules/_io/clinic/winconsoleio.c.h:80:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(mode) != (size_t)mode_length) {
data/python3.10-3.10.0~a2/Modules/_io/iobase.c:73:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/_io/textio.c:35:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/_io/textio.c:1020: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).
    if (strlen(name) != (size_t)name_length) {
data/python3.10-3.10.0~a2/Modules/_localemodule.c:152:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (strlen(str) == 1 && ((unsigned char)str[0]) <= 127);
data/python3.10-3.10.0~a2/Modules/_localemodule.c:402:9:  [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).
    if (wcslen(s) != (size_t)n1) {
data/python3.10-3.10.0~a2/Modules/_localemodule.c:463: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).
        Py_ssize_t i = strlen(locale);
data/python3.10-3.10.0~a2/Modules/_localemodule.c:724:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(domain)) {
data/python3.10-3.10.0~a2/Modules/_multiprocessing/clinic/multiprocessing.c.h:130: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).
    if (strlen(name) != (size_t)name_length) {
data/python3.10-3.10.0~a2/Modules/_multiprocessing/clinic/semaphore.c.h:197: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).
    if (strlen(name) != (size_t)name_length) {
data/python3.10-3.10.0~a2/Modules/_multiprocessing/semaphore.c:496: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).
        name_copy = PyMem_Malloc(strlen(name) + 1);
data/python3.10-3.10.0~a2/Modules/_multiprocessing/semaphore.c:549: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).
        name_copy = PyMem_Malloc(strlen(name) + 1);
data/python3.10-3.10.0~a2/Modules/_pickle.c:677:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    PyObject *read;             /* read() method of the input stream. */
data/python3.10-3.10.0~a2/Modules/_pickle.c:1242:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    r = PyObject_CallFunction(self->read, "n", consumed);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1273:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(self->read != NULL);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1307:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data = _Pickle_FastCall(self->read, len);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1334:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read)
data/python3.10-3.10.0~a2/Modules/_pickle.c:1376:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read) {
data/python3.10-3.10.0~a2/Modules/_pickle.c:1391:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        PyObject* data = _Pickle_FastCall(self->read, len);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1491:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read)
data/python3.10-3.10.0~a2/Modules/_pickle.c:1636:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1647:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    (void)_PyObject_LookupAttrId(file, &PyId_read, &self->read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1649:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->readline || !self->read) {
data/python3.10-3.10.0~a2/Modules/_pickle.c:1654:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        Py_CLEAR(self->read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1719:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(pdata);
data/python3.10-3.10.0~a2/Modules/_pickle.c:1776:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(pdata);
data/python3.10-3.10.0~a2/Modules/_pickle.c:2067:44:  [1] (buffer) strlen:
  Does not handle 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 (_Pickler_Write(self, bool_str, strlen(bool_str)) < 0)
data/python3.10-3.10.0~a2/Modules/_pickle.c:2119:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(pdata);
data/python3.10-3.10.0~a2/Modules/_pickle.c:2263:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (_Pickler_Write(self, buf, strlen(buf)) < 0)
data/python3.10-3.10.0~a2/Modules/_pickle.c:7130: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).
        res += strlen(self->input_line) + 1;
data/python3.10-3.10.0~a2/Modules/_pickle.c:7132: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).
        res += strlen(self->encoding) + 1;
data/python3.10-3.10.0~a2/Modules/_pickle.c:7134: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).
        res += strlen(self->errors) + 1;
data/python3.10-3.10.0~a2/Modules/_pickle.c:7151:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Py_XDECREF(self->read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:7175:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Py_VISIT(self->read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:7188:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Py_CLEAR(self->read);
data/python3.10-3.10.0~a2/Modules/_pickle.c:7253:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (self->read != NULL)
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:580:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(child_umask);  /* umask() always succeeds. */
data/python3.10-3.10.0~a2/Modules/_posixsubprocess.c:681:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        _Py_write_noraise(errpipe_write, err_msg, strlen(err_msg));
data/python3.10-3.10.0~a2/Modules/_scproxy.c:25:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        s, strlen(s), NULL);
data/python3.10-3.10.0~a2/Modules/_scproxy.c:47: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).
                            buf, strlen(buf), NULL);
data/python3.10-3.10.0~a2/Modules/_sqlite/clinic/module.c.h:39: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).
    if (strlen(statement) != (size_t)statement_length) {
data/python3.10-3.10.0~a2/Modules/_sqlite/connection.c:963:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(statement_string), "replace");
data/python3.10-3.10.0~a2/Modules/_sqlite/cursor.c:220:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(colname);
data/python3.10-3.10.0~a2/Modules/_sqlite/cursor.c:307: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).
                        error_msg = PyUnicode_Decode(buf, strlen(buf), "ascii", "replace");
data/python3.10-3.10.0~a2/Modules/_sqlite/statement.c:69: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).
    if (strlen(sql_cstr) != (size_t)sql_cstr_len) {
data/python3.10-3.10.0~a2/Modules/_ssl.c:877:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(server_hostname);
data/python3.10-3.10.0~a2/Modules/_ssl.c:909:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(server_hostname))) {
data/python3.10-3.10.0~a2/Modules/_ssl.c:2013:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = (int)strlen(buf);
data/python3.10-3.10.0~a2/Modules/_struct.c:1299: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).
    if (strlen(fmt) != (size_t)PyBytes_GET_SIZE(self->s_format)) {
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2272:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(view->format) > ND_MAX_NDIM) {
data/python3.10-3.10.0~a2/Modules/_testbuffer.c:2561:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ret = equal ? Py_True : Py_False;
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:1580:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    obj = PyUnicode_Decode("t\xeate", strlen("t\xeate"),
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:1695: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).
    obj = PyUnicode_Decode("test", strlen("test"),
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:2067: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).
    new_length = strlen(PyBytes_AS_STRING(decimal));
data/python3.10-3.10.0~a2/Modules/_testcapimodule.c:5922:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(ob->structmembers.inplace_member, "");
data/python3.10-3.10.0~a2/Modules/_tkinter.c:428:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return unicodeFromTclStringAndSize(s, strlen(s));
data/python3.10-3.10.0~a2/Modules/_tkinter.c:705: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).
    argv0 = (char*)PyMem_Malloc(strlen(className) + 1);
data/python3.10-3.10.0~a2/Modules/_tkinter.c:737:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len += strlen(use) + sizeof "-use ";  /* never overflows */
data/python3.10-3.10.0~a2/Modules/_tkinter.c:751:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(args, " ");
data/python3.10-3.10.0~a2/Modules/_tkinter.c:960: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).
        if (s != NULL && strlen(s) >= INT_MAX) {                        \
data/python3.10-3.10.0~a2/Modules/_tkinter.c:1705:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(s) != (size_t)PyBytes_GET_SIZE(in)) {
data/python3.10-3.10.0~a2/Modules/_tkinter.c:1722:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(s) != (size_t)size) {
data/python3.10-3.10.0~a2/Modules/_tkinter.c:2258: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).
    if (strlen(list) >= INT_MAX) {
data/python3.10-3.10.0~a2/Modules/_tkinter.c:2339: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).
    if (strlen(list) >= INT_MAX) {
data/python3.10-3.10.0~a2/Modules/_tracemalloc.c:1479:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define PUTS(fd, str) _Py_write_noraise(fd, str, (int)strlen(str))
data/python3.10-3.10.0~a2/Modules/_winapi.c:1304:45:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return PyUnicode_FromWideChar(filename, wcslen(filename));
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:17: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).
    char *copied = PyMem_Malloc(strlen(str)+1);
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:1620:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:1647:25:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:1647:52:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) {
data/python3.10-3.10.0~a2/Modules/_xxsubinterpretersmodule.c:2204: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).
    if (strlen(codestr) != (size_t)size) {
data/python3.10-3.10.0~a2/Modules/arraymodule.c:1429:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/cjkcodecs/clinic/multibytecodec.c.h:52:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/cjkcodecs/clinic/multibytecodec.c.h:121:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:56: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).
    if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:115:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:132: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:192:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:209: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:271:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:331:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:389:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:459:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:529:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:599:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:669:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:741:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:818:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:888:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:958:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1030:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1116:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1188:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1250:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1312:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1375:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1444:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1518:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1597:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1678:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1741:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1799:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1858:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1923:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:1981:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2040:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2105:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2163:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2221:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2279:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2337:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2395:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2454:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2548:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2609:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2676:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2730: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_codecsmodule.c.h:2771: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).
    if (strlen(name) != (size_t)name_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_cryptmodule.c.h:41: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).
    if (strlen(word) != (size_t)word_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_cryptmodule.c.h:54: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).
    if (strlen(salt) != (size_t)salt_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_cursesmodule.c.h:2709:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(term) != (size_t)term_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_cursesmodule.c.h:3904: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).
    if (strlen(capname) != (size_t)capname_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_cursesmodule.c.h:3947: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).
    if (strlen(capname) != (size_t)capname_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_cursesmodule.c.h:3990: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).
    if (strlen(capname) != (size_t)capname_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_dbmmodule.c.h:173: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).
    if (strlen(flags) != (size_t)flags_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_elementtree.c.h:835:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_gdbmmodule.c.h:326: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).
    if (strlen(flags) != (size_t)flags_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_hashopenssl.c.h:911: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).
    if (strlen(hash_name) != (size_t)hash_name_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_hashopenssl.c.h:1124: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).
    if (strlen(digest) != (size_t)digest_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_hashopenssl.c.h:1197: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).
    if (strlen(digestmod) != (size_t)digestmod_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:43:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(locale) != (size_t)locale_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:245: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).
    if (strlen(in) != (size_t)in_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:292:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(domain) != (size_t)domain_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:310: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).
    if (strlen(in) != (size_t)in_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:357:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(domain) != (size_t)domain_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:375: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).
    if (strlen(msgid) != (size_t)msgid_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:420:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(domain) != (size_t)domain_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:471: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).
    if (strlen(domain) != (size_t)domain_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:518: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).
    if (strlen(domain) != (size_t)domain_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_localemodule.c.h:531:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(codeset) != (size_t)codeset_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h:368:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h:386:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h:703:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h:721:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h:806:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_pickle.c.h:824:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_ssl.c.h:364: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).
    if (strlen(cb_type) != (size_t)cb_type_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_ssl.c.h:445: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).
    if (strlen(cipherlist) != (size_t)cipherlist_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_ssl.c.h:1270: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).
    if (strlen(txt) != (size_t)txt_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_ssl.c.h:1358: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).
    if (strlen(store_name) != (size_t)store_name_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_ssl.c.h:1411: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).
    if (strlen(store_name) != (size_t)store_name_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:31: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).
    if (strlen(script) != (size_t)script_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:67: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).
    if (strlen(fileName) != (size_t)fileName_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:103: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).
    if (strlen(script) != (size_t)script_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:139: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).
    if (strlen(msg) != (size_t)msg_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:199: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).
    if (strlen(s) != (size_t)s_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:235: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).
    if (strlen(s) != (size_t)s_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:271: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).
    if (strlen(s) != (size_t)s_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:307: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).
    if (strlen(s) != (size_t)s_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:364: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).
    if (strlen(name) != (size_t)name_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:401: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).
    if (strlen(name) != (size_t)name_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:708:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(screenName) != (size_t)screenName_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:729: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).
    if (strlen(baseName) != (size_t)baseName_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:745: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).
    if (strlen(className) != (size_t)className_length) {
data/python3.10-3.10.0~a2/Modules/clinic/_tkinter.c.h:789:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(use) != (size_t)use_length) {
data/python3.10-3.10.0~a2/Modules/clinic/posixmodule.c.h:3185: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).
    if (strlen(user) != (size_t)user_length) {
data/python3.10-3.10.0~a2/Modules/clinic/posixmodule.c.h:3239: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).
    if (strlen(user) != (size_t)user_length) {
data/python3.10-3.10.0~a2/Modules/clinic/pyexpat.c.h:81: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).
    if (strlen(base) != (size_t)base_length) {
data/python3.10-3.10.0~a2/Modules/clinic/pyexpat.c.h:164:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(context) != (size_t)context_length) {
data/python3.10-3.10.0~a2/Modules/clinic/pyexpat.c.h:185: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).
    if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/pyexpat.c.h:315:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Modules/clinic/pyexpat.c.h:338:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(namespace_separator) != (size_t)namespace_separator_length) {
data/python3.10-3.10.0~a2/Modules/clinic/symtablemodule.c.h:42: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).
    if (strlen(startstr) != (size_t)startstr_length) {
data/python3.10-3.10.0~a2/Modules/expat/xmlparse.c:698:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite);
data/python3.10-3.10.0~a2/Modules/faulthandler.c:28: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).
#define PUTS(fd, str) _Py_write_noraise(fd, str, strlen(str))
data/python3.10-3.10.0~a2/Modules/faulthandler.c:747: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).
    header_len = strlen(header);
data/python3.10-3.10.0~a2/Modules/getaddrinfo.c:159:46:  [1] (buffer) strlen:
  Does not handle 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 (((ai)->ai_canonname = (char *)malloc(strlen(str) + 1)) != NULL) {\
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:140:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(numserv) > servlen)
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:146:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(sp->s_name) > servlen)
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:176:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(numaddr) > hostlen)
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:192:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(hp->h_name) > hostlen) {
data/python3.10-3.10.0~a2/Modules/getnameinfo.c:208:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(numaddr) > hostlen)
data/python3.10-3.10.0~a2/Modules/getpath.c:172:16:  [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).
    size_t i = wcslen(dir);
data/python3.10-3.10.0~a2/Modules/getpath.c:240:13:  [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).
        n = wcslen(path);
data/python3.10-3.10.0~a2/Modules/getpath.c:253:16:  [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).
    size_t k = wcslen(path2);
data/python3.10-3.10.0~a2/Modules/getpath.c:257:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(path + n, path2, k);
data/python3.10-3.10.0~a2/Modules/getpath.c:287:18:  [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).
    size_t len = wcslen(path);
data/python3.10-3.10.0~a2/Modules/getpath.c:290:12:  [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).
    len += wcslen(path2);
data/python3.10-3.10.0~a2/Modules/getpath.c:309:21:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t srclen = wcslen(src);
data/python3.10-3.10.0~a2/Modules/getpath.c:388:18:  [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).
    size_t len = wcslen(filename);
data/python3.10-3.10.0~a2/Modules/getpath.c:419:16:  [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).
    size_t n = wcslen(progpath);
data/python3.10-3.10.0~a2/Modules/getpath.c:420:16:  [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).
    size_t s = wcslen(EXE_SUFFIX);
data/python3.10-3.10.0~a2/Modules/getpath.c:524:20:  [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).
        size_t n = wcslen(prefix);
data/python3.10-3.10.0~a2/Modules/getpath.c:750:20:  [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).
        size_t n = wcslen(exec_prefix);
data/python3.10-3.10.0~a2/Modules/getpath.c:1345:18:  [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).
        bufsz += wcslen(calculate->pythonpath_env) + 1;
data/python3.10-3.10.0~a2/Modules/getpath.c:1349:23:  [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).
    size_t prefixsz = wcslen(calculate->prefix) + 1;
data/python3.10-3.10.0~a2/Modules/getpath.c:1362:22:  [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).
            bufsz += wcslen(defpath) + 1;
data/python3.10-3.10.0~a2/Modules/getpath.c:1368:14:  [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).
    bufsz += wcslen(calculate->zip_path) + 1;
data/python3.10-3.10.0~a2/Modules/getpath.c:1369:14:  [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).
    bufsz += wcslen(calculate->exec_prefix) + 1;
data/python3.10-3.10.0~a2/Modules/getpath.c:1407:26:  [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).
            size_t end = wcslen(buf) + len;
data/python3.10-3.10.0~a2/Modules/getpath.c:1408:13:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
            wcsncat(buf, defpath, len);
data/python3.10-3.10.0~a2/Modules/getpath.c:1611:12:  [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).
    assert(wcslen(pathconfig->program_full_path) == 0
data/python3.10-3.10.0~a2/Modules/main.c:129:50:  [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).
    sys_path0 = PyUnicode_FromWideChar(filename, wcslen(filename));
data/python3.10-3.10.0~a2/Modules/main.c:274:46:  [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).
    module = PyUnicode_FromWideChar(modname, wcslen(modname));
data/python3.10-3.10.0~a2/Modules/main.c:333:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((ch = getc(fp)) != EOF) {
data/python3.10-3.10.0~a2/Modules/main.c:359:48:  [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).
    unicode = PyUnicode_FromWideChar(filename, wcslen(filename));
data/python3.10-3.10.0~a2/Modules/main.c:393:52:  [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).
    startup_obj = PyUnicode_FromWideChar(wstartup, wcslen(wstartup));
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:751: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).
        res += strlen(self->tagname) + 1;
data/python3.10-3.10.0~a2/Modules/mmapmodule.c:1467:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        m_obj->tagname = PyMem_Malloc(strlen(tagname)+1);
data/python3.10-3.10.0~a2/Modules/nismodule.c:180:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    res = PyUnicode_FromStringAndSize (domain, strlen(domain));
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:248:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(fname) <= 30);
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:249:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(argfmt, fname, 30);
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:273:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(fname) <= 30);
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:274:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(argfmt, fname, 30);
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:293:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(fname) <= 30);
data/python3.10-3.10.0~a2/Modules/ossaudiodev.c:294:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(argfmt, fname, 30);
data/python3.10-3.10.0~a2/Modules/posixmodule.c: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).
#  define NAMLEN(dirent) strlen((dirent)->d_name)
data/python3.10-3.10.0~a2/Modules/posixmodule.c:286:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#    define NAMLEN(dirent) strlen((dirent)->d_name)
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1102:13:  [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).
        if (wcslen(wide) != length) {
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1174:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)length != strlen(narrow)) {
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1204:9:  [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).
    if (wcslen(wide) != length) {
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1520:41:  [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).
        v = PyUnicode_FromWideChar(p+1, wcslen(p+1));
data/python3.10-3.10.0~a2/Modules/posixmodule.c:1522:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        v = PyBytes_FromStringAndSize(p+1, strlen(p+1));
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3636:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        obj = PyBytes_FromStringAndSize(buf, strlen(buf));
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3787:15:  [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).
        len = wcslen(path->wide);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:3821:40:  [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).
                                       wcslen(wFileData.cFileName));
data/python3.10-3.10.0~a2/Modules/posixmodule.c:4034:53:  [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).
    PyObject *str = PyUnicode_FromWideChar(abspath, wcslen(abspath));
data/python3.10-3.10.0~a2/Modules/posixmodule.c:4163:48:  [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).
    result = PyUnicode_FromWideChar(mountpath, wcslen(mountpath));
data/python3.10-3.10.0~a2/Modules/posixmodule.c:4555:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    int i = (int)umask(mask);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:9594:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    HANDLE read, write;
data/python3.10-3.10.0~a2/Modules/posixmodule.c:9608:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ok = CreatePipe(&read, &write, &attr, 0);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:9610:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fds[0] = _open_osfhandle((intptr_t)read, _O_RDONLY);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:9613:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            CloseHandle(read);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13152:20:  [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).
        path_len = wcslen(path_wide);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13156:27:  [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).
    size = path_len + 1 + wcslen(filename) + 1;
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13237:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path_len = strlen(path_narrow);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:13241: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).
        filename_len = strlen(filename);
data/python3.10-3.10.0~a2/Modules/posixmodule.c:15035: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).
        PyObject *unicode = PyUnicode_DecodeASCII(*trace, strlen(*trace), NULL);
data/python3.10-3.10.0~a2/Modules/pyexpat.c:153: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).
    return PyUnicode_DecodeUTF8(str, strlen(str), "strict");
data/python3.10-3.10.0~a2/Modules/pyexpat.c:811:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Modules/pyexpat.c:1523:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        && strlen(namespace_separator) > 1) {
data/python3.10-3.10.0~a2/Modules/readline.c:1365: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).
    n = strlen(p);
data/python3.10-3.10.0~a2/Modules/readline.c:1424:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(rl_library_version, libedit_version_tag, strlen(libedit_version_tag)) == 0) {
data/python3.10-3.10.0~a2/Modules/socketmodule.c:1639: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).
    if (strlen(data->buf) != len) {
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2015:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, interfaceName, sizeof(ifr.ifr_name));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2140:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(ifr.ifr_name, PyBytes_AS_STRING(interfaceName), sizeof(ifr.ifr_name));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2184:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(ifr.ifr_name, PyBytes_AS_STRING(interfaceName), sizeof(ifr.ifr_name));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2232:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(ifr.ifr_name, PyBytes_AS_STRING(interfaceName), sizeof(ifr.ifr_name));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2289:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(info.ctl_name, PyBytes_AS_STRING(ctl_name),
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2345:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(type) >= sizeof(sa->salg_type)) {
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2349:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)sa->salg_type, type, sizeof(sa->salg_type));
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2350:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(name) >= sizeof(sa->salg_name)) {
data/python3.10-3.10.0~a2/Modules/socketmodule.c:2354:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)sa->salg_name, name, sizeof(sa->salg_name));
data/python3.10-3.10.0~a2/Modules/timemodule.c:689:21:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define time_strlen wcslen
data/python3.10-3.10.0~a2/Modules/timemodule.c:693:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define time_strlen strlen
data/python3.10-3.10.0~a2/Modules/timemodule.c:1579:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(zone, p->tm_zone ? p->tm_zone : "   ", n);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:447: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).
    i = strlen(decomp_prefix[prefix_index]);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:456: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).
        i += strlen(decomp + i);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1103:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer += strlen(hangul_syllables[L][0]);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1105:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer += strlen(hangul_syllables[V][1]);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1107:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer += strlen(hangul_syllables[T][2]);
data/python3.10-3.10.0~a2/Modules/unicodedata.c:1192: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).
        len1 = Py_SAFE_DOWNCAST(strlen(s), size_t, int);
data/python3.10-3.10.0~a2/Objects/bytearrayobject.c:922:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    newsize = strlen(className);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:181:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(str);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:238:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = _PyBytesWriter_Alloc(&writer, strlen(format));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:245:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        s = _PyBytesWriter_WriteBytes(&writer, s, (str), strlen(str)); \
data/python3.10-3.10.0~a2/Objects/bytesobject.c:318:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assert(strlen(buffer) < sizeof(buffer));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:332:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assert(strlen(buffer) < sizeof(buffer));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:338:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assert(strlen(buffer) < sizeof(buffer));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:344:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assert(strlen(buffer) < sizeof(buffer));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:354: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).
                i = strlen(p);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:370:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assert(strlen(buffer) < sizeof(buffer));
data/python3.10-3.10.0~a2/Objects/bytesobject.c:375:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memmove(buffer+2, buffer, strlen(buffer)+1);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:482:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(p);
data/python3.10-3.10.0~a2/Objects/bytesobject.c:1276: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).
    else if (strlen(*s) != (size_t)PyBytes_GET_SIZE(obj)) {
data/python3.10-3.10.0~a2/Objects/capsule.c:200:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t name_length = (strlen(name) + 1) * sizeof(char);
data/python3.10-3.10.0~a2/Objects/clinic/bytearrayobject.c.h:46:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytearrayobject.c.h:63: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytearrayobject.c.h:870:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytearrayobject.c.h:887: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytesobject.c.h:643:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytesobject.c.h:660: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytesobject.c.h:854:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Objects/clinic/bytesobject.c.h:871: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Objects/clinic/floatobject.c.h:282: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).
    if (strlen(typestr) != (size_t)typestr_length) {
data/python3.10-3.10.0~a2/Objects/clinic/floatobject.c.h:336: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).
    if (strlen(typestr) != (size_t)typestr_length) {
data/python3.10-3.10.0~a2/Objects/clinic/floatobject.c.h:349: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).
    if (strlen(fmt) != (size_t)fmt_length) {
data/python3.10-3.10.0~a2/Objects/clinic/memoryobject.c.h:181:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(order) != (size_t)order_length) {
data/python3.10-3.10.0~a2/Objects/clinic/unicodeobject.c.h:163:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Objects/clinic/unicodeobject.c.h:180: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Objects/clinic/unicodeobject.c.h:1303:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(encoding) != (size_t)encoding_length) {
data/python3.10-3.10.0~a2/Objects/clinic/unicodeobject.c.h:1320: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).
    if (strlen(errors) != (size_t)errors_length) {
data/python3.10-3.10.0~a2/Objects/complexobject.c:595:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/python3.10-3.10.0~a2/Objects/fileobject.c:13:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define GETC(f) getc(f)
data/python3.10-3.10.0~a2/Objects/floatobject.c:357:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    result = _PyUnicode_FromASCII(buf, strlen(buf));
data/python3.10-3.10.0~a2/Objects/interpreteridobject.c:185:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/python3.10-3.10.0~a2/Objects/interpreteridobject.c:212:25:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) {
data/python3.10-3.10.0~a2/Objects/interpreteridobject.c:212:52:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) {
data/python3.10-3.10.0~a2/Objects/longobject.c:1590: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).
    Py_ssize_t size, strlen, size_a, i, j;
data/python3.10-3.10.0~a2/Objects/longobject.c:1664:46:  [1] (buffer) strlen:
  Does not handle 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 (_PyUnicodeWriter_Prepare(writer, strlen, '9') == -1) {
data/python3.10-3.10.0~a2/Objects/longobject.c:1671:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *bytes_str = _PyBytesWriter_Prepare(bytes_writer, *bytes_str, strlen);
data/python3.10-3.10.0~a2/Objects/longobject.c:1678: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).
        str = PyUnicode_New(strlen, '9');
data/python3.10-3.10.0~a2/Objects/longobject.c:1712:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p = (TYPE*)PyUnicode_DATA(writer->buffer) + writer->pos + strlen; \
data/python3.10-3.10.0~a2/Objects/longobject.c:1714:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p = (TYPE*)PyUnicode_DATA(str) + strlen;                  \
data/python3.10-3.10.0~a2/Objects/longobject.c:1727: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).
        char *p = *bytes_str + strlen;
data/python3.10-3.10.0~a2/Objects/longobject.c:1749: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).
        writer->pos += strlen;
data/python3.10-3.10.0~a2/Objects/longobject.c:1752: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).
        (*bytes_str) += strlen;
data/python3.10-3.10.0~a2/Objects/longobject.c:2459:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    slen = strlen(orig_str) < 200 ? strlen(orig_str) : 200;
data/python3.10-3.10.0~a2/Objects/longobject.c:2459: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).
    slen = strlen(orig_str) < 200 ? strlen(orig_str) : 200;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:818: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).
        char *cp = PyMem_Malloc(strlen(fmt)+1);
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2717:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2724:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'h': CMP_SINGLE(p, q, short); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2725:45:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'i': CMP_SINGLE(p, q, int); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2726:46:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'l': CMP_SINGLE(p, q, long); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2729:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case '?': CMP_SINGLE(p, q, _Bool); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2732:56:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'H': CMP_SINGLE(p, q, unsigned short); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2733:54:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'I': CMP_SINGLE(p, q, unsigned int); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2734:55:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'L': CMP_SINGLE(p, q, unsigned long); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2737:51:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'q': CMP_SINGLE(p, q, long long); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2738:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'Q': CMP_SINGLE(p, q, unsigned long long); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2741:52:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'n': CMP_SINGLE(p, q, Py_ssize_t); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2742:48:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'N': CMP_SINGLE(p, q, size_t); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2746:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'f': CMP_SINGLE(p, q, float); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2747:48:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'd': CMP_SINGLE(p, q, double); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2753:48:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    case 'P': CMP_SINGLE(p, q, void *); return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2776:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2782:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (equal <= 0)
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2783:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2799:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2820:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (equal <= 0)
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2821:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            return equal;
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2910:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (equal < 0) {
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2916:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    else if ((equal && op == Py_EQ) || (!equal && op == Py_NE))
data/python3.10-3.10.0~a2/Objects/memoryobject.c:2916:42:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    else if ((equal && op == Py_EQ) || (!equal && op == Py_NE))
data/python3.10-3.10.0~a2/Objects/obmalloc.c:638:18:  [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).
    size_t len = wcslen(str);
data/python3.10-3.10.0~a2/Objects/obmalloc.c:657:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t size = strlen(str) + 1;
data/python3.10-3.10.0~a2/Objects/obmalloc.c:670:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t size = strlen(str) + 1;
data/python3.10-3.10.0~a2/Objects/obmalloc.c:2521:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = (int)strlen(msg); i < 35; ++i)
data/python3.10-3.10.0~a2/Objects/stringlib/find.h:95:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(format);
data/python3.10-3.10.0~a2/Objects/stringlib/find.h:97:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(format + len, function_name, FORMAT_BUFFER_SIZE - len - 1);
data/python3.10-3.10.0~a2/Objects/structseq.c:242:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen(typ->tp_name),
data/python3.10-3.10.0~a2/Objects/structseq.c:280:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        PyObject *name = PyUnicode_DecodeUTF8(name_utf8, strlen(name_utf8), NULL);
data/python3.10-3.10.0~a2/Objects/typeobject.c:128: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).
    length = strlen(name);
data/python3.10-3.10.0~a2/Objects/typeobject.c:512: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).
    if (strlen(tp_name) != (size_t)name_size) {
data/python3.10-3.10.0~a2/Objects/typeobject.c:2630: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).
    if (strlen(type->tp_name) != (size_t)name_size) {
data/python3.10-3.10.0~a2/Objects/typeobject.c:2704:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(doc_str);
data/python3.10-3.10.0~a2/Objects/typeobject.c:3015:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen(slot->pfunc)+1;
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2221:16:  [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).
        size = wcslen(u);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2302:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t size = strlen(u);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2319:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       strlen(id->string),
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2757: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).
        length = strlen(str);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:2956: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).
                    strlen(number) + 1);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3061:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(p);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3080: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).
    writer.min_length = strlen(format) + 100;
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3296:14:  [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).
    else if (wcslen(buffer) != (size_t)buflen) {
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3720:25:  [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).
    if ((size_t)wlen != wcslen(wstr)) {
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3944:44:  [1] (buffer) strlen:
  Does not handle 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 (str[len] != '\0' || (size_t)len != strlen(str))  {
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:3992:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Py_ssize_t size = (Py_ssize_t)strlen(str);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:4000:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Py_ssize_t size = (Py_ssize_t)strlen(s);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:4070: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).
    if ((size_t)size != strlen(data)) {
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:4232:17:  [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).
    if (wstr && wcslen(wstr) != (size_t)size) {
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:5415:22:  [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).
    Py_ssize_t len = wcslen(text);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11384:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len, len2 = strlen(str);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11423: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).
    if (strlen(str) != len)
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:11454:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strlen(str) == len &&
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:14159:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(ascii);
data/python3.10-3.10.0~a2/Objects/unicodeobject.c:14592:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(p);
data/python3.10-3.10.0~a2/PC/_msi.c:54:47:  [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).
    oresult = PyUnicode_FromWideChar(cresult, wcslen(cresult));
data/python3.10-3.10.0~a2/PC/_msi.c:162: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).
    if ((name != NULL) && ((int)strlen(name) < cbTempName)) {
data/python3.10-3.10.0~a2/PC/_msi.c:200:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pccab->szCab, PyBytes_AsString(result), sizeof(pccab->szCab));
data/python3.10-3.10.0~a2/PC/_msi.c:288:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(cabname+i) >= sizeof(ccab.szCab)) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:253:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (pathname[strlen(pathname)-1] != '\\')
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:254:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(pathname, "\\");
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:263: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).
                              strlen(scheme[i].name))) {
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:268: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).
                int namelen = strlen(scheme[i].name);
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:275: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).
                if ((pathname[strlen(pathname)-1] != '\\')
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:276: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).
                    && (pathname[strlen(pathname)-1] != '/'))
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:277:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat(pathname, "\\");
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:287:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(pathname, rest, len);
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:292:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(pathname, fname, pfhdr->fname_length);
data/python3.10-3.10.0~a2/PC/bdist_wininst/extract.c:295:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (pathname[strlen(pathname)-1] != '\\') {
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:315:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int src_len = strlen(src) + 1; // include NULL term in all ops
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:673:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(fullpath, "\\");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:780:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int n = read(fh, script, statbuf.st_size);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:909: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).
        int prefix_len = strlen(prefix);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:950:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(Buffer, lpMsgBuf, sizeof(Buffer));
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1131:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dst, src, pmd->uncomp_size);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1132:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    src += strlen(dst) + 1;
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1164: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).
        TextOut(hdc, 15, 15, title, strlen(title));
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1166: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).
        TextOut(hdc, 10, 10, title, strlen(title));
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1655:21:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                    strcpy(python_dir, "");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1656:21:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                    strcpy(pythondll, "");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1695:25:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                        strcpy(pythondll, "");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1701: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).
                        if (install_path[strlen(install_path)-1] != '\\')
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1702:29:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                            strcat(install_path, "\\");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1833:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(buffer)+1);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1855: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).
                               strlen(buffer)+1);
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1943:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (python_dir[strlen(python_dir)-1] != '\\')
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1944:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(python_dir, "\\");
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:1946: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).
            python_dir[strlen(python_dir)-1] = '\0';
data/python3.10-3.10.0~a2/PC/bdist_wininst/install.c:2546:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen(buffer);
data/python3.10-3.10.0~a2/PC/clinic/_msi.c.h:60: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).
    if (strlen(cabname) != (size_t)cabname_length) {
data/python3.10-3.10.0~a2/PC/getpathp.c:356: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).
    versionLen = strlen(PyWin_DLLVersionString);
data/python3.10-3.10.0~a2/PC/getpathp.c:447: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).
                Py_ssize_t len = wcslen(ppPaths[index]);
data/python3.10-3.10.0~a2/PC/getpathp.c:448:17:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                wcsncpy(szCur, ppPaths[index], len);
data/python3.10-3.10.0~a2/PC/getpathp.c:567:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t prefixlen = wcslen(prefix);
data/python3.10-3.10.0~a2/PC/getpathp.c:611:26:  [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).
        size_t usedsiz = wcslen(buf);
data/python3.10-3.10.0~a2/PC/getpathp.c:819:18:  [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).
        bufsz *= wcslen(calculate->home);
data/python3.10-3.10.0~a2/PC/getpathp.c:821:14:  [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).
    bufsz += wcslen(PYTHONPATH) + 1;
data/python3.10-3.10.0~a2/PC/getpathp.c:822:14:  [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).
    bufsz += wcslen(argv0_path) + 1;
data/python3.10-3.10.0~a2/PC/getpathp.c:824:18:  [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).
        bufsz += wcslen(calculate->user_path) + 1;
data/python3.10-3.10.0~a2/PC/getpathp.c:827:18:  [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).
        bufsz += wcslen(calculate->machine_path) + 1;
data/python3.10-3.10.0~a2/PC/getpathp.c:829:14:  [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).
    bufsz += wcslen(zip_path) + 1;
data/python3.10-3.10.0~a2/PC/getpathp.c:831:18:  [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).
        bufsz += wcslen(calculate->pythonpath_env) + 1;
data/python3.10-3.10.0~a2/PC/getpathp.c:885:21:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = wcslen(p);
data/python3.10-3.10.0~a2/PC/getpathp.c:898:13:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            wcsncpy(buf, p, n);
data/python3.10-3.10.0~a2/PC/getpathp.c:935:13:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            wcsncpy(lookBuf, look+1, nchars);
data/python3.10-3.10.0~a2/PC/launcher.c:392:37:  [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).
                                n = wcslen(ip->executable);
data/python3.10-3.10.0~a2/PC/launcher.c:522:19:  [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).
    size_t wlen = wcslen(wanted_ver);
data/python3.10-3.10.0~a2/PC/launcher.c:527:17:  [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).
        wlen -= wcslen(L"-32");
data/python3.10-3.10.0~a2/PC/launcher.c:531:17:  [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).
        wlen -= wcslen(L"-64");
data/python3.10-3.10.0~a2/PC/launcher.c:534:13:  [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).
        n = wcslen(ip->version);
data/python3.10-3.10.0~a2/PC/launcher.c:607:16:  [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).
    size_t n = wcslen(wanted_ver);
data/python3.10-3.10.0~a2/PC/launcher.c:819: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).
            child_command_size = wcslen(executable) + wcslen(cmdline) + 2;
data/python3.10-3.10.0~a2/PC/launcher.c:819:55:  [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).
            child_command_size = wcslen(executable) + wcslen(cmdline) + 2;
data/python3.10-3.10.0~a2/PC/launcher.c:823: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).
            child_command_size = wcslen(executable) + wcslen(suffix) +
data/python3.10-3.10.0~a2/PC/launcher.c:823:55:  [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).
            child_command_size = wcslen(executable) + wcslen(suffix) +
data/python3.10-3.10.0~a2/PC/launcher.c:824:37:  [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).
                                    wcslen(cmdline) + 3;
data/python3.10-3.10.0~a2/PC/launcher.c:889:13:  [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).
        n = wcslen(p);
data/python3.10-3.10.0~a2/PC/launcher.c:989:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DWORD read;
data/python3.10-3.10.0~a2/PC/launcher.c:1015:16:  [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).
        key += wcslen(key) + 1;
data/python3.10-3.10.0~a2/PC/launcher.c:1049:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                plen = wcslen(vpp->shebang);
data/python3.10-3.10.0~a2/PC/launcher.c:1284:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read;
data/python3.10-3.10.0~a2/PC/launcher.c:1300:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        debug(L"maybe_handle_shebang: read %zd bytes\n", read);
data/python3.10-3.10.0~a2/PC/launcher.c:1303:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((read >= 4) && (buffer[3] == '\n') && (buffer[2] == '\r')) {
data/python3.10-3.10.0~a2/PC/launcher.c:1639: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).
            *length = (DWORD)strlen(s);
data/python3.10-3.10.0~a2/PC/launcher.c:1650:18:  [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).
    size_t len = wcslen(s);
data/python3.10-3.10.0~a2/PC/launcher.c:1865:14:  [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).
    newlen = wcslen(wrapped_script_path) + wcslen(command) + 2; /* ' ' + NUL */
data/python3.10-3.10.0~a2/PC/launcher.c:1865:44:  [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).
    newlen = wcslen(wrapped_script_path) + wcslen(command) + 2; /* ' ' + NUL */
data/python3.10-3.10.0~a2/PC/launcher.c:1906:23:  [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).
        cch += (DWORD)wcslen(PYTHON_EXECUTABLE) + 1 + 1; /* include sep and null */
data/python3.10-3.10.0~a2/PC/launcher.c:1940:33:  [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).
            (!wcsncmp(p, L"-0", wcslen(L"-0")) ||
data/python3.10-3.10.0~a2/PC/launcher.c:1941:36:  [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).
            !wcsncmp(p, L"--list", wcslen(L"--list"))))
data/python3.10-3.10.0~a2/PC/launcher.c:1958:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            command += wcslen(p);
data/python3.10-3.10.0~a2/PC/winreg.c:1284:42:  [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).
    o = PyUnicode_FromWideChar(retValue, wcslen(retValue));
data/python3.10-3.10.0~a2/PC/winreg.c:1549:45:  [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).
    retStr = PyUnicode_FromWideChar(retBuf, wcslen(retBuf));
data/python3.10-3.10.0~a2/Parser/myreadline.c:330: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).
        n += strlen(p + n);
data/python3.10-3.10.0~a2/Parser/myreadline.c:404:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(rv) + 1;
data/python3.10-3.10.0~a2/Parser/pegen.c:12:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    PyObject *res = PyUnicode_DecodeUTF8(s, strlen(s), NULL);
data/python3.10-3.10.0~a2/Parser/pegen.c:83:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    PyObject *id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
data/python3.10-3.10.0~a2/Parser/pegen.c:149:60:  [1] (buffer) strlen:
  Does not handle 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(col_offset >= 0 && (unsigned long)col_offset <= strlen(str));
data/python3.10-3.10.0~a2/Parser/pegen.c:396: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).
        Py_ssize_t len = strlen(fstring_msg) + strlen(errmsg);
data/python3.10-3.10.0~a2/Parser/pegen.c:396:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        Py_ssize_t len = strlen(fstring_msg) + strlen(errmsg);
data/python3.10-3.10.0~a2/Parser/pegen.c:404:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy(new_errmsg, fstring_msg, strlen(fstring_msg));
data/python3.10-3.10.0~a2/Parser/pegen.c:405: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).
        memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg));
data/python3.10-3.10.0~a2/Parser/pegen.c:405:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg));
data/python3.10-3.10.0~a2/Parser/pegen.c:593:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tag, start, len);
data/python3.10-3.10.0~a2/Parser/pegen.c:872:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    end = s + strlen(s) - 1;
data/python3.10-3.10.0~a2/Parser/pegen.c:918: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).
    dup = PyMem_Malloc(strlen(s) + 1);
data/python3.10-3.10.0~a2/Parser/pegen.c:1382: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).
    Py_ssize_t len = strlen(first_str) + strlen(second_str) + 1;  // +1 for the dot
data/python3.10-3.10.0~a2/Parser/pegen.c:1382: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).
    Py_ssize_t len = strlen(first_str) + strlen(second_str) + 1;  // +1 for the dot
data/python3.10-3.10.0~a2/Parser/pegen.c:1395:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s += strlen(first_str);
data/python3.10-3.10.0~a2/Parser/pegen.c:1398:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s += strlen(second_str);
data/python3.10-3.10.0~a2/Parser/string_parser.c:209:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(s);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:188:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    r = new_string(q, strlen(q), tok);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:463:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return getc(tok->fp);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:529: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).
        if (!check_coding_spec(line, strlen(line), tok, fp_setreadl)) {
data/python3.10-3.10.0~a2/Parser/tokenizer.c:608:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    PyObject* buf = PyUnicode_Decode(str, strlen(str), enc, NULL);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:620:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t needed_length = strlen(s) + 2, final_length;
data/python3.10-3.10.0~a2/Parser/tokenizer.c:793: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).
        tok->encoding = PyMem_MALLOC(strlen(enc)+1);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:892: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).
                size_t newlen = oldlen + strlen(newtok);
data/python3.10-3.10.0~a2/Parser/tokenizer.c:995:25:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                        strcpy(tok->inp, "\n");
data/python3.10-3.10.0~a2/Parser/tokenizer.c:1897:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
data/python3.10-3.10.0~a2/Programs/_testembed.c:187:29:  [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).
    size_t warnoption_len = wcslen(static_warnoption);
data/python3.10-3.10.0~a2/Programs/_testembed.c:188:26:  [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).
    size_t xoption_len = wcslen(static_xoption);
data/python3.10-3.10.0~a2/Programs/_testembed.c:193:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(dynamic_once_warnoption, static_warnoption, warnoption_len+1);
data/python3.10-3.10.0~a2/Programs/_testembed.c:194:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(dynamic_xoption, static_xoption, xoption_len+1);
data/python3.10-3.10.0~a2/Python/bltinmodule.c:2070:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(s);
data/python3.10-3.10.0~a2/Python/bootstrap_hash.c:385:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(fd, buffer, (size_t)size);
data/python3.10-3.10.0~a2/Python/clinic/bltinmodule.c.h:206: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).
    if (strlen(mode) != (size_t)mode_length) {
data/python3.10-3.10.0~a2/Python/codecs.c:86:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(string);
data/python3.10-3.10.0~a2/Python/codecs.c:991:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                replsize = 1+1+1+(int)strlen(buffer)+1;
data/python3.10-3.10.0~a2/Python/codecs.c:1017: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).
                outp += strlen(buffer);
data/python3.10-3.10.0~a2/Python/dynload_win.c:122:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(import_name) >= 6 &&
data/python3.10-3.10.0~a2/Python/fileutils.c:256:11:  [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).
    len = wcslen(text);
data/python3.10-3.10.0~a2/Python/fileutils.c:324:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t argsize = strlen(arg) + 1;
data/python3.10-3.10.0~a2/Python/fileutils.c:392:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    argsize = strlen(arg);
data/python3.10-3.10.0~a2/Python/fileutils.c:430:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    argsize = strlen(arg) + 1;
data/python3.10-3.10.0~a2/Python/fileutils.c:541: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).
        return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
data/python3.10-3.10.0~a2/Python/fileutils.c:549: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).
    return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
data/python3.10-3.10.0~a2/Python/fileutils.c:557: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).
        return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
data/python3.10-3.10.0~a2/Python/fileutils.c:619:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t len = wcslen(text);
data/python3.10-3.10.0~a2/Python/fileutils.c:1625:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, buf, (int)count);
data/python3.10-3.10.0~a2/Python/fileutils.c:1627:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, buf, count);
data/python3.10-3.10.0~a2/Python/fileutils.c:1800:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(buf, wbuf, buflen);
data/python3.10-3.10.0~a2/Python/fileutils.c:1843:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(resolved_path, wresolved_path, resolved_path_len);
data/python3.10-3.10.0~a2/Python/fileutils.c:1917:22:  [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).
    size_t cwd_len = wcslen(cwd);
data/python3.10-3.10.0~a2/Python/fileutils.c:1918:23:  [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).
    size_t path_len = wcslen(path);
data/python3.10-3.10.0~a2/Python/fileutils.c:1972:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(buf, wname, buflen);
data/python3.10-3.10.0~a2/Python/fileutils.c:2119:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(lc->decimal_point) > 1 || ((unsigned char)lc->decimal_point[0]) > 127)) {
data/python3.10-3.10.0~a2/Python/fileutils.c:2122:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(lc->thousands_sep) > 1 || ((unsigned char)lc->thousands_sep[0]) > 127)) {
data/python3.10-3.10.0~a2/Python/formatter_unicode.c:1088: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).
    n_digits = strlen(buf);
data/python3.10-3.10.0~a2/Python/formatter_unicode.c:1273:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n_re_digits = strlen(re_buf);
data/python3.10-3.10.0~a2/Python/formatter_unicode.c:1274:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n_im_digits = strlen(im_buf);
data/python3.10-3.10.0~a2/Python/getargs.c:451: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).
            p += strlen(p);
data/python3.10-3.10.0~a2/Python/getargs.c:457: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).
            p += strlen(p);
data/python3.10-3.10.0~a2/Python/getargs.c:461: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).
                p += strlen(p);
data/python3.10-3.10.0~a2/Python/getargs.c:467: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).
            p += strlen(p);
data/python3.10-3.10.0~a2/Python/getargs.c:565:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(msgbuf, "is not retrievable", bufsize);
data/python3.10-3.10.0~a2/Python/getargs.c:924:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(*p) != (size_t)count) {
data/python3.10-3.10.0~a2/Python/getargs.c:1001: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).
                if (strlen(sarg) != (size_t)len) {
data/python3.10-3.10.0~a2/Python/getargs.c:1051:21:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (wcslen(*p) != (size_t)len) {
data/python3.10-3.10.0~a2/Python/getargs.c:1202:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((Py_ssize_t)strlen(ptr) != size) {
data/python3.10-3.10.0~a2/Python/import.c:1383:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            int equal;
data/python3.10-3.10.0~a2/Python/import.c:1391:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (equal < 0) {
data/python3.10-3.10.0~a2/Python/initconfig.c:1412:20:  [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).
        if (sep && wcslen(sep) > 1) {
data/python3.10-3.10.0~a2/Python/initconfig.c:1895:30:  [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).
                size_t len = wcslen(_PyOS_optarg) + 1 + 1;
data/python3.10-3.10.0~a2/Python/marshal.c:288: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).
    w_short_pstring(buf, strlen(buf), p);
data/python3.10-3.10.0~a2/Python/marshal.c:679:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read != n) {
data/python3.10-3.10.0~a2/Python/marshal.c:681:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read > n)
data/python3.10-3.10.0~a2/Python/marshal.c:685:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                             n, read);
data/python3.10-3.10.0~a2/Python/marshal.c:707:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(p->fp);
data/python3.10-3.10.0~a2/Python/marshal.c:1658:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _Py_IDENTIFIER(read);
data/python3.10-3.10.0~a2/Python/modsupport.c:367:25:  [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).
                    n = wcslen(u);
data/python3.10-3.10.0~a2/Python/modsupport.c:418: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).
                    size_t m = strlen(str);
data/python3.10-3.10.0~a2/Python/modsupport.c:454: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).
                    size_t m = strlen(str);
data/python3.10-3.10.0~a2/Python/pathconfig.c:120:16:  [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).
        len += wcslen(list->items[i]);
data/python3.10-3.10.0~a2/Python/pathconfig.c:133:15:  [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).
        len = wcslen(path);
data/python3.10-3.10.0~a2/Python/pathconfig.c:283:28:  [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).
            p = sys_path + wcslen(sys_path); /* End of string */
data/python3.10-3.10.0~a2/Python/pathconfig.c:711:13:  [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).
        n = wcslen(path0);
data/python3.10-3.10.0~a2/Python/pathconfig.c:740:17:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                wcsncpy(path0copy, path0, MAXPATHLEN);
data/python3.10-3.10.0~a2/Python/pathconfig.c:742:17:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                wcsncpy(q+1, link, MAXPATHLEN);
data/python3.10-3.10.0~a2/Python/pathconfig.c:836:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t n = strlen(p);
data/python3.10-3.10.0~a2/Python/preconfig.c:584:19:  [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).
            len = wcslen(option);
data/python3.10-3.10.0~a2/Python/pylifecycle.c:2412: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).
    msglen = strlen(msg);
data/python3.10-3.10.0~a2/Python/pystrtod.c:183: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).
    decimal_point_len = strlen(decimal_point);
data/python3.10-3.10.0~a2/Python/pystrtod.c:455: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).
        size_t decimal_point_len = strlen(decimal_point);
data/python3.10-3.10.0~a2/Python/pystrtod.c:466:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t rest_len = strlen(buffer +
data/python3.10-3.10.0~a2/Python/pystrtod.c:653:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t buf_len = strlen(buffer);
data/python3.10-3.10.0~a2/Python/pystrtod.c:661: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).
                buffer + strlen(buffer) - p + 1);
data/python3.10-3.10.0~a2/Python/pystrtod.c:722:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t format_len = strlen(format);
data/python3.10-3.10.0~a2/Python/pystrtod.c:925:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(buf);
data/python3.10-3.10.0~a2/Python/pystrtod.c:1051:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(p, float_strings[OFS_INF], 3);
data/python3.10-3.10.0~a2/Python/pystrtod.c:1058:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(p, float_strings[OFS_NAN], 3);
data/python3.10-3.10.0~a2/Python/pystrtod.c:1195:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(p, digits, decpt-0);
data/python3.10-3.10.0~a2/Python/pystrtod.c:1198:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(p, digits+decpt, digits_len-decpt);
data/python3.10-3.10.0~a2/Python/pystrtod.c:1202:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(p, digits, digits_len);
data/python3.10-3.10.0~a2/Python/pythonrun.c:373:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(filename);
data/python3.10-3.10.0~a2/Python/pythonrun.c:534: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).
    Py_ssize_t len = strlen(text);
data/python3.10-3.10.0~a2/Python/pythonrun.c:1286: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).
    if (strlen(str) != (size_t)size) {
data/python3.10-3.10.0~a2/Python/sysmodule.c:527: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).
    if (envar == NULL || strlen(envar) == 0) {
data/python3.10-3.10.0~a2/Python/sysmodule.c:3054:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p = path + wcslen(path); /* End of string */
data/python3.10-3.10.0~a2/Python/traceback.c:16:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define PUTS(fd, str) _Py_write_noraise(fd, str, (int)strlen(str))
data/python3.10-3.10.0~a2/Python/traceback.c:322:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    taillen = strlen(tail);
data/python3.10-3.10.0~a2/Python/traceback.c:349:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(namebuf) != (size_t)len)
data/python3.10-3.10.0~a2/Python/traceback.c:484:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert (strlen(buf) == 10);

ANALYSIS SUMMARY:

Hits = 1899
Lines analyzed = 649292 in approximately 21.24 seconds (30566 lines/second)
Physical Source Lines of Code (SLOC) = 514255
Hits@level = [0] 1891 [1] 620 [2] 1047 [3]  45 [4] 183 [5]   4
Hits@level+ = [0+] 3790 [1+] 1899 [2+] 1279 [3+] 232 [4+] 187 [5+]   4
Hits/KSLOC@level+ = [0+] 7.36988 [1+] 3.69272 [2+] 2.48709 [3+] 0.451138 [4+] 0.363633 [5+] 0.00777824
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.