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/colmap-3.6+really3.6/lib/FLANN/algorithms/all_indices.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/autotuned_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/center_chooser.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/composite_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/dist.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/hierarchical_clustering_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_cuda_3d_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_cuda_builder.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_single_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/kmeans_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/linear_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/lsh_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/algorithms/nn_index.h Examining data/colmap-3.6+really3.6/lib/FLANN/config.h Examining data/colmap-3.6+really3.6/lib/FLANN/defines.h Examining data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c Examining data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.h Examining data/colmap-3.6+really3.6/lib/FLANN/ext/lz4hc.c Examining data/colmap-3.6+really3.6/lib/FLANN/ext/lz4hc.h Examining data/colmap-3.6+really3.6/lib/FLANN/flann.cpp Examining data/colmap-3.6+really3.6/lib/FLANN/flann.h Examining data/colmap-3.6+really3.6/lib/FLANN/flann.hpp Examining data/colmap-3.6+really3.6/lib/FLANN/general.h Examining data/colmap-3.6+really3.6/lib/FLANN/io/hdf5.h Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/client.h Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/flann_mpi_client.cpp Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/flann_mpi_server.cpp Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/index.h Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/matrix.h Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/queries.h Examining data/colmap-3.6+really3.6/lib/FLANN/mpi/server.h Examining data/colmap-3.6+really3.6/lib/FLANN/nn/ground_truth.h Examining data/colmap-3.6+really3.6/lib/FLANN/nn/index_testing.h Examining data/colmap-3.6+really3.6/lib/FLANN/nn/simplex_downhill.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/allocator.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/any.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/cuda/heap.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/cuda/result_set.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/cutil_math.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/dynamic_bitset.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/heap.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/logger.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/lsh_table.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/matrix.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/object_factory.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/params.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/random.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/result_set.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/sampling.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/saving.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h Examining data/colmap-3.6+really3.6/lib/FLANN/util/timer.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/balance.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/bucketsort.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/ccgraph.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/coarsen.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/compress.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/debug.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/defs.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/estmem.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/fm.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/fortran.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/frename.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/graph.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/initpart.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/kmetis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/kvmetis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/kwayfm.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/kwayrefine.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/kwayvolfm.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/kwayvolrefine.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/macros.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/match.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mbalance.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mbalance2.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mcoarsen.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/memory.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mesh.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/meshpart.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/metis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/metis.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mfm.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mfm2.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mincover.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/minitpart.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/minitpart2.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mkmetis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mkwayfmh.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mkwayrefine.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mmatch.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mmd.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mpmetis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mrefine.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mrefine2.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/mutil.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/myqsort.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/ometis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/parmetis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/pmetis.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/pqueue.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/proto.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/refine.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/rename.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/separator.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/sfm.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/srefine.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/stat.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/struct.h Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/subdomains.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/timing.c Examining data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c Examining data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/mlkkm.c Examining data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/wkkm.c Examining data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/wkkm_boundary_only.c Examining data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/wkkm_experiment.c Examining data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/wkkm_old.c Examining data/colmap-3.6+really3.6/lib/LSD/lsd.c Examining data/colmap-3.6+really3.6/lib/LSD/lsd.h Examining data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp Examining data/colmap-3.6+really3.6/lib/PBA/ConfigBA.h Examining data/colmap-3.6+really3.6/lib/PBA/CuTexImage.cpp Examining data/colmap-3.6+really3.6/lib/PBA/CuTexImage.h Examining data/colmap-3.6+really3.6/lib/PBA/DataInterface.h Examining data/colmap-3.6+really3.6/lib/PBA/ProgramCU.h Examining data/colmap-3.6+really3.6/lib/PBA/SparseBundleCPU.cpp Examining data/colmap-3.6+really3.6/lib/PBA/SparseBundleCPU.h Examining data/colmap-3.6+really3.6/lib/PBA/SparseBundleCU.cpp Examining data/colmap-3.6+really3.6/lib/PBA/SparseBundleCU.h Examining data/colmap-3.6+really3.6/lib/PBA/pba.cpp Examining data/colmap-3.6+really3.6/lib/PBA/pba.h Examining data/colmap-3.6+really3.6/lib/PBA/util.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Allocator.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Array.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/BSplineData.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/BinaryNode.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Factor.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Factor.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/FunctionData.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Hash.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/MAT.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/MemoryUsage.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/MultiGridOctreeData.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/MyTime.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Octree.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/PPolynomial.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Ply.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/PointStream.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/Polynomial.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/SparseMatrix.h Examining data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp Examining data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.h Examining data/colmap-3.6+really3.6/lib/SQLite/shell.c Examining data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c Examining data/colmap-3.6+really3.6/lib/SQLite/sqlite3.h Examining data/colmap-3.6+really3.6/lib/SQLite/sqlite3ext.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/CLTexImage.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/CLTexImage.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/CuTexImage.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/CuTexImage.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/FrameBufferObject.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/FrameBufferObject.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/GLTexImage.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/GLTexImage.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/GlobalUtil.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/GlobalUtil.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/LiteWindow.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCU.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramGLSL.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramGLSL.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/ProgramGPU.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCL.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCL.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCU.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCU.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/PyramidGL.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/PyramidGL.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/ShaderMan.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/ShaderMan.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftMatch.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftMatch.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftMatchCU.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftMatchCU.h Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp Examining data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.h Examining data/colmap-3.6+really3.6/lib/VLFeat/aib.c Examining data/colmap-3.6+really3.6/lib/VLFeat/aib.h Examining data/colmap-3.6+really3.6/lib/VLFeat/array.c Examining data/colmap-3.6+really3.6/lib/VLFeat/array.h Examining data/colmap-3.6+really3.6/lib/VLFeat/covdet.c Examining data/colmap-3.6+really3.6/lib/VLFeat/covdet.h Examining data/colmap-3.6+really3.6/lib/VLFeat/dsift.c Examining data/colmap-3.6+really3.6/lib/VLFeat/dsift.h Examining data/colmap-3.6+really3.6/lib/VLFeat/fisher.c Examining data/colmap-3.6+really3.6/lib/VLFeat/fisher.h Examining data/colmap-3.6+really3.6/lib/VLFeat/float.h Examining data/colmap-3.6+really3.6/lib/VLFeat/generic.c Examining data/colmap-3.6+really3.6/lib/VLFeat/generic.h Examining data/colmap-3.6+really3.6/lib/VLFeat/getopt_long.c Examining data/colmap-3.6+really3.6/lib/VLFeat/getopt_long.h Examining data/colmap-3.6+really3.6/lib/VLFeat/gmm.c Examining data/colmap-3.6+really3.6/lib/VLFeat/gmm.h Examining data/colmap-3.6+really3.6/lib/VLFeat/heap-def.h Examining data/colmap-3.6+really3.6/lib/VLFeat/hikmeans.c Examining data/colmap-3.6+really3.6/lib/VLFeat/hikmeans.h Examining data/colmap-3.6+really3.6/lib/VLFeat/hog.c Examining data/colmap-3.6+really3.6/lib/VLFeat/hog.h Examining data/colmap-3.6+really3.6/lib/VLFeat/homkermap.c Examining data/colmap-3.6+really3.6/lib/VLFeat/homkermap.h Examining data/colmap-3.6+really3.6/lib/VLFeat/host.c Examining data/colmap-3.6+really3.6/lib/VLFeat/host.h Examining data/colmap-3.6+really3.6/lib/VLFeat/ikmeans.c Examining data/colmap-3.6+really3.6/lib/VLFeat/ikmeans.h Examining data/colmap-3.6+really3.6/lib/VLFeat/imopv.c Examining data/colmap-3.6+really3.6/lib/VLFeat/imopv.h Examining data/colmap-3.6+really3.6/lib/VLFeat/imopv_sse2.c Examining data/colmap-3.6+really3.6/lib/VLFeat/imopv_sse2.h Examining data/colmap-3.6+really3.6/lib/VLFeat/kdtree.c Examining data/colmap-3.6+really3.6/lib/VLFeat/kdtree.h Examining data/colmap-3.6+really3.6/lib/VLFeat/kmeans.c Examining data/colmap-3.6+really3.6/lib/VLFeat/kmeans.h Examining data/colmap-3.6+really3.6/lib/VLFeat/lbp.c Examining data/colmap-3.6+really3.6/lib/VLFeat/lbp.h Examining data/colmap-3.6+really3.6/lib/VLFeat/liop.c Examining data/colmap-3.6+really3.6/lib/VLFeat/liop.h Examining data/colmap-3.6+really3.6/lib/VLFeat/mathop.c Examining data/colmap-3.6+really3.6/lib/VLFeat/mathop.h Examining data/colmap-3.6+really3.6/lib/VLFeat/mathop_avx.c Examining data/colmap-3.6+really3.6/lib/VLFeat/mathop_avx.h Examining data/colmap-3.6+really3.6/lib/VLFeat/mathop_sse2.c Examining data/colmap-3.6+really3.6/lib/VLFeat/mathop_sse2.h Examining data/colmap-3.6+really3.6/lib/VLFeat/mser.c Examining data/colmap-3.6+really3.6/lib/VLFeat/mser.h Examining data/colmap-3.6+really3.6/lib/VLFeat/pgm.c Examining data/colmap-3.6+really3.6/lib/VLFeat/pgm.h Examining data/colmap-3.6+really3.6/lib/VLFeat/qsort-def.h Examining data/colmap-3.6+really3.6/lib/VLFeat/quickshift.c Examining data/colmap-3.6+really3.6/lib/VLFeat/quickshift.h Examining data/colmap-3.6+really3.6/lib/VLFeat/random.c Examining data/colmap-3.6+really3.6/lib/VLFeat/random.h Examining data/colmap-3.6+really3.6/lib/VLFeat/rodrigues.c Examining data/colmap-3.6+really3.6/lib/VLFeat/rodrigues.h Examining data/colmap-3.6+really3.6/lib/VLFeat/scalespace.c Examining data/colmap-3.6+really3.6/lib/VLFeat/scalespace.h Examining data/colmap-3.6+really3.6/lib/VLFeat/shuffle-def.h Examining data/colmap-3.6+really3.6/lib/VLFeat/sift.c Examining data/colmap-3.6+really3.6/lib/VLFeat/sift.h Examining data/colmap-3.6+really3.6/lib/VLFeat/slic.c Examining data/colmap-3.6+really3.6/lib/VLFeat/slic.h Examining data/colmap-3.6+really3.6/lib/VLFeat/stringop.c Examining data/colmap-3.6+really3.6/lib/VLFeat/stringop.h Examining data/colmap-3.6+really3.6/lib/VLFeat/svm.c Examining data/colmap-3.6+really3.6/lib/VLFeat/svm.h Examining data/colmap-3.6+really3.6/lib/VLFeat/svmdataset.c Examining data/colmap-3.6+really3.6/lib/VLFeat/svmdataset.h Examining data/colmap-3.6+really3.6/lib/VLFeat/vlad.c Examining data/colmap-3.6+really3.6/lib/VLFeat/vlad.h Examining data/colmap-3.6+really3.6/src/base/camera.cc Examining data/colmap-3.6+really3.6/src/base/camera.h Examining data/colmap-3.6+really3.6/src/base/camera_database.cc Examining data/colmap-3.6+really3.6/src/base/camera_database.h Examining data/colmap-3.6+really3.6/src/base/camera_database_test.cc Examining data/colmap-3.6+really3.6/src/base/camera_models.cc Examining data/colmap-3.6+really3.6/src/base/camera_models.h Examining data/colmap-3.6+really3.6/src/base/camera_models_test.cc Examining data/colmap-3.6+really3.6/src/base/camera_rig.cc Examining data/colmap-3.6+really3.6/src/base/camera_rig.h Examining data/colmap-3.6+really3.6/src/base/camera_rig_test.cc Examining data/colmap-3.6+really3.6/src/base/camera_test.cc Examining data/colmap-3.6+really3.6/src/base/correspondence_graph.cc Examining data/colmap-3.6+really3.6/src/base/correspondence_graph.h Examining data/colmap-3.6+really3.6/src/base/correspondence_graph_test.cc Examining data/colmap-3.6+really3.6/src/base/cost_functions.h Examining data/colmap-3.6+really3.6/src/base/cost_functions_test.cc Examining data/colmap-3.6+really3.6/src/base/database.cc Examining data/colmap-3.6+really3.6/src/base/database.h Examining data/colmap-3.6+really3.6/src/base/database_cache.cc Examining data/colmap-3.6+really3.6/src/base/database_cache.h Examining data/colmap-3.6+really3.6/src/base/database_cache_test.cc Examining data/colmap-3.6+really3.6/src/base/database_test.cc Examining data/colmap-3.6+really3.6/src/base/essential_matrix.cc Examining data/colmap-3.6+really3.6/src/base/essential_matrix.h Examining data/colmap-3.6+really3.6/src/base/essential_matrix_test.cc Examining data/colmap-3.6+really3.6/src/base/gps.cc Examining data/colmap-3.6+really3.6/src/base/gps.h Examining data/colmap-3.6+really3.6/src/base/gps_test.cc Examining data/colmap-3.6+really3.6/src/base/graph_cut.cc Examining data/colmap-3.6+really3.6/src/base/graph_cut.h Examining data/colmap-3.6+really3.6/src/base/graph_cut_test.cc Examining data/colmap-3.6+really3.6/src/base/homography_matrix.cc Examining data/colmap-3.6+really3.6/src/base/homography_matrix.h Examining data/colmap-3.6+really3.6/src/base/homography_matrix_test.cc Examining data/colmap-3.6+really3.6/src/base/image.cc Examining data/colmap-3.6+really3.6/src/base/image.h Examining data/colmap-3.6+really3.6/src/base/image_reader.cc Examining data/colmap-3.6+really3.6/src/base/image_reader.h Examining data/colmap-3.6+really3.6/src/base/image_test.cc Examining data/colmap-3.6+really3.6/src/base/line.cc Examining data/colmap-3.6+really3.6/src/base/line.h Examining data/colmap-3.6+really3.6/src/base/line_test.cc Examining data/colmap-3.6+really3.6/src/base/point2d.cc Examining data/colmap-3.6+really3.6/src/base/point2d.h Examining data/colmap-3.6+really3.6/src/base/point2d_test.cc Examining data/colmap-3.6+really3.6/src/base/point3d.cc Examining data/colmap-3.6+really3.6/src/base/point3d.h Examining data/colmap-3.6+really3.6/src/base/point3d_test.cc Examining data/colmap-3.6+really3.6/src/base/polynomial.cc Examining data/colmap-3.6+really3.6/src/base/polynomial.h Examining data/colmap-3.6+really3.6/src/base/polynomial_test.cc Examining data/colmap-3.6+really3.6/src/base/pose.cc Examining data/colmap-3.6+really3.6/src/base/pose.h Examining data/colmap-3.6+really3.6/src/base/pose_test.cc Examining data/colmap-3.6+really3.6/src/base/projection.cc Examining data/colmap-3.6+really3.6/src/base/projection.h Examining data/colmap-3.6+really3.6/src/base/projection_test.cc Examining data/colmap-3.6+really3.6/src/base/reconstruction.cc Examining data/colmap-3.6+really3.6/src/base/reconstruction.h Examining data/colmap-3.6+really3.6/src/base/reconstruction_manager.cc Examining data/colmap-3.6+really3.6/src/base/reconstruction_manager.h Examining data/colmap-3.6+really3.6/src/base/reconstruction_manager_test.cc Examining data/colmap-3.6+really3.6/src/base/reconstruction_test.cc Examining data/colmap-3.6+really3.6/src/base/scene_clustering.cc Examining data/colmap-3.6+really3.6/src/base/scene_clustering.h Examining data/colmap-3.6+really3.6/src/base/scene_clustering_test.cc Examining data/colmap-3.6+really3.6/src/base/similarity_transform.cc Examining data/colmap-3.6+really3.6/src/base/similarity_transform.h Examining data/colmap-3.6+really3.6/src/base/similarity_transform_test.cc Examining data/colmap-3.6+really3.6/src/base/track.cc Examining data/colmap-3.6+really3.6/src/base/track.h Examining data/colmap-3.6+really3.6/src/base/track_test.cc Examining data/colmap-3.6+really3.6/src/base/triangulation.cc Examining data/colmap-3.6+really3.6/src/base/triangulation.h Examining data/colmap-3.6+really3.6/src/base/triangulation_test.cc Examining data/colmap-3.6+really3.6/src/base/undistortion.cc Examining data/colmap-3.6+really3.6/src/base/undistortion.h Examining data/colmap-3.6+really3.6/src/base/undistortion_test.cc Examining data/colmap-3.6+really3.6/src/base/visibility_pyramid.cc Examining data/colmap-3.6+really3.6/src/base/visibility_pyramid.h Examining data/colmap-3.6+really3.6/src/base/visibility_pyramid_test.cc Examining data/colmap-3.6+really3.6/src/base/warp.cc Examining data/colmap-3.6+really3.6/src/base/warp.h Examining data/colmap-3.6+really3.6/src/base/warp_test.cc Examining data/colmap-3.6+really3.6/src/controllers/automatic_reconstruction.cc Examining data/colmap-3.6+really3.6/src/controllers/automatic_reconstruction.h Examining data/colmap-3.6+really3.6/src/controllers/bundle_adjustment.cc Examining data/colmap-3.6+really3.6/src/controllers/bundle_adjustment.h Examining data/colmap-3.6+really3.6/src/controllers/hierarchical_mapper.cc Examining data/colmap-3.6+really3.6/src/controllers/hierarchical_mapper.h Examining data/colmap-3.6+really3.6/src/controllers/incremental_mapper.cc Examining data/colmap-3.6+really3.6/src/controllers/incremental_mapper.h Examining data/colmap-3.6+really3.6/src/estimators/absolute_pose.cc Examining data/colmap-3.6+really3.6/src/estimators/absolute_pose.h Examining data/colmap-3.6+really3.6/src/estimators/absolute_pose_test.cc Examining data/colmap-3.6+really3.6/src/estimators/affine_transform.cc Examining data/colmap-3.6+really3.6/src/estimators/affine_transform.h Examining data/colmap-3.6+really3.6/src/estimators/affine_transform_test.cc Examining data/colmap-3.6+really3.6/src/estimators/coordinate_frame.cc Examining data/colmap-3.6+really3.6/src/estimators/coordinate_frame.h Examining data/colmap-3.6+really3.6/src/estimators/coordinate_frame_test.cc Examining data/colmap-3.6+really3.6/src/estimators/essential_matrix.cc Examining data/colmap-3.6+really3.6/src/estimators/essential_matrix.h Examining data/colmap-3.6+really3.6/src/estimators/essential_matrix_coeffs.h Examining data/colmap-3.6+really3.6/src/estimators/essential_matrix_poly.h Examining data/colmap-3.6+really3.6/src/estimators/essential_matrix_test.cc Examining data/colmap-3.6+really3.6/src/estimators/euclidean_transform.h Examining data/colmap-3.6+really3.6/src/estimators/fundamental_matrix.cc Examining data/colmap-3.6+really3.6/src/estimators/fundamental_matrix.h Examining data/colmap-3.6+really3.6/src/estimators/fundamental_matrix_test.cc Examining data/colmap-3.6+really3.6/src/estimators/generalized_absolute_pose.cc Examining data/colmap-3.6+really3.6/src/estimators/generalized_absolute_pose.h Examining data/colmap-3.6+really3.6/src/estimators/generalized_absolute_pose_coeffs.cc Examining data/colmap-3.6+really3.6/src/estimators/generalized_absolute_pose_coeffs.h Examining data/colmap-3.6+really3.6/src/estimators/generalized_absolute_pose_test.cc Examining data/colmap-3.6+really3.6/src/estimators/generalized_relative_pose.cc Examining data/colmap-3.6+really3.6/src/estimators/generalized_relative_pose.h Examining data/colmap-3.6+really3.6/src/estimators/generalized_relative_pose_test.cc Examining data/colmap-3.6+really3.6/src/estimators/homography_matrix.cc Examining data/colmap-3.6+really3.6/src/estimators/homography_matrix.h Examining data/colmap-3.6+really3.6/src/estimators/homography_matrix_test.cc Examining data/colmap-3.6+really3.6/src/estimators/pose.cc Examining data/colmap-3.6+really3.6/src/estimators/pose.h Examining data/colmap-3.6+really3.6/src/estimators/similarity_transform.h Examining data/colmap-3.6+really3.6/src/estimators/translation_transform.h Examining data/colmap-3.6+really3.6/src/estimators/translation_transform_test.cc Examining data/colmap-3.6+really3.6/src/estimators/triangulation.cc Examining data/colmap-3.6+really3.6/src/estimators/triangulation.h Examining data/colmap-3.6+really3.6/src/estimators/two_view_geometry.cc Examining data/colmap-3.6+really3.6/src/estimators/two_view_geometry.h Examining data/colmap-3.6+really3.6/src/estimators/two_view_geometry_test.cc Examining data/colmap-3.6+really3.6/src/estimators/utils.cc Examining data/colmap-3.6+really3.6/src/estimators/utils.h Examining data/colmap-3.6+really3.6/src/estimators/utils_test.cc Examining data/colmap-3.6+really3.6/src/exe/colmap.cc Examining data/colmap-3.6+really3.6/src/feature/extraction.cc Examining data/colmap-3.6+really3.6/src/feature/extraction.h Examining data/colmap-3.6+really3.6/src/feature/matching.cc Examining data/colmap-3.6+really3.6/src/feature/matching.h Examining data/colmap-3.6+really3.6/src/feature/sift.cc Examining data/colmap-3.6+really3.6/src/feature/sift.h Examining data/colmap-3.6+really3.6/src/feature/sift_test.cc Examining data/colmap-3.6+really3.6/src/feature/types.cc Examining data/colmap-3.6+really3.6/src/feature/types.h Examining data/colmap-3.6+really3.6/src/feature/types_test.cc Examining data/colmap-3.6+really3.6/src/feature/utils.cc Examining data/colmap-3.6+really3.6/src/feature/utils.h Examining data/colmap-3.6+really3.6/src/feature/utils_test.cc Examining data/colmap-3.6+really3.6/src/mvs/consistency_graph.cc Examining data/colmap-3.6+really3.6/src/mvs/consistency_graph.h Examining data/colmap-3.6+really3.6/src/mvs/consistency_graph_test.cc Examining data/colmap-3.6+really3.6/src/mvs/cuda_array_wrapper.h Examining data/colmap-3.6+really3.6/src/mvs/cuda_flip.h Examining data/colmap-3.6+really3.6/src/mvs/cuda_rotate.h Examining data/colmap-3.6+really3.6/src/mvs/cuda_transpose.h Examining data/colmap-3.6+really3.6/src/mvs/depth_map.cc Examining data/colmap-3.6+really3.6/src/mvs/depth_map.h Examining data/colmap-3.6+really3.6/src/mvs/depth_map_test.cc Examining data/colmap-3.6+really3.6/src/mvs/fusion.cc Examining data/colmap-3.6+really3.6/src/mvs/fusion.h Examining data/colmap-3.6+really3.6/src/mvs/gpu_mat.h Examining data/colmap-3.6+really3.6/src/mvs/gpu_mat_prng.h Examining data/colmap-3.6+really3.6/src/mvs/gpu_mat_ref_image.h Examining data/colmap-3.6+really3.6/src/mvs/image.cc Examining data/colmap-3.6+really3.6/src/mvs/image.h Examining data/colmap-3.6+really3.6/src/mvs/mat.h Examining data/colmap-3.6+really3.6/src/mvs/mat_test.cc Examining data/colmap-3.6+really3.6/src/mvs/meshing.cc Examining data/colmap-3.6+really3.6/src/mvs/meshing.h Examining data/colmap-3.6+really3.6/src/mvs/model.cc Examining data/colmap-3.6+really3.6/src/mvs/model.h Examining data/colmap-3.6+really3.6/src/mvs/normal_map.cc Examining data/colmap-3.6+really3.6/src/mvs/normal_map.h Examining data/colmap-3.6+really3.6/src/mvs/normal_map_test.cc Examining data/colmap-3.6+really3.6/src/mvs/patch_match.cc Examining data/colmap-3.6+really3.6/src/mvs/patch_match.h Examining data/colmap-3.6+really3.6/src/mvs/patch_match_cuda.h Examining data/colmap-3.6+really3.6/src/mvs/workspace.cc Examining data/colmap-3.6+really3.6/src/mvs/workspace.h Examining data/colmap-3.6+really3.6/src/optim/bundle_adjustment.cc Examining data/colmap-3.6+really3.6/src/optim/bundle_adjustment.h Examining data/colmap-3.6+really3.6/src/optim/bundle_adjustment_test.cc Examining data/colmap-3.6+really3.6/src/optim/combination_sampler.cc Examining data/colmap-3.6+really3.6/src/optim/combination_sampler.h Examining data/colmap-3.6+really3.6/src/optim/combination_sampler_test.cc Examining data/colmap-3.6+really3.6/src/optim/least_absolute_deviations.cc Examining data/colmap-3.6+really3.6/src/optim/least_absolute_deviations.h Examining data/colmap-3.6+really3.6/src/optim/least_absolute_deviations_test.cc Examining data/colmap-3.6+really3.6/src/optim/loransac.h Examining data/colmap-3.6+really3.6/src/optim/loransac_test.cc Examining data/colmap-3.6+really3.6/src/optim/progressive_sampler.cc Examining data/colmap-3.6+really3.6/src/optim/progressive_sampler.h Examining data/colmap-3.6+really3.6/src/optim/progressive_sampler_test.cc Examining data/colmap-3.6+really3.6/src/optim/random_sampler.cc Examining data/colmap-3.6+really3.6/src/optim/random_sampler.h Examining data/colmap-3.6+really3.6/src/optim/random_sampler_test.cc Examining data/colmap-3.6+really3.6/src/optim/ransac.h Examining data/colmap-3.6+really3.6/src/optim/ransac_test.cc Examining data/colmap-3.6+really3.6/src/optim/sampler.h Examining data/colmap-3.6+really3.6/src/optim/sprt.cc Examining data/colmap-3.6+really3.6/src/optim/sprt.h Examining data/colmap-3.6+really3.6/src/optim/support_measurement.cc Examining data/colmap-3.6+really3.6/src/optim/support_measurement.h Examining data/colmap-3.6+really3.6/src/optim/support_measurement_test.cc Examining data/colmap-3.6+really3.6/src/retrieval/geometry.cc Examining data/colmap-3.6+really3.6/src/retrieval/geometry.h Examining data/colmap-3.6+really3.6/src/retrieval/geometry_test.cc Examining data/colmap-3.6+really3.6/src/retrieval/inverted_file.h Examining data/colmap-3.6+really3.6/src/retrieval/inverted_file_entry.h Examining data/colmap-3.6+really3.6/src/retrieval/inverted_file_entry_test.cc Examining data/colmap-3.6+really3.6/src/retrieval/inverted_index.h Examining data/colmap-3.6+really3.6/src/retrieval/utils.h Examining data/colmap-3.6+really3.6/src/retrieval/visual_index.h Examining data/colmap-3.6+really3.6/src/retrieval/visual_index_test.cc Examining data/colmap-3.6+really3.6/src/retrieval/vote_and_verify.cc Examining data/colmap-3.6+really3.6/src/retrieval/vote_and_verify.h Examining data/colmap-3.6+really3.6/src/sfm/incremental_mapper.cc Examining data/colmap-3.6+really3.6/src/sfm/incremental_mapper.h Examining data/colmap-3.6+really3.6/src/sfm/incremental_triangulator.cc Examining data/colmap-3.6+really3.6/src/sfm/incremental_triangulator.h Examining data/colmap-3.6+really3.6/src/tools/example.cc Examining data/colmap-3.6+really3.6/src/ui/automatic_reconstruction_widget.cc Examining data/colmap-3.6+really3.6/src/ui/automatic_reconstruction_widget.h Examining data/colmap-3.6+really3.6/src/ui/bundle_adjustment_widget.cc Examining data/colmap-3.6+really3.6/src/ui/bundle_adjustment_widget.h Examining data/colmap-3.6+really3.6/src/ui/colormaps.cc Examining data/colmap-3.6+really3.6/src/ui/colormaps.h Examining data/colmap-3.6+really3.6/src/ui/database_management_widget.cc Examining data/colmap-3.6+really3.6/src/ui/database_management_widget.h Examining data/colmap-3.6+really3.6/src/ui/dense_reconstruction_widget.cc Examining data/colmap-3.6+really3.6/src/ui/dense_reconstruction_widget.h Examining data/colmap-3.6+really3.6/src/ui/feature_extraction_widget.cc Examining data/colmap-3.6+really3.6/src/ui/feature_extraction_widget.h Examining data/colmap-3.6+really3.6/src/ui/feature_matching_widget.cc Examining data/colmap-3.6+really3.6/src/ui/feature_matching_widget.h Examining data/colmap-3.6+really3.6/src/ui/image_viewer_widget.cc Examining data/colmap-3.6+really3.6/src/ui/image_viewer_widget.h Examining data/colmap-3.6+really3.6/src/ui/license_widget.cc Examining data/colmap-3.6+really3.6/src/ui/license_widget.h Examining data/colmap-3.6+really3.6/src/ui/line_painter.cc Examining data/colmap-3.6+really3.6/src/ui/line_painter.h Examining data/colmap-3.6+really3.6/src/ui/log_widget.cc Examining data/colmap-3.6+really3.6/src/ui/log_widget.h Examining data/colmap-3.6+really3.6/src/ui/main_window.cc Examining data/colmap-3.6+really3.6/src/ui/main_window.h Examining data/colmap-3.6+really3.6/src/ui/match_matrix_widget.cc Examining data/colmap-3.6+really3.6/src/ui/match_matrix_widget.h Examining data/colmap-3.6+really3.6/src/ui/model_viewer_widget.cc Examining data/colmap-3.6+really3.6/src/ui/model_viewer_widget.h Examining data/colmap-3.6+really3.6/src/ui/movie_grabber_widget.cc Examining data/colmap-3.6+really3.6/src/ui/movie_grabber_widget.h Examining data/colmap-3.6+really3.6/src/ui/options_widget.cc Examining data/colmap-3.6+really3.6/src/ui/options_widget.h Examining data/colmap-3.6+really3.6/src/ui/point_painter.cc Examining data/colmap-3.6+really3.6/src/ui/point_painter.h Examining data/colmap-3.6+really3.6/src/ui/point_viewer_widget.cc Examining data/colmap-3.6+really3.6/src/ui/point_viewer_widget.h Examining data/colmap-3.6+really3.6/src/ui/project_widget.cc Examining data/colmap-3.6+really3.6/src/ui/project_widget.h Examining data/colmap-3.6+really3.6/src/ui/qt_utils.cc Examining data/colmap-3.6+really3.6/src/ui/qt_utils.h Examining data/colmap-3.6+really3.6/src/ui/reconstruction_manager_widget.cc Examining data/colmap-3.6+really3.6/src/ui/reconstruction_manager_widget.h Examining data/colmap-3.6+really3.6/src/ui/reconstruction_options_widget.cc Examining data/colmap-3.6+really3.6/src/ui/reconstruction_options_widget.h Examining data/colmap-3.6+really3.6/src/ui/reconstruction_stats_widget.cc Examining data/colmap-3.6+really3.6/src/ui/reconstruction_stats_widget.h Examining data/colmap-3.6+really3.6/src/ui/render_options.cc Examining data/colmap-3.6+really3.6/src/ui/render_options.h Examining data/colmap-3.6+really3.6/src/ui/render_options_widget.cc Examining data/colmap-3.6+really3.6/src/ui/render_options_widget.h Examining data/colmap-3.6+really3.6/src/ui/thread_control_widget.cc Examining data/colmap-3.6+really3.6/src/ui/thread_control_widget.h Examining data/colmap-3.6+really3.6/src/ui/triangle_painter.cc Examining data/colmap-3.6+really3.6/src/ui/triangle_painter.h Examining data/colmap-3.6+really3.6/src/ui/undistortion_widget.cc Examining data/colmap-3.6+really3.6/src/ui/undistortion_widget.h Examining data/colmap-3.6+really3.6/src/util/alignment.h Examining data/colmap-3.6+really3.6/src/util/bitmap.cc Examining data/colmap-3.6+really3.6/src/util/bitmap.h Examining data/colmap-3.6+really3.6/src/util/bitmap_test.cc Examining data/colmap-3.6+really3.6/src/util/cache.h Examining data/colmap-3.6+really3.6/src/util/cache_test.cc Examining data/colmap-3.6+really3.6/src/util/camera_specs.cc Examining data/colmap-3.6+really3.6/src/util/camera_specs.h Examining data/colmap-3.6+really3.6/src/util/cuda.cc Examining data/colmap-3.6+really3.6/src/util/cuda.h Examining data/colmap-3.6+really3.6/src/util/cudacc.cc Examining data/colmap-3.6+really3.6/src/util/cudacc.h Examining data/colmap-3.6+really3.6/src/util/endian.h Examining data/colmap-3.6+really3.6/src/util/endian_test.cc Examining data/colmap-3.6+really3.6/src/util/logging.cc Examining data/colmap-3.6+really3.6/src/util/logging.h Examining data/colmap-3.6+really3.6/src/util/math.cc Examining data/colmap-3.6+really3.6/src/util/math.h Examining data/colmap-3.6+really3.6/src/util/math_test.cc Examining data/colmap-3.6+really3.6/src/util/matrix.h Examining data/colmap-3.6+really3.6/src/util/matrix_test.cc Examining data/colmap-3.6+really3.6/src/util/misc.cc Examining data/colmap-3.6+really3.6/src/util/misc.h Examining data/colmap-3.6+really3.6/src/util/misc_test.cc Examining data/colmap-3.6+really3.6/src/util/opengl_utils.cc Examining data/colmap-3.6+really3.6/src/util/opengl_utils.h Examining data/colmap-3.6+really3.6/src/util/opengl_utils_test.cc Examining data/colmap-3.6+really3.6/src/util/option_manager.cc Examining data/colmap-3.6+really3.6/src/util/option_manager.h Examining data/colmap-3.6+really3.6/src/util/ply.cc Examining data/colmap-3.6+really3.6/src/util/ply.h Examining data/colmap-3.6+really3.6/src/util/random.cc Examining data/colmap-3.6+really3.6/src/util/random.h Examining data/colmap-3.6+really3.6/src/util/random_test.cc Examining data/colmap-3.6+really3.6/src/util/sqlite3_utils.h Examining data/colmap-3.6+really3.6/src/util/string.cc Examining data/colmap-3.6+really3.6/src/util/string.h Examining data/colmap-3.6+really3.6/src/util/string_test.cc Examining data/colmap-3.6+really3.6/src/util/testing.h Examining data/colmap-3.6+really3.6/src/util/threading.cc Examining data/colmap-3.6+really3.6/src/util/threading.h Examining data/colmap-3.6+really3.6/src/util/threading_test.cc Examining data/colmap-3.6+really3.6/src/util/timer.cc Examining data/colmap-3.6+really3.6/src/util/timer.h Examining data/colmap-3.6+really3.6/src/util/timer_test.cc Examining data/colmap-3.6+really3.6/src/util/types.h Examining data/colmap-3.6+really3.6/src/util/version.cc FINAL RESULTS: data/colmap-3.6+really3.6/lib/SQLite/shell.c:2197:11: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # ifndef chmod data/colmap-3.6+really3.6/lib/SQLite/shell.c:2198:13: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # define chmod _chmod data/colmap-3.6+really3.6/lib/SQLite/shell.c:2468:54: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. || ((sStat.st_mode&0777)!=(mode&0777) && 0!=chmod(zFile, mode&0777)) data/colmap-3.6+really3.6/lib/SQLite/shell.c:2488:28: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if( rc==0 && mode && chmod(zFile, mode & 0777) ){ data/colmap-3.6+really3.6/lib/SQLite/shell.c:2863:15: [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. n = readlink(pCur->zPath, aBuf, nBuf); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:33987:42: [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. { "readlink", (sqlite3_syscall_ptr)readlink, 0 }, data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:353:2: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(_debug_path, _S_IREAD | _S_IWRITE); data/colmap-3.6+really3.6/lib/FLANN/algorithms/hierarchical_clustering_index.h:346: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/algorithms/hierarchical_clustering_index.h:420: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_index.h:347: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_single_index.h:315:38: [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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/algorithms/kdtree_single_index.h:331:38: [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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/algorithms/kmeans_index.h:365: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/algorithms/kmeans_index.h:448: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/util/dynamic_bitset.h:151: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/util/logger.h:76:19: [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. int ret = vfprintf(stream, fmt, arglist); data/colmap-3.6+really3.6/lib/FLANN/util/lsh_table.h:325: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/util/matrix.h:91: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/util/saving.h:58: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(h.signature, FLANN_SIGNATURE_); data/colmap-3.6+really3.6/lib/FLANN/util/saving.h:60: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(h.version, FLANN_VERSION_); data/colmap-3.6+really3.6/lib/FLANN/util/saving.h:79: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. friend struct serialization::access; data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:29:8: [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. struct access data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:42:5: [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::serialize(ar,type); data/colmap-3.6+really3.6/lib/Graclus/metisLib/macros.h:133: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. printf msg ; \ data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:104:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(out1, f_str, argp); data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:107:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out2, "Error! %s", out1); data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:109:3: [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(stdout, out2); data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp:40: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). #define strcpy strcpy_s data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp:41:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sprintf sprintf_s data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp:169:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filenamebuf, __stat_filename); // if filename has extension, use data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp:172:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filenamebuf, "%s%s%s%s%s%s%s%s%s.%s", __stat_filename, data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp:351:9: [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. #define sscanf sscanf_s data/colmap-3.6+really3.6/lib/PBA/util.h:187:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(listpath, name); data/colmap-3.6+really3.6/lib/PBA/util.h:273:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(listpath, filename); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:45:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(this->name,name); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:110:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(value,argv[0]); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:118:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str,"%s",value); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:147:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(values[i],argv[i]); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:159:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp,"%s ",values[i]); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:172:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fileNameCopy,fileName); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:179:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ext,temp); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:192:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fileNameCopy,fileName); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:198:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name,temp); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:252:8: [4] (buffer) fscanf: 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. while(fscanf(fp," %s ",temp)==1){cnt++;} data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:265:8: [4] (buffer) fscanf: 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. while(fscanf(fp," %s ",temp)==1){ data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:274:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(names[cnt],temp); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:49: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). if( fileName ) strcpy( _fileName , fileName ) , tempFile = false , _fp = fopen( _fileName , "w+b" ); data/colmap-3.6+really3.6/lib/PoissonRecon/MemoryUsage.h:104:11: [4] (buffer) fscanf: 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. int n = fscanf(f, "%d %s %c %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu %ld %ld %ld %ld %d %ld %llu %lu %ld %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu" data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:255:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, filename); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:875:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, filename); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:74:3: [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( fp , format , args ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:82:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf( format , args ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:93:3: [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( fp , format , args ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:101:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf( format , args ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:108:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( str , format , args ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:296:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if( In.set ) sprintf(comments[commentNum++],"\t--%s %s" , In.name , In.value ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:297:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if( Out.set ) sprintf(comments[commentNum++],"\t--%s %s" , Out.name , Out.value ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:298:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if( Trim.set ) sprintf(comments[commentNum++],"\t--%s %f" , Trim.name , Trim.value ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:299:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if( Smooth.set ) sprintf(comments[commentNum++],"\t--%s %d" , Smooth.name , Smooth.value ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:300:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if( IslandAreaRatio.set ) sprintf(comments[commentNum++],"\t--%s %f" , IslandAreaRatio.name , IslandAreaRatio.value ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:301:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if( PolygonMesh.set ) sprintf(comments[commentNum++],"\t--%s" , PolygonMesh.name ); data/colmap-3.6+really3.6/lib/SQLite/shell.c:164:11: [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. # ifndef access data/colmap-3.6+really3.6/lib/SQLite/shell.c:165:12: [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. # define access(f,m) _access((f),(m)) data/colmap-3.6+really3.6/lib/SQLite/shell.c:173:10: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/colmap-3.6+really3.6/lib/SQLite/shell.c:174:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen _popen data/colmap-3.6+really3.6/lib/SQLite/shell.c:185:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern FILE *popen(const char*,const char*); data/colmap-3.6+really3.6/lib/SQLite/shell.c:473: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(out, zFormat, ap); data/colmap-3.6+really3.6/lib/SQLite/shell.c:478:22: [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 utf8_printf fprintf data/colmap-3.6+really3.6/lib/SQLite/shell.c:486:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define raw_printf fprintf data/colmap-3.6+really3.6/lib/SQLite/shell.c:10016:8: [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. rc = system(zCmd); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13607:7: [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(zNewDb,0)==0 ){ data/colmap-3.6+really3.6/lib/SQLite/shell.c:13652:11: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if( system(zCmd) ){ data/colmap-3.6+really3.6/lib/SQLite/shell.c:16472:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. sCtx.in = popen(sCtx.zFile+1, "r"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17079:16: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. p->out = popen(zFile + 1, "w"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17963:9: [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. x = system(zCmd); data/colmap-3.6+really3.6/lib/SQLite/shell.c:19298:7: [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(data.zDbFilename, 0)==0 ){ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:33857: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. { "access", (sqlite3_syscall_ptr)access, 0 }, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:51737:28: [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 sqlite3DebugPrintf printf data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:64368:42: [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(X) if(sqlite3BtreeTrace){printf X;fflush(stdout);} data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:79399:3: [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(pOut, zFormat1, pc, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:85591:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(p->flags & MEM_Zero ? " NULL-nochng" : " NULL"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118723:14: [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. FUNCTION(printf, -1, 0, 0, printfFunc ), data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191734:35: [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 GEODEBUG(X) if(geo_debug)printf X data/colmap-3.6+really3.6/lib/SiftGPU/GLTexImage.cpp:1128:5: [4] (buffer) fscanf: 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(fscanf(file, "%s %d %d %d", buf, &width, &height, &cn )<4 || cn > 255 || width < 0 || height < 0) data/colmap-3.6+really3.6/lib/SiftGPU/GlobalUtil.cpp:201:16: [4] (buffer) scanf: 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 the scanf format is influenceable by an attacker, it's exploitable. scanf(argv[++i], "%d", &device) ; data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:211:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_imgpath, _list->at(index).data()); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:265:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_imgpath, imgpath); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:663:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(title, view_titles[_view]); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:930: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(_imgpath, param); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:944: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(_outpath, param); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:1186:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_imgpath, _list->at(0).data()); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:1187:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename, imlist); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:345:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_debug_path, imagepath); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:370:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(p, namet, marker); data/colmap-3.6+really3.6/lib/VLFeat/generic.c:1243:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(state->lastErrorMessage, errorMessage, args) ; data/colmap-3.6+really3.6/lib/VLFeat/generic.c:1245:5: [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(state->lastErrorMessage, data/colmap-3.6+really3.6/lib/VLFeat/generic.c:1551:25: [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. state->printf_func = printf ; data/colmap-3.6+really3.6/lib/VLFeat/host.c:549:1: [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(compilerString, 1024, data/colmap-3.6+really3.6/lib/VLFeat/host.h:316: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 _snprintf data/colmap-3.6+really3.6/lib/VLFeat/host.h:316:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/colmap-3.6+really3.6/lib/VLFeat/host.h:337: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 _snprintf data/colmap-3.6+really3.6/lib/VLFeat/host.h:337:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/colmap-3.6+really3.6/src/ui/main_window.cc:1250:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString().sprintf("<span style='font-weight:normal'><b>%s</b><br />" data/colmap-3.6+really3.6/src/ui/main_window.cc:1287:45: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. statusbar_timer_label_->setText(QString().sprintf( data/colmap-3.6+really3.6/src/ui/model_viewer_widget.cc:297:45: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. statusbar_status_label->setText(QString().sprintf( data/colmap-3.6+really3.6/src/ui/movie_grabber_widget.cc:257:31: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. "frame" + QString().sprintf("%06zu", frame_number) + ".png")); data/colmap-3.6+really3.6/src/ui/reconstruction_manager_widget.cc:62:36: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. const QString item = QString().sprintf( data/colmap-3.6+really3.6/src/util/string.cc:84:16: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int result = vsnprintf(fixed_buffer, kFixedBufferSize, format, backup_ap); data/colmap-3.6+really3.6/src/util/string.cc:98:14: [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. result = vsnprintf(nullptr, 0, format, backup_ap); data/colmap-3.6+really3.6/src/util/string.cc:116:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(variable_buffer.get(), variable_buffer_size, format, backup_ap); data/colmap-3.6+really3.6/lib/FLANN/util/random.h:50:5: [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. srand(seed); data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:653:5: [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. srand(4321); data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:656:5: [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. srand(seed); data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/wkkm_boundary_only.c:754:3: [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. srand(time(NULL)); data/colmap-3.6+really3.6/lib/Graclus/multilevelLib/wkkm_experiment.c:773:3: [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. srand(time(NULL)); data/colmap-3.6+really3.6/lib/PBA/util.h:421:8: [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. std::srand((unsigned int)time(NULL)); data/colmap-3.6+really3.6/lib/PBA/util.h:446:8: [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. std::srand((unsigned int)time(NULL)); data/colmap-3.6+really3.6/lib/SQLite/shell.c:335:28: [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 hinstLib = LoadLibrary(TEXT("Kernel32.dll")); data/colmap-3.6+really3.6/lib/SQLite/shell.c:9966:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. zEditor = getenv("VISUAL"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13952:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. zTemp = getenv("TEMP"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13953:28: [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. if( zTemp==0 ) zTemp = getenv("TMP"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18804:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home_dir = getenv("USERPROFILE"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18809:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home_dir = getenv("HOME"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18816:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. zDrive = getenv("HOMEDRIVE"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18817:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. zPath = getenv("HOMEPATH"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:19056:7: [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. if( getenv("SQLITE_DEBUG_BREAK") ){ data/colmap-3.6+really3.6/lib/SQLite/shell.c:19505: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. zHistory = getenv("SQLITE_HISTORY"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:27005:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&winMutex_staticMutexes[i].mutex); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:27099:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&p->mutex); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:27165:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&p->mutex); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:36464: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. lk = random(); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39179:32: [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. if( !azDirs[0] ) azDirs[0] = getenv("SQLITE_TMPDIR"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39180:32: [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. if( !azDirs[1] ) azDirs[1] = getenv("TMPDIR"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39645: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. char *envforce = getenv("SQLITE_FORCE_PROXY_LOCKING"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:46380:34: [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. if( !azDirs[0] ) azDirs[0] = getenv("SQLITE_TMPDIR"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:46381:34: [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. if( !azDirs[1] ) azDirs[1] = getenv("TMPDIR"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:46382:34: [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. if( !azDirs[2] ) azDirs[2] = getenv("TMP"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:46383:34: [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. if( !azDirs[3] ) azDirs[3] = getenv("TEMP"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:46384:34: [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. if( !azDirs[4] ) azDirs[4] = getenv("USERPROFILE"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118735:15: [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. VFUNCTION(random, 0, 0, 0, randomFunc ), data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:104:2: [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. srand((unsigned int)time(NULL)); data/colmap-3.6+really3.6/lib/VLFeat/generic.c:963:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&vl_get_state()->mutex) ; data/colmap-3.6+really3.6/lib/VLFeat/generic.c:1535:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&state->mutex) ; data/colmap-3.6+really3.6/lib/VLFeat/getopt_long.c:74:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long(int argc, char *const argv[], data/colmap-3.6+really3.6/lib/VLFeat/getopt_long.h:38:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. VL_EXPORT int getopt_long(int argc, char * const argv[], data/colmap-3.6+really3.6/src/util/random.cc:49:3: [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. srand(seed); data/colmap-3.6+really3.6/lib/FLANN/algorithms/dist.h:396:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char table[256] = { data/colmap-3.6+really3.6/lib/FLANN/algorithms/dist.h:515: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(&a_final, a2, modulo); data/colmap-3.6+really3.6/lib/FLANN/algorithms/dist.h:516: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(&b_final, b2, modulo); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:148: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(&val16, memPtr, 2); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:169: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(memPtr, &value, 2); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:182: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(&val32, memPtr, 4); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:189: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(&val64, memPtr, 8); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:202:59: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static void LZ4_copy4(void* dstPtr, const void* srcPtr) { memcpy(dstPtr, srcPtr, 4); } data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:204:59: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static void LZ4_copy8(void* dstPtr, const void* srcPtr) { memcpy(dstPtr, srcPtr, 8); } data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:648: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, anchor, lastRun); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:884: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, anchor, lastRunSize); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:1186: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(op, ip, length); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:1228: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(op, dictEnd - copySize, copySize); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4.c:1239: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(op, lowPrefix, copySize); data/colmap-3.6+really3.6/lib/FLANN/ext/lz4hc.c:529: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, anchor, iend - anchor); data/colmap-3.6+really3.6/lib/FLANN/flann.hpp:179:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fout = fopen(filename.c_str(), "wb"); data/colmap-3.6+really3.6/lib/FLANN/flann.hpp:373:21: [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* fin = fopen(filename.c_str(), "rb"); data/colmap-3.6+really3.6/lib/FLANN/mpi/flann_mpi_server.cpp:15:71: [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). flann::mpi::Server<flann::L2<float> > server(argv[1], argv[2], std::atoi(argv[3]), data/colmap-3.6+really3.6/lib/FLANN/util/logger.h:66:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). stream = fopen(name,"w"); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:16: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 signature[24]; data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:17: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 version[16]; data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:435: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(compressed_buffer_, buffer_, headSz); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:452: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(compressed_buffer_, &compSz, headSz); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:484:19: [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). stream_ = fopen(filename, "wb"); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:513: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_+offset_, &val, sizeof(val)); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:532: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, BLOCK_BYTES); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:543: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_+offset_, ptr, size); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h: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(buffer_, compBuffer, headSz); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:670: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_, head, headSz); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:751:19: [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). stream_ = fopen(filename, "rb"); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:796: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(ptr, ptr_, BLOCK_BYTES); data/colmap-3.6+really3.6/lib/FLANN/util/serialization.h:806: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, ptr_, size); data/colmap-3.6+really3.6/lib/Graclus/metisLib/ccgraph.c:65: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(auxadj, adjncy, iend*sizeof(idxtype)); data/colmap-3.6+really3.6/lib/Graclus/metisLib/ccgraph.c:235: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(auxadj, adjncy, iend*sizeof(idxtype)); data/colmap-3.6+really3.6/lib/Graclus/metisLib/ccgraph.c:362: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(auxadj, adjncy, iend*sizeof(idxtype)); data/colmap-3.6+really3.6/lib/Graclus/metisLib/macros.h:38:33: [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 scopy(n, a, b) (float *)memcpy((void *)(b), (void *)(a), sizeof(float)*(n)) data/colmap-3.6+really3.6/lib/Graclus/metisLib/macros.h:39:37: [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 idxcopy(n, a, b) (idxtype *)memcpy((void *)(b), (void *)(a), sizeof(idxtype)*(n)) data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:101: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 out1[256], out2[256]; data/colmap-3.6+really3.6/lib/PBA/ConfigBA.cpp: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 filenamebuf[1024]; data/colmap-3.6+really3.6/lib/PBA/util.h:186: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 listpath[1024], filepath[1024]; data/colmap-3.6+really3.6/lib/PBA/util.h:189:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ext, "-list.txt\0"); data/colmap-3.6+really3.6/lib/PBA/util.h:199: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(slash, "image_list.txt"); data/colmap-3.6+really3.6/lib/PBA/util.h:200: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). listin.open(listpath); data/colmap-3.6+really3.6/lib/PBA/util.h:272: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 listpath[1024]; data/colmap-3.6+really3.6/lib/PBA/util.h:276:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ext, "-list.txt\0"); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:68:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). value=atoi(argv[0]); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:76:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%d",value); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:94:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%f",value); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:246: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 temp[500]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:249:5: [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(fileName,"r"); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:258:5: [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(fileName,"r"); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:49:75: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( fileName ) strcpy( _fileName , fileName ) , tempFile = false , _fp = fopen( _fileName , "w+b" ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:52:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( _fileName , "PR_XXXXXX" ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:55: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). _fp = fopen( _fileName , "w+b" ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:57:17: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _fp = fdopen( mkstemp( _fileName ) , "w+b" ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:85:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( _buffer+_bufferIndex , _data , sz ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:94:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( _buffer+_bufferIndex , _data , size ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:107:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( _data , _buffer+_bufferIndex , sz ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:118:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( _data , _buffer+_bufferIndex , size ); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.h:346:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *_buffer , _fileName[1024]; data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.h:358: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 pointFileName[1024] , polygonFileName[1024]; data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.h:95: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 unsigned char GetIndex( const float values[Square::CORNERS] , float iso ); data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.h:96: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 unsigned char GetIndex( const double values[Square::CORNERS] , double iso ); data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.h:111: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 unsigned char GetFaceIndex( const double values[Cube::CORNERS] , double iso , int faceIndex ); data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.h:114: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 unsigned char GetFaceIndex( const float values[Cube::CORNERS] , float iso , int faceIndex ); data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.h:128: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 unsigned char GetIndex( const double values[Cube::CORNERS] , double iso ); data/colmap-3.6+really3.6/lib/PoissonRecon/MarchingCubes.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. static unsigned char GetIndex( const float values[Cube::CORNERS] , float iso ); data/colmap-3.6+really3.6/lib/PoissonRecon/MemoryUsage.h:92: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). FILE* f = fopen("/proc/self/stat","rb"); data/colmap-3.6+really3.6/lib/PoissonRecon/MemoryUsage.h:98: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 s[1024]; data/colmap-3.6+really3.6/lib/PoissonRecon/Ply.h:406:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char color[3]; data/colmap-3.6+really3.6/lib/PoissonRecon/Ply.h:412:60: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. PlyColorVertex( const Point3D< Real >& p , const unsigned char c[3] ) { point = p , color[0] = c[0] , color[1] = c[1] , color[2] = c[2]; } data/colmap-3.6+really3.6/lib/PoissonRecon/Ply.h:475:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char color[3]; data/colmap-3.6+really3.6/lib/PoissonRecon/Ply.h:482:68: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. PlyColorAndValueVertex( const Point3D< Real >& p , const unsigned char c[3] , Real v) { point = p , color[0] = c[0] , color[1] = c[1] , color[2] = c[2] , value = v; } data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:86: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 byte_values[sizeof(int)]; data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:258:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (name, ".ply"); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:262:7: [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 (name, "wb"); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:878:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (name, ".ply"); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:882: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). fp = fopen (name, "rb"); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:1865: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. static char str[BIG_STRING]; data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:1866: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. static char str_copy[BIG_STRING]; data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:2084: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. swap_bytes((char *)value, ply_type_size[type]); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:2339: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 c[8]; data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:2352: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. swap_bytes((char *)ptr, ply_type_size[type]); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:2443:16: [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). *int_val = atoi (word); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:2565:16: [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). elem->num = atoi (words[2]); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:71:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen( outputFile , "a" ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:90:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen( outputFile , "a" ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:321:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen( XForm.value , "r" ); data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:342: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 str[1024]; data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:457:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fp = fopen( VoxelGrid.value , "wb" ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:295:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( comments[commentNum++] , "Running Surface Trimmer (V5)" ); data/colmap-3.6+really3.6/lib/PoissonRecon/SurfaceTrimmer.cpp:357:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( comments[commentNum++] , "#Trimmed In: %9.1f (s)" , Time()-t ); data/colmap-3.6+really3.6/lib/SQLite/shell.c:454: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 mainPrompt[20]; /* First line prompt. default: "sqlite> "*/ data/colmap-3.6+really3.6/lib/SQLite/shell.c:455: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 continuePrompt[20]; /* Continuation prompt. default: " ...> " */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:574: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 zBuf[1000]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:690: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(zLine, zTrans, nTrans); data/colmap-3.6+really3.6/lib/SQLite/shell.c:849: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->z+p->n, zAppend, nAppend); data/colmap-3.6+really3.6/lib/SQLite/shell.c:1138: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 d_name[NAME_MAX + 1]; /* Name within the directory. */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:1210:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char value[32768]; /* Maximum length, per MSDN */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:1449: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 x[1600]; /* ... or 1600 bytes */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:1917: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 zBuf[50]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:2020:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char x[9]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:2022: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(&u, &v, 8); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2034:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char x[9]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:2036: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(&u, &r, 8); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2241:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in = fopen(zName, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2477:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *out = fopen(zFile, "wb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2615: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 z[16]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:2857: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 aStatic[64]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:3818: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 a[APND_MARK_SIZE]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:3819: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(a, APND_MARK_PREFIX, APND_MARK_PREFIX_SZ); data/colmap-3.6+really3.6/lib/SQLite/shell.c:3999: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 zHdr[16]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:4015: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 a[APND_MARK_SIZE]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:4751: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(pNew->zFile, zFile, nFile); data/colmap-3.6+really3.6/lib/SQLite/shell.c:5226: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(pNew->aExtra, &aRead[nFile], nExtra); data/colmap-3.6+really3.6/lib/SQLite/shell.c:5249:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pNew->aData, &aBlob[pNew->iDataOff], pNew->cds.szCompressed); data/colmap-3.6+really3.6/lib/SQLite/shell.c:5651:19: [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). pCsr->pFile = fopen(zFile, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:5741: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(a, pCds->zFile, (int)pCds->nFile); data/colmap-3.6+really3.6/lib/SQLite/shell.c:5786: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 zTemplate[11] = "-rwxrwxrwx"; data/colmap-3.6+really3.6/lib/SQLite/shell.c:5840:20: [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). pTab->pWriteFd = fopen(pTab->zFile, "ab+"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6150: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(a, pCDS->zFile, pCDS->nFile); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6155: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(a, pEntry->aExtra, n); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6460: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->body.a[p->body.n], aData, nData); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6508: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(aZip, p->body.a, p->body.n); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6509: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(&aZip[p->body.n], p->cds.a, p->cds.n); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7105: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(pEntry->zKey, zKey, nKey); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7108: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(pEntry->zVal, zVal, nVal); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7161: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(pNew->zColl, zColl, nColl+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7591: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(pCsr, zCol, nCopy); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7600: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(pCsr, zCol, nCopy); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7613: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(pNew->zName, zTab, nTab+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7643: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. if( nIn ) memcpy(zRet, zIn, nIn); data/colmap-3.6+really3.6/lib/SQLite/shell.c:7644: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(&zRet[nIn], zAppend, nAppend+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:8361: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(pSlot->z, sqlite3_value_blob(argv[1]), nByte); data/colmap-3.6+really3.6/lib/SQLite/shell.c:8363: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(pSlot->z, sqlite3_value_text(argv[1]), nByte); data/colmap-3.6+really3.6/lib/SQLite/shell.c:8719:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pNew->zSql, z, n+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:9180: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(pPage, pCopy, nCopy); data/colmap-3.6+really3.6/lib/SQLite/shell.c:9420: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(pCsr->pRec, &pCsr->aPage[iOff], nLocal); data/colmap-3.6+really3.6/lib/SQLite/shell.c:9438: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(&pCsr->pRec[nPayload-nRem], &aOvfl[4], nCopy); data/colmap-3.6+really3.6/lib/SQLite/shell.c:9729: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 zText[1]; /* Text to display for this row */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9737: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 zPrefix[100]; /* Graph prefix */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9781: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 zTestcase[30]; /* Name of current test case */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9782: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 colSeparator[20]; /* Column separator character for several modes */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9783: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 rowSeparator[20]; /* Row separator character for MODE_Ascii */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9784: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 colSepPrior[20]; /* Saved column separator */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9785: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 rowSepPrior[20]; /* Saved row separator */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9788: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 nullValue[20]; /* The text to print when a NULL comes back from data/colmap-3.6+really3.6/lib/SQLite/shell.c:9790: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 outfile[FILENAME_MAX]; /* Filename for *out */ data/colmap-3.6+really3.6/lib/SQLite/shell.c:9991:7: [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(zTempFile, bBin ? "wb" : "w"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10022:7: [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(zTempFile, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10079: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->colSepPrior, p->colSeparator, sizeof(p->colSeparator)); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10080: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->rowSepPrior, p->rowSeparator, sizeof(p->rowSeparator)); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10177: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 zBuf1[20], zBuf2[20]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:10399:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *az[4]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:10468: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(pNew->zText, zText, nText+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10513:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&p->sGraph.zPrefix[n], pNext ? "| " : " ", 4); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10844:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[50]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:10847:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ur,&r,sizeof(r)); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10890:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[50]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:10924:21: [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). eqp_append(p, atoi(azArg[0]), atoi(azArg[1]), azArg[3]); data/colmap-3.6+really3.6/lib/SQLite/shell.c:10924:37: [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). eqp_append(p, atoi(azArg[0]), atoi(azArg[1]), azArg[3]); data/colmap-3.6+really3.6/lib/SQLite/shell.c:11098: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(zErrMsg, sqlite3_errmsg(db), nErrMsg); data/colmap-3.6+really3.6/lib/SQLite/shell.c:11109: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 z[200]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:11111:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in = fopen(z, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:11152: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 zLine[200]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:11182: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 z[100]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:11543: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 zNum[30]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12033: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 zStmt[100]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12523:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *in = fopen(zName, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12601: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). FILE *f = fopen(zName, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12604: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 zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12651: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 zLine[1000]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12653: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). in = fopen(p->zDbFilename, "r"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12796: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 zBuf1[20]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12797: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 zBuf2[20]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12825: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(&zOut[iOut], "replace(replace(", 16); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12828: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(&zOut[iOut], "replace(", 8); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12833:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&zOut[iOut], zNL, nNL); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12836:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&zOut[iOut], zCR, nCR); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12845: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(&zOut[iOut], ",'", 2); iOut += 2; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12846: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(&zOut[iOut], zNL, nNL); iOut += nNL; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12847: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(&zOut[iOut], "', char(10))", 12); iOut += 12; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12850: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(&zOut[iOut], ",'", 2); iOut += 2; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12851: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(&zOut[iOut], zCR, nCR); iOut += nCR; data/colmap-3.6+really3.6/lib/SQLite/shell.c:12852: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(&zOut[iOut], "', char(13))", 12); iOut += 12; data/colmap-3.6+really3.6/lib/SQLite/shell.c:13043: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 zBuf[1000]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:13050: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(zBuf, zLine, iStart); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13061: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(zBuf+iStart, zCompletion, nCompletion+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13184: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(zFile, bTextMode ? "w" : "wb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13450: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(zInsert+i, ",?", 2); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13453: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(zInsert+i, ");", 3); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13731: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 aHdr[100]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:13746: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(aHdr, sqlite3_column_blob(pStmt,0), 100); data/colmap-3.6+really3.6/lib/SQLite/shell.c:14805:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *zInsertFmt[2] = { data/colmap-3.6+really3.6/lib/SQLite/shell.c:14832: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 zTemp[50]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:15694: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 *azArg[52]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:16265:17: [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). x = atoi(azArg[2]); data/colmap-3.6+really3.6/lib/SQLite/shell.c:16280:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:16477:17: [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). sCtx.in = fopen(sCtx.zFile, "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:16486:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zSep[2]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:16684:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zLabel[20]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:16748:17: [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). iotrace = fopen(azArg[1], "w"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17284: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). p->in = fopen(azArg[1], "rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17390: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 *new_argv[2], *new_colv[2]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:17420: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 zScNum[30]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:17541: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). out = fopen(azCmd[1], "wb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17703: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 zBuf[200]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:17857:19: [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). iSize = atoi(&z[5]); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18654: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 zPrefix[100]; data/colmap-3.6+really3.6/lib/SQLite/shell.c:18728: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(zLine,";",2); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18741: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(zSql, zLine+i, nLine+1-i); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18746: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(zSql+nSql, zLine, nLine+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18834: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. if( z ) memcpy(z, home_dir, n); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18867:11: [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). p->in = fopen(sqliterc,"rb"); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18968:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->colSeparator,SEP_Column, 2); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18969:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->rowSeparator,SEP_Row, 2); data/colmap-3.6+really3.6/lib/SQLite/shell.c:19104: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(argv[i], z, n+1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:19331: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(data.colSeparator,",",2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:10546: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 hidden[48]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:14125:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(D,S,N) {char*xxd=(char*)(D);const char*xxs=(const char*)(S);\ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:18618: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. typedef unsigned char yDbMask[(SQLITE_MAX_ATTACHED+9)/8]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:20418:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. SQLITE_PRIVATE const unsigned char sqlite3CtypeMap[256] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:21033: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 z[8]; /* Dequoted value for the string */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:22609: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 zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:22629: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 zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:22648: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 zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:22685: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 zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:22872: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 zBuf[20]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:23185: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(zBufOut, &sqlite3Config.iPrngSeed, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:23906: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 zTitle[100]; /* The title text */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24076: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(pBt, &aAddr[1], pHdr->nBacktrace*sizeof(void*)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24085: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(z, mem.zTitle, mem.nTitle); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24152: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(pNew, pPrior, (int)(nByte<pOldHdr->iSize ? nByte : pOldHdr->iSize)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24258: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.zTitle, zTitle, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24282: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). out = fopen(zFilename, "w"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24871:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, pPrior, nOld); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24873:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, pPrior, nBytes); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:24929:11: [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). out = fopen(zFilename, "w"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:25428: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, pPrior, nOld); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:25549:11: [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). out = fopen(zFilename, "w"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:27940: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, p, lookasideMallocSize(db, p)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:27987: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(zNew, z, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:28000: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(zNew, z, (size_t)n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:28340: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[etBUFSIZE]; /* Conversion buffer */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:28667: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+(prefix!=0),"Inf",4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29042:42: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( !isMalloced(p) && p->nChar>0 ) memcpy(zNew, p->zText, p->nChar); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29077: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->zText[p->nChar], z, N); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29096: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->zText[p->nChar-N], z, N); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29118: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(zText, p->zText, p->nChar+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29231: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 zBase[SQLITE_PRINT_BUF_SIZE]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29264: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 zBase[SQLITE_PRINT_BUF_SIZE]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29351: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 zMsg[SQLITE_PRINT_BUF_SIZE*3]; /* Complete log message */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29380: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 zBuf[SQLITE_PRINT_BUF_SIZE*10]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29468: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 zBuf[500]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29512:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zLine[1000]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29543: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 zLine[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29761: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 zBuf[30]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29773: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 zBuf[30]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29812: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 zFlgs[200]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:29846: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 zOp2[16]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30001: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 zBuf[8]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30217: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 s[256]; /* State variables */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30270: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 k[256]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30311:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30318:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30803: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 zBuf[1000]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:30961: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 zBuf[1000]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:31118: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 zBuf[20]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:31900: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(pOut, &u, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:31941: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(pValue, &u, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32364: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(&x,p,4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32368: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(&x,p,4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32372: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(&x,p,4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32381: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,&v,4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32384: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,&x,4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32387: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,&x,4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32661: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(&a, &x, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:32758: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(z, zName, nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:33535: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 aPadding[32]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:33833: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). return open(zFile, flags, mode); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:34438: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(pNew->zCanonicalName, zAbsoluteName, n+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:34640: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 aSemName[MAX_PATHNAME+2]; /* Name of that semaphore */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:34698: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 aErr[80]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:34891: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(&pInode->fileId, &fileId, sizeof(fileId)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:36820: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(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:36824: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(pBuf, &((u8 *)(pFile->pMapRegion))[offset], nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:36939:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oldCntr[4]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:36955: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(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:36959: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(&((u8 *)(pFile->pMapRegion))[offset], pBuf, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:37142: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 zDirname[MAX_PATHNAME+1]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39351: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 zDb[MAX_PATHNAME+1]; /* Database file path */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39375: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(zDb, zPath, nDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39456: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 zTmpname[MAX_PATHNAME+2]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39651:18: [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). useProxy = atoi(envforce)>0; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39858:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(zDel, zIn, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39974: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(zBuf, &t, sizeof(t)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39975: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(&zBuf[sizeof(t)], &randomnessPid, sizeof(randomnessPid)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40318: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[MAXPATHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40496: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 tPath[MAXPATHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40497: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[PROXY_MAXCONCHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40501: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 errmsg[64] = ""; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40590: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 tBuf[PROXY_MAXCONCHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40640: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 readBuf[PROXY_MAXCONCHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40641: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 lockPath[MAXPATHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40697: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(lockPath, &readBuf[PROXY_PATHINDEX], pathLen); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40743: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 writeBuffer[PROXY_MAXCONCHLEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40747: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(&writeBuffer[PROXY_HEADERLEN], myHostID, PROXY_HOSTIDLEN); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40894: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(conchPath, dbPath, len+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40910: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(&conchPath[i+1], "-conch", 7); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40970: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(dbPath, (char *)pFile->lockingContext, len + 1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40989: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 dbPath[MAXPATHLEN+1]; /* Name of the database file */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:42516:41: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). { "MultiByteToWideChar", (SYSCALL)MultiByteToWideChar, 0 }, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:42934: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 zDbgBuf[SQLITE_WIN32_DBG_BUF_SIZE]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:42947: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(zDbgBuf, zBuf, nMin); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:42963: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(zDbgBuf, zBuf, nMin); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:43682: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 zMsg[500]; /* Human readable error text */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:44336: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(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:44342: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(pBuf, &((u8 *)(pFile->pMapRegion))[offset], nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:44414: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(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:44420: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(&((u8 *)(pFile->pMapRegion))[offset], pBuf, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:47899:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( iOfst<p->sz ) memcpy(zBuf, p->aData+iOfst, p->sz - iOfst); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:47902: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(zBuf, p->aData+iOfst, iAmt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:47947: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->aData+iOfst, z, iAmt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:48251:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( pOut ) memcpy(pOut, p->aData, p->sz); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:48281: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(pTo, sqlite3PagerGetData(pPage), szPage); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:48594: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(aiValues, p->u.aHash, sizeof(p->u.aHash)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:48634: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(aiValues, p->u.aHash, sizeof(p->u.aHash)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:52288: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 dbFileVers[16]; /* Changes whenever database file changes */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:52617:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char zRet[1024]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:52721: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 ac[4]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:52740: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 ac[4]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:52926: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 aMagic[8]; /* A buffer to hold the magic header */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:53020: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. static const char zeroHdr[28] = {0}; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:53108: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(zHeader, aJournalMagic, sizeof(aJournalMagic)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:53185: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 aMagic[8]; /* A buffer to hold the magic header */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:54044: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(pData, (u8*)aData, pPager->pageSize); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:55860: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(zHeader, aJournalMagic, sizeof(aJournalMagic)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56429: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(pPtr, &pPager, sizeof(pPager)); pPtr += sizeof(pPager); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56435: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(pPtr, zPathname, nPathname); pPtr += nPathname + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56437: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(pPtr, zUri, nUriByte); pPtr += nUriByte; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56447: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(pPtr, zPathname, nPathname); pPtr += nPathname; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56448: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(pPtr, "-journal",8); pPtr += 8 + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56461: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(pPtr, zPathname, nPathname); pPtr += nPathname; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56462: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(pPtr, "-wal", 4); pPtr += 4 + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56949:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dbFileVers[sizeof(pPager->dbFileVers)]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:57899:54: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void *pCopy = (const void *)&((const char *)zBuf)[24]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:58600:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char zFake[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:60048: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((void*)&aHdr[1], (const void*)&pWal->hdr, sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:60050: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((void*)&aHdr[0], (const void*)&pWal->hdr, sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:60079: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(&aFrame[8], pWal->hdr.aSalt, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:60160: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 zName[15]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:60537: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(&pWal->hdr.aSalt, &aBuf[16], 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:60844: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(aLeft, aTmp, sizeof(aTmp[0])*iOut); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:61160: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(&pWal->hdr.aSalt[1], &salt1, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:61518: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(&pWal->hdr, &h1, sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:61728: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(&pWal->hdr, (void*)walIndexHdr(pWal), sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:62239: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(&pWal->hdr, pSnapshot, sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:62513: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(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:62817: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(&aWalHdr[16], pWal->hdr.aSalt, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:63220: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(pRet, &pWal->hdr, sizeof(WalIndexHdr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:65847: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(&temp[x], &data[x], (cbrk+size) - x); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:65850: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[cbrk], &src[pc], size); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:65907: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(&aData[iAddr], &aData[pc], 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:66684: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 zDbHeader[100]; /* Database header content */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:66746: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(zFullPathname, zFilename, nFilename); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:67638:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, zMagicHeader, sizeof(zMagicHeader)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:69084: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(pPayload, pBuf, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:69087: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(pBuf, pPayload, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:69268:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(aSave, aWrite, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:69272:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(aWrite, aSave, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70353: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(&pPage1->aData[32], &pTrunk->aData[0], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70377: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(&pPage1->aData[32], &pTrunk->aData[0], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70383: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(&pPrevTrunk->aData[0], &pTrunk->aData[0], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70406:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pNewTrunk->aData[0], &pTrunk->aData[0], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70408:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pNewTrunk->aData[8], &pTrunk->aData[12], (k-1)*4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70473: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(&aData[8+closest*4], &aData[4+k*4], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70847: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(pPayload, pSrc, nSrc); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70905: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(pPayload, pSrc, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:70908: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(pPayload, pSrc, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71066: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(pTemp, pCell, sz); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71110: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(&data[idx+4], pCell+4, sz-4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71113: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(&data[idx], pCell, sz); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71295: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(&pTmp[j], &aData[j], usableSize - j); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71318: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(pData, pCell, sz); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71505: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(pTmp, aData, pPg->pBt->usableSize); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71786: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(&aTo[iData], &aFrom[iData], pBt->usableSize-iData); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71787: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(&aTo[iToHdr], &aFrom[iFromHdr], pFrom->cellOffset + 2*pFrom->nCell); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:71985:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aOvflSpace[iOff], apDiv[i], szNew[i]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:72106: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(pTemp, apDiv[i], sz); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:72115: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.apCell[b.nCell], &pOld->aData[8], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:72366: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(&apNew[nNew-1]->aData[8], &pOld->aData[8], 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:72441: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(&pNew->aData[8], pCell, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:72670: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(pChild->aiOvfl, pRoot->aiOvfl, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:72672: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(pChild->apOvfl, pRoot->apOvfl, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:73137: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(newCell, oldCell, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:73161: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(oldCell, newCell, szNew); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:73217:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pCur->pKey, pX->pKey, pX->nKey); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:74470: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 zErr[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:75152: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(zOut, zIn, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:75793: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 zBuf[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:75908: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(pMem->zMalloc, pMem->z, pMem->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:76098: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(pMem, &t, sizeof(t)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:76648: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(pTo, pFrom, MEMCELLSIZE); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:76665: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(pTo, pFrom, MEMCELLSIZE); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:76689: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(pTo, pFrom, sizeof(Mem)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:76763: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(pMem->z, z, nAlloc); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:77641: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(pStr->z, z, n+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:77948:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( p4copy ) memcpy(p4copy, zP4, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:79025: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 zAlt[50]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:79773: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 z[1000]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:80885:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *out = fopen("vdbe_profile.out", "a"); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:80903: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 zHdr[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:81371: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. if( len>0 ) memcpy(buf, pMem->z, len); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:81428: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(&pMem->u.r, &x, sizeof(x)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:83129: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(pNew, pOrig, MEMCELLSIZE); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:84933: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 zBase[100]; /* Initial working space */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:85606: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 zBuf[1000]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:86454: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(pOut, pVar, MEMCELLSIZE); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:86714: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(pOut->z, pIn2->z, pIn2->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:86718: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(&pOut->z[pIn2->n], pIn1->z, pIn1->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:87946: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(pDest->z, zData, len); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:88407: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->zName, zName, nName+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:94221: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->aAlloc, &p->aBuffer[iBuf], nAvail); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:94237:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&p->aAlloc[nByte - nRem], aNext, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:94645: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(pKeyInfo, pCsr->pKeyInfo, szKeyInfo); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:95149: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->aBuffer[p->iBufEnd], &pData[nData-nRem], nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:95533: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(SRVAL(pNew), pVal->z, pVal->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:96376: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(pOut->z, pKey, nKey); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:96494:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *azSchema[2] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:96981: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(zOut, (u8*)pChunk->zChunk + iChunkOffset, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:97079: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((u8*)p->pFirst->zChunk, zBuf, iAmt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:97107: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((u8*)p->endpoint.pChunk->zChunk + iChunkOffset, zWrite, iSpace); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:97637: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(pExpr, pDup, sizeof(*pExpr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:100328:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( pToken->n ) memcpy(pNew->u.zToken, pToken->z, pToken->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:100809: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(zAlloc, p, nNewSize); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:100812: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(zAlloc, p, nSize); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:100830: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(zToken, p->u.zToken, nToken); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:106068: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(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:106703: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(zOut, zSql, nSql); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:106726: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(&zOut[iOff], zReplace, nReplace); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:107649: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->u.aRowid, pData, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:107676: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(pTo->anEq, pFrom->anEq, sizeof(tRowcnt)*p->nCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:107677: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(pTo->anLt, pFrom->anLt, sizeof(tRowcnt)*p->nCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:107678: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(pTo->anDLt, pFrom->anDLt, sizeof(tRowcnt)*p->nCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:108343: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(pStat1->zName, "sqlite_stat1", 13); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:109128: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(pSample->p, sqlite3_column_blob(pStmt, 4), pSample->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:109339: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. zFile = (const char *)sqlite3_value_text(argv[0]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:109340: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. zName = (const char *)sqlite3_value_text(argv[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:109390: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(aNew, db->aDb, sizeof(db->aDb[0])*2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:109518:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *zName = (const char *)sqlite3_value_text(argv[0]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:109523: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 zErr[128]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:110407: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 saveBuf[PARSE_TAIL_SZ]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:110423: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(saveBuf, PARSE_TAIL(pParse), PARSE_TAIL_SZ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:110428: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(PARSE_TAIL(pParse), saveBuf, PARSE_TAIL_SZ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:110689: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(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0])); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:111389: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(z, pName->z, pName->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:111426: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(zType, pType->z, pType->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:111991: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(&zStmt[k], zType, len); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:112011: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(zExtra, pIdx->azColl, sizeof(char*)*pIdx->nColumn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:112014: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(zExtra, pIdx->aiColumn, sizeof(i16)*pIdx->nColumn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:112017: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(zExtra, pIdx->aSortOrder, pIdx->nColumn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:113053: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 zTab[24]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:113341: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(z, pTo->z, pTo->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:113375: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(z, pToCol->a[i].zEName, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:113843: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(pIndex->zName, zName, nName+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:113922: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(zExtra, zColl, nColl); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:114220: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(&a[1], aVal, nCopy*sizeof(LogEst)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:115303: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(pColl, pColl2, sizeof(CollSeq)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:115369: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(pColl[0].zName, zName, nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:115704: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*)&pBest[1], zName, nName+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:117482: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 zStop[3]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:117792:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zBuf[50]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118045: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(&zOut[j], zRep, nRep); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118051: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(&zOut[j], &zStr[i], nStr-i); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118179: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 zResult[8]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118228:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *zFile = (const char *)sqlite3_value_text(argv[0]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118242: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. zProc = (const char *)sqlite3_value_text(argv[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:118636: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(aWc, pDef->pUserData, 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:120130: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((char *)pStep->zTarget, zFrom, nFrom); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:123408: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). int (*open)(const char*,sqlite3**); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:123734:53: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define sqlite3_open sqlite3_api->open data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:124529: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(zAltEntry, "sqlite3_", 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:124538: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(zAltEntry+iEntry, "_init", 6); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:124574: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(aHandle, db->aExtension, sizeof(handle)*db->nExtension); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:125834: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 *aFcntl[4]; /* Argument to SQLITE_FCNTL_PRAGMA */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:127713: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 *azArg[2]; /* Value of the argument and schema */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:127732: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 zBuf[200]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:128186: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 const *azArg[6]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:131044: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(&pCol->zName[n+1], zType, m+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:135900: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, argv[i], n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:136429: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(z, pName->z, pName->n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:139014: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(zCopy, zName, nName+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:140111: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((char*)&pNew[1], pDef->zName, sqlite3Strlen30(pDef->zName)+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:141039: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 zBuf[100]; /* Initial space for EQP output string */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:141756: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 d2[4]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:142029: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(&pNew->orig, pExpr, sizeof(*pExpr)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:142973: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(pOrTab->a, pTabItem, sizeof(*pTabItem)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:143448: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(pWC->a, pOld, sizeof(pWC->a[0])*pWC->nTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:145127: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(aiCur, pWInfo->aiCurOnePass, sizeof(int)*2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:145151: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(pDest->a, pSrc->a, pDest->n*sizeof(pDest->a[0])); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:146734: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 zType[8]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:146735: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 zLeft[50]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:146736: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(zType, "....", 5); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:146881: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(paNew, p->aLTerm, sizeof(p->aLTerm[0])*p->nLSlot); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:146897: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(pTo, pFrom, WHERE_LOOP_XFER_SZ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:146898: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(pTo->aLTerm, pFrom->aLTerm, pTo->nLTerm*sizeof(pTo->aLTerm[0])); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:149003:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char zName[65]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:149313: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(pTo->aLoop, pFrom->aLoop, sizeof(WhereLoop*)*iLoop); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:150516: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->pExpr, &p->orig, sizeof(p->orig)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:151588: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(pTab, pTab2, sizeof(Table)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:153705:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->u.zToken, t.z, t.n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:155795: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. static unsigned char yycoverage[YYNSTATE][YYNTOKEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:158772: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 zKWText[647] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:158811: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 aKWHash[127] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:158826: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 aKWNext[145] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:158841: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 aKWLen[145] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:158872: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 aKWCode[145] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:160685: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(&y, &x, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:161868: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 zBuf[50]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:163351: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(zFile, zUri, nUri); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:163942: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 zMsg[100]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:164563: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, z, n+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:165196:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pNew, aArg, nArg*sizeof(void *)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167347: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, zCol, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167644: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->aIndex, aIndex, sizeof(struct Fts3Index) * nIndex); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167654: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(zCsr, argv[2], nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167657: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(zCsr, argv[1], nDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167664: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. z = (char *)sqlite3Fts3NextToken(aCol[iCol], &n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167666: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(zCsr, z, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167672:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. assert( zCsr <= &((char *)p)[nByte] ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:168158: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(&zBuffer[nPrefix], zCsr, nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:168316: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, *ppPoslist, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:168354: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, *ppPoslist, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:168691: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 *aaOutput[16]; /* Malloc'd output buffers */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:169096: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(pTS->aaOutput[0], aDoclist, nDoclist); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:170015: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. zArg = (const char *)sqlite3_value_text(apVal[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:170932: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(aDoclist, a[p->nToken-1].pList, nByte+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172405: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((char *)p->pFts3Tab->zDb, zDb, nDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172406: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((char *)p->pFts3Tab->zName, zFts3, nFts3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:173064: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(pRet->pPhrase->aToken[0].z, zToken, nToken); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:173179: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(&zTemp[nTemp], zByte, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:173207: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(zBuf, zTemp, nTemp); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:174060: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. zExpr = (const char *)sqlite3_value_text(argv[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:174069: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. azCol[ii] = (char *)sqlite3_value_text(argv[ii+2]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:174508: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*)new_elem->pKey, pKey, nKey); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:174868: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 zReverse[28]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175468:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *azArg[64]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175485: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. zName = (const char *)sqlite3_value_text(argv[0]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175487:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. zInput = (const char *)sqlite3_value_text(argv[argc-1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175503: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. azArg[i-1] = (const char *)sqlite3_value_text(argv[i]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175586: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((void *)pp, sqlite3_column_blob(pStmt, 0), sizeof(*pp)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175750: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 delim[128]; /* flag ASCII delimiters */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:176083: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(pSpace, argv[i], n+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:176297: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. const char *zByte = (const char *)sqlite3_value_text(apVal[0]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:176303: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. if( nByte>0 ) memcpy(pCsr->zInput, zByte, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:177336:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *zText = (const char *)sqlite3_value_text(apVal[i]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:177748: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(aCopy, pList->aData, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:177813: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(&pReader->zTerm[nPrefix], pNext, nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178051: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. if( nRoot ) memcpy(pReader->aNode, zRoot, nRoot); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178175: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(pReader->ppNextElem, aElem, nElem*sizeof(Fts3HashElem *)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178473: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(&pTree->aData[nData], &zTerm[nPrefix], nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178487: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(pTree->zTerm, zTerm, nTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178744: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(&pWriter->aData[nData], &zTerm[nPrefix], nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178748: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(&pWriter->aData[nData], aDoclist, nDoclist); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:178768: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(pWriter->zTerm, zTerm, nTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:179077: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(pMsr->aBuffer, pList, nList); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:179421:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pCsr->aBuffer[nDoclist], pList, nList); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180183:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&p->term.a[nPrefix], &p->aNode[p->iOff], nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180290: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(&pBlk->a[pBlk->n], &zTerm[nPrefix], nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180293: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(pNode->key.a, zTerm, nTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180367: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(pPrev->a, zTerm, nTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180374: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(&pNode->a[pNode->n], &zTerm[nPrefix], nSuffix); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180379: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(&pNode->a[pNode->n], aDoclist, nDoclist); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180720: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(pNode->block.a, aRoot, nRoot); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180734: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(pNode->key.a, reader.term.a, reader.term.n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:180746: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(pNode->block.a, aBlock, nBlock); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:181217:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pHint->a, aHint, nHint); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:181813:11: [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). v = atoi(&zVal[9]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:181817:11: [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). v = atoi(&zVal[11]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:181821:27: [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). p->bNoIncrDoclist = atoi(&zVal[21]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:181824:11: [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). v = atoi(&zVal[11]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:181945: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(pRet, &p->pList->aData[nSkip], *pnData); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:182338: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(pRet->zMatchinfo, zMatchinfo, nStr+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:182379:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( p->bGlobal ) memcpy(aOut, &p->aMatchinfo[1], p->nElem*sizeof(u32)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:182389: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->aMatchinfo[2+p->nElem], &p->aMatchinfo[1], p->nElem*sizeof(u32)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:182817: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(&pStr->z[pStr->n], zAppend, nAppend); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:183883:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char aBuffer[64]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:184842: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 zSpace[100]; /* Initial static space */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:184968: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(zNew, p->zBuf, (size_t)p->nUsed); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:184988: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->zBuf+p->nUsed, zIn, N); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:185807: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((char*)p->zJson, zJson, nJson+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187141: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->zJson, z, (size_t)n+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187163:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->zRoot, zRoot, (size_t)n+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187839: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(&x, p, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187843: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(&x, p, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187847: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(&x, p, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187879: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, &i, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187882: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, &i, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187885: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, &i, 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187898: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, &i, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187901: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, &i, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187903: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, &i, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:188505: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(&c.u,a,4); \ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:188513: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(&c.u,a,4); \ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189137: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(pBlob, pSrc, pSrc->iSize); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189314: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 zIdxStr[RTREE_MAX_DIMENSIONS*8+1]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189480: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(&cell, p, sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189664: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(aSpare, aLeft, sizeof(int)*nLeft); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189733: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(aSpare, aLeft, sizeof(int)*nLeft); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189824: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(&left, &aCell[aaSorted[ii][0]], sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189825: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(&right, &aCell[aaSorted[ii][nCell-1]], sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189854: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(pBboxLeft, &aCell[aaSorted[iBestDim][0]], sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189855: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(pBboxRight, &aCell[aaSorted[iBestDim][iBestSplit]], sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189922: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(&aCell[nCell], pCell, sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:190217: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(&aCell[ii], pCell, sizeof(RtreeCell)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:190834:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *azSql[N_STATEMENT] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191088: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(pRtree->zDb, argv[1], nDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191089: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(pRtree->zName, argv[2], nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191362: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(pRet, pNode, nNode); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191395:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *azSql[2] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191828: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 hdr[4]; /* Header for on-disk representation */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191986: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(pOut->a, s.a, s.nVertex*2*sizeof(GeoCoord)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192034: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->hdr, a, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192443: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(pBBox->a, a, sizeof(RtreeCoord)*4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192773: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 aOverlap[4]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192960: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(pRtree->zDb, argv[1], nDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192961: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(pRtree->zName, argv[2], nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:193762: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 zBuf[128]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:194073:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. zLocale = (const char *)sqlite3_value_text(apArg[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:194175: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. zLocale = (const char *)sqlite3_value_text(apArg[0]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:194176: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. zName = (const char *)sqlite3_value_text(apArg[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:194328: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->zLocale, argv[0], n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:195509: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 zStateDb[5]; /* Db name for state ("stat" or "main") */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:195730: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(zOut, &zSrc[ofst], cnt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:195745: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(zOut, zDelta, cnt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:196242: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(zRet, zStr, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:196396: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(pIter->abIndexed, pIter->abTblPk, sizeof(u8)*pIter->nTblCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:197748: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(pUp->zMask, zMask, pIter->nTblCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:197906: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->zStateDb, "stat", 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:197908: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->zStateDb, "main", 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:198274:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). nChar = MultiByteToWideChar(CP_UTF8, 0, zFilename, -1, NULL, 0); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:198283:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). nChar = MultiByteToWideChar(CP_UTF8, 0, zFilename, -1, zWideFilename, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:198955: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 zRnd[64]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:199100: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->zTarget, zTarget, nTarget+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:199104:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->zRbu, zRbu, nRbu+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:200138: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(zCopy, zBase, nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:200393: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(&pNew->base, &vfs_template, sizeof(sqlite3_vfs)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:200398: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(zSpace, zName, nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:201646: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(sqlite3PagerGetData(pDbPage), data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202107: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(&i, &r, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202131: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. if( n ) memcpy(&aBuf[nVarint + 1], z, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202237:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&iVal, &rVal, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202393: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(aOut, a2, n2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202396: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(aOut, a1, n1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202491: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(aOut, aOld, nOld); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202519: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(aOut, aNew, nNew); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202581:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&rVal, &iVal, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202740: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(pAlloc, zThis, nThis+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:202750: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(pAlloc, zName, nName+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203404: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(pNew->zDb, zDb, nDb+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203529: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(pTab->zName, zName, nName+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203629: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->aBuf[p->nBuf], aBlob, nBlob); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203649: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->aBuf[p->nBuf], zStr, nStr); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203667: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 aBuf[24]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203722: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(&i, &r, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:203805: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(&dVal, &iVal, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:204011:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&rVal, &iVal, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:204455: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(aCopy, aData, nData); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:204532:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&d, &v, 8); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:204667: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->tblhdr.aBuf[iPK], &p->in.aData[p->in.iNext], nCopy); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206349: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(pNew->aRecord, aRec, nRec); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206361:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pOut, pIn, nIn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206393: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(pOut, a1, n1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206396: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(pOut, a2, n2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206459:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(aCsr, aRec, nRec); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206484:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(aCsr, aRec, nRec); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206554: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(pTab->abPK, abPK, nCol); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206556: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(pTab->zName, zNew, nNew+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206847: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(pOut, a2, nn2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206850: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(pOut, a1, nn1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206903: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(pOut, a1, n1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206907: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(pOut, a2, n2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206921:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pOut, a1, n1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:209285: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. static unsigned char fts5yycoverage[fts5YYNSTATE][fts5YYNFTS5TOKEN]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:210875: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(&pBuf->p[pBuf->n], pData, nData); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211088: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(zRet, pIn, nIn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211183: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(pEntry->pTerm, pTerm, nTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211523: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(pSpace, p2, p-p2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211645: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(zOut, zIn, (size_t)(nIn+1)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211989: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. if( zRank ) memcpy(zRank, pRank, p-pRank); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:212009:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( zRankArgs ) memcpy(zRankArgs, pArgs, p-pArgs); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:212571: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(aNew, aIter, sizeof(Fts5PoslistReader) * nIter); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:213774: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(pSyn->zTerm, pToken, nToken); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:213932: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(pColset, pColsetOrig, (size_t)nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:214149: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(pRet, pOrig, (size_t)nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:214277: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->apChild[p->nChild], pSub->apChild, nByte); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:215352: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(&zKey[1], pToken, nToken); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:215572: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(&pRet[nPre], &((u8*)p)[nHashPre], nList); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:216724: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(&(pBuf)->p[(pBuf)->n], pBlob, nBlob); \ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:216822: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(pOut->aSeg, &pLvl->aSeg[is], sizeof(Fts5StructureSegment)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:220788:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( doclist.n ) memcpy(pData->p, doclist.p, doclist.n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:221035:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if( nToken ) memcpy(&buf.p[1], pToken, nToken); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:222004: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. if( n>0 ) memcpy(a, aBlob, n); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:224827: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(pAux->zFunc, zName, nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:224865: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(pNew->zName, zName, nName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226303: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. static unsigned char aAsciiTokenChar[128] = { data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226316: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 aTokenChar[128]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226359:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->aTokenChar, aAsciiTokenChar, sizeof(aAsciiTokenChar)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226407: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 aFold[64]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226512: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 aTokenChar[128]; /* ASCII range token characters */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226519: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 aCategory[32]; /* True for token char categories */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226778: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(aFold, p->aFold, nFold); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226832: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 aBuf[FTS5_PORTER_MAX_TOKEN + 64]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226919: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(&aBuf[nStem], p->zOutput, p->nOutput); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227158: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(&aBuf[nBuf-2], "ate", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227166: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(&aBuf[nBuf-2], "ble", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227174: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(&aBuf[nBuf-2], "ize", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227193:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-7], "ate", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227198:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-6], "tion", 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227207:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "ence", 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227212:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "ance", 4); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227221:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "ize", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227230:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "log", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227239:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-3], "ble", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227244:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "al", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227249:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "ent", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227254:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-3], "e", 1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227259:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "ous", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227268:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-7], "ize", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227273:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "ate", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227278:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "ate", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227287:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "al", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227292:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-7], "ive", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227297:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-7], "ful", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227302:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-7], "ous", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227311:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "al", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227316:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "ive", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227321:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-6], "ble", 3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227340:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-4], "ic", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227357:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "ic", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227362:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "ic", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227387:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-5], "al", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227406:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&aBuf[nBuf-3], "ee", 2); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:227469: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(aBuf, pToken, nBuf); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:228902: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(pRet->zFts5Tbl, zTab, nTab); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:228903: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(pRet->zFts5Db, zDb, nDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:229329: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(pCsr->zLeTerm, zCopy, pCsr->nLeTerm+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.h:9507: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 hidden[48]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3ext.h:113: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). int (*open)(const char*,sqlite3**); data/colmap-3.6+really3.6/lib/SQLite/sqlite3ext.h:439:53: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define sqlite3_open sqlite3_api->open data/colmap-3.6+really3.6/lib/SiftGPU/GLTexImage.cpp:1124: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 * file = fopen(imagepath, "rb"); if (file ==NULL) return 0; data/colmap-3.6+really3.6/lib/SiftGPU/GLTexImage.cpp:1126:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; int width, height, cn, g, done = 1; data/colmap-3.6+really3.6/lib/SiftGPU/GLTexImage.cpp:1158: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[3]; data/colmap-3.6+really3.6/lib/SiftGPU/GlobalUtil.h:110: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 _current_event[256]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:321:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:537:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:788:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:862:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:941:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:991:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:1094:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:1182:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:1299:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:2106:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:2152:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:2387:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCG.cpp:2538:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:74: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 * src[1] = {code}; cl_int status; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:93: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[10240] = "\0"; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:509:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:563:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:839: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. int i; char buffer[20240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:1442:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramCL.cpp:1483:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10240]; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramGLSL.cpp:91: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). file = fopen(sourcefile,"rt"); data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCL.cpp:701: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(&_keypoint_buffer[index*4], &keypoint_buffer2[i*4], 4 * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCU.cpp:427: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(&_descriptor_buffer[index*128], &descriptor_buffer2[i*128], 128 * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/PyramidCU.cpp:727: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(&_keypoint_buffer[index*4], &keypoint_buffer2[i*4], 4 * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/PyramidGL.cpp:1399: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(mem, buffer3, sz * 4 * sizeof(float) ); data/colmap-3.6+really3.6/lib/SiftGPU/PyramidGL.cpp:1777: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(&_descriptor_buffer[index*128], &descriptor_buffer2[i*128], 128 * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/PyramidGL.cpp:1844: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(&_keypoint_buffer[index*4], &keypoint_buffer2[i*4], 4 * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:661:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(title, "Debug..."); data/colmap-3.6+really3.6/lib/SiftGPU/SiftGPU.cpp:1175: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 filename[_MAX_PATH]; data/colmap-3.6+really3.6/lib/SiftGPU/SiftMatch.cpp:149:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sift_buffer[0], descriptors, 128 * num); data/colmap-3.6+really3.6/lib/SiftGPU/SiftMatch.cpp:181: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(&sift_buffer[0], locations, _num_sift[index] * 2 * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:240: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. if(keys) memcpy(keys, &_keypoint_buffer[0], 4*_featureNum*sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:241:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(descriptors) memcpy(descriptors, &_descriptor_buffer[0], 128*_featureNum*sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:252:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&_keypoint_buffer[0], keys, 4 * num * sizeof(float)); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:346:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(_debug_path, ".debug"); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:349:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(_debug_path, ".debug"); data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:364: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 name[_MAX_PATH]; data/colmap-3.6+really3.6/lib/SiftGPU/SiftPyramid.cpp:387: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(buffer2 + i * width * 4, data/colmap-3.6+really3.6/lib/VLFeat/array.c:57: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(self->dimensions, dimensions, sizeof(vl_size) * numDimensions) ; data/colmap-3.6+really3.6/lib/VLFeat/array.c:82: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(self->dimensions, dimensions, sizeof(vl_size) * numDimensions) ; data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:1591: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 name [200] ; data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:1803: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, in, (width - 2)*sizeof(float)); data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:1822: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, in, (width - 2)*sizeof(float)); data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:2333:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(self->patch + yi * patchWidth, data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:2338:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(self->patch + yi * patchWidth, data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:2348: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 name [200] ; data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:2402:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name [200] ; data/colmap-3.6+really3.6/lib/VLFeat/covdet.c:2597: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(A,Ap,4*sizeof(double)) ; data/colmap-3.6+really3.6/lib/VLFeat/generic.c:801: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 lastErrorMessage [VL_ERR_MSG_LEN] ; data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:658: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(self->sigmaLowBound, bounds, sizeof(double) * self->dimension) ; data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1058: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(oldMeans, means, sizeof(TYPE) * self->dimension * numClusters) ; data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1441: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(self->means, vl_kmeans_get_centers(kmeans), sizeof(TYPE) * self->dimension * self->numClusters) ; data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1491: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(gmm->means, self->means, size*self->numClusters*self->dimension); data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1492: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(gmm->covariances, self->covariances, size*self->numClusters*self->dimension); data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1493: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(gmm->priors, self->priors, size*self->numClusters); data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1677: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(self->means,means, data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1688: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(self->covariances,covariances, data/colmap-3.6+really3.6/lib/VLFeat/gmm.c:1699: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(self->priors,priors, data/colmap-3.6+really3.6/lib/VLFeat/hikmeans.c:78: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_data + count * M, data/colmap-3.6+really3.6/lib/VLFeat/host.c:529: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 compilerString [1024] ; data/colmap-3.6+really3.6/lib/VLFeat/host.h:562: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 [0x20] ; data/colmap-3.6+really3.6/lib/VLFeat/kmeans.c:457: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->centers, kmeans->centers, dataSize) ; data/colmap-3.6+really3.6/lib/VLFeat/kmeans.c:463: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->centerDistances, kmeans->centerDistances, dataSize) ; data/colmap-3.6+really3.6/lib/VLFeat/kmeans.c:519: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 ((TYPE*)self->centers, centers, data/colmap-3.6+really3.6/lib/VLFeat/kmeans.c:574: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 ((TYPE*)self->centers + dimension * k, data/colmap-3.6+really3.6/lib/VLFeat/kmeans.c:622: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 ((TYPE*)self->centers + c * dimension, data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:163: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 magic [2] ; data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:355: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(temp, data, 2 * data_size) ; data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:397: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). FILE *f = fopen (name, "rb") ; data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:484: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). FILE *f = fopen (name, "wb") ; data/colmap-3.6+really3.6/lib/VLFeat/scalespace.c:510: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(destination, source, sizeof(float) * width * height) ; data/colmap-3.6+really3.6/lib/VLFeat/scalespace.c:613: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->octaves[o - self->geom.firstOctave], data/colmap-3.6+really3.6/lib/VLFeat/sift.c:801: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 (outputImage, inputImage, sizeof(vl_sift_pix) * width * height) ; data/colmap-3.6+really3.6/lib/VLFeat/sift.c:1036: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(octave, im, sizeof(vl_sift_pix) * width * height) ; data/colmap-3.6+really3.6/lib/VLFeat/slic.c:381:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). x = open % width ; data/colmap-3.6+really3.6/lib/VLFeat/slic.c:382:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). y = open / width ; data/colmap-3.6+really3.6/lib/VLFeat/slic.c:407: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(segmentation, cleaned, numPixels * sizeof(vl_uint32)) ; data/colmap-3.6+really3.6/lib/VLFeat/svm.c:1393: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(self->model, model, sizeof(double) * vl_svm_get_dimension(self)) ; data/colmap-3.6+really3.6/src/base/database.cc:122: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(reinterpret_cast<char*>(matrix.data()), data/colmap-3.6+really3.6/src/base/database.cc:155: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(reinterpret_cast<char*>(matrix.data()), data/colmap-3.6+really3.6/src/base/database.cc:208: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(camera.ParamsData(), sqlite3_column_blob(sql_stmt, 4), data/colmap-3.6+really3.6/src/mvs/image.cc:47: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(K_, K, 9 * sizeof(float)); data/colmap-3.6+really3.6/src/mvs/image.cc:48:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(R_, R, 9 * sizeof(float)); data/colmap-3.6+really3.6/src/mvs/image.cc:49: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(T_, T, 3 * sizeof(float)); data/colmap-3.6+really3.6/src/retrieval/visual_index.h:568:17: [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* fin = fopen(path.c_str(), "rb"); data/colmap-3.6+really3.6/src/retrieval/visual_index.h:608:18: [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* fout = fopen(path.c_str(), "ab"); data/colmap-3.6+really3.6/src/util/misc_test.cc:196: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(arg1.get(), "abc", 4 * sizeof(char)); data/colmap-3.6+really3.6/src/util/misc_test.cc:198: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(arg2.get(), "def", 4 * sizeof(char)); data/colmap-3.6+really3.6/src/util/misc_test.cc:200: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(arg3.get(), "ghi", 4 * sizeof(char)); data/colmap-3.6+really3.6/src/util/string.cc:77: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 fixed_buffer[kFixedBufferSize]; data/colmap-3.6+really3.6/lib/FLANN/algorithms/nn_index.h:242: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). strlen(FLANN_SIGNATURE_) - strlen("v0.0")) != 0) { data/colmap-3.6+really3.6/lib/FLANN/algorithms/nn_index.h:242: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). strlen(FLANN_SIGNATURE_) - strlen("v0.0")) != 0) { data/colmap-3.6+really3.6/lib/FLANN/mpi/queries.h:75:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). boost::asio::read(sock, boost::asio::buffer(&size, sizeof(size))); data/colmap-3.6+really3.6/lib/FLANN/mpi/queries.h:79:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). boost::asio::read(sock, archive_stream, boost::asio::transfer_at_least(size)); data/colmap-3.6+really3.6/lib/FLANN/util/saving.h:117: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). strlen(FLANN_SIGNATURE_) - strlen("v0.0")) != 0) { data/colmap-3.6+really3.6/lib/FLANN/util/saving.h:117: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). strlen(FLANN_SIGNATURE_) - strlen("v0.0")) != 0) { data/colmap-3.6+really3.6/lib/Graclus/metisLib/util.c:76: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). length = strlen(path); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:44: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). this->name=new char[strlen(name)+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:52:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int cmdLineReadable::read(char**,int){ data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:66:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int cmdLineInt::read(char** argv,int argc){ data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:84:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int cmdLineFloat::read(char** argv,int argc){ data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:106:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int cmdLineString::read(char** argv,int argc){ data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:109: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). value=new char[strlen(argv[0])+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:140:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int cmdLineStrings::read(char** argv,int argc) data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:146: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). values[i]=new char[strlen(argv[i])+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:160: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). temp=str+strlen(str); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:170: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). fileNameCopy=new char[strlen(fileName)+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:177: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). ext=new char[strlen(temp)+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:190: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). fileNameCopy=new char[strlen(fileName)+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:196: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). name=new char[strlen(temp)+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:217:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). j=readable[i]->read(argv,argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.cpp:266: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). names[cnt]=new char[strlen(temp)+1]; data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:45:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:54:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:63:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:72:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:81:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:89:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:98:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/CmdLineParser.h:107:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char** argv,int argc); data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.cpp:99:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool BufferedReadWriteFile::read( void* data , size_t size ) data/colmap-3.6+really3.6/lib/PoissonRecon/Geometry.h:352:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read ( void* data , size_t size ); data/colmap-3.6+really3.6/lib/PoissonRecon/Octree.h:112:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read( const char* fileName ); data/colmap-3.6+really3.6/lib/PoissonRecon/Octree.h:113:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read( FILE* fp ); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:254: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). name = (char *) myalloc (int(sizeof (char) * (strlen (filename)) + 5)); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:256:6: [1] (buffer) strlen: Does not handle 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) < 4 || data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:257: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). strcmp (name + strlen (name) - 4, ".ply") != 0) data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:874: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). name = (char *) myalloc (int(sizeof (char) * (strlen (filename) + 5))); data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:876:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (name) < 4 || data/colmap-3.6+really3.6/lib/PoissonRecon/PlyFile.cpp:877: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). strcmp (name + strlen (name) - 4, ".ply") != 0) data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:110: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( str[strlen(str)-1]=='\n' ) str[strlen(str)-1] = 0; data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:110: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). if( str[strlen(str)-1]=='\n' ) str[strlen(str)-1] = 0; data/colmap-3.6+really3.6/lib/PoissonRecon/PoissonRecon.cpp:347:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( strlen( str ) ) DumpOutput2( comments , "\t--%s %s\n" , params[i]->name , str ); data/colmap-3.6+really3.6/lib/PoissonRecon/SparseMatrix.h:84:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read( FILE* fp ); data/colmap-3.6+really3.6/lib/PoissonRecon/SparseMatrix.h:85:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read( const char* fileName ); data/colmap-3.6+really3.6/lib/SQLite/shell.c:1273:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dirp->d_first.d_name, data.name, NAME_MAX); data/colmap-3.6+really3.6/lib/SQLite/shell.c:1306:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dirp->d_next.d_name, data.name, NAME_MAX); data/colmap-3.6+really3.6/lib/SQLite/shell.c:1330:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(entry->d_name, dirp->d_first.d_name, NAME_MAX); data/colmap-3.6+really3.6/lib/SQLite/shell.c:1350:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(entry->d_name, data.name, NAME_MAX); data/colmap-3.6+really3.6/lib/SQLite/shell.c:1921: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). n = (int)strlen(zBuf); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2004: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 = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2413: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). int nCopy = (int)strlen(zCopy); data/colmap-3.6+really3.6/lib/SQLite/shell.c:2942: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). pCur->nBase = (int)strlen(pCur->zBase)+1; data/colmap-3.6+really3.6/lib/SQLite/shell.c:4739: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). nFile = (int)strlen(zFile)+1; data/colmap-3.6+really3.6/lib/SQLite/shell.c:5788: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(z)!=10 ) goto parse_error; data/colmap-3.6+really3.6/lib/SQLite/shell.c:5819: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). int nA = (int)strlen(zA); data/colmap-3.6+really3.6/lib/SQLite/shell.c:5942: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). int nDelete = (int)strlen(zDelete); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6010: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). nPath = (int)strlen(zPath); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6026: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). nPath = (int)strlen(zPath); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6432: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). nName = (int)strlen(zName); data/colmap-3.6+really3.6/lib/SQLite/shell.c:6903: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). #define STRLEN (int)strlen data/colmap-3.6+really3.6/lib/SQLite/shell.c:12806: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). nNL = (int)strlen(zNL); data/colmap-3.6+really3.6/lib/SQLite/shell.c:12810: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). nCR = (int)strlen(zCR); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13307:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13318:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13354:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13357:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13367:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13397:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:13404:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(p->in); data/colmap-3.6+really3.6/lib/SQLite/shell.c:16696: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). lenPK = (int)strlen(zCollist); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17265:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(mainPrompt,azArg[1],(int)ArraySize(mainPrompt)-1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:17268:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(continuePrompt,azArg[2],(int)ArraySize(continuePrompt)-1); data/colmap-3.6+really3.6/lib/SQLite/shell.c:18399: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). lenOpt = (int)strlen(zOpt); data/colmap-3.6+really3.6/lib/SQLite/shell.c:19061:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(stdin); data/colmap-3.6+really3.6/lib/SQLite/shell.c:19101: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 = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:19313: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). #define sqlite3Strlen30NN(C) (strlen(C)&0x3fffffff) data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:27984:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = strlen(z) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:28866: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). pAccum->nChar = 0x7fffffff & (int)strlen(bufpt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:28886: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). length = 0x7fffffff & (int)strlen(bufpt); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:31223: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). return 0x3fffffff & (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:31235: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). return pCol->zName + strlen(pCol->zName) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:33886:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { "read", (sqlite3_syscall_ptr)read, 0 }, data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:34434: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). n = (int)strlen(zAbsoluteName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:35039:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:37145: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). for(ii=(int)strlen(zDirname); ii>0 && zDirname[ii]!='/'; ii--); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:38022: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). nShmFilename = 6 + (int)strlen(zBasePath); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39109: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). nFilename = (int)strlen(zFilename) + 6; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39512: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). assert( (flags & SQLITE_OPEN_URI) || zName[strlen(zName)+1]==0 ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:39525: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). assert( zName[strlen(zName)+1]==0 ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40006:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(microseconds); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40302: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). dbLen = (int)strlen(dbPath); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40323:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (int)strlen(lockPath); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40579:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(500000); /* wait 0.5 sec and try the lock again*/ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40605:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000000); /* wait 10 sec and try the lock again */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40754: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). writeSize = PROXY_PATHINDEX + strlen(&writeBuffer[PROXY_PATHINDEX]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40885: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). int len = (int)strlen(dbPath); /* Length of database filename - dbPath */ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40911: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( (int)strlen(conchPath) == len+7 ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40961: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). assert( (int)strlen((char*)pFile->lockingContext)<=MAXPATHLEN ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40969: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). int len = strlen((char *)pFile->lockingContext) - strlen(DOTLOCK_SUFFIX); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40969: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). int len = strlen((char *)pFile->lockingContext) - strlen(DOTLOCK_SUFFIX); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:40973: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((char*)pFile->lockingContext)<=MAXPATHLEN ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56338: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). z += strlen(z)+1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:56339: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). z += strlen(z)+1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:76738: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). nByte = 0x7fffffff & (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:127757: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). assert( strlen(zBuf) < sizeof(zBuf)-1 ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:141619: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). assert( zAff==0 || (int)strlen(zAff)>=nEq ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:164562: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). size_t n = strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:164586: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). nByte = strlen(zDatabase) + strlen(zJournal) + strlen(zWal) + 10; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:164586: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). nByte = strlen(zDatabase) + strlen(zJournal) + strlen(zWal) + 10; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:164586: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). nByte = strlen(zDatabase) + strlen(zJournal) + strlen(zWal) + 10; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:164588: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). nByte += strlen(azParam[i])+1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167050: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). nRet = 2 + (int)strlen(zInput)*2 + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167335: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). nStr += strlen(zCol) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167346: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). int n = (int)strlen(zCol)+1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167412: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). assert( strlen(argv[0])==4 ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167417: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). nDb = (int)strlen(argv[1]) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167418: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). nName = (int)strlen(argv[2]) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167452: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(z)>8 data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167487: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(zVal)!=4 || sqlite3_strnicmp(zVal, "fts3", 4) ){ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167513: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). if( (strlen(zVal)!=3 || sqlite3_strnicmp(zVal, "asc", 3)) data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167514: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). && (strlen(zVal)!=4 || sqlite3_strnicmp(zVal, "desc", 4)) data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167552: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). nString += (int)(strlen(z) + 1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167677: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). int n = (int)strlen(p->azColumn[iCol]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:167680: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( zNot && n==(int)strlen(zNot) data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172377: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). nDb = (int)strlen(zDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172381: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). nDb = (int)strlen(zDb); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172389: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). nFts3 = (int)strlen(zFts3); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172714: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). pCsr->filter.nTerm = (int)strlen(pCsr->filter.zTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:172721: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). pCsr->nStop = (int)strlen(pCsr->zStop); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:173370: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). int nStr = (int)strlen(zStr); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:173830: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 = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:174239:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( nKey<=0 ) nKey = (int) strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:174630: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). c->nInput = (int)strlen(zInput); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175092: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). *pnOut = i = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175370: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). zEnd = &zCopy[strlen(zCopy)]; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175380:68: [1] (buffer) strlen: Does not handle 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 = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash,z,(int)strlen(z)+1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175790: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). int i, n = (int)strlen(argv[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:175842: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). c->nBytes = (int)strlen(pInput); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:176034: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). int nName = (int)strlen(zName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:176072: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). nByte += (int)(strlen(argv[i]) + 1); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:176081: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). int n = (int)strlen(argv[i]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:182328: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). sqlite3_int64 nStr = strlen(zMatchinfo); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:182798: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). nAppend = (int)strlen(zAppend); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:184178: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). int n = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:184233: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). pCsr->nInput = (int)strlen(aInput); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:185000: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). p->nUsed += (int)strlen(p->zBuf+p->nUsed); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:187013: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). jsonAppendRaw(&x, p->zRoot, (int)strlen(p->zRoot)); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:189215: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). || (idxStr && (int)strlen(idxStr)==argc*2) ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191076: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). nDb = (int)strlen(argv[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:191077: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). nName = (int)strlen(argv[2]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192946: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). nDb = strlen(argv[1]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:192947: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). nName = strlen(argv[2]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:194318: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(argv[0])+1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:194374: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). nInput = strlen(zInput); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:196083: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). if( strlen(zIn)>4 && memcmp("data", zIn, 4)==0 ){ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:196239: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 nCopy = strlen(zStr) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:197027: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). if( (int)strlen(zMask)!=pIter->nTblCol ){ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:197988: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). if( strlen(p->zRbu)>=5 && 0==memcmp("file:", p->zRbu, 5) ){ data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:198073: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). sz = (int)strlen(z)&0xffffff; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:199082: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). size_t nTarget = zTarget ? strlen(zTarget) : 0; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:199083: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). size_t nRbu = strlen(zRbu); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:199264: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). int n = strlen(zState); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:199293: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 nErrmsg = strlen(p->zErrmsg); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:200135: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). nCopy = strlen(zBase); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:200380: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). nName = strlen(zName); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:204060: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). sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:205604: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). sessionAppendBlob(&p->rebase, (u8*)zTab, (int)strlen(zTab)+1, &rc); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206084: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). nTab = (int)strlen(zTab); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206536: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). int nNew = (int)strlen(zNew); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:206984: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). sessionAppendBlob(&sOut,(u8*)pIter->zTab,(int)strlen(pIter->zTab)+1,&rc); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:210226: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). if( n<0 ) n = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:210890: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 nStr = (int)strlen(zStr); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211084: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). nIn = (int)strlen(pIn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211417: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). int nEnum = (int)strlen(zEnum); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211449: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 nCmd = (int)strlen(zCmd); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211505: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). sqlite3_int64 nArg = strlen(zArg) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:211635: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). sqlite3_int64 nIn = strlen(zIn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:213008: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). pExpr->pIndex, p->zTerm, (int)strlen(p->zTerm), data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:213858: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 = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:213945: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). rc = fts5ParseTokenize((void*)&sCtx, tflags, zTerm, (int)strlen(zTerm), data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:214438: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). nByte += (int)strlen(pTerm->zTerm) * 2 + 3 + 2; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:214921: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). int nTerm = (int)strlen(pTerm->zTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:215240: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). (int)strlen(fts5EntryKey(p))); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:215562: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). assert( p->nKey+1==(int)strlen(zKey) ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:215612: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). int nTerm = (int)strlen(zKey); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:217563: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). sqlite3Fts5BufferSet(&p->rc,&pIter->term, (int)strlen(zTerm), (u8*)zTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:217643: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). sqlite3Fts5BufferSet(&p->rc, &pIter->term, (int)strlen(zTerm), data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:218092: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 = (z ? (int)strlen((const char*)z) : 0); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:220160: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). fts5WriteAppendTerm(p, &writer, (int)strlen(zTerm), (const u8*)zTerm); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:222839: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). idxStr += strlen(&idxStr[iIdxStr]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:224821: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). nName = strlen(zName) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:224859: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). nName = strlen(zName) + 1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:225438: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). iOff = (int)strlen(zDefn); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:225441: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). iOff += (int)strlen(&zDefn[iOff]); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226533:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = (int)strlen(z); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226910: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(p->zSuffix)==p->nSuffix ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:226911: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(p->zOutput)==p->nOutput ); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:228874: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). bDb = (argc==6 && strlen(argv[1])==4 && memcmp("temp", argv[1], 4)==0); data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:228884: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). int nDb = (int)strlen(zDb)+1; data/colmap-3.6+really3.6/lib/SQLite/sqlite3.c:228885: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). int nTab = (int)strlen(zTab)+1; data/colmap-3.6+really3.6/lib/SiftGPU/ProgramGLSL.cpp:61: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). code_length = (GLint) strlen(code); data/colmap-3.6+really3.6/lib/VLFeat/generic.c:1657:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #pragma section(".CRT$XCU",read) data/colmap-3.6+really3.6/lib/VLFeat/getopt_long.c:179:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen ( longopts[i].name) == namelen && data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:58:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f) ; data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:87:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f) ; data/colmap-3.6+really3.6/lib/VLFeat/pgm.c:225:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f) ; data/colmap-3.6+really3.6/lib/VLFeat/stringop.c:178: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). end = strlen (source) ; data/colmap-3.6+really3.6/src/base/reconstruction.cc:1660:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read(&name_char, 1); data/colmap-3.6+really3.6/src/retrieval/inverted_file.h:379:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&status_), sizeof(uint8_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_file.h:380:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&idf_weight_), sizeof(float)); data/colmap-3.6+really3.6/src/retrieval/inverted_file.h:383:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&thresholds_[i]), sizeof(float)); data/colmap-3.6+really3.6/src/retrieval/inverted_file.h:387:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&num_entries), sizeof(uint32_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_file_entry.h:76:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&image_id_data), sizeof(int32_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_file_entry.h:80:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&feature_idx_data), sizeof(int32_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_file_entry.h:83:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&geometry), sizeof(FeatureGeometry)); data/colmap-3.6+really3.6/src/retrieval/inverted_file_entry.h:86:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&descriptor_data), sizeof(uint64_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_index.h:348:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&num_words), sizeof(int32_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_index.h:354:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&N_t), sizeof(int32_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_index.h:361:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&proj_matrix_(i, j)), sizeof(float)); data/colmap-3.6+really3.6/src/retrieval/inverted_index.h:370:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&num_images), sizeof(int32_t)); data/colmap-3.6+really3.6/src/retrieval/inverted_index.h:378:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&image_id), sizeof(int)); data/colmap-3.6+really3.6/src/retrieval/inverted_index.h:379:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs->read(reinterpret_cast<char*>(&value), sizeof(float)); data/colmap-3.6+really3.6/src/util/endian.h:138:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream->read(reinterpret_cast<char*>(&data_little_endian), sizeof(T)); data/colmap-3.6+really3.6/src/util/ply.cc:188:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read(buffer.data(), num_bytes_per_line); ANALYSIS SUMMARY: Hits = 1215 Lines analyzed = 471095 in approximately 13.41 seconds (35124 lines/second) Physical Source Lines of Code (SLOC) = 296467 Hits@level = [0] 666 [1] 225 [2] 844 [3] 36 [4] 103 [5] 7 Hits@level+ = [0+] 1881 [1+] 1215 [2+] 990 [3+] 146 [4+] 110 [5+] 7 Hits/KSLOC@level+ = [0+] 6.34472 [1+] 4.09826 [2+] 3.33933 [3+] 0.492466 [4+] 0.371036 [5+] 0.0236114 Dot directories skipped = 2 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.