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/pmdk-convert-1.7/include/srcversion.h Examining data/pmdk-convert-1.7/pmdk-convert.c Examining data/pmdk-convert-1.7/pmemobj_convert.h Examining data/pmdk-convert-1.7/pmemobj_convert_v1.c Examining data/pmdk-convert-1.7/pmemobj_convert_v2.c Examining data/pmdk-convert-1.7/pmemobj_convert_v3.c Examining data/pmdk-convert-1.7/pmemobj_convert_v4.c Examining data/pmdk-convert-1.7/pmemobj_convert_v5.c Examining data/pmdk-convert-1.7/pmemobj_convert_v6.c Examining data/pmdk-convert-1.7/tests/clean.c Examining data/pmdk-convert-1.7/tests/create.c Examining data/pmdk-convert-1.7/tests/createW.c Examining data/pmdk-convert-1.7/tests/open.c Examining data/pmdk-convert-1.7/tests/openW.c Examining data/pmdk-convert-1.7/tests/transaction.c Examining data/pmdk-convert-1.7/utils/check_license/check-license.c Examining data/pmdk-convert-1.7/nvml/1.0/src/common/cpu.c Examining data/pmdk-convert-1.7/nvml/1.0/src/common/cpu.h Examining data/pmdk-convert-1.7/nvml/1.0/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.0/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.0/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.0/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.0/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.0/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.0/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/condition_variable.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/array_traits.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/check_persistent_ptr_array.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/common.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/conversions.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/destroyer.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/integer_sequence.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/make_atomic_impl.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/pexceptions.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/detail/specialization.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/make_persistent.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/make_persistent_array.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/make_persistent_array_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/make_persistent_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/p.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/persistent_ptr.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/pext.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/pool.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/shared_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/timed_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/transaction.hpp Examining data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.0/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/blk.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/blk.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt_layout.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/libpmemblk.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemlog/libpmemlog.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemlog/log.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemlog/log.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/ctree.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/ctree.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/cuckoo.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/cuckoo.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/redo.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/redo.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/create.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/create.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/dump.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/dump.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info_blk.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info_log.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info_obj.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/pmempool.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.h Examining data/pmdk-convert-1.7/nvml/1.0/src/tools/rpmemd/rpmemd.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/cpu.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/cpu.h Examining data/pmdk-convert-1.7/nvml/1.1/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.1/src/common/pthread_windows.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/set_linux.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/set_windows.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.1/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.1/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/condition_variable.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/array_traits.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/check_persistent_ptr_array.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/common.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/conversions.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/destroyer.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/integer_sequence.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/make_atomic_impl.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/pexceptions.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/detail/specialization.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/make_persistent.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/make_persistent_array.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/make_persistent_array_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/make_persistent_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/p.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/persistent_ptr.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/pext.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/pool.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/shared_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/timed_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/transaction.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/utils.hpp Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.1/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/blk.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/blk.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt_layout.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/libpmemblk.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/libpmemblk_main.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemlog/libpmemlog.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemlog/libpmemlog_main.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemlog/log.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemlog/log.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/ctree.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/ctree.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/cuckoo.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/cuckoo.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/pvector.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/pvector.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/redo.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/redo.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/create.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/create.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/dump.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/dump.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info_blk.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info_log.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info_obj.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/pmempool.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_db.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_db.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_fip.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_fip.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_fip_ring.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_fip_worker.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_fip_worker.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.h Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c Examining data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/dlsym.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap_linux.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/pmemcommon.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr_linux.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr_windows.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/pthread_windows.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/queue.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/util_linux.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid_linux.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid_windows.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/condition_variable.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/array_traits.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/check_persistent_ptr_array.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/common.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/conversions.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/integer_sequence.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/life.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/make_atomic_impl.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/pexceptions.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/detail/specialization.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/make_persistent.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/make_persistent_array.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/make_persistent_array_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/make_persistent_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/p.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/persistent_ptr.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/pext.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/pool.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/shared_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/timed_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/transaction.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/utils.hpp Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/atomic.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/base.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/iterator.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/iterator_base.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/lists_atomic.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/lists_atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/pool.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/pool_base.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/thread.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/tx_base.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/types.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/include/pmemcompat.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/blk.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/blk.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt_layout.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/libpmemblk.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/libpmemblk_main.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemlog/libpmemlog.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemlog/libpmemlog_main.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemlog/log.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemlog/log.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/ctree.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/ctree.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/cuckoo.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/cuckoo.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/palloc.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/palloc.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/pmemops.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/pvector.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/pvector.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/redo.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/redo.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/dump.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/dump.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info_blk.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info_log.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info_obj.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/pmempool.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/synchronize.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/synchronize.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/transform.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/transform.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_db.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_db.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_fip.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_fip.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_fip_ring.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_fip_worker.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_fip_worker.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.h Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.c Examining data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/dlsym.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/mmap.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/mmap.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/mmap_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/os.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/pmemcommon.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/queue.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_pmem.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid_linux.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid_windows.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/allocator.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/condition_variable.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/array_traits.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/check_persistent_ptr_array.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/common.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/conversions.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/integer_sequence.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/life.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/make_atomic_impl.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/persistent_ptr_base.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/pexceptions.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/detail/specialization.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/make_persistent.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/make_persistent_array.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/make_persistent_array_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/make_persistent_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/p.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/persistent_ptr.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pext.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/shared_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/timed_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/transaction.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/utils.hpp Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/atomic.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/base.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/iterator.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/iterator_base.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/lists_atomic.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/lists_atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/pool.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/pool_base.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/thread.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/tx_base.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/types.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/include/pmemcompat.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/alloc_class.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/alloc_class.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/container.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/container_ctree.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/container_ctree.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/container_seglists.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/container_seglists.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl_global.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl_global.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctree.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctree.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/cuckoo.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/cuckoo.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/palloc.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/palloc.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/pmemops.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/pvector.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/pvector.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/recycler.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/recycler.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/redo.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/redo.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ringbuf.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ringbuf.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/dlsym.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/errno_freebsd.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_posix.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/mmap.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/mmap.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/mmap_posix.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush_linux.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_badblock.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_deep.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_deep_linux.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_deep_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_none.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread_posix.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/plugin.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/plugin.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/pmemcommon.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/pool_hdr.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/queue.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/shutdown_state.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/shutdown_state.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_pmem.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_posix.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid_linux.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid_windows.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/valgrind/drd.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/valgrind/helgrind.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/valgrind/memcheck.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/valgrind/pmemcheck.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/valgrind/valgrind.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/common/vec.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemcto.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/allocator.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/condition_variable.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/array_traits.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/check_persistent_ptr_array.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/common.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/conversions.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/integer_sequence.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/life.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/make_atomic_impl.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/persistent_ptr_base.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/pexceptions.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/detail/specialization.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/make_persistent.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/make_persistent_array.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/make_persistent_array_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/make_persistent_atomic.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/p.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/persistent_ptr.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pext.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/shared_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/timed_mutex.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/transaction.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/utils.hpp Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/action.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/action_base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/atomic.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/iterator.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/iterator_base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/lists_atomic.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/lists_atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/pool.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/pool_base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/thread.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/tx_base.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/types.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/include/pmemcompat.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/blk.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/blk.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt_layout.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/libpmemblk.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/libpmemblk_main.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/libpmemcto.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/libpmemcto_main.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemlog/libpmemlog.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemlog/libpmemlog_main.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemlog/log.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemlog/log.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/alloc_class.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/alloc_class.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/container.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/container_ravl.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/container_ravl.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/container_seglists.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/container_seglists.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl_global.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl_global.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/cuckoo.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/cuckoo.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/palloc.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/palloc.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/pmemops.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/pvector.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/pvector.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ravl.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ravl.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/recycler.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/recycler.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/redo.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/redo.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ringbuf.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ringbuf.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/stats.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/stats.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/daxio/daxio.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/dump.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/dump.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info_blk.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info_cto.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info_log.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info_obj.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/pmempool.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/rm.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/synchronize.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/synchronize.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/transform.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/transform.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_fip.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_fip.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.h Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_util.c Examining data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_util.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock_none.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl_global.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl_prefault.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl_sds.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/dlsym.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/errno_freebsd.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/extent.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/extent_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/extent_linux.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_posix.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/mmap.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/mmap.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/mmap_posix.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_linux.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_windows.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_badblock.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_deep.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_deep_linux.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_deep_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_none.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread_posix.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/pmemcommon.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/pool_hdr.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/queue.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/shutdown_state.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/shutdown_state.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_pmem.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_posix.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid_linux.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid_windows.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/valgrind/drd.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/valgrind/helgrind.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/valgrind/memcheck.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/valgrind/pmemcheck.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/valgrind/valgrind.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/vec.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/common/vecq.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/action.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/action_base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/atomic.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/iterator.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/iterator_base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/lists_atomic.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/lists_atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/pool.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/pool_base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/thread.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/tx_base.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/types.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/include/pmemcompat.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/alloc_class.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/alloc_class.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/container.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/container_ravl.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/container_ravl.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/container_seglists.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/container_seglists.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ctl_debug.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ctl_debug.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/cuckoo.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/cuckoo.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/palloc.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/palloc.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/pmemops.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ravl.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ravl.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/recycler.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/recycler.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/stats.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/stats.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ulog.c Examining data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ulog.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/alloc.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/alloc.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock_none.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl_cow.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl_fallocate.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl_global.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl_prefault.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl_sds.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/dlsym.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/errno_freebsd.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/extent.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/extent_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/extent_linux.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/fault_injection.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_posix.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/mmap.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/mmap.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/mmap_posix.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_linux.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_none.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_windows.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_badblock.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_deep.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_deep_linux.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_deep_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_none.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread_posix.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/pmemcommon.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/pool_hdr.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/queue.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/shutdown_state.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/shutdown_state.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_pmem.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_posix.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid_linux.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid_windows.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/valgrind/drd.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/valgrind/helgrind.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/valgrind/memcheck.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/valgrind/pmemcheck.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/valgrind/valgrind.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/vec.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/common/vecq.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/action.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/action_base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/atomic.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/iterator.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/iterator_base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/lists_atomic.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/lists_atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/pool.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/pool_base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/thread.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/tx_base.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/types.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/include/pmemcompat.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/blk.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/blk.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt_layout.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/libpmemblk.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/libpmemblk_main.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemlog/libpmemlog.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemlog/libpmemlog_main.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemlog/log.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemlog/log.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/alloc_class.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/alloc_class.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/container.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/container_ravl.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/container_ravl.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/container_seglists.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/container_seglists.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/critnib.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/critnib.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ctl_debug.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ctl_debug.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/palloc.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/palloc.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/pmemops.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ravl.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ravl.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/recycler.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/recycler.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/stats.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/stats.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ulog.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ulog.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/dump.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/dump.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/feature.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/feature.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info_blk.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info_log.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info_obj.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/pmempool.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/rm.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/synchronize.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/synchronize.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/transform.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/transform.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_fip.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_fip.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.h Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_util.c Examining data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_util.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/alloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/alloc.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/badblock_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/badblock_none.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl_cow.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl_fallocate.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl_global.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl_prefault.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/ctl_sds.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/dlsym.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/errno_freebsd.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/extent.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/extent_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/extent_linux.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/fault_injection.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/file.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/file.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/file_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/fs.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/fs_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/mmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/mmap.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/mmap_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/mmap_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_linux.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_none.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_badblock.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_deep.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_deep_linux.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_deep_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_none.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/out.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/out.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/pmemcommon.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/pool_hdr.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/queue.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/rand.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/rand.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/set.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/set.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/shutdown_state.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/shutdown_state.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/sys_util.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/util.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/util.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/util_pmem.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/util_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/util_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/uuid.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/uuid.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/uuid_freebsd.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/uuid_linux.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/uuid_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/common/valgrind/drd.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/valgrind/helgrind.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/valgrind/memcheck.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/valgrind/pmemcheck.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/valgrind/valgrind.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/valgrind_internal.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/vec.h Examining data/pmdk-convert-1.7/nvml/1.7/src/common/vecq.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmem.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemblk.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemlog.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/action.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/action_base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/atomic.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/ctl.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/iterator.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/iterator_base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/lists_atomic.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/lists_atomic_base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/pool.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/pool_base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/thread.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/tx_base.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/types.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libpmempool.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libvmem.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/libvmmalloc.h Examining data/pmdk-convert-1.7/nvml/1.7/src/include/pmemcompat.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/blk.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/blk.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt_layout.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/libpmemblk.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/libpmemblk_main.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemlog/libpmemlog.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemlog/libpmemlog_main.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemlog/log.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemlog/log.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/alloc_class.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/alloc_class.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/bucket.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/bucket.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/container.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/container_ravl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/container_ravl.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/container_seglists.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/container_seglists.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/critnib.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/critnib.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ctl_debug.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ctl_debug.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/heap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/heap.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/heap_layout.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/lane.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/lane.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/libpmemobj.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/libpmemobj_main.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/list.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/list.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/memblock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/memblock.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/memops.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/memops.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/palloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/palloc.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/pmalloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/pmalloc.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/pmemops.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ravl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ravl.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/recycler.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/recycler.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/stats.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/stats.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/sync.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/sync.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/tx.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/tx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ulog.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ulog.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/dump.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/dump.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/feature.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/feature.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info_blk.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info_log.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info_obj.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/pmempool.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/rm.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/synchronize.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/synchronize.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/transform.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/transform.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_fip.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_fip.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.h Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_util.c Examining data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_util.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/aarch64/arm_cacheops.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/aarch64/flush.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/aarch64/init.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/libpmem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/libpmem_main.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/memops_generic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/pmem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/pmem.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/pmem_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/pmem_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/cpu.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/cpu.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/flush.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/init.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_avx512f.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx512f.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx512f_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx512f_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx512f_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx512f_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_avx_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_sse2.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_sse2_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_sse2_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_sse2_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_nt_sse2_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_sse2.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx512f.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx512f_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx512f_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx512f_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx512f_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_avx_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_sse2.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_sse2_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_sse2_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_sse2_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy/memcpy_t_sse2_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memcpy_memset.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_avx512f.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx512f.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx512f_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx512f_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx512f_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx512f_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_avx_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_sse2.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_sse2_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_sse2_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_sse2_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_nt_sse2_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_sse2.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx512f.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx512f_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx512f_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx512f_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx512f_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_avx_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_sse2.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_sse2_clflush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_sse2_clflushopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_sse2_clwb.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/memset/memset_t_sse2_empty.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_backup.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_bad_blocks.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_blk.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_btt_info.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_btt_map_flog.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_log.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_sds.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_write.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/feature.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/libpmempool.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/libpmempool_main.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pmempool.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/replica.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/replica.h Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/rm.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c Examining data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/librpmem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem.h Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_cmd.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_cmd.h Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.h Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_obc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_obc.h Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.h Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_util.c Examining data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_util.h Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.h Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common_log.h Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_fip_common.c Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_fip_common.h Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_fip_lane.h Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_fip_msg.h Examining data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/arch_flags/arch_flags.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_include/blk_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_nblock/blk_nblock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_non_zero/blk_non_zero.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_pool/blk_pool.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_pool_lock/blk_pool_lock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_pool_win/blk_pool_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_recovery/blk_recovery.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_rw/blk_rw.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/blk_rw_mt/blk_rw_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/checksum/checksum.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/compat_incompat_features/pool_open.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_cow/ctl_cow.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/ex_linkedlist/ex_linkedlist.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/getopt/getopt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api/libpmempool_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api_win/libpmempool_test_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_check_version/libpmempool_check_version.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_feature/libpmempool_feature.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_include/libpmempool_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_rm/libpmempool_rm.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_rm_win/libpmempool_rm_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_sync/libpmempool_sync.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_sync_win/libpmempool_sync_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_transform/libpmempool_transform.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_transform_win/libpmempool_transform_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_basic/log_basic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_include/log_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_pool/log_pool.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_pool_lock/log_pool_lock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_pool_win/log_pool_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_recovery/log_recovery.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/log_walker/log_walker.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/mmap_fixed/mmap_fixed.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_action/obj_action.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_alloc/obj_alloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_basic_integration/obj_basic_integration.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_bucket/obj_bucket.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_check/obj_check.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_check_remote/obj_check_remote.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_constructor/obj_constructor.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_critnib/obj_critnib.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_critnib_mt/obj_critnib_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_alignment/obj_ctl_alignment.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_alloc_class/obj_ctl_alloc_class.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_alloc_class_config/obj_ctl_alloc_class_config.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_arenas/obj_ctl_arenas.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_config/obj_ctl_config.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_debug/obj_ctl_debug.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_heap_size/obj_ctl_heap_size.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_stats/obj_ctl_stats.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_debug/obj_debug.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct_inline.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct_non_inline.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct_volatile/obj_direct_volatile.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_extend/obj_extend.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_first_next/obj_first_next.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_fragmentation/obj_fragmentation.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_fragmentation2/obj_fragmentation2.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_heap/obj_heap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_heap_interrupt/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_heap_interrupt/obj_heap_interrupt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_heap_state/obj_heap_state.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_atomic_base_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_atomic_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_base_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_iterator_base_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_iterator_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_lists_atomic_base_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_lists_atomic_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_pool_base_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_pool_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_thread_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_tx_base_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_tx_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_include/obj_types_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_lane/obj_lane.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_layout/obj_layout.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list/obj_list.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list/obj_list.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list/obj_list_mocks.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list/obj_list_mocks_palloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list_macro/obj_list_macro.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_locks/obj_locks.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_many_size_allocs/obj_many_size_allocs.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_mem/obj_mem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memblock/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memblock/obj_memblock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memcheck/obj_memcheck.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memcheck_register/obj_memcheck_register.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memops/obj_memops.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_oid_thread/obj_oid_thread.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_out_of_memory/obj_out_of_memory.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_persist_count/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_persist_count/obj_persist_count.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmalloc_basic/obj_pmalloc_basic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmalloc_mt/obj_pmalloc_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmalloc_oom_mt/obj_pmalloc_oom_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmalloc_rand_mt/obj_pmalloc_rand_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmemcheck/obj_pmemcheck.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool/obj_pool.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lock/obj_pool_lock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_win/obj_pool_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ravl/obj_ravl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_realloc/obj_realloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_recovery/obj_recovery.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_recreate/obj_recreate.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_reorder_basic/obj_reorder_basic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_root/obj_root.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sds/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sds/obj_sds.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_strdup/obj_strdup.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sync/mocks_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sync/mocks_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sync/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sync/obj_sync.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_toid/obj_toid.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range/obj_tx_add_range.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range_direct/obj_tx_add_range_direct.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_alloc/obj_tx_alloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_callbacks/obj_tx_callbacks.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_flow/obj_tx_flow.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_free/obj_tx_free.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_invalid/obj_tx_invalid.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_lock/obj_tx_lock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_locks/obj_tx_locks.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_locks_abort/obj_tx_locks_abort.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_mt/obj_tx_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_realloc/obj_tx_realloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_strdup/obj_tx_strdup.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ulog_size/obj_ulog_size.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/obj_zones/obj_zones.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/out_err/out_err.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/out_err_mt/out_err_mt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/out_err_mt_win/out_err_mt_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/out_err_win/out_err_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_deep_persist/mocks_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_deep_persist/pmem_deep_persist.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/pmem_has_auto_flush.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/pmem_has_auto_flush_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/pmem_has_auto_flush_win.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_include/pmem_include.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_is_pmem/pmem_is_pmem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_is_pmem_posix/pmem_is_pmem_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_is_pmem_windows/pmem_is_pmem_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/mocks_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/mocks_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_trunc/pmem_map_file_trunc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/mocks_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memcpy/pmem_memcpy.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memmove/pmem_memmove.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memset/pmem_memset.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt/pmem_movnt.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt_align/pmem_movnt_align.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_unmap/pmem_unmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_valgr_simple/pmem_valgr_simple.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_simple/pmreorder_simple.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_stack/pmreorder_stack.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/remote_basic/remote_basic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/remote_obj_basic/remote_obj_basic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_addr/rpmem_addr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_addr_ext/rpmem_addr_ext.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_oob.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_oob.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_close.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_common.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_common.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_create.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_misc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_open.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_set_attr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc_int/rpmem_obc_int.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_proto/rpmem_proto.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_config/rpmemd_config_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_log/rpmemd_log_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_close.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_common.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_common.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_create.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_misc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_msg_hdr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_open.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_set_attr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_util/rpmemd_util_test.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/set_funcs/set_funcs.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/signal_handle/signal_handle.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/anonymous_mmap/anonymous_mmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/bttcreate/bttcreate.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/cmpmap/cmpmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/signals_freebsd.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/signals_linux.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ddmap/ddmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/dllview/dllview.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/fallocate_detect/fallocate_detect.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/fip/fip.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/obj_verify/obj_verify.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemalloc/pmemalloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemdetect/pmemdetect.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemwrite/write.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/sparsefile/sparsefile.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/tools/usc_permission_check/usc_permission_check.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/traces/traces.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/traces_custom_function/traces_custom_function.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/traces_pmem/traces_pmem.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_alloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_backtrace.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_file.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_pthread.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_signal.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_badblock/util_badblock.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_cpuid/util_cpuid.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_ctl/util_ctl.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_extent/util_extent.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_file_create/util_file_create.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_file_open/util_file_open.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_is_absolute/util_is_absolute.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_is_poolset/util_is_poolset.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_is_zeroed/util_is_zeroed.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_map_proc/util_map_proc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_parse_size/util_parse_size.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_pool_hdr/util_pool_hdr.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/mocks.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/mocks_posix.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/mocks_windows.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/util_poolset.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset_foreach/util_poolset_foreach.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset_parse/util_poolset_parse.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset_size/util_poolset_size.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_sds/mocks_windows.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_sds/util_sds.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_uuid_generate/util_uuid_generate.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_vec/util_vec.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/util_vecq/util_vecq.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_aligned_alloc/vmem_aligned_alloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_calloc/vmem_calloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_check/vmem_check.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_check_allocations/vmem_check_allocations.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_check_version/vmem_check_version.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_create/vmem_create.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_create_error/vmem_create_error.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_create_in_region/vmem_create_in_region.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_create_win/vmem_create_win.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_custom_alloc/vmem_custom_alloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_malloc/vmem_malloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_malloc_usable_size/vmem_malloc_usable_size.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_mix_allocations/vmem_mix_allocations.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_multiple_pools/vmem_multiple_pools.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_out_of_memory/vmem_out_of_memory.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_pages_purging/vmem_pages_purging.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_realloc/vmem_realloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_realloc_inplace/vmem_realloc_inplace.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_stats/vmem_stats.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_strdup/vmem_strdup.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_valgrind/vmem_valgrind.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_valgrind_region/vmem_valgrind_region.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_calloc/vmmalloc_calloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_check_allocations/vmmalloc_check_allocations.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_dummy_funcs/vmmalloc_dummy_funcs.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_dummy_funcs/vmmalloc_dummy_funcs.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_fork/vmmalloc_fork.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_init/libtest.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_init/libtest.h Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_init/vmmalloc_init.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_malloc/vmmalloc_malloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_malloc_hooks/vmmalloc_malloc_hooks.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_malloc_usable_size/vmmalloc_malloc_usable_size.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_memalign/vmmalloc_memalign.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_out_of_memory/vmmalloc_out_of_memory.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_realloc/vmmalloc_realloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_valgrind/vmmalloc_valgrind.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_valloc/vmmalloc_valloc.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/win_common/win_common.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/win_lists/win_lists.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/win_mmap_dtor/win_mmap_dtor.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/win_poolset_unmap/win_poolset_unmap.c Examining data/pmdk-convert-1.7/nvml/1.7/src/test/win_signal/win_signal.c FINAL RESULTS: data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:159:12: [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. if ((cc = readlink(procpath, namepath, PATH_MAX)) < 0) data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:161:12: [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. if ((cc = readlink(procpath, namepath, PATH_MAX)) < 0) data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:302:8: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(part->path, mode)) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:167:12: [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. if ((cc = readlink(procpath, namepath, PATH_MAX)) < 0) data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:595:8: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(part->path, mode)) { data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:120:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(pathname, mode); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:183:12: [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. if ((cc = readlink(procpath, namepath, PATH_MAX)) < 0) data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:132:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(pathname, mode); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_posix.c:135:7: [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. cc = readlink("/proc/self/exe", path, pathlen); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:158:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(pathname, mode); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_posix.c:136:7: [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. cc = readlink("/proc/self/exe", path, pathlen); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:158:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(pathname, mode); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_posix.c:136:7: [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. cc = readlink("/proc/self/exe", path, pathlen); data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:158:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(pathname, mode); data/pmdk-convert-1.7/nvml/1.7/src/common/util_posix.c:136:7: [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. cc = readlink("/proc/self/exe", path, pathlen); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:478:18: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. ssize_t sret = readlink(path, link, PATH_MAX - 1); data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:299:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:321:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:327:23: [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. __attribute__((format(printf, 3, 4))) data/pmdk-convert-1.7/nvml/1.0/src/common/out.h:176:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void out(const char *fmt, ...) __attribute__((format(printf, 1, 2))); data/pmdk-convert-1.7/nvml/1.0/src/common/out.h:178:29: [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. ...) __attribute__((format(printf, 2, 3))); data/pmdk-convert-1.7/nvml/1.0/src/common/out.h:181:24: [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. __attribute__((format(printf, 5, 6))); data/pmdk-convert-1.7/nvml/1.0/src/common/out.h:184:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.0/src/common/out.h:187:24: [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. __attribute__((format(printf, 4, 5))) data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:666:6: [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(part->path, F_OK) == 0) data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:369: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:370:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:407:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:861:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, ap); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/create.c:160:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/create.c:360:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. pc.fexists = access(pc.fname, F_OK) == 0; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/dump.c:134:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info.c:328:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:156:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:213:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:241:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:267:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.c:104:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.c:113:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int write_protected = access(file, W_OK) != 0; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.c:140:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int exists = access(part_file, F_OK) == 0; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.c:210:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int exists = access(file, F_OK | R_OK) == 0; data/pmdk-convert-1.7/nvml/1.1/src/common/mmap_windows.c:167: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. DWORD access; data/pmdk-convert-1.7/nvml/1.1/src/common/mmap_windows.c:174: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, data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:309:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:331:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:337:23: [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. __attribute__((format(printf, 3, 4))) data/pmdk-convert-1.7/nvml/1.1/src/common/out.h:182:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void out(const char *fmt, ...) __attribute__((format(printf, 1, 2))); data/pmdk-convert-1.7/nvml/1.1/src/common/out.h:184:29: [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. ...) __attribute__((format(printf, 2, 3))); data/pmdk-convert-1.7/nvml/1.1/src/common/out.h:187:24: [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. __attribute__((format(printf, 5, 6))); data/pmdk-convert-1.7/nvml/1.1/src/common/out.h:190:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.1/src/common/out.h:193:24: [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. __attribute__((format(printf, 4, 5))) data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:779:6: [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(part->path, F_OK) == 0) data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:214: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:215:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.1/src/common/util_windows.c:72: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.1/src/common/util_windows.c:73:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/check.c:143:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:691:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, ap); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert.c:76:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/create.c:160:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/create.c:360:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. pc.fexists = access(pc.fname, F_OK) == 0; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/dump.c:134:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info.c:328:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:156:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:213:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:241:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:267:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.c:104:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.c:113:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int write_protected = access(file, W_OK) != 0; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.c:140:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int exists = access(part_file, F_OK) == 0; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.c:215:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int exists = access(file, F_OK | R_OK) == 0; data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c:464: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(line_copy, line); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c:172:12: [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 ret = vsnprintf(rpmemd_prefix_buff, RPMEMD_MAX_PREFIX, data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c:225:8: [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. ret = vsnprintf(&buff[cnt], RPMEMD_MAX_MSG - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c:59:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_windows.c:73: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_windows.c:74:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:317:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:339:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:345:23: [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. __attribute__((format(printf, 3, 4))) data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.h:192:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void out(const char *fmt, ...) __attribute__((format(printf, 1, 2))); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.h:194:29: [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. ...) __attribute__((format(printf, 2, 3))); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.h:197:24: [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. __attribute__((format(printf, 5, 6))); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.h:200:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.h:203:24: [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. __attribute__((format(printf, 4, 5))) data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1112:6: [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(part->path, F_OK) == 0) data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2063:22: [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 (poolsize > 0 && access(path, F_OK) == 0) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:268: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(result, s1); data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:269:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(result, s2); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/check.c:145:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:767:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(qbuff, Q_BUFF_SIZE, fmt, ap); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert.c:79:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.c:165:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.c:428:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. pc.fexists = access(pc.fname, F_OK) == 0; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/dump.c:136:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info.c:335:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:146:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:203:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:231:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:257:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:302:3: [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(str_buff, STR_MAX, "%"PRIu64, size); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:322:4: [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(str_buff, STR_MAX, "%"PRIu64, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:692:3: [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(str_buff, STR_MAX, "wrong! should be 0x%016"PRIx64, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/pmempool.c:218:3: [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(format, commands[i].name, commands[i].brief); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.c:112:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.c:121:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int write_protected = access(file, W_OK) != 0; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.c:224:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int exists = access(part_file, F_OK) == 0; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.c:305:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int exists = access(file, F_OK | R_OK) == 0; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/synchronize.c:119:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/transform.c:121:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:400: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(line_copy, line); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c:167:12: [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 ret = vsnprintf(rpmemd_prefix_buff, RPMEMD_MAX_PREFIX, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c:220:8: [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. ret = vsnprintf(&buff[cnt], RPMEMD_MAX_MSG - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:67: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:68:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:93:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(pathname, mode); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:234:2: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(npath, path); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:338:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:360:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:268: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(result, s1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:269:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(result, s2); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:72: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:73:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c:64: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(search_path, path); data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c:132: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(path, f->dir); data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c:134: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(path + f->dirlen + 1, f->entry.name); data/pmdk-convert-1.7/nvml/1.4.3/src/common/mmap_posix.c:92:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(line, sscanf_os, &lo, &hi) == 2) { data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush_linux.c:133:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int ret = snprintf(domain_path, PATH_MAX, data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_ndctl.c:124:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (sprintf(path, "/dev/%s", devname) == -1) { data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:105:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(pathname, mode); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:234:2: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(npath, path); data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:312:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:334:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.4.3/src/common/plugin.c:133: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(plugin_path, plugin_dir); data/pmdk-convert-1.7/nvml/1.4.3/src/common/plugin.c:141: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(plugin_path + dirlen + 1, entry->d_name); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:275: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(result, s1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:276:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(result, s2); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/daxio/daxio.c:63:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, "daxio: " fmt, ##__VA_ARGS__);\ data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/check.c:145:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:722:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(qbuff, Q_BUFF_SIZE, fmt, ap); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert.c:80:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.c:174:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/dump.c:137:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info.c:337:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:158:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, str, ap); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:218:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:246:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:272:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:323:9: [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. ret = snprintf(str_buff, STR_MAX, "%"PRIu64, size); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:343:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = snprintf(str_buff, STR_MAX, "%"PRIu64, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:741:9: [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. ret = snprintf(str_buff, STR_MAX, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/pmempool.c:218:3: [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(format, commands[i].name, commands[i].brief); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/rm.c:124:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/synchronize.c:119:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/transform.c:121:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:420: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(line_copy, line); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.c:173:12: [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 ret = vsnprintf(rpmemd_prefix_buff, RPMEMD_MAX_PREFIX, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.c:225:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(&buff[cnt], RPMEMD_MAX_MSG - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c:247: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(path, file); data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c:248:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path, bbs_suffix); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:72: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:73:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c:64: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(search_path, path); data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c:132: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(path, f->dir); data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c:134: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(path + f->dirlen + 1, f->entry.name); data/pmdk-convert-1.7/nvml/1.5.2/src/common/mmap_posix.c:92:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(line, sscanf_os, &lo, &hi) == 2) { data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_linux.c:141:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int ret = snprintf(domain_path, PATH_MAX, data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:131:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(pathname, mode); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:322:9: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return execv(path, argv); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:266:2: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(npath, path); data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:318:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:340:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:117: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(lib_name, lib); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:118:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(lib_name, suffix); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:119: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(func_name, func); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:120:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(func_name, suffix); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:364: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(result, s1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:365:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(result, s2); data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c:247: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(path, file); data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c:248:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path, bbs_suffix); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:72: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:73:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c:64: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(search_path, path); data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c:132: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(path, f->dir); data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c:134: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(path + f->dirlen + 1, f->entry.name); data/pmdk-convert-1.7/nvml/1.6.1/src/common/mmap_posix.c:92:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(line, sscanf_os, &lo, &hi) == 2) { data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_linux.c:141:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int ret = snprintf(domain_path, PATH_MAX, data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:131:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(pathname, mode); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:381:9: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return execv(path, argv); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c:268:2: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(npath, path); data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:323:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:345:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:98: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(lib_name, lib); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:99:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(lib_name, suffix); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:100: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(func_name, func); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:101:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(func_name, suffix); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:329: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(result, s1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:330:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(result, s2); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c:64:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, "daxio: " fmt, ##__VA_ARGS__);\ data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c:141:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, USAGE_MESSAGE); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/check.c:146:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:789:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int p = vsnprintf(qbuff, Q_BUFF_SIZE, fmt, ap); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c:73: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(p, dir); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c:74:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, convert_bin); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.c:176:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/dump.c:137:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/feature.c:123:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info.c:333:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:160:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, str, ap); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:220:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:248:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:274:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:325:9: [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. ret = snprintf(str_buff, STR_MAX, "%"PRIu64, size); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:345:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = snprintf(str_buff, STR_MAX, "%"PRIu64, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:705:9: [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. ret = snprintf(str_buff, STR_MAX, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/pmempool.c:225:3: [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(format, commands[i].name, commands[i].brief); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/rm.c:124:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/synchronize.c:120:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/transform.c:121:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:422: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(line_copy, line); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.c:185:12: [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 ret = vsnprintf(rpmemd_prefix_buff, RPMEMD_MAX_PREFIX, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.c:243:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(&buff[cnt], RPMEMD_MAX_MSG - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c:247: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(path, file); data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c:248:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path, bbs_suffix); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:72: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). (void) strcpy(fullname, dir); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:73:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(fullname, templ); data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c:64: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(search_path, path); data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c:132: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(path, f->dir); data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c:134: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(path + f->dirlen + 1, f->entry.name); data/pmdk-convert-1.7/nvml/1.7/src/common/mmap_posix.c:92:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(line, sscanf_os, &lo, &hi) == 2) { data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_linux.c:141:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int ret = snprintf(domain_path, PATH_MAX, data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:131:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(pathname, mode); data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:381:9: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return execv(path, argv); data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c:268:2: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(npath, path); data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:323:35: [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. static Vsnprintf_func Vsnprintf = vsnprintf; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:345:41: [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 = (vsnprintf_func == NULL) ? vsnprintf : vsnprintf_func; data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:98: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(lib_name, lib); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:99:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(lib_name, suffix); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:100: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(func_name, func); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:101:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(func_name, suffix); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:340: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(result, s1); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:341:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(result, s2); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.c:356:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int p = vsnprintf(st->msg, MAX_MSG_STR_SIZE, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/feature.c:75:12: [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 ret = vsnprintf(buff + *pos, size, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_cmd.c:215:3: [4] (shell) execvp: 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. execvp(cmd->args.argv[0], cmd->args.argv); data/pmdk-convert-1.7/nvml/1.7/src/test/arch_flags/arch_flags.c:64:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(opts, "%" SCNu16 ":%" SCNu8 ":%" SCNu8 data/pmdk-convert-1.7/nvml/1.7/src/test/mmap_fixed/mmap_fixed.c:106:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name1, "%s\\testfile1", argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/mmap_fixed/mmap_fixed.c:107:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name2, "%s\\testfile2", argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sds/obj_sds.c:109: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(uid, uids[uid_it]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_deep_persist/mocks_posix.c:50: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(path, R_OK)) data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:57:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path2, prefix); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:58:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path2, path + strlen(BUS_DEVICE_PATH)); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:78:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path2, prefix); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:79:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path2, path + strlen(BUS_DEVICE_PATH)); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:94:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path2, prefix); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:95:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path2, path + strlen(BUS_DEVICE_PATH)); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:956:2: [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(cmd, sizeof(cmd), RPMEMD_TERMINATE_CMD, target, pid); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:957: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. return system(cmd); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:966: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. FILE *stream = popen(cmd, "r"); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:985:2: [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(cmd, sizeof(cmd), GET_RPMEMD_PID_CMD, target, pid_file); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:996:2: [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(cmd, sizeof(cmd), COUNT_RPMEMD_CMD, target, pid); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_oob.c:77:8: [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. ret = vsnprintf(&cmd_buff[cnt], CMD_BUFF_SIZE - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_common.c:70:8: [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. ret = vsnprintf(&cmd_buff[cnt], CMD_BUFF_SIZE - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_log/rpmemd_log_test.c:70:11: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. FUNC_MOCK(syslog, void, int priority, const char *format, ...) data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_log/rpmemd_log_test.c:80:2: [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(syslog_fh, format, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_log/rpmemd_log_test.c:96:2: [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(syslog_fh, format, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_common.c:71:8: [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. ret = vsnprintf(&cmd_buff[cnt], CMD_BUFF_SIZE - cnt, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/set_funcs/set_funcs.c:109: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((char *)p, s); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:89:2: [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(fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:194:3: [4] (shell) execvp: 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. execvp(cmd, argv); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:420:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(s, tcp_fmt, &p, &inode) != 2) { data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c:71:4: [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(usage_str, argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c:91:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, usage_str, argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c:99: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(stderr, usage_str, argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c:104: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(stderr, usage_str, argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c:171: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(stderr, usage_str, argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemdetect/pmemdetect.c:64:23: [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 err(fmt, ...) fprintf(stderr, "pmemdetect: " fmt, __VA_ARGS__) data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:165:2: [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(ctx->err, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:178:2: [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(ctx->out, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:2254:3: [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(POCLI_CMD_PROMPT); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:334:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:611:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(pfp->value, "0x%" SCNx8, &v) != 1 && data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:612:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(pfp->value, "%" SCNu8, &v) != 1) data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:629:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(pfp->value, "0x%" SCNx16, &v) != 1 && data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:630:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(pfp->value, "%" SCNu16, &v) != 1) data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:650:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(pfp->value, "0x%" SCNx32, &v) != 1 && data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:651:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(pfp->value, "%" SCNu32, &v) != 1) data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:671:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(pfp->value, "0x%" SCNx64, &v) != 1 && data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:672:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(pfp->value, "%" SCNu64, &v) != 1) data/pmdk-convert-1.7/nvml/1.7/src/test/tools/sparsefile/sparsefile.c:62:2: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfwprintf(stderr, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/traces_custom_function/traces_custom_function.c:89:12: [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. ret_val = vsnprintf(str, size, format2, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h:149:24: [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. __attribute__((format(printf, 6, 7))); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h:153:24: [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. __attribute__((format(printf, 6, 7))); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h:157:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h:160:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h:165:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/unittest.h:168:24: [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. __attribute__((format(printf, 4, 5))); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:262:8: [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. sn = vsnprintf(&buf[cc], MAXPRINT - cc, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/test/util_sds/util_sds.c:158: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(uid, uids[uid_it]); data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_custom_alloc/vmem_custom_alloc.c:161: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(test, TEST_STRING_VALUE); data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_fork/vmmalloc_fork.c:158:4: [4] (shell) execl: 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. execl("/bin/echo", "/bin/echo", "Hello world!", NULL); data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c:64:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, "daxio: " fmt, ##__VA_ARGS__);\ data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c:141:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, USAGE_MESSAGE); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/check.c:146:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:774:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int p = vsnprintf(qbuff, Q_BUFF_SIZE, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c:73: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(p, dir); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c:74:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, convert_bin); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.c:176:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/dump.c:137:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/feature.c:123:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info.c:333:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:160:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, str, ap); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:220:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:248:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:274:2: [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_fh, fmt, ap); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:325:9: [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. ret = snprintf(str_buff, STR_MAX, "%"PRIu64, size); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:345:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = snprintf(str_buff, STR_MAX, "%"PRIu64, data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:685:9: [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. ret = snprintf(str_buff, STR_MAX, data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/pmempool.c:225:3: [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(format, commands[i].name, commands[i].brief); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/rm.c:124:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/synchronize.c:120:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/transform.c:121:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, appname); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:422: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(line_copy, line); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.c:185:12: [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 ret = vsnprintf(rpmemd_prefix_buff, RPMEMD_MAX_PREFIX, data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.c:243:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(&buff[cnt], RPMEMD_MAX_MSG - cnt, fmt, ap); data/pmdk-convert-1.7/pmdk-convert.c:130:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path[0], "%s/%s.so", dir, name); data/pmdk-convert-1.7/pmdk-convert.c:138:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path[1], "%s/pmdk-convert/%s.so", LIBDIR, name); data/pmdk-convert-1.7/pmdk-convert.c:237:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s/%s.dll", dir, name); data/pmdk-convert-1.7/pmemobj_convert.h:61:8: [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. ret = vsnprintf(errstr, sizeof(errstr), format, ap); data/pmdk-convert-1.7/pmemobj_convert_v1.c:54:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pmdk-convert-1.7/pmemobj_convert_v2.c:55:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pmdk-convert-1.7/pmemobj_convert_v3.c:56:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pmdk-convert-1.7/utils/check_license/check-license.c:71:26: [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 ERROR2(fmt, ...) fprintf(stderr, fmt "\n", __VA_ARGS__) data/pmdk-convert-1.7/utils/check_license/check-license.c:509:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(help_str, argv[0]); data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:191:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((log_level = getenv(log_level_var)) != NULL) { data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:198: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. if ((log_file = getenv(log_file_var)) != NULL) { data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:218:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *log_alignment = getenv("NVML_LOG_ALIGN"); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:130:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *e = getenv("PMEM_MMAP_HINT"); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:83: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. char *env = getenv("PMEMOBJ_COW"); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:434:6: [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("PMEMOBJ_VG_CHECK_UNDEF")) data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:418:16: [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. while ((opt = getopt_long(argc, argv, "hvrNb:qy", data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:1218:12: [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. int opt = getopt_long(argc, argv, optstr, opts->options, NULL); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/dump.c:303:16: [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. while ((opt = getopt_long(argc, argv, "ho:br:c:", data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/pmempool.c:222:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/rm.c:180:16: [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. while ((opt = getopt_long(argc, argv, optstr, data/pmdk-convert-1.7/nvml/1.0/src/tools/rpmemd/rpmemd.c:92:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:196:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((log_level = getenv(log_level_var)) != NULL) { data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:203: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. if ((log_file = getenv(log_file_var)) != NULL) { data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:223:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *log_alignment = getenv("NVML_LOG_ALIGN"); data/pmdk-convert-1.7/nvml/1.1/src/common/pthread_windows.c:136:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex->lock); data/pmdk-convert-1.7/nvml/1.1/src/common/pthread_windows.c:150:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex->lock); data/pmdk-convert-1.7/nvml/1.1/src/common/util.c:104:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *e = getenv("PMEM_MMAP_HINT"); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:146: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. char *env = getenv("PMEMOBJ_COW"); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:506:6: [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("PMEMOBJ_VG_CHECK_UNDEF")) data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/check.c:154:16: [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. while ((opt = getopt_long(argc, argv, "ahvrNb:qy", data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:1048:12: [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. int opt = getopt_long(argc, argv, optstr, opts->options, NULL); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/dump.c:303:16: [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. while ((opt = getopt_long(argc, argv, "ho:br:c:", data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/pmempool.c:229:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/rm.c:180:16: [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. while ((opt = getopt_long(argc, argv, optstr, data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c:508:16: [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. while ((opt = getopt_long(argc, argv, optstr, options, data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:135:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rpath = realpath(spath, npath); data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap.c:100:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *e = getenv("PMEM_MMAP_HINT"); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:202:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((log_level = getenv(log_level_var)) != NULL) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:209: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. if ((log_file = getenv(log_file_var)) != NULL && log_file[0] != '\0') { data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:231:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *log_alignment = getenv("NVML_LOG_ALIGN"); data/pmdk-convert-1.7/nvml/1.2.4/src/common/pthread_windows.c:145:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex->lock); data/pmdk-convert-1.7/nvml/1.2.4/src/common/pthread_windows.c:159:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex->lock); data/pmdk-convert-1.7/nvml/1.2.4/src/common/util_linux.c:58:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath(path, NULL); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:210: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. char *env = getenv("PMEMOBJ_COW"); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:653:6: [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("PMEMOBJ_VG_CHECK_UNDEF")) data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/check.c:156:16: [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. while ((opt = getopt_long(argc, argv, "ahvrNb:qy", data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:1139:12: [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. int opt = getopt_long(argc, argv, optstr, opts->opts, NULL); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/pmempool.c:257:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/rm.c:270:16: [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. while ((opt = getopt_long(argc, argv, optstr, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/synchronize.c:130:16: [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. while ((opt = getopt_long(argc, argv, "dhv", data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/transform.c:132:16: [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. while ((opt = getopt_long(argc, argv, "dhv", data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd.c:638:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. _str(getenv("SSH_CONNECTION"))); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd.c:639:38: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. RPMEMD_LOG(NOTICE, "user: %s", _str(getenv("USER"))); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:444:16: [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. while ((opt = getopt_long(argc, argv, optstr, options, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:492:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *home = getenv(HOME_ENV); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:163:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rpath = realpath(spath, npath); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:195:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. daxpath = realpath(spath, NULL); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:220:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread_windows.c:107:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread_windows.c:130:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:473:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!overwrite && getenv(name)) data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:509:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_linux.c:62:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath(path, NULL); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:163:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rpath = realpath(spath, npath); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:228:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. daxpath = realpath(spath, NULL); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:271:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread_windows.c:112:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread_windows.c:135:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:473:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!overwrite && getenv(name)) data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:509:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_posix.c:62:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath(path, NULL); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/daxio/daxio.c:162:16: [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. while ((opt = getopt_long(argc, argv, "i:o:k:s:l:zhV", data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/check.c:156:16: [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. while ((opt = getopt_long(argc, argv, "ahvrNb:qy", data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:1099:12: [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. int opt = getopt_long(argc, argv, optstr, opts->opts, NULL); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/pmempool.c:269:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/rm.c:304:16: [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. while ((opt = getopt_long(argc, argv, optstr, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/synchronize.c:130:16: [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. while ((opt = getopt_long(argc, argv, "dhv", data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/transform.c:132:16: [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. while ((opt = getopt_long(argc, argv, "dhv", data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:465:16: [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. while ((opt = getopt_long(argc, argv, optstr, options, data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:176:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rpath = realpath(spath, npath); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:228:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. daxpath = realpath(spath, NULL); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:297:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread_windows.c:112:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread_windows.c:135:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:505:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!overwrite && getenv(name)) data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:541:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:345:25: [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 *pmreorder_env = getenv("PMREORDER_EMIT_LOG"); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_posix.c:62:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath(path, NULL); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:176:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rpath = realpath(spath, npath); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:228:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. daxpath = realpath(spath, NULL); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:356:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread_windows.c:112:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread_windows.c:135:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c:507:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!overwrite && getenv(name)) data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c:543:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:310:25: [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 *pmreorder_env = getenv("PMREORDER_EMIT_LOG"); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_posix.c:62:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath(path, NULL); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c:170:16: [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. while ((opt = getopt_long(argc, argv, "i:o:k:s:l:b:zhV", data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/check.c:157:16: [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. while ((opt = getopt_long(argc, argv, "ahvrNb:qy", data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:1124:12: [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. int opt = getopt_long(argc, argv, optstr, opts->opts, NULL); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/feature.c:186:16: [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. while ((opt = getopt_long(argc, argv, "vhe:d:q:h", data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/pmempool.c:277:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/rm.c:310:16: [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. while ((opt = getopt_long(argc, argv, optstr, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/synchronize.c:131:16: [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. while ((opt = getopt_long(argc, argv, "bdhv", data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/transform.c:132:16: [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. while ((opt = getopt_long(argc, argv, "dhv", data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:467:16: [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. while ((opt = getopt_long(argc, argv, optstr, options, data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:176:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rpath = realpath(spath, npath); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:228:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. daxpath = realpath(spath, NULL); data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:356:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread_windows.c:112:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread_windows.c:135:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mutex_internal->lock); data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c:507:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!overwrite && getenv(name)) data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c:543:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:321:25: [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 *pmreorder_env = getenv("PMREORDER_EMIT_LOG"); data/pmdk-convert-1.7/nvml/1.7/src/common/util_posix.c:62:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath(path, NULL); data/pmdk-convert-1.7/nvml/1.7/src/test/getopt/getopt.c:81:16: [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. while ((opt = getopt_long(argc, argv, data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api/libpmempool_test.c:141:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, "t:r:d:a:y:s:b:")) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_rm/libpmempool_rm.c:61:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, optstr)) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memcpy/pmem_memcpy.c:201:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *thr = getenv("PMEM_MOVNT_THRESHOLD"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memcpy/pmem_memcpy.c:202:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx = getenv("PMEM_AVX"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memcpy/pmem_memcpy.c:203:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx512f = getenv("PMEM_AVX512F"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memmove/pmem_memmove.c:233:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *thr = getenv("PMEM_MOVNT_THRESHOLD"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memmove/pmem_memmove.c:234:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx = getenv("PMEM_AVX"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memmove/pmem_memmove.c:235:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx512f = getenv("PMEM_AVX512F"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memset/pmem_memset.c:157:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *thr = getenv("PMEM_MOVNT_THRESHOLD"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memset/pmem_memset.c:158:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx = getenv("PMEM_AVX"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memset/pmem_memset.c:159:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx512f = getenv("PMEM_AVX512F"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt/pmem_movnt.c:48:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *thr = getenv("PMEM_MOVNT_THRESHOLD"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt/pmem_movnt.c:49:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx = getenv("PMEM_AVX"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt/pmem_movnt.c:50:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx512f = getenv("PMEM_AVX512F"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt_align/pmem_movnt_align.c:228:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *thr = getenv("PMEM_MOVNT_THRESHOLD"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt_align/pmem_movnt_align.c:229:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx = getenv("PMEM_AVX"); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt_align/pmem_movnt_align.c:230:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *avx512f = getenv("PMEM_AVX512F"); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:495: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/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:686: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(ATOU(argv[1])); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:807: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(ATOU(argv[1])); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:833: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(ATOU(argv[1])); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:856: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(ATOU(argv[1])); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:80: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(time(NULL)); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:654:6: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(argv[2], root_dir) == NULL) data/pmdk-convert-1.7/nvml/1.7/src/test/tools/bttcreate/bttcreate.c:241:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, "s:b:l:u:tv")) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/test/tools/cmpmap/cmpmap.c:97:16: [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. while ((opt = getopt_long(argc, argv, "l:o:zh", data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ddmap/ddmap.c:357:16: [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. while ((opt = getopt_long(argc, argv, "i:o:d:s:q:b:n:crhv", data/pmdk-convert-1.7/nvml/1.7/src/test/tools/extents/extents.c:68:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, "hl:")) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/test/tools/obj_verify/obj_verify.c:116: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/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemalloc/pmemalloc.c:86:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, "r:o:c:t:e:sf")) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemdetect/pmemdetect.c:107:16: [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. while ((opt = getopt_long(argc, argv, "a:dshrz", data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:2382:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, "s:p")) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:476:16: [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. while ((opt = getopt_long(argc, argv, "v?r:", data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemwrite/write.c:221:16: [3] (buffer) getopt: 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. while ((opt = getopt(argc, argv, "h")) != -1) { data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c:170:16: [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. while ((opt = getopt_long(argc, argv, "i:o:k:s:l:b:zhV", data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/check.c:157:16: [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. while ((opt = getopt_long(argc, argv, "ahvrNb:qy", data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:1109:12: [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. int opt = getopt_long(argc, argv, optstr, opts->opts, NULL); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/feature.c:186:16: [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. while ((opt = getopt_long(argc, argv, "vhe:d:q:h", data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/pmempool.c:277:16: [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. while ((opt = getopt_long(2, argv, "Vh", data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/rm.c:310:16: [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. while ((opt = getopt_long(argc, argv, optstr, data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/synchronize.c:131:16: [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. while ((opt = getopt_long(argc, argv, "bdhv", data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/transform.c:132:16: [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. while ((opt = getopt_long(argc, argv, "dhv", data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:467:16: [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. while ((opt = getopt_long(argc, argv, optstr, options, data/pmdk-convert-1.7/pmdk-convert.c:238:14: [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. void *lib = LoadLibrary(path); data/pmdk-convert-1.7/pmdk-convert.c:641:16: [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. while ((opt = getopt_long(argc, argv, "Vhf:F:t:T:X:", data/pmdk-convert-1.7/nvml/1.0/src/common/cpu.c:118:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[0x20]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:123: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 __thread char Last_errormsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:153: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 procpath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:154:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:160: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(namepath, "unknown"); data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:192:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:202: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 log_file_pid[cc + 30]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:209: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). if ((Out_fp = fopen(log_file, "w")) == NULL) { data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:220:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:349: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:418:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:428: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:80: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 *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:475: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 line[PARSER_MAX_LINE]; data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:759:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:831:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:927: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:933: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:935: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(hdrp->uuid, PART(rep, partidx).uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:938: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(hdrp->prev_part_uuid, PART(rep, partidx - 1).uuid, data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:940: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(hdrp->next_part_uuid, PART(rep, partidx + 1).uuid, data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:944: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(hdrp->prev_repl_uuid, PART(REP(set, repidx - 1), 0).uuid, data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:946: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(hdrp->next_repl_uuid, PART(REP(set, repidx + 1), 0).uuid, data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1255: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 uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1257:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(POOL_HDR_UUID_GEN_FILE, O_RDONLY); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1577: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 poolset[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1604:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1634:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1679: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 unit[4] = {0}; data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:191:12: [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 ((fp = fopen("/proc/self/maps", "r")) == NULL) { data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:196:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:377:11: [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). int fd = mkstemp(fullname); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:538:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDONLY)) < 0) { data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:782:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDWR|O_CREAT|O_EXCL, 0)) < 0) { data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:820:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, flags)) < 0) { data/pmdk-convert-1.7/nvml/1.0/src/common/util.h:127: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.0/src/common/util.h:130:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/common/util.h:143: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.0/src/common/util.h:250:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj.h:115: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj.h:123: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj.h:131: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj.h:1051: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/pool.hpp:104:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). static pool_base open(const std::string &path, data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/pool.hpp:383:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). static pool<T> open(const std::string &path, data/pmdk-convert-1.7/nvml/1.0/src/include/libpmemobj/pool.hpp:386:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h:63: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h:64: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h:65: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h:66: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.0/src/include/librpmem.h:67: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/blk.c:102: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(buf, (char *)pbp->data + off, count); data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/blk.c:141:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, buf, count); data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt.c:1038: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(info.sig, Sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt.c:1039: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(info.uuid, bttp->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt.c:1040: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(info.parent_uuid, bttp->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt.c:1274: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(bttp->parent_uuid, parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt_layout.h:46: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 sig[BTTINFO_SIG_LEN]; /* must be "BTT_ARENA_INFO\0\0" */ data/pmdk-convert-1.7/nvml/1.0/src/libpmemblk/btt_layout.h:69: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 unused[3968]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.0/src/libpmemlog/log.c:431:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.0/src/libpmemlog/log.c:512:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/heap_layout.h:103:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/lane.h:47:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:85:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Open_cow = atoi(env); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:127:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:270: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(raddr, addr, len); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.h:136: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.h:141: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.h:177: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 unused2[1816]; data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/tx.c:284:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/tx.c:320:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/tx.c:1034: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(txd->env, env, sizeof (jmp_buf)); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:62: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 prefix_buff[PREFIX_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:175: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(buf, (char *)nsc->addr + off, count); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:194:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)nsc->addr + off, buf, count); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:490: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(daddr, saddr, pcp->pfile->size); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:620:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. pmempool_check_all_uuid_same(unsigned char (*uuids)[POOL_HDR_UUID_LEN], int n) data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:636:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. pmempool_check_get_max_same_uuid(unsigned char (*uuids)[POOL_HDR_UUID_LEN], data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:666:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. pmempool_check_set_all_uuids(unsigned char (*uuids)[POOL_HDR_UUID_LEN], data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:672: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(uuids[i], uuids[index], POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:778:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char (*uuid_i)[POOL_HDR_UUID_LEN] = data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:839: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(hdrp->next_part_uuid, next_part_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:853: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(hdrp->prev_part_uuid, prev_part_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:867: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(hdrp->next_repl_uuid, next_repl_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:881: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(hdrp->prev_repl_uuid, prev_repl_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:938: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(hdrp->poolset_uuid, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:966: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(hdrp->poolset_uuid, valid_hdrp->poolset_uuid, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:991: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(hdrp->signature, def_hdrp->signature, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:1176: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(hdrp, &hdr, sizeof (*hdrp)); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/check.c:1236: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(&pcp->hdr.pool, pcp->pfile->poolset->replica[0]->part[0].hdr, data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:312: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(rangep, &range, sizeof (*rangep)); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:609: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(paramsp->obj.layout, pop.layout, PMEMOBJ_MAX_LAYOUT); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:632: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:1106: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 buff[REQ_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:1422: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(buff, (char *)file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:1437: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((char *)file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.h:146:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.h:156: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/dump.c:349:12: [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). pd.ofh = fopen(pd.ofname, "wb"); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/info_obj.c:219:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[BITMAP_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:66: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 out_indent_str[MAX_INDENT + 1]; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:278:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:305:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:345:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:361:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:512:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:537:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:665:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:691:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:770:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/output.c:792:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/common/cpu.c:131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[0x20]; data/pmdk-convert-1.7/nvml/1.1/src/common/file_windows.c:61:1: [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). mkstemp(char *temp) data/pmdk-convert-1.7/nvml/1.1/src/common/file_windows.c:68:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(path, O_RDWR | O_CREAT | O_EXCL, S_IWRITE | S_IREAD); data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:123: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 __thread char Last_errormsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:153:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:157: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 procpath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:165: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(namepath, "unknown"); data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:197:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:214: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). if ((Out_fp = fopen(log_file, "w")) == NULL) { data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:225:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:359: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:428:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:438: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:83: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 *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:564: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 line[PARSER_MAX_LINE]; data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:856:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDONLY)) < 0) data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:906:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:978:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1067: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1073: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1075: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(hdrp->uuid, PART(rep, partidx).uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1078: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(hdrp->prev_part_uuid, PART(rep, partidx - 1).uuid, data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1080: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(hdrp->next_part_uuid, PART(rep, partidx + 1).uuid, data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1085:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(hdrp->prev_repl_uuid, prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1087: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(hdrp->prev_repl_uuid, PART(REP(set, repidx - 1), 0).uuid, data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1091: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(hdrp->next_repl_uuid, next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1093: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(hdrp->next_repl_uuid, PART(REP(set, repidx + 1), 0).uuid, data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1110: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(&hdrp->arch_flags, arch_flags, data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1547: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(set->uuid, poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1573: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(set->replica[0]->part[0].uuid, first_part_uuid, data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1897: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(sig, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1902: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(poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1903:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(first_part_uuid, hdr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1904: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(prev_repl_uuid, hdr->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1905: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(next_repl_uuid, hdr->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1906: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(arch_flags, &hdr->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1939: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 poolset[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1966:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1996:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:2041: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 unit[4] = {0}; data/pmdk-convert-1.7/nvml/1.1/src/common/set_linux.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/common/set_linux.c:56:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(POOL_HDR_UUID_GEN_FILE, O_RDONLY); data/pmdk-convert-1.7/nvml/1.1/src/common/util.c:577:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDWR | O_CREAT | O_EXCL, flags)) < 0) { data/pmdk-convert-1.7/nvml/1.1/src/common/util.c:615:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, flags)) < 0) { data/pmdk-convert-1.7/nvml/1.1/src/common/util.h:129: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.1/src/common/util.h:132:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/common/util.h:145: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.1/src/common/util.h:275:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:82:12: [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 ((fp = fopen("/proc/self/maps", "r")) == NULL) { data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:223:7: [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). fd = mkstemp(fullname); data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:260:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDONLY)) < 0) { data/pmdk-convert-1.7/nvml/1.1/src/common/util_windows.c:81:7: [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). fd = mkstemp(fullname); data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj.h:114: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj.h:118: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj.h:122: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj.h:1095: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/pool.hpp:121:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/pool.hpp:404:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.1/src/include/libpmemobj/pool.hpp:406:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h:63: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h:64: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h:65: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h:66: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.1/src/include/librpmem.h:67: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/blk.c:103: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(buf, (char *)pbp->data + off, count); data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/blk.c:142:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, buf, count); data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt.c:1203: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(info.sig, Sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt.c:1204: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(info.uuid, bttp->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt.c:1205: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(info.parent_uuid, bttp->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt.c:1429: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(bttp->parent_uuid, parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt_layout.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[BTTINFO_SIG_LEN]; /* must be "BTT_ARENA_INFO\0\0" */ data/pmdk-convert-1.7/nvml/1.1/src/libpmemblk/btt_layout.h:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unused[BTTINFO_UNUSED_LEN]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.1/src/libpmemlog/log.c:436: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[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.1/src/libpmemlog/log.c:517: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(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/heap_layout.h:114:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/lane.h:54: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:148:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Open_cow = atoi(env); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:199:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:342: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(raddr, addr, len); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.h:126: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.h:131: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.h:167: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 unused2[1804]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/sync.h:44: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/sync.h:52: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/sync.h:60: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 padding[_POBJ_CL_ALIGNMENT]; data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/tx.c:229:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/tx.c:250:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/tx.c:1183: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:354: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(rangep, &range, sizeof(*rangep)); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:582: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 pool_str_addr[POOL_HDR_DESC_SIZE]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:656: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(paramsp->obj.layout, pop.layout, PMEMOBJ_MAX_LAYOUT); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:936: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 buff[REQ_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:1281: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(buff, (char *)file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:1301: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 *)file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.h:165:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.h:175: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:64: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:80: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:88: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[64]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:151: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:273: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 data[1024]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/convert_obj_v1_v2.c:421:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, r->data, r->size); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/dump.c:349:12: [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). pd.ofh = fopen(pd.ofname, "wb"); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/info_obj.c:221:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[BITMAP_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:66: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 out_indent_str[MAX_INDENT + 1]; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:278:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:305:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:345:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:361:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:512:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:537:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:667:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:693:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:772:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/output.c:794:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c:421:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(filename, "r"); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c:57: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 rpmemd_prefix_buff[RPMEMD_MAX_PREFIX]; data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c:59: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 *rpmemd_log_level_str[MAX_RPD_LOG] = { data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c:130: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). rpmemd_log_file = fopen(fname, "a"); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_log.c:191: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 buff[RPMEMD_MAX_MSG]; data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c:289:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return req_cb->open(client, arg, &req); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c:370: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(hdrp, &nhdr, sizeof(*hdrp)); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c:614: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(addr, &client->peer, client->addr_len); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c:637: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(addr, &client->name, client->addr_len); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c:681:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). RPMEMD_ASSERT(req_cb->open != NULL); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.h:47:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct rpmemd_obc_client *client, void *arg, data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:69: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:72:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(spath, O_RDONLY); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:78: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 sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:130: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:134:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char npath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:183:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDWR)) < 0) data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:212:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDWR)) < 0) data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:273: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(ADDR_SUM(addr, offset), buffer, size); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:312:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ADDR_SUM(addr, offset), size); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:353:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, flags, mode)) < 0) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:397:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, flags)) < 0) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c:67:7: [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). fd = mkstemp(fullname); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_windows.c:82:7: [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). fd = mkstemp(fullname); data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap_linux.c:67:12: [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 ((fp = fopen("/proc/self/maps", "r")) == NULL) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/mmap_linux.c:72: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 line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:129: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 __thread char Last_errormsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:159:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:163: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 procpath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:171: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(namepath, "unknown"); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:203:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:220: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). if ((Out_fp = fopen(log_file, "w")) == NULL) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:221: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:233:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:367: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:371: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:424: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:436:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:446: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr.h:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr.h:109: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr_linux.c:58:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDONLY)) < 0) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:278: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 *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:895: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 line[PARSER_MAX_LINE]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1166: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(rpmem_attr->signature, hdrp->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1171: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(rpmem_attr->poolset_uuid, hdrp->poolset_uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1173: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(rpmem_attr->uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1174: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(rpmem_attr->next_uuid, hdrp->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1175: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(rpmem_attr->prev_uuid, hdrp->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1176: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(rpmem_attr->user_flags, &hdrp->arch_flags, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1190: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(hdrp->signature, rpmem_attr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1195: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(hdrp->poolset_uuid, rpmem_attr->poolset_uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1197: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(hdrp->uuid, rpmem_attr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1198: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(hdrp->prev_part_uuid, rpmem_attr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1199: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(hdrp->next_part_uuid, rpmem_attr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1200: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(hdrp->next_repl_uuid, rpmem_attr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1201: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(hdrp->prev_repl_uuid, rpmem_attr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1202: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(&hdrp->arch_flags, rpmem_attr->user_flags, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1377:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(path, O_RDONLY)) < 0) data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1424:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1512: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1518: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1519: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(hdrp->uuid, PART(rep, partidx).uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1522: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(hdrp->prev_part_uuid, PART(rep, partidx - 1).uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1524: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(hdrp->next_part_uuid, PART(rep, partidx + 1).uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1529: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(hdrp->prev_repl_uuid, prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1531: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(hdrp->prev_repl_uuid, PART(REP(set, repidx - 1), 0).uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1535: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(hdrp->next_repl_uuid, next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1537: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(hdrp->next_repl_uuid, PART(REP(set, repidx + 1), 0).uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1554: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(&hdrp->arch_flags, arch_flags, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2107: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(set->uuid, pattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2131: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(set->replica[0]->part[0].uuid, pattr->first_part_uuid, data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2650: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(sig, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2655: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(poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2656:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(first_part_uuid, hdr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2657: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(prev_repl_uuid, hdr->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2658: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(next_repl_uuid, hdr->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2659: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(arch_flags, &hdr->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2698:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2726:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2775:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:209: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 unit[9] = {0}; data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid.h:60: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid.h:64:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid_linux.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid_linux.c:56:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(POOL_HDR_UUID_GEN_FILE, O_RDONLY); data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/pool.hpp:122:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/pool.hpp:412:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj++/pool.hpp:414:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/thread.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/thread.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/thread.h:64: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/include/libpmemobj/tx.h:211:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h:64: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h:65: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h:66: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h:67: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.2.4/src/include/librpmem.h:68: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/blk.c:104:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, (char *)pbp->data + off, count); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/blk.c:143:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, buf, count); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt.c:1203: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(info.sig, Sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt.c:1204: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(info.uuid, bttp->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt.c:1205: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(info.parent_uuid, bttp->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt.c:1429: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(bttp->parent_uuid, parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt_layout.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[BTTINFO_SIG_LEN]; /* must be "BTT_ARENA_INFO\0\0" */ data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemblk/btt_layout.h:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unused[BTTINFO_UNUSED_LEN]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemlog/log.c:438: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[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemlog/log.c:519: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(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/heap_layout.h:113:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/lane.h:70: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:212:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Open_cow = atoi(env); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:260:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:512: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(raddr, addr, len); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.h:124: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.h:129: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.h:177: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 unused2[1590]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/sync.h:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/sync.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/sync.h:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/tx.c:224:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/tx.c:1196: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:393: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(rangep, &range, sizeof(*rangep)); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:617: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 pool_str_addr[POOL_HDR_DESC_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:728: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(paramsp->obj.layout, pop.layout, PMEMOBJ_MAX_LAYOUT); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:761: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 qbuff[Q_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:1027: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 buff[REQ_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:1379: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(buff, (char *)file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:1399: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 *)file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:1462:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, addr, len); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.h:165:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.h:176: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:65: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:81: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:130:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[64]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:152: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:274: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 data[1024]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/convert_obj_v1_v2.c:431:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, r->data, r->size); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/dump.c:366:12: [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). pd.ofh = fopen(pd.ofname, "wb"); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/info_obj.c:216:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[BITMAP_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:67: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 out_indent_str[MAX_INDENT + 1]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:268:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:295:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:335:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:351:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:493:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:505: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(buf, addr, len); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:532:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:662:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:688:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:768:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/output.c:790:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd.c:105:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[64] = {0, }; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:356:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(filename, "r"); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:596: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 user_config_file[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:597: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 home_dir[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c:57: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 rpmemd_prefix_buff[RPMEMD_MAX_PREFIX]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c:59: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 *rpmemd_log_level_str[MAX_RPD_LOG] = { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c:125: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). rpmemd_log_file = fopen(fname, "a"); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_log.c:186: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 buff[RPMEMD_MAX_MSG]; data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.c:260:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return req_cb->open(obc, arg, &req); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.c:345: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(hdrp, &nhdr, sizeof(*hdrp)); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.c:421:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). RPMEMD_ASSERT(req_cb->open != NULL); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.h:46:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct rpmemd_obc *obc, void *arg, data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:77: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:156: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:162: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 npath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:382: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(ADDR_SUM(addr, offset), buffer, size); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:431:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ADDR_SUM(addr, offset), size); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.h:52: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[NAME_MAX + 1]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:179: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:210: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 sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/mmap_linux.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:63: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(pathname, flags, mode); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:65: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(pathname, flags); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:102: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). return fopen(pathname, mode); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_linux.c:129:9: [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). return mkstemp(temp); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[44]; /* linux: 40 windows: 44 */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 13 */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h:60: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 padding[48]; /* linux: 48 windows: 12 */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h:69: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 padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h:74: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 padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_thread.h:79: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 padding[512]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:75: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 bom[3]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:390: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(it_buf, iov[i].iov_base, iov[i].iov_len); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:75:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wmsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:175:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:179: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 procpath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:187: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(namepath, "unknown"); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:219:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:229: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 log_file_pid[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:242: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:254:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:388: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:392: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:445: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:457:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:467: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr.h:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr.h:109: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:293: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 *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1295: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1300: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(hdrp->poolset_uuid, poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1302: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(hdrp->uuid, uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1304: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(hdrp->next_part_uuid, next_part_uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1307: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(hdrp->prev_part_uuid, prev_part_uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1309: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(hdrp->next_repl_uuid, next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1310: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(hdrp->prev_repl_uuid, prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1311: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(&hdrp->arch_flags, arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1322: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(rpmem_attr->signature, hdrp->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1327: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(rpmem_attr->poolset_uuid, hdrp->poolset_uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1329: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(rpmem_attr->uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1330: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(rpmem_attr->next_uuid, hdrp->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1331: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(rpmem_attr->prev_uuid, hdrp->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1332: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(rpmem_attr->user_flags, &hdrp->arch_flags, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1610:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1693: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1699: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1700: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(hdrp->uuid, PART(rep, partidx).uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1703: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(hdrp->prev_part_uuid, PARTP(rep, partidx).uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1705: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(hdrp->next_part_uuid, PARTN(rep, partidx).uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1710: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(hdrp->prev_repl_uuid, prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1712: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(hdrp->prev_repl_uuid, PART(REPP(set, repidx), 0).uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1716: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(hdrp->next_repl_uuid, next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1718: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(hdrp->next_repl_uuid, PART(REPN(set, repidx), 0).uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1744: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(&hdrp->arch_flags, arch_flags, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:2368: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(set->uuid, pattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:2392: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(set->replica[0]->part[0].uuid, pattr->first_part_uuid, data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:2998: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(sig, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:3003: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(poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:3004:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(first_part_uuid, hdr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:3005: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(prev_repl_uuid, hdr->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:3006: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(next_repl_uuid, hdr->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:3007: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(arch_flags, &hdr->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:3047:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:209: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 unit[9] = {0}; data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_windows.c:159:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_windows.c:168:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, wstr, data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_windows.c:201:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, data/pmdk-convert-1.7/nvml/1.3.3/src/common/util_windows.c:206:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, -1, data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid.h:60: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid.h:64:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid_linux.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp:122:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp:203:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::wstring &path, const std::wstring &layout) data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp:496:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp:498:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp:555:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::wstring &path, const std::wstring &layout) data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj++/pool.hpp:557:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/thread.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/thread.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/thread.h:64: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.3.3/src/include/libpmemobj/tx.h:214: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h:64: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h:65: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h:66: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h:67: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.3.3/src/include/librpmem.h:68: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl.c:571: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. char in = ((char *)arg)[0]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/heap_layout.h:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/lane.h:77: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:261:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Open_cow = atoi(env); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:316:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:568: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(raddr, addr, len); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:1159: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 nlanes = atoi(env_nlanes); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.h:111: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.h:116: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.h:132: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 pmem_reserved[512]; /* must be zeroed */ data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.h:180: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 unused2[1028]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/sync.h:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/sync.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/sync.h:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/tx.c:241:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/tx.c:1213: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:77: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:156: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:162: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 npath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:390: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(ADDR_SUM(addr, offset), buffer, size); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:439:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ADDR_SUM(addr, offset), size); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.h:53: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[NAME_MAX + 1]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:117:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(dir, O_TMPFILE | O_RDWR | flags, S_IRUSR | S_IWUSR); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:212: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:243: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 sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:333: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 dax_region_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:334: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 reg_id[DAX_REGION_ID_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_posix.c:58:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *paths[2] = {path, NULL}; data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c:65:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(search_path + pathlen, "\\*\0"); data/pmdk-convert-1.7/nvml/1.4.3/src/common/mmap_posix.c:80: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 line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush_linux.c:60: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 domain_value[DOMAIN_VALUE_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush_linux.c:111: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 domain_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_deep_linux.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char deep_flush_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_ndctl.c:122: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 path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:75: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(pathname, flags, (mode_t)mode); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:77: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(pathname, flags); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:114: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). return fopen(pathname, mode); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_posix.c:141:9: [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). return mkstemp(temp); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[44]; /* linux: 40 windows: 44 */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 13 */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:60: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 padding[48]; /* linux: 48 windows: 12 */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:65: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 padding[32]; /* linux: 8 windows: 32 */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:70: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 padding[16]; /* 16 to be safe */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:79: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 padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_thread.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[512]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:75: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 bom[3]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:390: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(it_buf, iov[i].iov_base, iov[i].iov_len); data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:73:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wmsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:188:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:198: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 log_file_pid[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:211: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:223:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:234:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:362: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:366: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:419: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:431:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:441: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/pool_hdr.h:122:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/pool_hdr.h:135: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 unused[1888]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/pool_hdr.h:137: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 unused2[1992]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:320: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 *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1838: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(hdrp->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1843: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(hdrp->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1844: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(hdrp->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1845: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(hdrp->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1846: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(&hdrp->arch_flags, rattr->user_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1857: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(rattr->signature, hdrp->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1862: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(rattr->poolset_uuid, hdrp->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1863: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(rattr->uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1864: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(rattr->next_uuid, hdrp->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1865: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(rattr->prev_uuid, hdrp->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1866: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(rattr->user_flags, &hdrp->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1880: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1881: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(hdrp->next_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1882: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(hdrp->prev_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2131:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2236: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2237: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(hdrp->uuid, PART(rep, partidx).uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2243: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(hdrp->prev_part_uuid, PART(rep, 0).uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2245: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(hdrp->next_part_uuid, PART(rep, 0).uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2248: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(hdrp->prev_part_uuid, PARTP(rep, partidx).uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2250: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(hdrp->next_part_uuid, PARTN(rep, partidx).uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2256: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(hdrp->prev_repl_uuid, attr->prev_repl_uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2259: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(hdrp->prev_repl_uuid, PART(REPP(set, repidx), 0).uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2263: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(hdrp->next_repl_uuid, attr->next_repl_uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2266: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(hdrp->next_repl_uuid, PART(REPN(set, repidx), 0).uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2289: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(&hdrp->arch_flags, attr->arch_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3183: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(set->uuid, attr->poolset_uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3209: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(set->replica[0]->part[0].uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3517: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3519: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(hdrp->next_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3522: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(hdrp->prev_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3556: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(attr->signature, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3561: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(attr->poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3573: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(hdr->signature, attr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:3914:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h:168:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h:173: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 poolset_uuid[POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h:174: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 first_part_uuid[POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h:175: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 prev_repl_uuid[POOL_HDR_UUID_LEN]; /* prev replica uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h:176: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 next_repl_uuid[POOL_HDR_UUID_LEN]; /* next replica uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.h:177: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 arch_flags[POOL_HDR_ARCH_LEN]; /* arch flags */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:216: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 unit[9] = {0}; data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_posix.c:138: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(path, "unknown"); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_windows.c:159:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_windows.c:168:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, wstr, data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_windows.c:201:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_windows.c:206:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, -1, data/pmdk-convert-1.7/nvml/1.4.3/src/common/util_windows.c:249: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(path, "unknown"); data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid.h:60: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid.h:64:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid_linux.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp:123:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp:204:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::wstring &path, const std::wstring &layout) data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp:497:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::string &path, const std::string &layout) data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp:499:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp:556:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(const std::wstring &path, const std::wstring &layout) data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj++/pool.hpp:558:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pool<T>(pool_base::open(path, layout)); data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/thread.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/thread.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/thread.h:64: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/include/libpmemobj/tx.h:192: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h:64: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h:65: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h:66: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h:67: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.4.3/src/include/librpmem.h:68: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/blk.c:125: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(buf, (char *)pbp->data + off, count); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/blk.c:164:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, buf, count); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt.c:1226: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(info.sig, Sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt.c:1227: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(info.uuid, bttp->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt.c:1228: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(info.parent_uuid, bttp->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt.c:1452: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(bttp->parent_uuid, parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt_layout.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[BTTINFO_SIG_LEN]; /* must be "BTT_ARENA_INFO\0\0" */ data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemblk/btt_layout.h:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unused[BTTINFO_UNUSED_LEN]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c:829: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. return (char *)memcpy(retaddr, s, size); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c:847:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (wchar_t *)memcpy(retaddr, s, size); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.h:74: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 layout[PMEMCTO_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.h:80: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 unused[CTO_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemlog/log.c:511: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[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemlog/log.c:596: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(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl.c:662: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. char in = ((char *)arg)[0]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/heap_layout.h:120:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/lane.h:77: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:301:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Open_cow = atoi(env); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:362:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:608: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(raddr, addr, len); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:1225: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 nlanes = atoi(env_nlanes); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.h:119: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.h:124: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.h:144: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 pmem_reserved[496]; /* must be zeroed */ data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.h:200: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 unused2[1004]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ravl.c:158: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(data, &arg, sizeof(arg)); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ravl.c:167: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(data, arg, data_size); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ravl.c:563: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(n->data, s->data, ravl->data_size); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ravl.c:586: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, node->data, sizeof(void *)); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/sync.h:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/sync.h:68: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/sync.h:85: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.c:247:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->copy_ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.c:1232: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.c:2257: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(lane->alloc_actv, actv, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/daxio/daxio.c:334: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). dev->fd = open(dev->path, flags, S_IRUSR|S_IWUSR); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/daxio/daxio.c:341:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dev->fd = open(dev->path, flags, S_IRUSR|S_IWUSR); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:353: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(rangep, &range, sizeof(*rangep)); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:574: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 pool_str_addr[POOL_HDR_DESC_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:683: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(paramsp->obj.layout, pop->layout, PMEMOBJ_MAX_LAYOUT); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:716: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 qbuff[Q_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:987: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 buff[REQ_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:1313: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(buff, (char *)file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:1336: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 *)file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:1405:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, addr, len); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.h:149:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.h:160: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.h:163: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 layout[PMEMCTO_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:65: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:81: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 unused[3944]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:130:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[64]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:152: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 data[LANE_SECTION_LEN]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:274: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 data[1024]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v1_v2.c:431:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, r->data, r->size); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[4096]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:98:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:103: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:115: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 pmem_reserved[512]; /* must be zeroed */ data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:163: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 unused2[1028]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/info_obj.c:183:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[BITMAP_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:66: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 out_indent_str[MAX_INDENT + 1]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:283:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:315:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:359:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:375:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:520:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:534: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(buf, addr, len); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:565:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:707:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:736:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:802:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:822:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/output.c:844:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0}; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd.c:106:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[64] = {0, }; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:614: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 user_config_file[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:615: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 home_dir[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:197: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(attr->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:202: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(attr->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:203:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr->first_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:204: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(attr->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:205: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(attr->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:206: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(attr->arch_flags, rattr->user_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.c:63: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 rpmemd_prefix_buff[RPMEMD_MAX_PREFIX]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.c:65: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 *rpmemd_log_level_str[MAX_RPD_LOG] = { data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_log.c:192: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 buff[RPMEMD_MAX_MSG]; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.c:283:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return req_cb->open(obc, arg, &req); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.c:388: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(hdrp, &nhdr, sizeof(*hdrp)); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.c:464:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). RPMEMD_ASSERT(req_cb->open != NULL); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.h:46:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct rpmemd_obc *obc, void *arg, data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c:232: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 bbs_suffix[64]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c:235: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(bbs_suffix, "_r%u_p%u_badblocks.txt", rep, part); data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl.c:548: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. char in = ((char *)arg)[0]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/extent_linux.c:60:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:77: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:169: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char npath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:430: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(ADDR_SUM(addr, offset), buffer, size); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:483:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ADDR_SUM(addr, offset), size); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.h:56: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[NAME_MAX + 1]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:117:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(dir, O_TMPFILE | O_RDWR | flags, S_IRUSR | S_IWUSR); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:212: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:243: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 sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:333: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 dax_region_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:334: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 reg_id[DAX_REGION_ID_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_posix.c:58:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *paths[2] = {path, NULL}; data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c:65:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(search_path + pathlen, "\\*\0"); data/pmdk-convert-1.7/nvml/1.5.2/src/common/mmap_posix.c:80: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 line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_linux.c:61: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 domain_value[DOMAIN_VALUE_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_linux.c:119: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 domain_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_deep_linux.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char deep_flush_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_ndctl.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_windows.c:50:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t mount[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_windows.c:51:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t volume[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:75: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(pathname, flags, (mode_t)mode); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:77: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(pathname, flags); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:140: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). return fopen(pathname, mode); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_posix.c:167:9: [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). return mkstemp(temp); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[44]; /* linux: 40 windows: 44 */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 13 */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:60: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 padding[48]; /* linux: 48 windows: 12 */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:65: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 padding[32]; /* linux: 8 windows: 32 */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:70: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 padding[16]; /* 16 to be safe */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:79: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 padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_thread.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[512]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:75: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 bom[3]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:422: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(it_buf, iov[i].iov_base, iov[i].iov_len); data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:73:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wmsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:188:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:198: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 log_file_pid[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:211: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:223:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:234:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:368: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:372: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:425: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:437:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:447: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/pool_hdr.c:365:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(found, record, sizeof(features_t)); data/pmdk-convert-1.7/nvml/1.5.2/src/common/pool_hdr.h:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/pool_hdr.h:140: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 unused[1904]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/pool_hdr.h:142: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 unused2[1976]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:323:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1880: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(hdrp->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1885: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(hdrp->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1886: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(hdrp->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1887: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(hdrp->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1888: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(&hdrp->arch_flags, rattr->user_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1899: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(rattr->signature, hdrp->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1904: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(rattr->poolset_uuid, hdrp->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1905: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(rattr->uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1906: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(rattr->next_uuid, hdrp->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1907: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(rattr->prev_uuid, hdrp->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1908: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(rattr->user_flags, &hdrp->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1922: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1923: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(hdrp->next_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1924: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(hdrp->prev_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2280: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2281: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(hdrp->uuid, PART(rep, partidx)->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2287: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(hdrp->prev_part_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2289: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(hdrp->next_part_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2292: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(hdrp->prev_part_uuid, PARTP(rep, partidx)->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2294: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(hdrp->next_part_uuid, PARTN(rep, partidx)->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2300: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(hdrp->prev_repl_uuid, attr->prev_repl_uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2303: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(hdrp->prev_repl_uuid, PART(REPP(set, repidx), 0)->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2307: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(hdrp->next_repl_uuid, attr->next_repl_uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2310: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(hdrp->next_repl_uuid, PART(REPN(set, repidx), 0)->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2333: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(&hdrp->arch_flags, attr->arch_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3268: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(set->uuid, attr->poolset_uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3294: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(set->replica[0]->part[0].uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3615: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3617: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(hdrp->next_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3620: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(hdrp->prev_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3654: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(attr->signature, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3659: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(attr->poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:3671: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(hdr->signature, attr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:4198:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h:186:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h:189: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 poolset_uuid[POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h:190: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 first_part_uuid[POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h:191: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 prev_repl_uuid[POOL_HDR_UUID_LEN]; /* prev replica uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h:192: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 next_repl_uuid[POOL_HDR_UUID_LEN]; /* next replica uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.h:193: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 arch_flags[POOL_HDR_ARCH_LEN]; /* arch flags */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:94: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 lib_name[LIB_LOG_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:95: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 func_name[FUNC_LOG_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:96: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 suffix[SUFFIX_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:101: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(suffix, ".BEGIN"); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:103: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(suffix, ".END"); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:295: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 unit[9] = {0}; data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:347:22: [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). _Pmreorder_emit = atoi(pmreorder_env); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_windows.c:159:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_windows.c:168:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, wstr, data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_windows.c:201:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_windows.c:206:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, -1, data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_windows.c:249: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(path, "unknown"); data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid.h:64: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid.h:68:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid_linux.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/common/vecq.h:108: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((vec)->buffer + (vec)->capacity, (vec)->buffer,\ data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/thread.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/thread.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/thread.h:64: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.5.2/src/include/libpmemobj/tx.h:192: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h:64: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h:65: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h:66: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h:67: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.5.2/src/include/librpmem.h:68: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/heap_layout.h:153:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/memops.c:165: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. return memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c:313:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Open_cow = atoi(env); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c:1321: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 nlanes = atoi(env_nlanes); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.h:126: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.h:131: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.h:151: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 pmem_reserved[496]; /* must be zeroed */ data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.h:206: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 unused2[992]; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/pmemops.h:63:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy_fn memcpy; /* persistent memcpy function */ data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/pmemops.h:112: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. return p_ops->memcpy(p_ops->base, dest, src, len, flags); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ravl.c:158: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(data, &arg, sizeof(arg)); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ravl.c:167: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(data, arg, data_size); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ravl.c:563: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(n->data, s->data, ravl->data_size); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ravl.c:586: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, node->data, sizeof(void *)); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/sync.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/sync.h:72: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/sync.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/tx.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(ptr, args->copy_ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/tx.c:715: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ulog.c:430: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(b->data, src, ncopy); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/ulog.c:441: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(last_cacheline, srcof + rcopy, lcopy); data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c:232: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 bbs_suffix[64]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c:235: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(bbs_suffix, "_r%u_p%u_badblocks.txt", rep, part); data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl.c:549: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. char in = ((char *)arg)[0]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/extent_linux.c:61:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:77: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:169: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char npath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:430: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(ADDR_SUM(addr, offset), buffer, size); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:483:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ADDR_SUM(addr, offset), size); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.h:56: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[NAME_MAX + 1]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:117:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(dir, O_TMPFILE | O_RDWR | flags, S_IRUSR | S_IWUSR); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:212: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:243: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 sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:333: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 dax_region_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:334: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 reg_id[DAX_REGION_ID_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_posix.c:58:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *paths[2] = {path, NULL}; data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c:65:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(search_path + pathlen, "\\*\0"); data/pmdk-convert-1.7/nvml/1.6.1/src/common/mmap_posix.c:80: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 line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_linux.c:61: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 domain_value[DOMAIN_VALUE_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_linux.c:119: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 domain_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_deep_linux.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char deep_flush_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:113:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:114: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 dev_id[BUFF_LENGTH]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:136: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 buff[BUFF_LENGTH]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_windows.c:50:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t mount[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_windows.c:51:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t volume[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:75: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(pathname, flags, (mode_t)mode); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:77: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(pathname, flags); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:140: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). return fopen(pathname, mode); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_posix.c:167:9: [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). return mkstemp(temp); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[44]; /* linux: 40 windows: 44 */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 13 */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:60: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 padding[48]; /* linux: 48 windows: 12 */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:65: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 padding[32]; /* linux: 8 windows: 32 */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:70: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 padding[16]; /* 16 to be safe */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:79: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 padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_thread.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[512]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c: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 bom[3]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c:424: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(it_buf, iov[i].iov_base, iov[i].iov_len); data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:73:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wmsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:188:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:198: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 log_file_pid[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:211: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:223:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:234:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:373: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:377: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:430: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:442:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:452: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/pool_hdr.c:365:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(found, record, sizeof(features_t)); data/pmdk-convert-1.7/nvml/1.6.1/src/common/pool_hdr.h:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/pool_hdr.h:140: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 unused[1904]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/pool_hdr.h:142: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 unused2[1976]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:323:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1856: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(hdrp->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1861: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(hdrp->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1862: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(hdrp->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1863: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(hdrp->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1864: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(&hdrp->arch_flags, rattr->user_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1875: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(rattr->signature, hdrp->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1880: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(rattr->poolset_uuid, hdrp->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1881: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(rattr->uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1882: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(rattr->next_uuid, hdrp->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1883: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(rattr->prev_uuid, hdrp->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1884: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(rattr->user_flags, &hdrp->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1898: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1899: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(hdrp->next_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1900: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(hdrp->prev_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2151:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2256: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2257: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(hdrp->uuid, PART(rep, partidx)->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2263: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(hdrp->prev_part_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2265: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(hdrp->next_part_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2268: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(hdrp->prev_part_uuid, PARTP(rep, partidx)->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2270: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(hdrp->next_part_uuid, PARTN(rep, partidx)->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2276: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(hdrp->prev_repl_uuid, attr->prev_repl_uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2279: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(hdrp->prev_repl_uuid, PART(REPP(set, repidx), 0)->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2283: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(hdrp->next_repl_uuid, attr->next_repl_uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2286: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(hdrp->next_repl_uuid, PART(REPN(set, repidx), 0)->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2309: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(&hdrp->arch_flags, attr->arch_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3244: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(set->uuid, attr->poolset_uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3270: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(set->replica[0]->part[0].uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3591: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3593: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(hdrp->next_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3596: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(hdrp->prev_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3630: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(attr->signature, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3635: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(attr->poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:3647: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(hdr->signature, attr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:4213:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h:186:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h:189: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 poolset_uuid[POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h:190: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 first_part_uuid[POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h:191: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 prev_repl_uuid[POOL_HDR_UUID_LEN]; /* prev replica uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h:192: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 next_repl_uuid[POOL_HDR_UUID_LEN]; /* next replica uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.h:193: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 arch_flags[POOL_HDR_ARCH_LEN]; /* arch flags */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:75: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 lib_name[LIB_LOG_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char func_name[FUNC_LOG_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:77: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 suffix[SUFFIX_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:82: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(suffix, ".BEGIN"); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:84: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(suffix, ".END"); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:260: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 unit[9] = {0}; data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:312:22: [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). _Pmreorder_emit = atoi(pmreorder_env); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_windows.c:161:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_windows.c:170:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, wstr, data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_windows.c:203:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_windows.c:208:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, -1, data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_windows.c:251: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(path, "unknown"); data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid.h:64: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid.h:68:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid_linux.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/common/vecq.h:109: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((vec)->buffer + (vec)->capacity, (vec)->buffer,\ data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/thread.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/thread.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/thread.h:64: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/include/libpmemobj/tx.h:192: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h:64: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h:65: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h:66: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h:67: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.6.1/src/include/librpmem.h:68: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/blk.c:121: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(buf, (char *)pbp->data + off, count); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/blk.c:160:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, buf, count); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt.c:1227: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(info.sig, Sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt.c:1228: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(info.uuid, bttp->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt.c:1229: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(info.parent_uuid, bttp->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt.c:1453: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(bttp->parent_uuid, parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt_layout.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[BTTINFO_SIG_LEN]; /* must be "BTT_ARENA_INFO\0\0" */ data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemblk/btt_layout.h:78: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 unused[BTTINFO_UNUSED_LEN]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemlog/log.c:504: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[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemlog/log.c:586: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(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/heap_layout.h:153:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/memops.c:165: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. return memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.c:1302: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 nlanes = atoi(env_nlanes); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.h:129: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.h:134: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.h:154: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 pmem_reserved[496]; /* must be zeroed */ data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.h:209: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 unused2[992]; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/pmemops.h:63:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy_fn memcpy; /* persistent memcpy function */ data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/pmemops.h:112: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. return p_ops->memcpy(p_ops->base, dest, src, len, flags); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ravl.c:159: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(data, &arg, sizeof(arg)); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ravl.c:168: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(data, arg, data_size); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ravl.c:564: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(n->data, s->data, ravl->data_size); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ravl.c:587: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, node->data, sizeof(void *)); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/sync.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/sync.h:72: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/sync.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/tx.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(ptr, args->copy_ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/tx.c:716: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ulog.c:430: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(b->data, src, ncopy); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/ulog.c:441: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(last_cacheline, srcof + rcopy, lcopy); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c:355: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). dev->fd = open(dev->path, flags, S_IRUSR|S_IWUSR); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c:362:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dev->fd = open(dev->path, flags, S_IRUSR|S_IWUSR); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:349: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(rangep, &range, sizeof(*rangep)); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:574: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 pool_str_addr[POOL_HDR_DESC_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:692: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(paramsp->obj.layout, pop->layout, PMEMOBJ_MAX_LAYOUT); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:783: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 qbuff[Q_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:1012: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 buff[REQ_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:1298: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(buff, (char *)file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:1325: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 *)file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:1394:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, addr, len); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.h:144:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.h:155: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[4096]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[4096]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/info_obj.c:78:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[BITMAP_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:68: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 out_indent_str[MAX_INDENT + 1]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:285:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:317:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:361:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:377:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:522:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:536: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(buf, addr, len); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:567:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:671:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:700:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:766:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:800:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/output.c:846:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0}; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd.c:105:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[64] = {0, }; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:628: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 user_config_file[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:629: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 home_dir[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:197: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(attr->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:202: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(attr->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:203:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr->first_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:204: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(attr->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:205: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(attr->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:206: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(attr->arch_flags, rattr->user_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.c:57: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 rpmemd_prefix_buff[RPMEMD_MAX_PREFIX]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.c:59: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 *rpmemd_log_level_str[MAX_RPD_LOG] = { data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_log.c:204: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 buff[RPMEMD_MAX_MSG]; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.c:285:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return req_cb->open(obc, arg, &req); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.c:390: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(hdrp, &nhdr, sizeof(*hdrp)); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.c:466:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). RPMEMD_ASSERT(req_cb->open != NULL); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.h:46:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct rpmemd_obc *obc, void *arg, data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c:232: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 bbs_suffix[64]; data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c:235: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(bbs_suffix, "_r%u_p%u_badblocks.txt", rep, part); data/pmdk-convert-1.7/nvml/1.7/src/common/ctl.c:549: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. char in = ((char *)arg)[0]; data/pmdk-convert-1.7/nvml/1.7/src/common/extent_linux.c:61:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:77: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:169: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char npath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:430: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(ADDR_SUM(addr, offset), buffer, size); data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:483:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ADDR_SUM(addr, offset), size); data/pmdk-convert-1.7/nvml/1.7/src/common/file.h:56: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[NAME_MAX + 1]; data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:117:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(dir, O_TMPFILE | O_RDWR | flags, S_IRUSR | S_IWUSR); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:212: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 spath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:243: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 sizebuf[MAX_SIZE_LENGTH + 1]; data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:333: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 dax_region_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:334: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 reg_id[DAX_REGION_ID_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/fs_posix.c:58:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *paths[2] = {path, NULL}; data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c:65:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(search_path + pathlen, "\\*\0"); data/pmdk-convert-1.7/nvml/1.7/src/common/mmap_posix.c:80: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 line[PROCMAXLEN]; /* for fgets() */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_linux.c:61: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 domain_value[DOMAIN_VALUE_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_linux.c:119: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 domain_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_deep_linux.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char deep_flush_path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:113:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:114: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 dev_id[BUFF_LENGTH]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:136: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 buff[BUFF_LENGTH]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_windows.c:50:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t mount[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_windows.c:51:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t volume[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:75: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(pathname, flags, (mode_t)mode); data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:77: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(pathname, flags); data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:140: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). return fopen(pathname, mode); data/pmdk-convert-1.7/nvml/1.7/src/common/os_posix.c:167:9: [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). return mkstemp(temp); data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[44]; /* linux: 40 windows: 44 */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 13 */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:60: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 padding[48]; /* linux: 48 windows: 12 */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:65: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 padding[32]; /* linux: 8 windows: 32 */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:70: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 padding[16]; /* 16 to be safe */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:79: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 padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[56]; /* linux: 56 windows: 8 */ data/pmdk-convert-1.7/nvml/1.7/src/common/os_thread.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[512]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c: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 bom[3]; data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c:424: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(it_buf, iov[i].iov_base, iov[i].iov_len); data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:73:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wmsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:188:15: [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). Log_level = atoi(log_level); data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:198: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 log_file_pid[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:211: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:223:15: [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 align = atoi(log_alignment); data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:234:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namepath[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:373: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:377: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:430: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 errstr[UTIL_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:442:4: [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(errormsg, "Vsnprintf failed"); data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:452: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/common/pool_hdr.c:365:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(found, record, sizeof(features_t)); data/pmdk-convert-1.7/nvml/1.7/src/common/pool_hdr.h:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/pool_hdr.h:140: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 unused[1904]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.7/src/common/pool_hdr.h:142: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 unused2[1976]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:323:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *parser_errstr[PARSER_MAX_CODE] = { data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1856: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(hdrp->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1861: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(hdrp->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1862: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(hdrp->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1863: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(hdrp->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1864: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(&hdrp->arch_flags, rattr->user_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1875: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(rattr->signature, hdrp->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1880: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(rattr->poolset_uuid, hdrp->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1881: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(rattr->uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1882: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(rattr->next_uuid, hdrp->next_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1883: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(rattr->prev_uuid, hdrp->prev_repl_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1884: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(rattr->user_flags, &hdrp->arch_flags, sizeof(struct arch_flags)); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1898: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1899: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(hdrp->next_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1900: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(hdrp->prev_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2151:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2256: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2257: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(hdrp->uuid, PART(rep, partidx)->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2263: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(hdrp->prev_part_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2265: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(hdrp->next_part_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2268: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(hdrp->prev_part_uuid, PARTP(rep, partidx)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2270: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(hdrp->next_part_uuid, PARTN(rep, partidx)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2276: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(hdrp->prev_repl_uuid, attr->prev_repl_uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2279: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(hdrp->prev_repl_uuid, PART(REPP(set, repidx), 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2283: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(hdrp->next_repl_uuid, attr->next_repl_uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2286: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(hdrp->next_repl_uuid, PART(REPN(set, repidx), 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2309: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(&hdrp->arch_flags, attr->arch_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3244: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(set->uuid, attr->poolset_uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3270: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(set->replica[0]->part[0].uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3591: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(hdrp->uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3593: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(hdrp->next_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3596: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(hdrp->prev_part_uuid, rattr->uuid, data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3630: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(attr->signature, hdr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3635: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(attr->poolset_uuid, hdr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:3647: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(hdr->signature, attr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:4213:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOLSET_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/set.h:186:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.7/src/common/set.h:189: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 poolset_uuid[POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/common/set.h:190: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 first_part_uuid[POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.7/src/common/set.h:191: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 prev_repl_uuid[POOL_HDR_UUID_LEN]; /* prev replica uuid */ data/pmdk-convert-1.7/nvml/1.7/src/common/set.h:192: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 next_repl_uuid[POOL_HDR_UUID_LEN]; /* next replica uuid */ data/pmdk-convert-1.7/nvml/1.7/src/common/set.h:193: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 arch_flags[POOL_HDR_ARCH_LEN]; /* arch flags */ data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:75: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 lib_name[LIB_LOG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char func_name[FUNC_LOG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:77: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 suffix[SUFFIX_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:82: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(suffix, ".BEGIN"); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:84: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(suffix, ".END"); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:271:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unit[9] = {0}; data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:323:22: [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). _Pmreorder_emit = atoi(pmreorder_env); data/pmdk-convert-1.7/nvml/1.7/src/common/util_windows.c:161:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, data/pmdk-convert-1.7/nvml/1.7/src/common/util_windows.c:170:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, wstr, data/pmdk-convert-1.7/nvml/1.7/src/common/util_windows.c:203:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, data/pmdk-convert-1.7/nvml/1.7/src/common/util_windows.c:208:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, in, -1, data/pmdk-convert-1.7/nvml/1.7/src/common/util_windows.c:251: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(path, "unknown"); data/pmdk-convert-1.7/nvml/1.7/src/common/uuid.h:64: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. typedef unsigned char uuid_t[POOL_HDR_UUID_LEN]; /* 16 byte binary uuid value */ data/pmdk-convert-1.7/nvml/1.7/src/common/uuid.h:68:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int util_uuid_from_string(const char uuid[POOL_HDR_UUID_STR_LEN], data/pmdk-convert-1.7/nvml/1.7/src/common/uuid_linux.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/common/vecq.h:109: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((vec)->buffer + (vec)->capacity, (vec)->buffer,\ data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/thread.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/thread.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/thread.h:64: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/include/libpmemobj/tx.h:192: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. return memcpy(dest, src, num); data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h:64: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h:65: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h:66: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h:67: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/include/librpmem.h:68: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.7/src/libpmem/pmem.c:362:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int val = atoi(ptr); data/pmdk-convert-1.7/nvml/1.7/src/libpmem/x86_64/cpu.c:133:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[0x20]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/blk.c:121: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(buf, (char *)pbp->data + off, count); data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/blk.c:160:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, buf, count); data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt.c:1227: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(info.sig, Sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt.c:1228: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(info.uuid, bttp->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt.c:1229: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(info.parent_uuid, bttp->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt.c:1453: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(bttp->parent_uuid, parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt_layout.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[BTTINFO_SIG_LEN]; /* must be "BTT_ARENA_INFO\0\0" */ data/pmdk-convert-1.7/nvml/1.7/src/libpmemblk/btt_layout.h:78: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 unused[BTTINFO_UNUSED_LEN]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.7/src/libpmemlog/log.c:504: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[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.7/src/libpmemlog/log.c:586: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(&data[write_offset], buf, count); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/heap_layout.h:153:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[HEAP_SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/memops.c:170: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. return memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.c:1316: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 nlanes = atoi(env_nlanes); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.h:129: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.h:134: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.h:154: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 pmem_reserved[496]; /* must be zeroed */ data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.h:215: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 unused2[924]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/pmemops.h:63:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy_fn memcpy; /* persistent memcpy function */ data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/pmemops.h:112: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. return p_ops->memcpy(p_ops->base, dest, src, len, flags); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ravl.c:161: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(data, &arg, sizeof(arg)); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ravl.c:170: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(data, arg, data_size); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ravl.c:568: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(n->data, s->data, ravl->data_size); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ravl.c:591: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, node->data, sizeof(void *)); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/sync.h:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/sync.h:72: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 padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/sync.h:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[_POBJ_CL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/tx.c:253:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, args->copy_ptr, args->copy_size); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/tx.c:787: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(txd->env, env, sizeof(jmp_buf)); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ulog.c:463: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(b->data, src, ncopy); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/ulog.c:474: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(last_cacheline, srcof + rcopy, lcopy); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_btt_info.c:262: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(bttd->sig, btts->sig, BTTINFO_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_btt_info.c:263: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(bttd->uuid, btts->uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_btt_info.c:264: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(bttd->parent_uuid, btts->parent_uuid, BTTINFO_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:252: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(&loc->hdr.signature, &def_hdr.signature, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:369: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(&loc->hdr.arch_flags, &loc->valid_part_hdrp->arch_flags, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:518: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(loc->hdr.poolset_uuid, loc->valid_puuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:645: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(loc->hdr.uuid, loc->valid_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:731: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(loc->hdr.next_part_uuid, loc->next_part_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:738: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(loc->hdr.prev_part_uuid, loc->prev_part_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:745: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(loc->hdr.next_repl_uuid, loc->next_repl_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:752: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(loc->hdr.prev_repl_uuid, loc->prev_repl_hdrp->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:890: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(loc->hdrp, &loc->hdr, sizeof(loc->hdr)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:990: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(&ppc->pool->hdr.pool, poolset->replica[0]->part[0].hdr, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:995: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(&hdr, &ppc->pool->hdr.pool, sizeof(struct pool_hdr)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:1030: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(&ppc->pool->hdr.pool, poolset->replica[0]->part[0].hdr, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_pool_hdr.c:1035: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(&hdr, &ppc->pool->hdr.pool, sizeof(struct pool_hdr)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_sds.c:199: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(loc->hdrp, &loc->hdr, sizeof(loc->hdr)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.c:361: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.c:659:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.c:680:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/check_util.h:111: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 prefix[PREFIX_MAX_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/feature.c:126:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char msg[FEATURE_MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/feature.c:155: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(features, &hdr.features, sizeof(*features)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/feature.c:289:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, sizeof(*src)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/libpmempool.c:379: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[ANSWER_BUFFSIZE]; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c: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(params->obj.layout, pop->layout, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:623: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(buff, (char *)pool->set_file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:648: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 *)pool->set_file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:707: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(daddr, saddr, file->size); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:728:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, buf, (size_t)buf_read); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:805: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(daddr, saddr, smapped); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:941: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(hdrp->signature, sig, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.c:1081: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(infop, &arenap->btt_info, sizeof(*infop)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.h:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/pool.h:84: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/replica.c:1540: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(poolset_uuid, HDR(rep, p)->poolset_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/replica.c:1725: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(poolset_uuid, HDR(REP(set, r_h), 0)->poolset_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/replica.c:1970: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(features, &hdrp->features, sizeof(*features)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/replica.c:1987: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(features, &hdrp->features, sizeof(*features)); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:149:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst_addr, src_addr, len); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:955: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(rep->part[p].uuid, hdrp->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1005: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(rep->part[p].uuid, hdrp->next_part_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1011: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(rep->part[p].uuid, hdrp->prev_part_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1024: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(rep->part[p].uuid, hdrp->next_repl_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1037: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(rep->part[p].uuid, hdrp->prev_repl_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1064: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(set->uuid, src_hdr0->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1236: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(hdrp->prev_part_uuid, PARTP(rep, p)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1238: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(hdrp->next_part_uuid, PARTN(rep, p)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1244: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(prev_hdrp->next_part_uuid, PART(rep, p)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1251: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(next_hdrp->prev_part_uuid, PART(rep, p)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1286: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(hdrp->prev_repl_uuid, PART(prev_r, 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1288: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(hdrp->next_repl_uuid, PART(next_r, 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1300: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(prev_hdrp->next_repl_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1315: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(next_hdrp->prev_repl_uuid, PART(rep, 0)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/sync.c:1340: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(hdrp->poolset_uuid, set->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:666: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(hdr->next_part_uuid, hdr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:667: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(hdr->prev_part_uuid, hdr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:686: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(PART(rep, 0)->uuid, HDR(rep, 0)->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:708: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(hdrp->next_part_uuid, PARTN(rep, p)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:710: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(hdrp->prev_part_uuid, PARTP(rep, p)->uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:715: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(hdrp->next_repl_uuid, hdr0->next_repl_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:717: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(hdrp->prev_repl_uuid, hdr0->prev_repl_uuid, data/pmdk-convert-1.7/nvml/1.7/src/libpmempool/transform.c:719: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(hdrp->poolset_uuid, hdr0->poolset_uuid, data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem.c:78: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem.c:884:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[5]; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:1305: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(msg->data, laddr, len); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:1955: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(&cbuff[rd], rd_buff, rd_len); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_obc.c:168: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(pool_desc->desc, desc, size); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:57: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 error_str[ERR_BUFF_LEN + 1]; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:133: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(&cmd[cmd_len], arg, len); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:449: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 buff[UTIL_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:130: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 *pm2str[MAX_RPMEM_PM] = { data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:147: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 *provider2str[MAX_RPMEM_PROV] = { data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:186:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str[INET6_ADDRSTRLEN + NI_MAXSERV + 1]; data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:187: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 ip[INET6_ADDRSTRLEN]; data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.h:145: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 user[RPMEM_MAX_USER]; data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.h:146: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 node[RPMEM_MAX_NODE]; data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.h:147: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 service[RPMEM_MAX_SERVICE]; data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:79:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[RPMEM_POOL_HDR_SIG_LEN]; /* pool signature */ data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:84: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 poolset_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:85: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 uuid[RPMEM_POOL_HDR_UUID_LEN]; /* first part uuid */ data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:86: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 next_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* next pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:87: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 prev_uuid[RPMEM_POOL_HDR_UUID_LEN]; /* prev pool uuid */ data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:88: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 user_flags[RPMEM_POOL_USER_FLAGS_LEN]; /* user flags */ data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:539: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(dst->signature, src->signature, sizeof(src->signature)); data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_proto.h:558: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(dst->signature, src->signature, sizeof(src->signature)); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_non_zero/blk_non_zero.c:75:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char descr[100]; data/pmdk-convert-1.7/nvml/1.7/src/test/blk_non_zero/blk_non_zero.c:80:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(descr, "{%u} TORN at byte %d", val, i); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_non_zero/blk_non_zero.c:84: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(descr, "{%u}", val); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_recovery/blk_recovery.c:74:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char descr[100]; data/pmdk-convert-1.7/nvml/1.7/src/test/blk_recovery/blk_recovery.c:79:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(descr, "{%u} TORN at byte %d", val, i); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_recovery/blk_recovery.c:83: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(descr, "{%u}", val); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_rw/blk_rw.c:70:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char descr[100]; data/pmdk-convert-1.7/nvml/1.7/src/test/blk_rw/blk_rw.c:75:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(descr, "{%u} TORN at byte %d", val, i); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_rw/blk_rw.c:79: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(descr, "{%u}", val); data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_cow/ctl_cow.c:104: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 x[512] = "Test blk x"; data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_cow/ctl_cow.c:105: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 y[512] = "Test blk y"; data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:124:32: [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). test_obj(const char *path, int open) data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:127:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) { data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:147:32: [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). test_blk(const char *path, int open) data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:150:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) { data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:169:32: [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). test_log(const char *path, int open) data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:179:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) { data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:210: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). int prefault = atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:211:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int open = atoi(argv[4]); data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:216:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). test_obj(path, open); data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:220:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). test_blk(path, open); data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_prefault/ctl_prefault.c:224:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). test_log(path, open); data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api/libpmempool_test.c:73: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 buff[UT_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api/libpmempool_test.c:119:6: [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). if (atoi(value) > 0) data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api_win/libpmempool_test_win.c:72: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 buff[UT_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/test/libpmempool_api_win/libpmempool_test_win.c:121:6: [2] (integer) _wtoi: 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). if (_wtoi(value) > 0) data/pmdk-convert-1.7/nvml/1.7/src/test/log_basic/log_basic.c:62:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *str[6] = { data/pmdk-convert-1.7/nvml/1.7/src/test/log_recovery/log_recovery.c:52:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *str[6] = { data/pmdk-convert-1.7/nvml/1.7/src/test/log_walker/log_walker.c:49:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *str[6] = { data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:91:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pat[PAGE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:92:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PAGE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:97: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(buf, addr + PAGE_SIZE * i, PAGE_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:110: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(addr + PAGE_SIZE * i, pat, PAGE_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:136: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 pat[PAGE_SIZE] = { 0 }; data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:137: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[PAGE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/mmap/mmap.c:163: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(addr + PAGE_SIZE * i, pat, PAGE_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_alloc/obj_alloc.c:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[CHUNKSIZE - sizeof(TOID(struct object))]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_basic_integration/obj_basic_integration.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char teststr[TEST_STR_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_basic_integration/obj_basic_integration.c:65: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 teststr[TEST_STR_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_check/obj_check.c:64:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) { data/pmdk-convert-1.7/nvml/1.7/src/test/obj_critnib/obj_critnib.c:305: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 ws[65536] = { data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_alignment/obj_ctl_alignment.c:81: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 query[1024]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_arenas/obj_ctl_arenas.c:108: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 arena_idx_size[CTL_QUERY_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_arenas/obj_ctl_arenas.c:314: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 arena_idx_auto[CTL_QUERY_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_ctl_arenas/obj_ctl_arenas.c:414: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 alloc_class_idx_desc[CTL_QUERY_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct.c:129: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. UT_ASSERTeq((char *)obj_direct(oids[i]) - off, data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct.c:130: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 *)pops[i]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_fragmentation2/obj_fragmentation2.c:216:10: [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 w = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_fragmentation2/obj_fragmentation2.c:219:23: [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). randomize((unsigned)atoi(argv[3])); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_heap_interrupt/obj_heap_interrupt.c:103: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). int scenario = atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_heap_state/obj_heap_state.c:46: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 buf[ALLOC_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_list/obj_list.h:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[48]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_mem/obj_mem.c:70: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 c[4096]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memcheck/obj_memcheck.c:58: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. volatile char tmp[100]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memcheck/obj_memcheck.c:73: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. volatile char tmp[1000]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_memops/obj_memops.c:455: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. return memcpy(dest, src, len); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_persist_count/obj_persist_count.c:407: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(&tx_counter, &ops_counter, sizeof(ops_counter)); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmalloc_basic/obj_pmalloc_basic.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lanes[LANE_TOTAL_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pmalloc_basic/obj_pmalloc_basic.c:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char padding[1024]; /* to page boundary */ data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:85: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. MMAP((char *)pops[i] + PMEMOBJ_MIN_POOL, Ut_pagesize, data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:119: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. void *before_pool = (char *)pops[i] - 1; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:120: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. void *after_pool = (char *)pops[i] + PMEMOBJ_MIN_POOL + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:121: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. void *start_pool = (char *)pops[i]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:122: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. void *end_pool = (char *)pops[i] + PMEMOBJ_MIN_POOL - 1; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:123: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. void *edge = (char *)pops[i] + PMEMOBJ_MIN_POOL; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:124: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. void *middle = (char *)pops[i] + (PMEMOBJ_MIN_POOL / 2); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:125: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. void *in_oid = (char *)pmemobj_direct(oids[i]) + data/pmdk-convert-1.7/nvml/1.7/src/test/obj_realloc/obj_realloc.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[CHUNKSIZE - sizeof(TOID(struct object))]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_realloc/obj_realloc.c:288: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). check_integrity = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_recovery/obj_recovery.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char large_data[MB]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_reorder_basic/obj_reorder_basic.c:52: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[MAX_BUF_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_reorder_basic/obj_reorder_basic.c:64: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[MAX_BUF_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sds/obj_sds.c:64:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int init = atoi(argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sds/obj_sds.c:65:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int fail = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range/obj_tx_add_range.c:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[OBJ_SIZE - sizeof(size_t)]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range/obj_tx_add_range.c:617: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 after_abort[OVERLAP_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range/obj_tx_add_range.c:618: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(after_abort, D_RO(obj)->data, OVERLAP_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range/obj_tx_add_range.c:1072: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). int do_reopen = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_add_range_direct/obj_tx_add_range_direct.c:57: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 data[OBJ_SIZE - sizeof(size_t)]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_alloc/obj_tx_alloc.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[OBJ_SIZE - sizeof(size_t)]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_free/obj_tx_free.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[OBJ_SIZE - sizeof(size_t)]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_realloc/obj_tx_realloc.c:66:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[OBJ_SIZE - sizeof(size_t)]; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_tx_realloc/obj_tx_realloc.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[OBJ_SIZE - sizeof(size_t)]; data/pmdk-convert-1.7/nvml/1.7/src/test/out_err/out_err.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[UT_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/test/out_err_win/out_err_win.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[UT_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:45:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FUNC_MOCK(open, int, const char *path, int flags, ...) data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:53:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return _FUNC_REAL(open)(path, flags, mode); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:56: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 path2[PATH_MAX] = { 0 }; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:59:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return _FUNC_REAL(open)(path2, flags, mode); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:77: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 path2[PATH_MAX] = { 0 }; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:93: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 path2[PATH_MAX] = { 0 }; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[NFIT_SIGNATURE_LEN] = NFIT_STR_SIGNATURE; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.c:92: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(pFirmwareTableBuffer, &nfit, nfit.length); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.c:99: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((char *)pFirmwareTableBuffer + nfit.length, &pc, pc.length); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/pmem_has_auto_flush_win.c:74:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Pc_type = (size_t)atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/pmem_has_auto_flush_win.c:75:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Pc_capabilities = (size_t)atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_is_pmem_windows/pmem_is_pmem_windows.c:128:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (str_pmem_is_pmem_force && atoi(str_pmem_is_pmem_force) == 1) data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c:134:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pat[CHECK_BYTES]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c:135: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[CHECK_BYTES]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c:146: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(addr, pat, CHECK_BYTES); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c:154: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(addr, pat, CHECK_BYTES); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c:194:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). use_mlen = atoi(argv[i + 4]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file/pmem_map_file.c:195: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). use_is_pmem = atoi(argv[i + 5]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c:114: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 pat[CHECK_BYTES]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c:115: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[CHECK_BYTES]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c:126: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(addr, pat, CHECK_BYTES); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c:134: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(addr, pat, CHECK_BYTES); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c:173:14: [2] (integer) _wtoi: 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). use_mlen = _wtoi(argv[i + 4]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_map_file_win/pmem_map_file_win.c:174:17: [2] (integer) _wtoi: 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). use_is_pmem = _wtoi(argv[i + 5]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memcpy/pmem_memcpy.c:211: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). int dest_off = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memcpy/pmem_memcpy.c:212: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 src_off = atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memmove/pmem_memmove.c:145: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(srcshadow, src, bytes); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_memmove/pmem_memmove.c:146: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(dstshadow, dst, bytes); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_movnt_align/pmem_movnt_align.c:170: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(Scratch + doff, Src + soff, len); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_valgr_simple/pmem_valgr_simple.c:53: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). int dest_off = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char A[STORE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char B[STORE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c:56: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 C[STORE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char D[STORE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char E[STORE_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/pmreorder_flushes/pmreorder_flushes.c:158: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(argv[3], "a"); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_addr_ext/rpmem_addr_ext.c:116: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 target[MAX_TARGET_LENGTH]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:306: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). int id = atoi(id_str); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:361: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). int id = atoi(id_str); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:407: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). int id = atoi(id_str); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:682: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). int id = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:717:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int force = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:718:20: [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 rm_pool_set = atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:749: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). int id = atoi(id_str); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:928: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 *wait_type_str[2] = { data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:955: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 cmd[100]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:984: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 cmd[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:995: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 cmd[100]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:1032: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). int id = atoi(id_str); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:1063: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). int id = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:1065: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 relaxed = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_oob.c:59:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char cmd_buff[CMD_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c:247: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c:360: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c:548: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c:624: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c:793: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_fip/rpmem_fip_test.c:878: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 fip_service[NI_MAXSERV]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_close.c:115:10: [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 i = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_close.c:219: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). enum rpmem_err e = (enum rpmem_err)atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_close.c:242: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 do_send = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_common.c:52:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char cmd_buff[CMD_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_create.c:110:10: [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 i = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_create.c:164: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). enum rpmem_err e = (enum rpmem_err)atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_create.c:187: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 do_send = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_open.c:109:10: [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 i = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_open.c:162: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). enum rpmem_err e = (enum rpmem_err)atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_open.c:185: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 do_send = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_set_attr.c:95:10: [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 i = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_set_attr.c:140: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). enum rpmem_err e = (enum rpmem_err)atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_set_attr.c:163: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 do_send = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:475:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *pool_desc[NPOOLS_DUAL] = {pool_desc_1, pool_desc_2}; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:601:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:641: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 *pool_desc[2], *log_file; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:642: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 root_dir[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_common.c:53:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char cmd_buff[CMD_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_common.c:361:15: [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 status = atoi(argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_common.c:395:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int type = atoi(argv[0]); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_create.c:60: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_create.c:130: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_create.c:158: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_misc.c:71: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_open.c:60: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_open.c:130: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_obc/rpmemd_obc_test_open.c:159: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(msg->pool_desc.desc, POOL_DESC, POOL_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_util/rpmemd_util_test.c:77:36: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. {0, RPMEM_PM_GPSPM, pmem_msync, memcpy}, data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_util/rpmemd_util_test.c:83:36: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. {0, RPMEM_PM_GPSPM, pmem_msync, memcpy}, data/pmdk-convert-1.7/nvml/1.7/src/test/tools/bttcreate/bttcreate.c:88: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(buf, (char *)nsc->addr + off, count); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/bttcreate/bttcreate.c:106: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((char *)nsc->addr + off, buf, count); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/bttcreate/bttcreate.c:187: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 uuidstr[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:396: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 buff[BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:448:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:449: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 link[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:609: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 buff[BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:667: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 buff[BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:717:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). timeout = atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:725:15: [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 signo = atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ctrld/ctrld.c:742:41: [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). unsigned short port = (unsigned short)atoi(argv[3]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/obj_verify/obj_verify.c:58:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[SIGNATURE_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/obj_verify/obj_verify.c:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number_str[NUMBER_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemalloc/pmemalloc.c:116: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). tmpi = atoi(optarg); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:779: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(buff, root_data + offset, len); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:456: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(fp, &f, sizeof(*fp)); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:486:8: [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). t = atoi(optarg); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:596: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(str, pfp->value, len); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:1298: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(psp, &pmemspoil_default, sizeof(*psp)); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemwrite/write.c:159: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(blk, buff, bufflen); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/sparsefile/sparsefile.c:59:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t errmsg[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:163: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(wargv2, wargv, wargc * sizeof(wchar_t *)); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:205: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 Buff_out[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:206: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 Buff_err[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:207: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 Buff_trace[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:208: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 Buff_stdout[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:224: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[MAXPRINT]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:228: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 errstr[UT_MAX_ERR_MSG] = ""; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:497: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 fdfile[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:505: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). fdnum = atoi(dp->d_name); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:528: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 fdfile[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:536: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). fdnum = atoi(dp->d_name); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:646:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_PATH]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:742: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 logname[MAXLOGFILENAME]; data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:772:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LogLevel = atoi(os_getenv("UNITTEST_LOG_LEVEL")); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:1025:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, wstr, -1, data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut.c:1036:6: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, wstr, -1, str, data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_backtrace.c:75: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 procname[PROCNAMELEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/util_cpuid/util_cpuid.c:57: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 Buf[32]; data/pmdk-convert-1.7/nvml/1.7/src/test/util_ctl/util_ctl.c:113: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 b[5]; data/pmdk-convert-1.7/nvml/1.7/src/test/util_ctl/util_ctl.c:691:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[1000] = {0}; data/pmdk-convert-1.7/nvml/1.7/src/test/util_extent/util_extent.c:81:20: [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). long long isize = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/util_is_zeroed/util_is_zeroed.c:47:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bigbuf[3000]; data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/mocks_posix.c:46:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FUNC_MOCK(open, int, const char *path, int flags, ...) data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/mocks_posix.c:59:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return _FUNC_REAL(open)(path, flags, mode); data/pmdk-convert-1.7/nvml/1.7/src/test/util_poolset/util_poolset.c:176: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(attr.signature, SIG, sizeof(SIG)); data/pmdk-convert-1.7/nvml/1.7/src/test/util_sds/util_sds.c:86:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int init = atoi(argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/util_sds/util_sds.c:87: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 fail_on = atoi(argv[2]); data/pmdk-convert-1.7/nvml/1.7/src/test/util_uuid_generate/util_uuid_generate.c:52: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 conv_uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/util_uuid_generate/util_uuid_generate.c:53: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 uu[POOL_HDR_UUID_STR_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_create_error/vmem_create_error.c:41: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 mem_pool[VMEM_MIN_POOL]; data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_stats/vmem_stats.c:113:25: [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). expect_custom_alloc = atoi(argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_valgrind/vmem_valgrind.c:113:15: [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). test_case = atoi(argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_valgrind_region/vmem_valgrind_region.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[1]; /* dynamically sized */ data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_valgrind_region/vmem_valgrind_region.c:91:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int test = atoi(argv[1]); data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_memalign/vmmalloc_memalign.c:63: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 buff[UT_MAX_ERR_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_valgrind/vmmalloc_valgrind.c:51:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((argc != 2) || (test_case = atoi(argv[1])) > 2) data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c:355: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). dev->fd = open(dev->path, flags, S_IRUSR|S_IWUSR); data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c:362:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dev->fd = open(dev->path, flags, S_IRUSR|S_IWUSR); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:334: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(rangep, &range, sizeof(*rangep)); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:559: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 pool_str_addr[POOL_HDR_DESC_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:677: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(paramsp->obj.layout, pop->layout, PMEMOBJ_MAX_LAYOUT); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:768: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 qbuff[Q_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:997: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 buff[REQ_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:1283: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(buff, (char *)file->addr + off, nbytes); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:1310: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 *)file->addr + off, buff, nbytes); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:1379:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, addr, len); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.h:144:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[POOL_HDR_SIG_LEN]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.h:155: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[4096]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[4096]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/info_obj.c:78:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[BITMAP_BUFF_SIZE]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:68: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 out_indent_str[MAX_INDENT + 1]; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:285:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:317:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:361:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[UUID_STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:377:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:522:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:547:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:651:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:680:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:746:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:780:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/output.c:826:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_buff[STR_MAX] = {0}; data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd.c:105:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char uuid_str[64] = {0, }; data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:628: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 user_config_file[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:629: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 home_dir[PATH_MAX]; data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:197: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(attr->signature, rattr->signature, POOL_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:202: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(attr->poolset_uuid, rattr->poolset_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:203:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr->first_part_uuid, rattr->uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:204: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(attr->prev_repl_uuid, rattr->prev_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:205: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(attr->next_repl_uuid, rattr->next_uuid, POOL_HDR_UUID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:206: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(attr->arch_flags, rattr->user_flags, POOL_HDR_ARCH_LEN); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.c:57: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 rpmemd_prefix_buff[RPMEMD_MAX_PREFIX]; data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.c:59: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 *rpmemd_log_level_str[MAX_RPD_LOG] = { data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_log.c:204: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 buff[RPMEMD_MAX_MSG]; data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.c:285:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return req_cb->open(obc, arg, &req); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.c:390: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(hdrp, &nhdr, sizeof(*hdrp)); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.c:466:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). RPMEMD_ASSERT(req_cb->open != NULL); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.h:46:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct rpmemd_obc *obc, void *arg, data/pmdk-convert-1.7/pmdk-convert.c:127:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[2][strlen(dir) + strlen(name) + strlen(LIBDIR) + 100]; data/pmdk-convert-1.7/pmdk-convert.c:438: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 lib_name[100]; data/pmdk-convert-1.7/pmdk-convert.c:440:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(lib_name, "pmemobj_convert_v%d", ver); data/pmdk-convert-1.7/pmdk-convert.c:459: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 line[256]; data/pmdk-convert-1.7/pmdk-convert.c:537:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(path, O_RDONLY); data/pmdk-convert-1.7/pmdk-convert.c:802: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 to_str[255]; data/pmdk-convert-1.7/pmdk-convert.c:803: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 from_str[255]; data/pmdk-convert-1.7/pmdk-convert.c:822: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 lib_name[100]; data/pmdk-convert-1.7/pmdk-convert.c:824:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(lib_name, "pmemobj_convert_v%d", ver); data/pmdk-convert-1.7/pmemobj_convert.h:56:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char errstr[500]; data/pmdk-convert-1.7/pmemobj_convert.h:64:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(errstr, "vsnsprintf error %d (%d)", ret, errno); data/pmdk-convert-1.7/pmemobj_convert.h:66:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(errstr + sizeof(errstr) - 20, "... (truncated)"); data/pmdk-convert-1.7/pmemobj_convert_v3.c:121: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 layout[PMEMOBJ_MAX_LAYOUT]; data/pmdk-convert-1.7/pmemobj_convert_v3.c:126: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 unused[OBJ_DSC_P_UNUSED]; /* must be zero */ data/pmdk-convert-1.7/pmemobj_convert_v3.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pmem_reserved[512]; /* must be zeroed */ data/pmdk-convert-1.7/tests/create.c:48: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). sz = (size_t)atoi(argv[2]) * 1024 * 1024; data/pmdk-convert-1.7/tests/createW.c:48:16: [2] (integer) _wtoi: 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). sz = (size_t)_wtoi(argv[2]) * 1024 * 1024; data/pmdk-convert-1.7/tests/transaction.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[BIG_ALLOC]; data/pmdk-convert-1.7/tests/transaction.c:61: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 value[SMALL_ALLOC]; data/pmdk-convert-1.7/tests/transaction.c:597: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). int sc = atoi(argv[3]); data/pmdk-convert-1.7/utils/check_license/check-license.c:110:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file_pattern = open(path_pattern, O_RDONLY)) == -1) { data/pmdk-convert-1.7/utils/check_license/check-license.c:138:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file_pattern = open(path_pattern, O_WRONLY | O_CREAT | O_EXCL, data/pmdk-convert-1.7/utils/check_license/check-license.c:175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char comment_str[COMMENT_STR_LEN]; data/pmdk-convert-1.7/utils/check_license/check-license.c:270: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[LICENSE_MAX_LEN]; data/pmdk-convert-1.7/utils/check_license/check-license.c:275:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file_license = open(path_license, O_RDONLY)) == -1) { data/pmdk-convert-1.7/utils/check_license/check-license.c:326: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[LICENSE_MAX_LEN]; data/pmdk-convert-1.7/utils/check_license/check-license.c:336:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file_to_check = open(path_to_check, O_RDONLY)) == -1) { data/pmdk-convert-1.7/utils/check_license/check-license.c:369: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). year_first = atoi(copyright); data/pmdk-convert-1.7/utils/check_license/check-license.c:396:15: [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). year_last = atoi(copyright); data/pmdk-convert-1.7/utils/check_license/check-license.c:446: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 pattern[LICENSE_MAX_LEN]; data/pmdk-convert-1.7/utils/check_license/check-license.c:460: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 pattern[LICENSE_MAX_LEN]; data/pmdk-convert-1.7/utils/check_license/check-license.c:475: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 pattern[LICENSE_MAX_LEN]; data/pmdk-convert-1.7/nvml/1.0/src/common/out.c:199:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cc = strlen(log_file); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:764:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:836:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1218: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1263:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1578:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, poolset, sizeof (poolset)) != sizeof (poolset)) { data/pmdk-convert-1.7/nvml/1.0/src/common/set.c:1681:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%lu%4s", &size, unit); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:368: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). char *fullname = alloca(strlen(dir) + sizeof (templ)); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:376:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:378:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.0/src/common/util.c:544:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &elf, sizeof (elf)) != sizeof (elf)) { data/pmdk-convert-1.7/nvml/1.0/src/include/libvmmalloc.h:137:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:478:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:678: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/obj.c:1409: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). carg.size = (strlen(s) + 1) * sizeof (char); data/pmdk-convert-1.7/nvml/1.0/src/libpmemobj/tx.c:1625:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:174:4: [1] (buffer) strlen: Does not handle 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(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:174: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). strlen(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:174: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). strlen(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:211:4: [1] (buffer) strlen: Does not handle 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(str) == (strlen(str1) + 1)) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:211: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). strlen(str) == (strlen(str1) + 1)) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:240:4: [1] (buffer) strlen: Does not handle 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(str) == (1 + strlen(str1))) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:240: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). strlen(str) == (1 + strlen(str1))) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:862: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). size_t len = strlen(answers); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:874:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getchar(); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/common.c:880:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) getchar(); data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/create.c:169:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pcp->layout && strlen(pcp->layout) >= PMEMOBJ_MAX_LAYOUT) { data/pmdk-convert-1.7/nvml/1.0/src/tools/pmempool/create.c:358:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/pmdk-convert-1.7/nvml/1.1/src/common/out.c:204:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cc = strlen(log_file); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:911:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:983:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1480: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:1940:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, poolset, sizeof(poolset)) != sizeof(poolset)) { data/pmdk-convert-1.7/nvml/1.1/src/common/set.c:2043:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%4s", &size, unit); data/pmdk-convert-1.7/nvml/1.1/src/common/set_linux.c:62:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:212: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). char *fullname = alloca(strlen(dir) + sizeof(templ)); data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:221:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:225:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.1/src/common/util_linux.c:266:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &elf, sizeof(elf)) != sizeof(elf)) { data/pmdk-convert-1.7/nvml/1.1/src/common/util_windows.c:70: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). char *fullname = alloca(strlen(dir) + sizeof(templ)); data/pmdk-convert-1.7/nvml/1.1/src/include/libvmmalloc.h:137:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:550:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:749: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/obj.c:1520: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.1/src/libpmemobj/tx.c:1794:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:216:4: [1] (buffer) strlen: Does not handle 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(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:216: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). strlen(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:216:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:253:4: [1] (buffer) strlen: Does not handle 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(str) == (strlen(str1) + 1)) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:253: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). strlen(str) == (strlen(str1) + 1)) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:282:4: [1] (buffer) strlen: Does not handle 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(str) == (1 + strlen(str1))) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:282: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). strlen(str) == (1 + strlen(str1))) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:620:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, pool_str_addr, POOL_HDR_DESC_SIZE); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:692: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). size_t len = strlen(answers); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:704:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getchar(); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/common.c:710:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) getchar(); data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/create.c:169:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pcp->layout && strlen(pcp->layout) >= PMEMOBJ_MAX_LAYOUT) { data/pmdk-convert-1.7/nvml/1.1/src/tools/pmempool/create.c:358:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c:173: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(value) == 0) { data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c:191: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 (endptr != value + strlen(value)) data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_config.c:467:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_db.c:124: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). size_t len1 = strlen(path1); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_db.c:125: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). size_t len2 = strlen(path2); data/pmdk-convert-1.7/nvml/1.1/src/tools/rpmemd/rpmemd_obc.c:132:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen((char *)pool_desc->desc) + 1; data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.c:80:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nread = read(fd, sizebuf, MAX_SIZE_LENGTH)) < 0) data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.h:65:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read read data/pmdk-convert-1.7/nvml/1.2.4/src/common/file.h:73:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read(fd, buf, count) read(fd, buf, (unsigned)(count)) data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c:56: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). char *fullname = alloca(strlen(dir) + sizeof(templ)); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c:65:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_linux.c:69:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_windows.c:71: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). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/common/file_windows.c:71:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/common/out.c:210:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cc = strlen(log_file); data/pmdk-convert-1.7/nvml/1.2.4/src/common/pool_hdr_linux.c:64:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &elf, sizeof(elf)) != sizeof(elf)) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:1431:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/common/set.c:2699:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, signature, sizeof(signature)) != sizeof(signature)) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:165: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 len = (int)strlen(str); data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:211:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%8s", &size, unit); data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:264: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/common/util.c:264: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid.c:87: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.2.4/src/common/uuid_linux.c:62:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.2.4/src/include/libvmmalloc.h:137:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/heap.c:1873:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &header, &layout->header, data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/heap.c:1889:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &zone_buff, data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:697:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:1047: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/obj.c:1953: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/pmemops.h:60:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remote_read_fn read; data/pmdk-convert-1.7/nvml/1.2.4/src/libpmemobj/tx.c:2001:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:240: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). str1 = malloc(strlen(str) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:245: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). str2 = malloc(strlen(str) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:251:4: [1] (buffer) strlen: Does not handle 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(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:251: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). strlen(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:251: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). strlen(str) == (strlen(str1) + 1 + strlen(str2))) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:285: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). char *str1 = malloc(strlen(str) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:291:4: [1] (buffer) strlen: Does not handle 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(str) == (strlen(str1) + 1)) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:291: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). strlen(str) == (strlen(str1) + 1)) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:317: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). char *str1 = malloc(strlen(str) + 1); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:323:4: [1] (buffer) strlen: Does not handle 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(str) == (1 + strlen(str1))) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:323: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). strlen(str) == (1 + strlen(str1))) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:685:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, pool_str_addr, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:772: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). size_t len = strlen(answers); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:784:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getchar(); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:796:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((char)getchar() != '\n') { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/common.c:798:18: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((char)getchar() != '\n') data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.c:426:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.c:504: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). if (pc.layout && strlen(pc.layout) >= PMEMOBJ_MAX_LAYOUT) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/create.c:528:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.obj.layout, pc.layout, data/pmdk-convert-1.7/nvml/1.2.4/src/tools/pmempool/pmempool.c:216: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). const char *format = (strlen(commands[i].name) / 8) data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:156: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(value) == 0) { data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:403:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:532:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t placeholder_len = strlen(HOME_STR_PLACEHOLDER); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:533: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). const size_t home_len = strlen(home_dir); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_config.c:534:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t haystack_len = strlen(haystack); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_db.c:116: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). size_t len1 = strlen(path1); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_db.c:117: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). size_t len2 = strlen(path2); data/pmdk-convert-1.7/nvml/1.2.4/src/tools/rpmemd/rpmemd_obc.c:126:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen((char *)pool_desc->desc) + 1; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.c:93:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nread = read(fd, sizebuf, MAX_SIZE_LENGTH)) < 0) { data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.h:91:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read read data/pmdk-convert-1.7/nvml/1.3.3/src/common/file.h:95:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read(fd, buf, count) read(fd, buf, (unsigned)(count)) data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:65: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). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:65:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:74:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:78:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:146:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, d->d_name, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:224: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). len = strlen(spath); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_linux.c:235:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, sizebuf, MAX_SIZE_LENGTH); data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_windows.c:68:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_windows.c:68: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). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.3.3/src/common/file_windows.c:175:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, data.cFileName, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:228:43: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wchar_t *npath = Malloc(sizeof(*npath) * wcslen(path) + _MAX_FNAME); data/pmdk-convert-1.7/nvml/1.3.3/src/common/os_windows.c:246:31: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int ret = _snwprintf(npath + wcslen(npath), _MAX_FNAME, L"%u", rnd); data/pmdk-convert-1.7/nvml/1.3.3/src/common/out.c:230: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). size_t len = strlen(log_file); data/pmdk-convert-1.7/nvml/1.3.3/src/common/pool_hdr_linux.c:65:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &elf, sizeof(elf)) != sizeof(elf)) { data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:974: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). position = strlen(buffer); data/pmdk-convert-1.7/nvml/1.3.3/src/common/set.c:1617:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:165: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 len = (int)strlen(str); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:211:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%8s", &size, unit); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:264: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:264: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.3.3/src/common/util.c:312:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, max_length); data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid.c:87: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.3.3/src/common/uuid_linux.c:63:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.3.3/src/include/libvmmalloc.h:137:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl.c:505:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(fp)) != EOF) { data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/ctl.c:619:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, arg, dest_size); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/heap.c:1391:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &header, &layout->header, data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/heap.c:1411:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, zone_buff, data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:757:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:1191: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:2262: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/obj.c:2314:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). carg.size = (wcslen(s) + 1) * sizeof(wchar_t); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/pmemops.h:60:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remote_read_fn read; data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/tx.c:2063:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.3.3/src/libpmemobj/tx.c:2093:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = wcslen(s); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.c:93:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nread = read(fd, sizebuf, MAX_SIZE_LENGTH)) < 0) { data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.h:93:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read read data/pmdk-convert-1.7/nvml/1.4.3/src/common/file.h:97:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read(fd, buf, count) read(fd, buf, (unsigned)(count)) data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:70: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). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:70:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:79:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:83:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, d->d_name, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:257: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). len = strlen(spath); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:268:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, sizebuf, MAX_SIZE_LENGTH); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_posix.c:363:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(dax_reg_id_fd, reg_id, DAX_REGION_ID_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_windows.c:71:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_windows.c:71: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). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.4.3/src/common/file_windows.c:178:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, data.cFileName, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c:59:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pathlen = strlen(path); data/pmdk-convert-1.7/nvml/1.4.3/src/common/fs_windows.c:60:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *search_path = Malloc(strlen(path) + sizeof("\\*\0")); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_auto_flush_linux.c:68:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(domain_fd, domain_value, data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_ndctl.c:206: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). *buff_len += strlen(ndctl_dimm_get_unique_id(dimm)); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_ndctl.c:213: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). len += strlen(dimm_uid); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_dimm_ndctl.c:218:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(uid, dimm_uid, *buff_len); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:228:43: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wchar_t *npath = Malloc(sizeof(*npath) * wcslen(path) + _MAX_FNAME); data/pmdk-convert-1.7/nvml/1.4.3/src/common/os_windows.c:246:31: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int ret = _snwprintf(npath + wcslen(npath), _MAX_FNAME, L"%u", rnd); data/pmdk-convert-1.7/nvml/1.4.3/src/common/out.c:199: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). size_t len = strlen(log_file); data/pmdk-convert-1.7/nvml/1.4.3/src/common/plugin.c:125:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dirlen = strlen(plugin_dir); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1312: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). position = strlen(buffer); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:1475: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 path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2138:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/common/set.c:2922: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). path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:172: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 len = (int)strlen(str); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:218:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%8s", &size, unit); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:271: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:271: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.4.3/src/common/util.c:319:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, max_length); data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid.c:87: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.4.3/src/common/uuid_linux.c:63:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.4.3/src/include/libvmmalloc.h:132:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c:159:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pcp->layout, layout, PMEMCTO_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c:269: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 (layout && (strlen(layout) >= PMEMCTO_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c:822: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). size_t size = strlen(s) + 1; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemcto/cto.c:840:17: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t size = (wcslen(s) + 1) * sizeof(wchar_t); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl.c:596:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(fp)) != EOF) { data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/ctl.c:715:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, arg, dest_size); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/heap.c:1591:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &header, &layout->header, data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/heap.c:1606:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, zone_buff, data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:810:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:1257: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:2403: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/obj.c:2455:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). carg.size = (wcslen(s) + 1) * sizeof(wchar_t); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/pmemops.h:59:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remote_read_fn read; data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.c:2129:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.4.3/src/libpmemobj/tx.c:2160:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = wcslen(s); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/daxio/daxio.c:540:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rcnt = read(ctx->src.fd, dst_addr + cnt, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:243:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t str_len = strlen(str); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:642:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, pool_str_addr, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:726:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(answers); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:739:10: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getchar(); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/common.c:752:21: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((char)(c = getchar()) != '\n' && c != EOF) data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/convert_obj_v3_v4.c:64:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void *read; data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.c:474:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.c:555: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). if (pc.layout && strlen(pc.layout) >= max_layout) { data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.c:580:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.obj.layout, pc.layout, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/create.c:592:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.cto.layout, pc.layout, data/pmdk-convert-1.7/nvml/1.4.3/src/tools/pmempool/pmempool.c:216: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). const char *format = (strlen(commands[i].name) / 8) data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:158: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(value) == 0) { data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:424:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:550:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t placeholder_len = strlen(HOME_STR_PLACEHOLDER); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:551: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). const size_t home_len = strlen(home_dir); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_config.c:552:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t haystack_len = strlen(haystack); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:118: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). size_t len1 = strlen(path1); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_db.c:119: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). size_t len2 = strlen(path2); data/pmdk-convert-1.7/nvml/1.4.3/src/tools/rpmemd/rpmemd_obc.c:127:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen((char *)pool_desc->desc) + 1; data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c:237:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_file = strlen(file); data/pmdk-convert-1.7/nvml/1.5.2/src/common/badblock.c:238:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_bbs_suffix = strlen(bbs_suffix); data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl.c:480:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(fp)) != EOF) { data/pmdk-convert-1.7/nvml/1.5.2/src/common/ctl.c:605:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, arg, dest_size); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.c:93:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nread = read(fd, sizebuf, MAX_SIZE_LENGTH)) < 0) { data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.h:106:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read read data/pmdk-convert-1.7/nvml/1.5.2/src/common/file.h:110:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read(fd, buf, count) read(fd, buf, (unsigned)(count)) data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:70: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). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:70:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:79:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:83:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, d->d_name, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:257: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). len = strlen(spath); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:268:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, sizebuf, MAX_SIZE_LENGTH); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_posix.c:364:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(dax_reg_id_fd, reg_id, DAX_REGION_ID_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_windows.c:71:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_windows.c:71: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). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.5.2/src/common/file_windows.c:178:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, data.cFileName, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c:59:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pathlen = strlen(path); data/pmdk-convert-1.7/nvml/1.5.2/src/common/fs_windows.c:60:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *search_path = Malloc(strlen(path) + sizeof("\\*\0")); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_auto_flush_linux.c:69:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(domain_fd, domain_value, data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_ndctl.c:244: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). *buff_len += strlen(ndctl_dimm_get_unique_id(dimm)); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_ndctl.c:251: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). len += strlen(dimm_uid); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_ndctl.c:256:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(uid, dimm_uid, *buff_len); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_windows.c:66:3: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wcslen(volume) == 0 || volume[wcslen(volume) - 1] != L'\\') { data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_windows.c:66:33: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wcslen(volume) == 0 || volume[wcslen(volume) - 1] != L'\\') { data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_dimm_windows.c:75:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). volume[wcslen(volume) - 1] = L'\0'; data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:260:43: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wchar_t *npath = Malloc(sizeof(*npath) * wcslen(path) + _MAX_FNAME); data/pmdk-convert-1.7/nvml/1.5.2/src/common/os_windows.c:278:31: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int ret = _snwprintf(npath + wcslen(npath), _MAX_FNAME, L"%u", rnd); data/pmdk-convert-1.7/nvml/1.5.2/src/common/out.c:199: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). size_t len = strlen(log_file); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1329: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). position = strlen(buffer); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:1494: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 path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2182:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/common/set.c:2977: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). path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:97:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lib_len = strlen(lib); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:98:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t func_len = strlen(func); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:105: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 suffix_len = strlen(suffix); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:251: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 len = (int)strlen(str); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:297:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%8s", &size, unit); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:360: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:360: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util.c:408:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, max_length); data/pmdk-convert-1.7/nvml/1.5.2/src/common/util_posix.c:139:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(path, "unknown", pathlen); data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid.c:87: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.5.2/src/common/uuid_linux.c:63:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.5.2/src/include/libvmmalloc.h:132:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/heap.c:1391:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &header, &layout->header, data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/heap.c:1406:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, zone_buff, data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c:915:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c:1353: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c:2531: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/obj.c:2587:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). carg.size = (wcslen(s) + 1) * sizeof(wchar_t); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/pmemops.h:69:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remote_read_fn read; data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/tx.c:1558:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.5.2/src/libpmemobj/tx.c:1599:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = wcslen(s); data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c:237:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_file = strlen(file); data/pmdk-convert-1.7/nvml/1.6.1/src/common/badblock.c:238:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_bbs_suffix = strlen(bbs_suffix); data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl.c:481:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(fp)) != EOF) { data/pmdk-convert-1.7/nvml/1.6.1/src/common/ctl.c:606:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, arg, dest_size); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.c:93:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nread = read(fd, sizebuf, MAX_SIZE_LENGTH)) < 0) { data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.h:107:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read read data/pmdk-convert-1.7/nvml/1.6.1/src/common/file.h:111:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read(fd, buf, count) read(fd, buf, (unsigned)(count)) data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:70: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). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:70:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:79:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:83:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, d->d_name, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:257: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). len = strlen(spath); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:268:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, sizebuf, MAX_SIZE_LENGTH); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_posix.c:364:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(dax_reg_id_fd, reg_id, DAX_REGION_ID_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_windows.c:72:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_windows.c:72: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). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.6.1/src/common/file_windows.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, data.cFileName, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c:59:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pathlen = strlen(path); data/pmdk-convert-1.7/nvml/1.6.1/src/common/fs_windows.c:60:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *search_path = Malloc(strlen(path) + sizeof("\\*\0")); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_auto_flush_linux.c:69:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(domain_fd, domain_value, data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:137:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nread = read(fd, buff, BUFF_LENGTH); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:313: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). *buff_len += strlen(ndctl_dimm_get_unique_id(dimm)); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:320: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). len += strlen(dimm_uid); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_ndctl.c:325:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(uid, dimm_uid, *buff_len); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_windows.c:66:3: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wcslen(volume) == 0 || volume[wcslen(volume) - 1] != L'\\') { data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_windows.c:66:33: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wcslen(volume) == 0 || volume[wcslen(volume) - 1] != L'\\') { data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_dimm_windows.c:75:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). volume[wcslen(volume) - 1] = L'\0'; data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c:262:43: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wchar_t *npath = Malloc(sizeof(*npath) * wcslen(path) + _MAX_FNAME); data/pmdk-convert-1.7/nvml/1.6.1/src/common/os_windows.c:280:31: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int ret = _snwprintf(npath + wcslen(npath), _MAX_FNAME, L"%u", rnd); data/pmdk-convert-1.7/nvml/1.6.1/src/common/out.c:199: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). size_t len = strlen(log_file); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:1457: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 path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2158:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/common/set.c:2953: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). path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:78:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lib_len = strlen(lib); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:79:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t func_len = strlen(func); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:86: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 suffix_len = strlen(suffix); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:216:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (int)strlen(str); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:262:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%8s", &size, unit); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:325: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:325: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:373:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, max_length); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util.c:408: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). position = strlen(buffer); data/pmdk-convert-1.7/nvml/1.6.1/src/common/util_posix.c:139:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(path, "unknown", pathlen); data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid.c:87: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.6.1/src/common/uuid_linux.c:63:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.6.1/src/include/libvmmalloc.h:132:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/heap.c:1661:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &header, &layout->header, data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/heap.c:1676:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, zone_buff, data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.c:898:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.c:1334: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.c:2508: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/obj.c:2564:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). carg.size = (wcslen(s) + 1) * sizeof(wchar_t); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/pmemops.h:69:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remote_read_fn read; data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/tx.c:1559:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.6.1/src/libpmemobj/tx.c:1600:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = wcslen(s); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/daxio/daxio.c:572:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rcnt = read(ctx->src.fd, dst_addr + cnt, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:239:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t str_len = strlen(str); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:651:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, pool_str_addr, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:728:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(answers); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:762: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(line_of_answer) == 2 && data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/common.c:768: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(line_of_answer) == 1 && data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c:67:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(dir) + strlen(convert_bin) + 1; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/convert.c:67: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). size_t length = strlen(dir) + strlen(convert_bin) + 1; data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.c:490:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.c:538: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(pc.layout) >= max_layout) { data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.c:546:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.obj.layout, pc.layout, len); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/create.c:605:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.obj.layout, pc.layout, data/pmdk-convert-1.7/nvml/1.6.1/src/tools/pmempool/pmempool.c:223: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). const char *format = (strlen(commands[i].name) / 8) data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:160: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(value) == 0) { data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:426:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:563:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t placeholder_len = strlen(HOME_STR_PLACEHOLDER); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:564: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). const size_t home_len = strlen(home_dir); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_config.c:565:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t haystack_len = strlen(haystack); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:118: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). size_t len1 = strlen(path1); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_db.c:119: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). size_t len2 = strlen(path2); data/pmdk-convert-1.7/nvml/1.6.1/src/tools/rpmemd/rpmemd_obc.c:127:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen((char *)pool_desc->desc) + 1; data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c:237:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_file = strlen(file); data/pmdk-convert-1.7/nvml/1.7/src/common/badblock.c:238:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_bbs_suffix = strlen(bbs_suffix); data/pmdk-convert-1.7/nvml/1.7/src/common/ctl.c:481:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(fp)) != EOF) { data/pmdk-convert-1.7/nvml/1.7/src/common/ctl.c:606:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, arg, dest_size); data/pmdk-convert-1.7/nvml/1.7/src/common/file.c:93:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nread = read(fd, sizebuf, MAX_SIZE_LENGTH)) < 0) { data/pmdk-convert-1.7/nvml/1.7/src/common/file.h:107:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read read data/pmdk-convert-1.7/nvml/1.7/src/common/file.h:111:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define util_read(fd, buf, count) read(fd, buf, (unsigned)(count)) data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:70: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). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:70:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *fullname = alloca(strlen(dir) + strlen(templ) + 1); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:79:22: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t prev_umask = umask(S_IRWXG | S_IRWXO); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:83:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(prev_umask); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, d->d_name, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:257: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). len = strlen(spath); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:268:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, sizebuf, MAX_SIZE_LENGTH); data/pmdk-convert-1.7/nvml/1.7/src/common/file_posix.c:364:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(dax_reg_id_fd, reg_id, DAX_REGION_ID_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/file_windows.c:72:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.7/src/common/file_windows.c:72: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). size_t len = strlen(dir) + strlen(templ) + 1; data/pmdk-convert-1.7/nvml/1.7/src/common/file_windows.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->filename, data.cFileName, NAME_MAX + 1); data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c:59:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pathlen = strlen(path); data/pmdk-convert-1.7/nvml/1.7/src/common/fs_windows.c:60:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *search_path = Malloc(strlen(path) + sizeof("\\*\0")); data/pmdk-convert-1.7/nvml/1.7/src/common/os_auto_flush_linux.c:69:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t len = read(domain_fd, domain_value, data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:137:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nread = read(fd, buff, BUFF_LENGTH); data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:313: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). *buff_len += strlen(ndctl_dimm_get_unique_id(dimm)); data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:320: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). len += strlen(dimm_uid); data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_ndctl.c:325:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(uid, dimm_uid, *buff_len); data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_windows.c:66:3: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wcslen(volume) == 0 || volume[wcslen(volume) - 1] != L'\\') { data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_windows.c:66:33: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wcslen(volume) == 0 || volume[wcslen(volume) - 1] != L'\\') { data/pmdk-convert-1.7/nvml/1.7/src/common/os_dimm_windows.c:75:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). volume[wcslen(volume) - 1] = L'\0'; data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c:262:43: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wchar_t *npath = Malloc(sizeof(*npath) * wcslen(path) + _MAX_FNAME); data/pmdk-convert-1.7/nvml/1.7/src/common/os_windows.c:280:31: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int ret = _snwprintf(npath + wcslen(npath), _MAX_FNAME, L"%u", rnd); data/pmdk-convert-1.7/nvml/1.7/src/common/out.c:199: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). size_t len = strlen(log_file); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:1457: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 path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2158:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (int)read(fd, signature, POOLSET_HDR_SIG_LEN); data/pmdk-convert-1.7/nvml/1.7/src/common/set.c:2953: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). path_len = strlen(d->path) + PMEM_FILE_MAX_LEN; data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:78:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lib_len = strlen(lib); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:79:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t func_len = strlen(func); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:86: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 suffix_len = strlen(suffix); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:227: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 len = (int)strlen(str); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:273:12: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. int ret = sscanf(str, "%zu%8s", &size, unit); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:336: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:336: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). char *result = malloc(strlen(s1) + strlen(s2) + 1); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:384:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, max_length); data/pmdk-convert-1.7/nvml/1.7/src/common/util.c:419: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). position = strlen(buffer); data/pmdk-convert-1.7/nvml/1.7/src/common/util_posix.c:139:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(path, "unknown", pathlen); data/pmdk-convert-1.7/nvml/1.7/src/common/uuid.c:87: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(uuid) != 36) { data/pmdk-convert-1.7/nvml/1.7/src/common/uuid_linux.c:63:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, uu, POOL_HDR_UUID_STR_LEN); data/pmdk-convert-1.7/nvml/1.7/src/include/libvmmalloc.h:132:14: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. extern void *memalign(size_t boundary, size_t size) data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/heap.c:1736:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, &header, &layout->header, data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/heap.c:1751:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ops->read(ops->ctx, ops->base, zone_buff, data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.c:899:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pop->layout, layout, PMEMOBJ_MAX_LAYOUT - 1); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.c:1348: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 (layout && (strlen(layout) >= PMEMOBJ_MAX_LAYOUT)) { data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.c:2525: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). carg.size = (strlen(s) + 1) * sizeof(char); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/obj.c:2581:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). carg.size = (wcslen(s) + 1) * sizeof(wchar_t); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/pmemops.h:69:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remote_read_fn read; data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/tx.c:1658:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pmdk-convert-1.7/nvml/1.7/src/libpmemobj/tx.c:1699:15: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = wcslen(s); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_cmd.c:125: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). size += strlen(cmd->args.argv[i]) + 1; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:134:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). struct rpmem_fip_rma read; /* READ message */ data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:144:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). struct rpmem_fip_rma read; /* READ message */ data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:950:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rpmem_fip_rma_init(&fip->lanes[i].read, data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:1149:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = rpmem_fip_readmsg(lanep->base.ep, &lanep->read, fip->raw_buff, data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:1925:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rpmem_fip_rma_init(&rd_lane.read, rd_mr_desc, 0, data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_fip.c:1940:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = rpmem_fip_readmsg(lanep->ep, &rd_lane.read, data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_obc.c:180:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pool_desc_size = strlen(req->pool_desc) + 1; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_obc.c:299:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pool_desc_size = strlen(req->pool_desc) + 1; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:85: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 ulen = strlen(info->user); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:86: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 nlen = strlen(info->node); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:119:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cmd_len = strlen(cmd) + 1; data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:123: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). size_t len = strlen(arg); data/pmdk-convert-1.7/nvml/1.7/src/librpmem/rpmem_ssh.c:438:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ret = read(rps->cmd->fd_err, error_str + len, data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:112:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sret = read(fd, &cbuf[rd], len - rd); data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:233:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->user, str, sizeof(info->user) - 1); data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:249:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->node, tmp, sizeof(info->node) - 1); data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:257:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->service, end, sizeof(info->service) - 1); data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:268:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->service, first, data/pmdk-convert-1.7/nvml/1.7/src/rpmem_common/rpmem_common.c:273:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->node, tmp, sizeof(info->node) - 1); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_pool_lock/blk_pool_lock.c:80:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(sleep); data/pmdk-convert-1.7/nvml/1.7/src/test/blk_pool_lock/blk_pool_lock.c:82:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100 * 1000); data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_cow/ctl_cow.c:130:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pmemlog_append(plp, buf, strlen(buf)) < 0) data/pmdk-convert-1.7/nvml/1.7/src/test/ctl_cow/ctl_cow.c:133:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pmemlog_append(plp, buf_2, strlen(buf_2)) < 0) data/pmdk-convert-1.7/nvml/1.7/src/test/log_basic/log_basic.c:72:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int rv = pmemlog_append(plp, str[i], strlen(str[i])); data/pmdk-convert-1.7/nvml/1.7/src/test/log_basic/log_basic.c:184:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, buf, len); data/pmdk-convert-1.7/nvml/1.7/src/test/log_pool_lock/log_pool_lock.c:80:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(sleep); data/pmdk-convert-1.7/nvml/1.7/src/test/log_pool_lock/log_pool_lock.c:82:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100 * 1000); data/pmdk-convert-1.7/nvml/1.7/src/test/log_recovery/log_recovery.c:62:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int rv = pmemlog_append(plp, str[i], strlen(str[i])); data/pmdk-convert-1.7/nvml/1.7/src/test/log_recovery/log_recovery.c:156:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, buf, len); data/pmdk-convert-1.7/nvml/1.7/src/test/log_walker/log_walker.c:59:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int rv = pmemlog_append(plp, str[i], strlen(str[i])); data/pmdk-convert-1.7/nvml/1.7/src/test/mmap_fixed/mmap_fixed.c:103: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). char *name1 = MALLOC(strlen(argv[1]) + appendix_length); data/pmdk-convert-1.7/nvml/1.7/src/test/mmap_fixed/mmap_fixed.c:104: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). char *name2 = MALLOC(strlen(argv[1]) + appendix_length); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_direct/obj_direct.c:101:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(dir) + MAX_PATH_LEN; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_oid_thread/obj_oid_thread.c:93:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(dir) + MAX_PATH_LEN; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lock/obj_pool_lock.c:81:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(sleep); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lock/obj_pool_lock.c:83:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100 * 1000); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_pool_lookup/obj_pool_lookup.c:73:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(dir) + MAX_PATH_LEN; data/pmdk-convert-1.7/nvml/1.7/src/test/obj_reorder_basic/obj_reorder_basic.c:68: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). rootp->len = strlen(buf); data/pmdk-convert-1.7/nvml/1.7/src/test/obj_reorder_basic/obj_reorder_basic.c:84: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). if (rootp->len == strlen(rootp->buf) && rootp->len != 0) data/pmdk-convert-1.7/nvml/1.7/src/test/obj_sds/obj_sds.c:112:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen(uids[uid_it]) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:58: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). strcat(path2, path + strlen(BUS_DEVICE_PATH)); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:79: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). strcat(path2, path + strlen(BUS_DEVICE_PATH)); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush/mocks_posix.c:95: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). strcat(path2, path + strlen(BUS_DEVICE_PATH)); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.c:63:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pFirmwareTableBuffer, NFIT_STR_SIGNATURE, BufferSize); data/pmdk-convert-1.7/nvml/1.7/src/test/pmem_has_auto_flush_win/mocks_windows.c:90:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(nfit.signature, sig, NFIT_SIGNATURE_LEN); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_addr_ext/rpmem_addr_ext.c:123: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). target[strlen(target) - 1] = '\0'; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_basic/rpmem_basic.c:168: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). if (strncmp(pool_path, "mem", strlen("mem")) == 0) { data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_common.c:122:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t ret = read(s->fd_in, &cbuf[rd], len - rd); data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_create.c:60:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t pool_desc_size = strlen(POOL_DESC) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_create.c:84:4: [1] (buffer) strlen: Does not handle 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(POOL_DESC) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_open.c: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). size_t pool_desc_size = strlen(POOL_DESC) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmem_obc/rpmem_obc_test_open.c:83:4: [1] (buffer) strlen: Does not handle 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(POOL_DESC) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/rpmemd_db/rpmemd_db_test.c:605:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)attr.poolset_uuid, "TEST", sizeof(attr.poolset_uuid)); data/pmdk-convert-1.7/nvml/1.7/src/test/set_funcs/set_funcs.c:104: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). size_t size = strlen(s) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ddmap/ddmap.c:297:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t str_len = (str != NULL) ? strlen(str) + 1 : 0; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/ddmap/ddmap.c:369: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). ctx->count = strlen(ctx->str); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:737:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:2118: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(env) > 1 || (env[0] != '0' && env[0] != '1')) { data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemobjcli/pmemobjcli.c:2312: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). argstr = cmds + strlen(pcli->inbuf) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:384: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). char *secstr = malloc(strlen(str) + 1); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:390: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). len = strlen(secstr); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:398: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). return str + strlen(str); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemspoil/spoil.c:595: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). len = min(len, strlen(pfp->value)); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemwrite/write.c:97: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). size_t len = strlen(pwp->args[i]); data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemwrite/write.c:136:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t buffsize = strlen(pwp->args[i]) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/tools/pmemwrite/write.c:148:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bufflen = strlen(buff); data/pmdk-convert-1.7/nvml/1.7/src/test/traces_custom_function/traces_custom_function.c:76: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). char *format2 = MALLOC(strlen(format) * 3); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_alloc.c:119:4: [1] (buffer) strlen: Does not handle 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(str)); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_backtrace.c:94:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(procname, "?"); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_file.c:194:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t retval = read(fd, buf, count); data/pmdk-convert-1.7/nvml/1.7/src/test/unittest/ut_file.c:203:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t retval = read(fd, buf, (unsigned)count); data/pmdk-convert-1.7/nvml/1.7/src/test/util_ctl/util_ctl.c:448: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). fwrite(buf, sizeof(char), strlen(buf), f); data/pmdk-convert-1.7/nvml/1.7/src/test/util_sds/util_sds.c:161:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen(uids[uid_it]) + 1; data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_custom_alloc/vmem_custom_alloc.c:156:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *test = vmem_malloc(vmp, strlen(TEST_STRING_VALUE) + 1); data/pmdk-convert-1.7/nvml/1.7/src/test/vmem_custom_alloc/vmem_custom_alloc.c:179: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 (argc < 2 || argc > 3 || strlen(argv[1]) != 1) data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_dummy_funcs/vmmalloc_dummy_funcs.c:49:1: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. memalign(size_t alignment, size_t size) data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_dummy_funcs/vmmalloc_dummy_funcs.h:48:7: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. void *memalign(size_t boundary, size_t size); data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_malloc_hooks/vmmalloc_malloc_hooks.c:83:6: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. p = memalign(alignment, size); data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_malloc_hooks/vmmalloc_malloc_hooks.c:134:8: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. ptr = memalign(16, 4321); data/pmdk-convert-1.7/nvml/1.7/src/test/vmmalloc_memalign/vmmalloc_memalign.c:87:12: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. Aalloc = memalign; data/pmdk-convert-1.7/nvml/1.7/src/tools/daxio/daxio.c:572:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rcnt = read(ctx->src.fd, dst_addr + cnt, data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:224:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t str_len = strlen(str); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:636:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t num = read(fd, pool_str_addr, data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:713:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(answers); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:747: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(line_of_answer) == 2 && data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/common.c:753: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(line_of_answer) == 1 && data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c:67:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(dir) + strlen(convert_bin) + 1; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/convert.c:67: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). size_t length = strlen(dir) + strlen(convert_bin) + 1; data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.c:490:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.c:538: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(pc.layout) >= max_layout) { data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.c:546:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.obj.layout, pc.layout, len); data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/create.c:605:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pc.params.obj.layout, pc.layout, data/pmdk-convert-1.7/nvml/1.7/src/tools/pmempool/pmempool.c:223: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). const char *format = (strlen(commands[i].name) / 8) data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:160: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(value) == 0) { data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:426:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:563:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t placeholder_len = strlen(HOME_STR_PLACEHOLDER); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:564: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). const size_t home_len = strlen(home_dir); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_config.c:565:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t haystack_len = strlen(haystack); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:118: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). size_t len1 = strlen(path1); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_db.c:119: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). size_t len2 = strlen(path2); data/pmdk-convert-1.7/nvml/1.7/src/tools/rpmemd/rpmemd_obc.c:127:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen((char *)pool_desc->desc) + 1; data/pmdk-convert-1.7/pmdk-convert.c:127: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). char path[2][strlen(dir) + strlen(name) + strlen(LIBDIR) + 100]; data/pmdk-convert-1.7/pmdk-convert.c:127:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char path[2][strlen(dir) + strlen(name) + strlen(LIBDIR) + 100]; data/pmdk-convert-1.7/pmdk-convert.c:127: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). char path[2][strlen(dir) + strlen(name) + strlen(LIBDIR) + 100]; data/pmdk-convert-1.7/pmdk-convert.c:186:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(path); data/pmdk-convert-1.7/pmdk-convert.c:230: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). char *path = malloc(strlen(dir) + strlen(name) + 100); data/pmdk-convert-1.7/pmdk-convert.c:230: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). char *path = malloc(strlen(dir) + strlen(name) + 100); data/pmdk-convert-1.7/pmdk-convert.c:316: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(strver) != 3) data/pmdk-convert-1.7/pmdk-convert.c:493: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(VERSION_PRERELEASE) > 0) data/pmdk-convert-1.7/pmdk-convert.c:796:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getchar() == EOF) { data/pmdk-convert-1.7/utils/check_license/check-license.c:115:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(file_pattern, pattern, LICENSE_MAX_LEN); data/pmdk-convert-1.7/utils/check_license/check-license.c:187:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(comment_str, comment, COMMENT_STR_LEN - 1); data/pmdk-convert-1.7/utils/check_license/check-license.c:195: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). comment_len = strlen(comment_str); data/pmdk-convert-1.7/utils/check_license/check-license.c:254:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _length = (size_t)(end_str - beg_str) + strlen(LICENSE_END); data/pmdk-convert-1.7/utils/check_license/check-license.c:281:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(file_license, buffer, LICENSE_MAX_LEN); data/pmdk-convert-1.7/utils/check_license/check-license.c:292:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pattern, license, LICENSE_MAX_LEN); data/pmdk-convert-1.7/utils/check_license/check-license.c:342:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(file_to_check, buffer, LICENSE_MAX_LEN); data/pmdk-convert-1.7/utils/check_license/check-license.c:421:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (memcmp(license, pattern, strlen(pattern)) != 0) { data/pmdk-convert-1.7/utils/check_license/check-license.c:423: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). print_diff(license, pattern, strlen(pattern)); ANALYSIS SUMMARY: Hits = 2632 Lines analyzed = 535161 in approximately 12.77 seconds (41919 lines/second) Physical Source Lines of Code (SLOC) = 318220 Hits@level = [0] 939 [1] 535 [2] 1610 [3] 152 [4] 319 [5] 16 Hits@level+ = [0+] 3571 [1+] 2632 [2+] 2097 [3+] 487 [4+] 335 [5+] 16 Hits/KSLOC@level+ = [0+] 11.2218 [1+] 8.27101 [2+] 6.58978 [3+] 1.53039 [4+] 1.05273 [5+] 0.0502797 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.