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/ga-5.7.2/LinAlg/lapack+blas/dummy.c Examining data/ga-5.7.2/LinAlg/lapack+blas/galinalg.h Examining data/ga-5.7.2/LinAlg/lapack+blas/xgemm.c Examining data/ga-5.7.2/LinAlg/lapack+blas/xgemm.h Examining data/ga-5.7.2/armci/examples/benchmarks/RandomAccess/ra_common.h Examining data/ga-5.7.2/armci/examples/benchmarks/RandomAccess/simple/simple.c Examining data/ga-5.7.2/armci/examples/benchmarks/RandomAccess/smp_bucket/smp_bucket.c Examining data/ga-5.7.2/armci/examples/benchmarks/RandomAccess/timing.c Examining data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/cg.c Examining data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/compute.c Examining data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/generateinput.c Examining data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/read_input.c Examining data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/timing.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-b-bc.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-block.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/timing.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/timing.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_get.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_put.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/timing.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/barrier.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/barrier.h Examining data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/errors.h Examining data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/lu-thread.c Examining data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/timing.c Examining data/ga-5.7.2/armci/examples/examples_config.h Examining data/ga-5.7.2/armci/examples/features/aggregation/simple/simple.c Examining data/ga-5.7.2/armci/examples/features/aggregation/sparse_matvecmul/sparse_matvecmul.c Examining data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c Examining data/ga-5.7.2/armci/examples/features/concurrency/simple/comdegree.c Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/DistHashmap.cc Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/DistHashmap.h Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/GPCHashmap.cc Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/GPCHashmap.h Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/GPCHashmapHandler.cc Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/HashFunctions.cc Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/HashUtil.cc Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/Hash_common.h Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/Util.h Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/hash_map.h Examining data/ga-5.7.2/armci/examples/features/gpc/hashtable/test_hashtable.cc Examining data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c Examining data/ga-5.7.2/armci/examples/features/non-blocking/simple/simple.c Examining data/ga-5.7.2/armci/examples/features/notification/simple/testnotify.c Examining data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c Examining data/ga-5.7.2/armci/examples/features/proc_affinity/simple/simple.c Examining data/ga-5.7.2/armci/examples/features/symmetric_memory/simple/simple.c Examining data/ga-5.7.2/armci/examples/simpleApps/transp1D-c.c Examining data/ga-5.7.2/armci/f90/armcif90.c Examining data/ga-5.7.2/armci/f90/arraydesc.h Examining data/ga-5.7.2/armci/f90/arraywrap.c Examining data/ga-5.7.2/armci/src-gemini/acc.c Examining data/ga-5.7.2/armci/src-gemini/acc.h Examining data/ga-5.7.2/armci/src-gemini/aggregate.c Examining data/ga-5.7.2/armci/src-gemini/armci-onesided.c Examining data/ga-5.7.2/armci/src-gemini/armci-onesided.h Examining data/ga-5.7.2/armci/src-gemini/armci.c Examining data/ga-5.7.2/armci/src-gemini/armci.h Examining data/ga-5.7.2/armci/src-gemini/armci_portals.c Examining data/ga-5.7.2/armci/src-gemini/armci_portals.h Examining data/ga-5.7.2/armci/src-gemini/armci_shmem.h Examining data/ga-5.7.2/armci/src-gemini/armcip.h Examining data/ga-5.7.2/armci/src-gemini/atomics-i386.h Examining data/ga-5.7.2/armci/src-gemini/bufalloc.c Examining data/ga-5.7.2/armci/src-gemini/buffers.c Examining data/ga-5.7.2/armci/src-gemini/caccumulate.c Examining data/ga-5.7.2/armci/src-gemini/ccopy.c Examining data/ga-5.7.2/armci/src-gemini/clusterinfo.c Examining data/ga-5.7.2/armci/src-gemini/code_options.h Examining data/ga-5.7.2/armci/src-gemini/copy.h Examining data/ga-5.7.2/armci/src-gemini/ds-shared.c Examining data/ga-5.7.2/armci/src-gemini/fence.c Examining data/ga-5.7.2/armci/src-gemini/gpc.c Examining data/ga-5.7.2/armci/src-gemini/gpc.h Examining data/ga-5.7.2/armci/src-gemini/groups.c Examining data/ga-5.7.2/armci/src-gemini/kr_malloc.c Examining data/ga-5.7.2/armci/src-gemini/kr_malloc.h Examining data/ga-5.7.2/armci/src-gemini/locks.c Examining data/ga-5.7.2/armci/src-gemini/locks.h Examining data/ga-5.7.2/armci/src-gemini/memlock.c Examining data/ga-5.7.2/armci/src-gemini/memlock.h Examining data/ga-5.7.2/armci/src-gemini/memory.c Examining data/ga-5.7.2/armci/src-gemini/message.c Examining data/ga-5.7.2/armci/src-gemini/message.h Examining data/ga-5.7.2/armci/src-gemini/mutex.c Examining data/ga-5.7.2/armci/src-gemini/new_memory.c Examining data/ga-5.7.2/armci/src-gemini/pack.c Examining data/ga-5.7.2/armci/src-gemini/pendbufs.c Examining data/ga-5.7.2/armci/src-gemini/pendbufs.h Examining data/ga-5.7.2/armci/src-gemini/portals.c Examining data/ga-5.7.2/armci/src-gemini/portals.h Examining data/ga-5.7.2/armci/src-gemini/portals_cp.c Examining data/ga-5.7.2/armci/src-gemini/portals_ds.c Examining data/ga-5.7.2/armci/src-gemini/request.c Examining data/ga-5.7.2/armci/src-gemini/request.h Examining data/ga-5.7.2/armci/src-gemini/rmw.c Examining data/ga-5.7.2/armci/src-gemini/rtinfo.c Examining data/ga-5.7.2/armci/src-gemini/semaphores.c Examining data/ga-5.7.2/armci/src-gemini/semaphores.h Examining data/ga-5.7.2/armci/src-gemini/shmalloc.c Examining data/ga-5.7.2/armci/src-gemini/shmalloc.h Examining data/ga-5.7.2/armci/src-gemini/shmem.c Examining data/ga-5.7.2/armci/src-gemini/shmlimit.c Examining data/ga-5.7.2/armci/src-gemini/shmlimit.h Examining data/ga-5.7.2/armci/src-gemini/signaltrap.c Examining data/ga-5.7.2/armci/src-gemini/signaltrap.h Examining data/ga-5.7.2/armci/src-gemini/sockets.h Examining data/ga-5.7.2/armci/src-gemini/spawn.c Examining data/ga-5.7.2/armci/src-gemini/spinlock.h Examining data/ga-5.7.2/armci/src-gemini/strided.c Examining data/ga-5.7.2/armci/src-gemini/threads.c Examining data/ga-5.7.2/armci/src-gemini/timer.c Examining data/ga-5.7.2/armci/src-gemini/utils.c Examining data/ga-5.7.2/armci/src-gemini/utils.h Examining data/ga-5.7.2/armci/src-gemini/vector.c Examining data/ga-5.7.2/armci/src-portals/acc.c Examining data/ga-5.7.2/armci/src-portals/acc.h Examining data/ga-5.7.2/armci/src-portals/aggregate.c Examining data/ga-5.7.2/armci/src-portals/armci.c Examining data/ga-5.7.2/armci/src-portals/armci.h Examining data/ga-5.7.2/armci/src-portals/armci_portals.c Examining data/ga-5.7.2/armci/src-portals/armci_portals.h Examining data/ga-5.7.2/armci/src-portals/armci_shmem.h Examining data/ga-5.7.2/armci/src-portals/armcip.h Examining data/ga-5.7.2/armci/src-portals/atomics-i386.h Examining data/ga-5.7.2/armci/src-portals/bufalloc.c Examining data/ga-5.7.2/armci/src-portals/buffers.c Examining data/ga-5.7.2/armci/src-portals/caccumulate.c Examining data/ga-5.7.2/armci/src-portals/capi.c Examining data/ga-5.7.2/armci/src-portals/ccopy.c Examining data/ga-5.7.2/armci/src-portals/clusterinfo.c Examining data/ga-5.7.2/armci/src-portals/code_options.h Examining data/ga-5.7.2/armci/src-portals/copy.h Examining data/ga-5.7.2/armci/src-portals/ds-shared.c Examining data/ga-5.7.2/armci/src-portals/fence.c Examining data/ga-5.7.2/armci/src-portals/gpc.c Examining data/ga-5.7.2/armci/src-portals/gpc.h Examining data/ga-5.7.2/armci/src-portals/groups.c Examining data/ga-5.7.2/armci/src-portals/kr_malloc.c Examining data/ga-5.7.2/armci/src-portals/kr_malloc.h Examining data/ga-5.7.2/armci/src-portals/locks.c Examining data/ga-5.7.2/armci/src-portals/locks.h Examining data/ga-5.7.2/armci/src-portals/memlock.c Examining data/ga-5.7.2/armci/src-portals/memlock.h Examining data/ga-5.7.2/armci/src-portals/memory.c Examining data/ga-5.7.2/armci/src-portals/message.c Examining data/ga-5.7.2/armci/src-portals/message.h Examining data/ga-5.7.2/armci/src-portals/mutex.c Examining data/ga-5.7.2/armci/src-portals/new_memory.c Examining data/ga-5.7.2/armci/src-portals/pack.c Examining data/ga-5.7.2/armci/src-portals/parmci.h Examining data/ga-5.7.2/armci/src-portals/pendbufs.c Examining data/ga-5.7.2/armci/src-portals/pendbufs.h Examining data/ga-5.7.2/armci/src-portals/portals.c Examining data/ga-5.7.2/armci/src-portals/portals.h Examining data/ga-5.7.2/armci/src-portals/portals_cp.c Examining data/ga-5.7.2/armci/src-portals/portals_ds.c Examining data/ga-5.7.2/armci/src-portals/request.c Examining data/ga-5.7.2/armci/src-portals/request.h Examining data/ga-5.7.2/armci/src-portals/rmw.c Examining data/ga-5.7.2/armci/src-portals/rtinfo.c Examining data/ga-5.7.2/armci/src-portals/semaphores.c Examining data/ga-5.7.2/armci/src-portals/semaphores.h Examining data/ga-5.7.2/armci/src-portals/shmalloc.c Examining data/ga-5.7.2/armci/src-portals/shmalloc.h Examining data/ga-5.7.2/armci/src-portals/shmem.c Examining data/ga-5.7.2/armci/src-portals/shmlimit.c Examining data/ga-5.7.2/armci/src-portals/shmlimit.h Examining data/ga-5.7.2/armci/src-portals/signaltrap.c Examining data/ga-5.7.2/armci/src-portals/signaltrap.h Examining data/ga-5.7.2/armci/src-portals/sockets.h Examining data/ga-5.7.2/armci/src-portals/spawn.c Examining data/ga-5.7.2/armci/src-portals/spinlock.h Examining data/ga-5.7.2/armci/src-portals/strided.c Examining data/ga-5.7.2/armci/src-portals/threads.c Examining data/ga-5.7.2/armci/src-portals/timer.c Examining data/ga-5.7.2/armci/src-portals/utils.c Examining data/ga-5.7.2/armci/src-portals/utils.h Examining data/ga-5.7.2/armci/src-portals/vector.c Examining data/ga-5.7.2/armci/src/collectives/message.c Examining data/ga-5.7.2/armci/src/common/aggregate.c Examining data/ga-5.7.2/armci/src/common/armci.c Examining data/ga-5.7.2/armci/src/common/async.c Examining data/ga-5.7.2/armci/src/common/capi.c Examining data/ga-5.7.2/armci/src/common/ccopy.c Examining data/ga-5.7.2/armci/src/common/clusterinfo.c Examining data/ga-5.7.2/armci/src/common/ds-shared.c Examining data/ga-5.7.2/armci/src/common/gpc.c Examining data/ga-5.7.2/armci/src/common/groups.c Examining data/ga-5.7.2/armci/src/common/iterator.c Examining data/ga-5.7.2/armci/src/common/noncont.c Examining data/ga-5.7.2/armci/src/common/pack.c Examining data/ga-5.7.2/armci/src/common/regions.c Examining data/ga-5.7.2/armci/src/common/request.c Examining data/ga-5.7.2/armci/src/common/signaltrap.c Examining data/ga-5.7.2/armci/src/common/spawn.c Examining data/ga-5.7.2/armci/src/common/timer.c Examining data/ga-5.7.2/armci/src/common/utils.c Examining data/ga-5.7.2/armci/src/devices/lapi/lapi.c Examining data/ga-5.7.2/armci/src/devices/lapi/lapi2.c Examining data/ga-5.7.2/armci/src/devices/lapi/lapidefs.h Examining data/ga-5.7.2/armci/src/devices/mpi-mt/mpi2.h Examining data/ga-5.7.2/armci/src/devices/mpi-mt/mpi2_client.c Examining data/ga-5.7.2/armci/src/devices/mpi-mt/mpi2_server.c Examining data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2.h Examining data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c Examining data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_server.c Examining data/ga-5.7.2/armci/src/devices/openib/armci-vapi.h Examining data/ga-5.7.2/armci/src/devices/openib/cbuf.c Examining data/ga-5.7.2/armci/src/devices/openib/cbuf.h Examining data/ga-5.7.2/armci/src/devices/openib/openib.c Examining data/ga-5.7.2/armci/src/devices/openib/pendbufs.c Examining data/ga-5.7.2/armci/src/devices/openib/pendbufs.h Examining data/ga-5.7.2/armci/src/devices/openib/rtinfo.c Examining data/ga-5.7.2/armci/src/devices/portals/armci_portals.h Examining data/ga-5.7.2/armci/src/devices/portals/portals.c Examining data/ga-5.7.2/armci/src/devices/portals/portals.h Examining data/ga-5.7.2/armci/src/devices/sockets/dataserv.c Examining data/ga-5.7.2/armci/src/devices/sockets/sockets.c Examining data/ga-5.7.2/armci/src/devices/sockets/sockets.h Examining data/ga-5.7.2/armci/src/ft/armci_chkpt.c Examining data/ga-5.7.2/armci/src/ft/armci_chkpt.h Examining data/ga-5.7.2/armci/src/ft/armci_storage.c Examining data/ga-5.7.2/armci/src/ft/armci_storage.h Examining data/ga-5.7.2/armci/src/include/acc.h Examining data/ga-5.7.2/armci/src/include/armci.h Examining data/ga-5.7.2/armci/src/include/armci_shmem.h Examining data/ga-5.7.2/armci/src/include/armcip.h Examining data/ga-5.7.2/armci/src/include/asm-ppc.h Examining data/ga-5.7.2/armci/src/include/atomic_ops_ia64.h Examining data/ga-5.7.2/armci/src/include/atomics-i386.h Examining data/ga-5.7.2/armci/src/include/copy.h Examining data/ga-5.7.2/armci/src/include/fujitsu-vpp.h Examining data/ga-5.7.2/armci/src/include/gpc.h Examining data/ga-5.7.2/armci/src/include/iterator.h Examining data/ga-5.7.2/armci/src/include/kr_malloc.h Examining data/ga-5.7.2/armci/src/include/memlock.h Examining data/ga-5.7.2/armci/src/include/message.h Examining data/ga-5.7.2/armci/src/include/parmci.h Examining data/ga-5.7.2/armci/src/include/request.h Examining data/ga-5.7.2/armci/src/include/semaphores.h Examining data/ga-5.7.2/armci/src/include/shmalloc.h Examining data/ga-5.7.2/armci/src/include/shmlimit.h Examining data/ga-5.7.2/armci/src/include/signaltrap.h Examining data/ga-5.7.2/armci/src/include/spinlock.h Examining data/ga-5.7.2/armci/src/include/utils.h Examining data/ga-5.7.2/armci/src/include/locks.h Examining data/ga-5.7.2/armci/src/locks/locks.c Examining data/ga-5.7.2/armci/src/locks/memlock.c Examining data/ga-5.7.2/armci/src/locks/mutex.c Examining data/ga-5.7.2/armci/src/locks/semaphores.c Examining data/ga-5.7.2/armci/src/memory/buffers.c Examining data/ga-5.7.2/armci/src/memory/kr_malloc.c Examining data/ga-5.7.2/armci/src/memory/memory.c Examining data/ga-5.7.2/armci/src/memory/shmalloc.c Examining data/ga-5.7.2/armci/src/memory/shmem.c Examining data/ga-5.7.2/armci/src/memory/shmlimit.c Examining data/ga-5.7.2/armci/src/memory/winshmem.c Examining data/ga-5.7.2/armci/src/progress/fence.c Examining data/ga-5.7.2/armci/src/progress/wait.c Examining data/ga-5.7.2/armci/src/util/threads.c Examining data/ga-5.7.2/armci/src/xfer/caccumulate.c Examining data/ga-5.7.2/armci/src/xfer/rmw.c Examining data/ga-5.7.2/armci/src/xfer/strided.c Examining data/ga-5.7.2/armci/src/xfer/vector.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/brdcst.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/checkbyte.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/cluster.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/cluster.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/defglobals.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/drand48.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/error.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evon.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/globalop.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/llog.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/mdtob.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/mdtoi.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/mitob.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/mitod.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/mtime.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/niceftn.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/nnodes.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/nodeid.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/nxtval.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbeginf.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pfilecopy.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_alliant.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_convex.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_macx.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/setdbg.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_alliant.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_convex.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_cray.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/signals.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/signals.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sndrcvP.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sockets.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/srmover.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/stats.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/synch.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/tcgshmem.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/tcgsockets.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/usleep.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/waitall.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/waitcom.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/xdrstuff.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv4.0/xdrstuff.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send_lapi.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/busy.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/checkbyte.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/copyall.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/copyall.save.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/drand48.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/error.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/getmem.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/globalop.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/lapi_putget.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/llog.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/mdtob.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/mdtoi.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/misc.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/mitob.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/mitod.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/mtime.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/niceftn.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/nnodes.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/nodeid.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/nxtval.shm.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pbegin.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pbeginf.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pfilecopy.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/queues.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/shmem.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/signals.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/snd_rcv_probe.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/synch.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/tcgmsgP.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/tcgshmem.h Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/usleep.c Examining data/ga-5.7.2/armci/tcgmsg/ipcv5.0/waitall.c Examining data/ga-5.7.2/armci/tcgmsg/msgtypesc.h Examining data/ga-5.7.2/armci/tcgmsg/msgtypesf.h Examining data/ga-5.7.2/armci/tcgmsg/sndrcv.h Examining data/ga-5.7.2/armci/tcgmsg/srftoc.h Examining data/ga-5.7.2/armci/testing/clone.c Examining data/ga-5.7.2/armci/testing/fork.c Examining data/ga-5.7.2/armci/testing/fttest.c Examining data/ga-5.7.2/armci/testing/gpctest.c Examining data/ga-5.7.2/armci/testing/ipctest.c Examining data/ga-5.7.2/armci/testing/msgcheck.c Examining data/ga-5.7.2/armci/testing/origptl.c Examining data/ga-5.7.2/armci/testing/perf.c Examining data/ga-5.7.2/armci/testing/perf2.c Examining data/ga-5.7.2/armci/testing/perf_aggr.c Examining data/ga-5.7.2/armci/testing/perf_nb.c Examining data/ga-5.7.2/armci/testing/perf_strided.c Examining data/ga-5.7.2/armci/testing/ptltest.c Examining data/ga-5.7.2/armci/testing/rpl_armci_msg_finalize.c Examining data/ga-5.7.2/armci/testing/rpl_armci_msg_init.c Examining data/ga-5.7.2/armci/testing/shmclean.c Examining data/ga-5.7.2/armci/testing/shmtest.c Examining data/ga-5.7.2/armci/testing/simple.c Examining data/ga-5.7.2/armci/testing/simplelock.c Examining data/ga-5.7.2/armci/testing/te.c Examining data/ga-5.7.2/armci/testing/test.c Examining data/ga-5.7.2/armci/testing/test2.c Examining data/ga-5.7.2/armci/testing/test_groups.c Examining data/ga-5.7.2/armci/testing/test_mt.c Examining data/ga-5.7.2/armci/testing/testitr.c Examining data/ga-5.7.2/armci/testing/testnotify.c Examining data/ga-5.7.2/armci/testing/timer.h Examining data/ga-5.7.2/armci/tools/armci_prof.c Examining data/ga-5.7.2/armci/tools/armci_profile.c Examining data/ga-5.7.2/armci/tools/armci_profile.h Examining data/ga-5.7.2/armci/tools/armci_trace.c Examining data/ga-5.7.2/benchmarks/config.h Examining data/ga-5.7.2/benchmarks/util.c Examining data/ga-5.7.2/cca/ga_cca_classic/DADFAxisInfo.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/DADFAxisInfo.h Examining data/ga-5.7.2/cca/ga_cca_classic/DADFDescriptor.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/DADFDescriptor.h Examining data/ga-5.7.2/cca/ga_cca_classic/DADFRegionInfo.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/DADFRegionInfo.h Examining data/ga-5.7.2/cca/ga_cca_classic/DADFTemplate.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/DADFTemplate.h Examining data/ga-5.7.2/cca/ga_cca_classic/DistArray.h Examining data/ga-5.7.2/cca/ga_cca_classic/DistArrayDescrFactoryPort.h Examining data/ga-5.7.2/cca/ga_cca_classic/DistArrayDescriptor.h Examining data/ga-5.7.2/cca/ga_cca_classic/DistArrayTemplFactoryPort.h Examining data/ga-5.7.2/cca/ga_cca_classic/DistArrayTemplate.h Examining data/ga-5.7.2/cca/ga_cca_classic/GAClassicPort.h Examining data/ga-5.7.2/cca/ga_cca_classic/GAServices.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/GAServices.h Examining data/ga-5.7.2/cca/ga_cca_classic/GAServices_DADF.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/GAServices_wrapper.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/GA_DADFArray.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/GA_DADFArray.h Examining data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.h Examining data/ga-5.7.2/cca/ga_cca_classic/TestComponent/TestComponent.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/TestComponent/TestComponent.h Examining data/ga-5.7.2/cca/ga_cca_classic/TestComponent/TestComponent_wrapper.cxx Examining data/ga-5.7.2/cca/ga_cca_classic/gacca.h Examining data/ga-5.7.2/cca/ga_cca_classic/overload.cxx Examining data/ga-5.7.2/comex/src-armci/armci.c Examining data/ga-5.7.2/comex/src-armci/armci.h Examining data/ga-5.7.2/comex/src-armci/capi.c Examining data/ga-5.7.2/comex/src-armci/groups.c Examining data/ga-5.7.2/comex/src-armci/iterator.c Examining data/ga-5.7.2/comex/src-armci/iterator.h Examining data/ga-5.7.2/comex/src-armci/message.c Examining data/ga-5.7.2/comex/src-armci/message.h Examining data/ga-5.7.2/comex/src-armci/parmci.h Examining data/ga-5.7.2/comex/src-common/acc.h Examining data/ga-5.7.2/comex/src-common/comex.h Examining data/ga-5.7.2/comex/src-dmapp/clusterinfo.c Examining data/ga-5.7.2/comex/src-dmapp/clusterinfo.h Examining data/ga-5.7.2/comex/src-dmapp/comex.c Examining data/ga-5.7.2/comex/src-dmapp/comex_impl.h Examining data/ga-5.7.2/comex/src-dmapp/groups.c Examining data/ga-5.7.2/comex/src-dmapp/groups.h Examining data/ga-5.7.2/comex/src-dmapp/reg_cache.c Examining data/ga-5.7.2/comex/src-dmapp/reg_cache.h Examining data/ga-5.7.2/comex/src-mpi-mt/comex.c Examining data/ga-5.7.2/comex/src-mpi-mt/comex_impl.h Examining data/ga-5.7.2/comex/src-mpi-mt/groups.c Examining data/ga-5.7.2/comex/src-mpi-mt/groups.h Examining data/ga-5.7.2/comex/src-mpi-pr/comex.c Examining data/ga-5.7.2/comex/src-mpi-pr/comex_impl.h Examining data/ga-5.7.2/comex/src-mpi-pr/groups.c Examining data/ga-5.7.2/comex/src-mpi-pr/groups.h Examining data/ga-5.7.2/comex/src-mpi-pr/hello.c Examining data/ga-5.7.2/comex/src-mpi-pr/reg_cache.c Examining data/ga-5.7.2/comex/src-mpi-pr/reg_cache.h Examining data/ga-5.7.2/comex/src-mpi-pt/comex.c Examining data/ga-5.7.2/comex/src-mpi-pt/comex_impl.h Examining data/ga-5.7.2/comex/src-mpi-pt/groups.c Examining data/ga-5.7.2/comex/src-mpi-pt/groups.h Examining data/ga-5.7.2/comex/src-mpi-pt/hello.c Examining data/ga-5.7.2/comex/src-mpi-pt/reg_cache.c Examining data/ga-5.7.2/comex/src-mpi-pt/reg_cache.h Examining data/ga-5.7.2/comex/src-mpi/comex.c Examining data/ga-5.7.2/comex/src-mpi/comex_impl.h Examining data/ga-5.7.2/comex/src-mpi/groups.c Examining data/ga-5.7.2/comex/src-mpi/groups.h Examining data/ga-5.7.2/comex/src-mpi3/comex.c Examining data/ga-5.7.2/comex/src-mpi3/comex_impl.h Examining data/ga-5.7.2/comex/src-mpi3/groups.c Examining data/ga-5.7.2/comex/src-mpi3/groups.h Examining data/ga-5.7.2/comex/src-mpi3/reg_win.c Examining data/ga-5.7.2/comex/src-mpi3/reg_win.h Examining data/ga-5.7.2/comex/src-ofa/comex.c Examining data/ga-5.7.2/comex/src-ofa/comex_impl.h Examining data/ga-5.7.2/comex/src-ofa/contig.c Examining data/ga-5.7.2/comex/src-ofa/device.c Examining data/ga-5.7.2/comex/src-ofa/device.h Examining data/ga-5.7.2/comex/src-ofa/fence.c Examining data/ga-5.7.2/comex/src-ofa/gpa.c Examining data/ga-5.7.2/comex/src-ofa/groups.c Examining data/ga-5.7.2/comex/src-ofa/groups.h Examining data/ga-5.7.2/comex/src-ofa/mutex.c Examining data/ga-5.7.2/comex/src-ofa/openib.c Examining data/ga-5.7.2/comex/src-ofa/openib.h Examining data/ga-5.7.2/comex/src-ofa/reg_cache.c Examining data/ga-5.7.2/comex/src-ofa/reg_cache.h Examining data/ga-5.7.2/comex/src-ofa/strided.c Examining data/ga-5.7.2/comex/src-ofa/vector.c Examining data/ga-5.7.2/comex/src-ofa/wait.c Examining data/ga-5.7.2/comex/src-ofi/comex.c Examining data/ga-5.7.2/comex/src-ofi/comex_impl.h Examining data/ga-5.7.2/comex/src-ofi/datatype.h Examining data/ga-5.7.2/comex/src-ofi/env.c Examining data/ga-5.7.2/comex/src-ofi/env.h Examining data/ga-5.7.2/comex/src-ofi/fi_lock.h Examining data/ga-5.7.2/comex/src-ofi/groups.c Examining data/ga-5.7.2/comex/src-ofi/groups.h Examining data/ga-5.7.2/comex/src-ofi/log.h Examining data/ga-5.7.2/comex/src-ofi/mutex.h Examining data/ga-5.7.2/comex/src-ofi/ofi.h Examining data/ga-5.7.2/comex/src-ofi/request.h Examining data/ga-5.7.2/comex/src-portals4/comex.c Examining data/ga-5.7.2/comex/src-portals4/comex_impl.h Examining data/ga-5.7.2/comex/src-portals4/groups.c Examining data/ga-5.7.2/comex/src-portals4/groups.h Examining data/ga-5.7.2/comex/src-template/comex.c Examining data/ga-5.7.2/comex/src-template/comex_impl.h Examining data/ga-5.7.2/comex/src-template/groups.c Examining data/ga-5.7.2/comex/src-template/groups.h Examining data/ga-5.7.2/comex/testing/perf.c Examining data/ga-5.7.2/comex/testing/perf_amo.c Examining data/ga-5.7.2/comex/testing/perf_contig.c Examining data/ga-5.7.2/comex/testing/perf_strided.c Examining data/ga-5.7.2/comex/testing/shift.c Examining data/ga-5.7.2/comex/testing/stats.h Examining data/ga-5.7.2/comex/testing/test.c Examining data/ga-5.7.2/comex/tools/armci_prof.c Examining data/ga-5.7.2/compat/random.c Examining data/ga-5.7.2/ga++/src/GAServices.cc Examining data/ga-5.7.2/ga++/src/GAServices.h Examining data/ga-5.7.2/ga++/src/GlobalArray.cc Examining data/ga-5.7.2/ga++/src/GlobalArray.h Examining data/ga-5.7.2/ga++/src/PGroup.cc Examining data/ga-5.7.2/ga++/src/PGroup.h Examining data/ga-5.7.2/ga++/src/ga++.h Examining data/ga-5.7.2/ga++/src/init_term.cc Examining data/ga-5.7.2/ga++/src/init_term.h Examining data/ga-5.7.2/ga++/src/overload.cc Examining data/ga-5.7.2/ga++/src/services.cc Examining data/ga-5.7.2/ga++/src/services.h Examining data/ga-5.7.2/ga++/testing/elempatch.cc Examining data/ga-5.7.2/ga++/testing/mtest.cc Examining data/ga-5.7.2/ga++/testing/ntestc.cc Examining data/ga-5.7.2/ga++/testing/testc.cc Examining data/ga-5.7.2/ga++/testing/testmult.cc Examining data/ga-5.7.2/ga++/testing/thread-safe.cc Examining data/ga-5.7.2/gaf2c/drand.c Examining data/ga-5.7.2/gaf2c/gaf2c.c Examining data/ga-5.7.2/gaf2c/testarg.c Examining data/ga-5.7.2/global/X/xregion.h Examining data/ga-5.7.2/global/X/xregion_colormap.c Examining data/ga-5.7.2/global/X/xregion_dialog.c Examining data/ga-5.7.2/global/X/xregion_display.c Examining data/ga-5.7.2/global/X/xregion_fileio.c Examining data/ga-5.7.2/global/X/xregion_main.c Examining data/ga-5.7.2/global/X/xregion_overview.c Examining data/ga-5.7.2/global/X/xregion_pixregion.c Examining data/ga-5.7.2/global/X/xregion_scrollbars.c Examining data/ga-5.7.2/global/X/xregion_util.c Examining data/ga-5.7.2/global/X/xregion_view.c Examining data/ga-5.7.2/global/X/xregion_xcmap.c Examining data/ga-5.7.2/global/examples/conjugate_gradient/finclude.h Examining data/ga-5.7.2/global/examples/conjugate_gradient/ga_cg.c Examining data/ga-5.7.2/global/examples/conjugate_gradient/matvecmul.c Examining data/ga-5.7.2/global/examples/conjugate_gradient/read_input.c Examining data/ga-5.7.2/global/examples/lennard-jones/lennard.c Examining data/ga-5.7.2/global/examples/scf/cscf.h Examining data/ga-5.7.2/global/src/DP.c Examining data/ga-5.7.2/global/src/abstract_ops.h Examining data/ga-5.7.2/global/src/base.c Examining data/ga-5.7.2/global/src/base.h Examining data/ga-5.7.2/global/src/capi.c Examining data/ga-5.7.2/global/src/cnames.h Examining data/ga-5.7.2/global/src/collect.c Examining data/ga-5.7.2/global/src/datatypes.c Examining data/ga-5.7.2/global/src/decomp.c Examining data/ga-5.7.2/global/src/elem_alg.c Examining data/ga-5.7.2/global/src/fapi.c Examining data/ga-5.7.2/global/src/ga-mpi.h Examining data/ga-5.7.2/global/src/ga-papi.h Examining data/ga-5.7.2/global/src/ga.h Examining data/ga-5.7.2/global/src/ga_ckpt.c Examining data/ga-5.7.2/global/src/ga_ckpt.h Examining data/ga-5.7.2/global/src/ga_diag_seqc.c Examining data/ga-5.7.2/global/src/ga_iterator.h Examining data/ga-5.7.2/global/src/ga_malloc.c Examining data/ga-5.7.2/global/src/ga_profile.c Examining data/ga-5.7.2/global/src/ga_profile.h Examining data/ga-5.7.2/global/src/ga_solve_seq.c Examining data/ga-5.7.2/global/src/ga_symmetr.c Examining data/ga-5.7.2/global/src/ga_trace.c Examining data/ga-5.7.2/global/src/gacommon.h Examining data/ga-5.7.2/global/src/gaconfig.h Examining data/ga-5.7.2/global/src/ghosts.c Examining data/ga-5.7.2/global/src/global.h Examining data/ga-5.7.2/global/src/global.nalg.c Examining data/ga-5.7.2/global/src/global.npatch.c Examining data/ga-5.7.2/global/src/global.periodic.c Examining data/ga-5.7.2/global/src/global.util.c Examining data/ga-5.7.2/global/src/globalp.h Examining data/ga-5.7.2/global/src/hsort.scat.c Examining data/ga-5.7.2/global/src/iterator.c Examining data/ga-5.7.2/global/src/matmul.c Examining data/ga-5.7.2/global/src/matmul.h Examining data/ga-5.7.2/global/src/matrix.c Examining data/ga-5.7.2/global/src/nbutil.c Examining data/ga-5.7.2/global/src/onesided.c Examining data/ga-5.7.2/global/src/peigstubs.c Examining data/ga-5.7.2/global/src/sclstubs.c Examining data/ga-5.7.2/global/src/select.c Examining data/ga-5.7.2/global/src/sparse.c Examining data/ga-5.7.2/global/src/thread-safe.c Examining data/ga-5.7.2/global/src/thread-safe.h Examining data/ga-5.7.2/global/testing/big.c Examining data/ga-5.7.2/global/testing/elempatch.c Examining data/ga-5.7.2/global/testing/enormous.c Examining data/ga-5.7.2/global/testing/ga-mpi.c Examining data/ga-5.7.2/global/testing/ga_lu.c Examining data/ga-5.7.2/global/testing/gatscat.c Examining data/ga-5.7.2/global/testing/gemmtest.c Examining data/ga-5.7.2/global/testing/getmem.c Examining data/ga-5.7.2/global/testing/ipc.clean.c Examining data/ga-5.7.2/global/testing/lock.c Examining data/ga-5.7.2/global/testing/matrixc.c Examining data/ga-5.7.2/global/testing/mp3.h Examining data/ga-5.7.2/global/testing/mtest.c Examining data/ga-5.7.2/global/testing/mulmatpatchc.c Examining data/ga-5.7.2/global/testing/normc.c Examining data/ga-5.7.2/global/testing/ntestc.c Examining data/ga-5.7.2/global/testing/ntestfc.c Examining data/ga-5.7.2/global/testing/packc.c Examining data/ga-5.7.2/global/testing/patch_enumc.c Examining data/ga-5.7.2/global/testing/perf2.c Examining data/ga-5.7.2/global/testing/print.c Examining data/ga-5.7.2/global/testing/read_only.c Examining data/ga-5.7.2/global/testing/scan_addc.c Examining data/ga-5.7.2/global/testing/scan_copyc.c Examining data/ga-5.7.2/global/testing/simple_groups_commc.c Examining data/ga-5.7.2/global/testing/sprsmatvec.c Examining data/ga-5.7.2/global/testing/testc.c Examining data/ga-5.7.2/global/testing/testmatmultc.c Examining data/ga-5.7.2/global/testing/testmult.c Examining data/ga-5.7.2/global/testing/testmultrect.c Examining data/ga-5.7.2/global/testing/testutil.h Examining data/ga-5.7.2/global/testing/thread_perf_contig.c Examining data/ga-5.7.2/global/testing/thread_perf_strided.c Examining data/ga-5.7.2/global/testing/threadsafec.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_abs_value.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_acc.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_add.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_add_constant.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_add_constantpatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_add_diagonal.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_add_patch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_copy.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_copy2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_copy3.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_copypatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_copypatch2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create1.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create3.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create_handle.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create_irreg.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create_irreg2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_create_irreg3.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_destroy.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_dgop.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_dot.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_duplicate.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_divide.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_dividepatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_maximum.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_maximumpatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_minimum.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_minimumpatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_multiply.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_elem_multiplypatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_fill.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_fillpatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_fillpatch1.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_gather.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_gather2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_gather3.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_get.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_get_blockinfo.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_get_diagonal.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_igop.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_igop2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_inquire.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_intialize.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_lgop.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_median.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_ndim.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_ndim2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_nnodes.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_nodeid.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_brdcst.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_create.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_create2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_create3.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_create4.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_create5.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_destroy.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_destroy2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_nnodes_nodeid.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_pgroup_setdefault.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_put.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_put2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_scale.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_scale2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_scale_cols.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_scale_patch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_scale_rows.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_scatter.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_set_data.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_set_diagonal.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_set_restricted.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_solve.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_sync.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_transpose.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_transpose2.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_transpose3.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_unit.h Examining data/ga-5.7.2/global/testing/unit-tests/ga_zero.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_zerodiagonal.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_zeropatch.c Examining data/ga-5.7.2/global/testing/unit-tests/ga_zeropatch2.c Examining data/ga-5.7.2/global/testing/unit-tests/mock.c Examining data/ga-5.7.2/global/testing/unit-tests/mock.h Examining data/ga-5.7.2/global/testing/unpackc.c Examining data/ga-5.7.2/global/testing/util.c Examining data/ga-5.7.2/global/trace/adjust.c Examining data/ga-5.7.2/global/trace/collisions.c Examining data/ga-5.7.2/gparrays/src/gp-papi.h Examining data/ga-5.7.2/gparrays/src/gp.h Examining data/ga-5.7.2/gparrays/src/gpbase.c Examining data/ga-5.7.2/gparrays/src/gpbase.h Examining data/ga-5.7.2/gparrays/src/gpcapi.c Examining data/ga-5.7.2/gparrays/src/gpfapi.c Examining data/ga-5.7.2/gparrays/src/gponesided.c Examining data/ga-5.7.2/gparrays/testing/testc.c Examining data/ga-5.7.2/gparrays/testing/transpose.c Examining data/ga-5.7.2/ma/error.c Examining data/ga-5.7.2/ma/error.h Examining data/ga-5.7.2/ma/f2c.c Examining data/ga-5.7.2/ma/ma.c Examining data/ga-5.7.2/ma/ma.h Examining data/ga-5.7.2/ma/macdecls.h Examining data/ga-5.7.2/ma/macommon.h Examining data/ga-5.7.2/ma/memcpy.h Examining data/ga-5.7.2/ma/scope.h Examining data/ga-5.7.2/ma/string-util.c Examining data/ga-5.7.2/ma/string-util.h Examining data/ga-5.7.2/ma/table.c Examining data/ga-5.7.2/ma/table.h Examining data/ga-5.7.2/ma/test-coalesce.c Examining data/ga-5.7.2/ma/test-inquire.c Examining data/ga-5.7.2/ma/testc.c Examining data/ga-5.7.2/pario/dra/bign.c Examining data/ga-5.7.2/pario/dra/buffers.c Examining data/ga-5.7.2/pario/dra/buffers.h Examining data/ga-5.7.2/pario/dra/capi.c Examining data/ga-5.7.2/pario/dra/dbg_read.c Examining data/ga-5.7.2/pario/dra/dbg_write.c Examining data/ga-5.7.2/pario/dra/disk.arrays.c Examining data/ga-5.7.2/pario/dra/disk.param.c Examining data/ga-5.7.2/pario/dra/dra.h Examining data/ga-5.7.2/pario/dra/dra2arviz.c Examining data/ga-5.7.2/pario/dra/draf2c.h Examining data/ga-5.7.2/pario/dra/drap.h Examining data/ga-5.7.2/pario/dra/env.c Examining data/ga-5.7.2/pario/dra/fortran.c Examining data/ga-5.7.2/pario/dra/global.unsup.c Examining data/ga-5.7.2/pario/dra/ntestc.c Examining data/ga-5.7.2/pario/dra/patch.util.c Examining data/ga-5.7.2/pario/dra/perfn.c Examining data/ga-5.7.2/pario/dra/rate.c Examining data/ga-5.7.2/pario/dra/util.c Examining data/ga-5.7.2/pario/eaf/eaf.c Examining data/ga-5.7.2/pario/eaf/eaf.h Examining data/ga-5.7.2/pario/eaf/eafP.h Examining data/ga-5.7.2/pario/eaf/eaf_f2c.c Examining data/ga-5.7.2/pario/elio/chemio.h Examining data/ga-5.7.2/pario/elio/elio.c Examining data/ga-5.7.2/pario/elio/elio.h Examining data/ga-5.7.2/pario/elio/eliop.h Examining data/ga-5.7.2/pario/elio/pablo.h Examining data/ga-5.7.2/pario/elio/stat.c Examining data/ga-5.7.2/pario/makefile.h Examining data/ga-5.7.2/pario/sf/coms.h Examining data/ga-5.7.2/pario/sf/sf.h Examining data/ga-5.7.2/pario/sf/sf_capi.c Examining data/ga-5.7.2/pario/sf/sf_fortran.c Examining data/ga-5.7.2/pario/sf/sff2c.h Examining data/ga-5.7.2/pario/sf/shared.files.c Examining data/ga-5.7.2/tcgmsg/capi.c Examining data/ga-5.7.2/tcgmsg/examples/cscf.h Examining data/ga-5.7.2/tcgmsg/examples/cscf120lin.h Examining data/ga-5.7.2/tcgmsg/examples/cscf15.h Examining data/ga-5.7.2/tcgmsg/examples/cscf240lin.h Examining data/ga-5.7.2/tcgmsg/examples/cscf30.h Examining data/ga-5.7.2/tcgmsg/examples/cscf60.h Examining data/ga-5.7.2/tcgmsg/examples/cscf60lin.h Examining data/ga-5.7.2/tcgmsg/examples/getmem.c Examining data/ga-5.7.2/tcgmsg/examples/grid.c Examining data/ga-5.7.2/tcgmsg/examples/ieeetrap.c Examining data/ga-5.7.2/tcgmsg/examples/random.c Examining data/ga-5.7.2/tcgmsg/fapi.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/checkbyte.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/clustercheck.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/collect.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/drand48.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.h Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evon.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/llog.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/misc.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/msgtypesc.h Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/msgtypesf.h Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/niceftn.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/nxtval-armci.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/nxtval.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/p2p.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/pbeginf.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/pfilecopy.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/sizeof.c Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/sndrcv.h Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/srftoc.h Examining data/ga-5.7.2/tcgmsg/tcgmsg-mpi/tcgmsgP.h Examining data/ga-5.7.2/tcgmsg/tcgmsg.h Examining data/ga-5.7.2/tcgmsg/tests/brdcst_delta.c Examining data/ga-5.7.2/tcgmsg/tests/hello.c Examining data/ga-5.7.2/tcgmsg/tests/hello2.c Examining data/ga-5.7.2/tcgmsg/tests/nxtsrv.c Examining data/ga-5.7.2/tcgmsg/tests/parse.c Examining data/ga-5.7.2/tcgmsg/tests/pvm.c Examining data/ga-5.7.2/tcgmsg/tests/test.c Examining data/ga-5.7.2/tcgmsg/tests/test.isend.c Examining data/ga-5.7.2/tcgmsg/tests/test2.c Examining data/ga-5.7.2/tcgmsg/tests/test3.c Examining data/ga-5.7.2/tcgmsg/tests/test_asyn.c Examining data/ga-5.7.2/tcgmsg/tests/testmap.c Examining data/ga-5.7.2/tcgmsg/tests/toplot.c Examining data/ga-5.7.2/tcgmsg/tests/xdrtest.c Examining data/ga-5.7.2/tools/ga-wapi.c Examining data/ga-5.7.2/tools/gp-wapi.c FINAL RESULTS: data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:62:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(rep[th_idx], fmt, ap); data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:530:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, x, y, z); data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:656:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, x, y, z); data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/errors.h:27: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. # define DPRINTF(arg) printf arg data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:93:9: [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. r = vprintf(fmt, ap); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:110:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(exe_name, fname); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:124:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_path, "%s/data/%s.dat", exe_name, exe_name + k); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:126:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_path, "../data/%s.dat", exe_name); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:154:13: [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. r = vfprintf(log_file, fmt, ap); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:157:13: [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. r = vfprintf(stderr, fmt, ap); data/ga-5.7.2/armci/examples/features/gpc/hashtable/HashUtil.cc:16:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, str.c_str()); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:88:9: [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. r = vprintf(fmt, ap); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:105:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(exe_name, fname); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:119:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_path, "%s/data/%s.dat", exe_name, exe_name + k); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:121:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_path, "../data/%s.dat", exe_name); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:150:13: [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. r = vfprintf(log_file, fmt, ap); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:153:13: [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. r = vfprintf(stderr, fmt, ap); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:122:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(work, name); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:185:11: [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(armci_clus_info[cluster].hostname, master); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:260:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(armci_clus_info[0].hostname, names); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:309:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp1,host); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:310: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). strcat(tmp1,nail); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:354:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name,tmp); data/ga-5.7.2/armci/src-gemini/groups.c:204: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(grp_clus_info[0].hostname, armci_clus_info[clus_id].hostname); data/ga-5.7.2/armci/src-gemini/groups.c:213:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(grp_clus_info[cluster].hostname, data/ga-5.7.2/armci/src-gemini/groups.c:297:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(grp_clus_info[0].hostname, armci_clus_info[0].hostname); data/ga-5.7.2/armci/src-gemini/kr_malloc.c:54:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(string,"kr_malloc: %s %ld(0x%lx)\n", s, i, i); data/ga-5.7.2/armci/src-gemini/message.c:2161:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mp_group_name, mpgroup); data/ga-5.7.2/armci/src-gemini/new_memory.c:137:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system(command) == -1) data/ga-5.7.2/armci/src-gemini/request.c:28:16: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/src-gemini/semaphores.c:13:6: [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. int fprintf(); data/ga-5.7.2/armci/src-gemini/shmem.c:894:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system(command) == -1) data/ga-5.7.2/armci/src-gemini/shmem.c:1058:44: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. semaphoreAcquire(int semid, int semnum,int access) { data/ga-5.7.2/armci/src-gemini/shmem.c:1060:20: [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. op.sem_op = -access; data/ga-5.7.2/armci/src-gemini/shmem.c:1068:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. semaphoreRelease(int semid,int semnum,int access) { data/ga-5.7.2/armci/src-gemini/shmem.c:1070:20: [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. op.sem_op = access; data/ga-5.7.2/armci/src-gemini/threads.c:9:12: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/src-portals/clusterinfo.c:120:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(work, name); data/ga-5.7.2/armci/src-portals/clusterinfo.c:183:11: [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(armci_clus_info[cluster].hostname, master); data/ga-5.7.2/armci/src-portals/clusterinfo.c:258:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(armci_clus_info[0].hostname, names); data/ga-5.7.2/armci/src-portals/clusterinfo.c:307:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp1,host); data/ga-5.7.2/armci/src-portals/clusterinfo.c:308: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). strcat(tmp1,nail); data/ga-5.7.2/armci/src-portals/clusterinfo.c:352:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name,tmp); data/ga-5.7.2/armci/src-portals/groups.c:204: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(grp_clus_info[0].hostname, armci_clus_info[clus_id].hostname); data/ga-5.7.2/armci/src-portals/groups.c:213:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(grp_clus_info[cluster].hostname, data/ga-5.7.2/armci/src-portals/groups.c:297:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(grp_clus_info[0].hostname, armci_clus_info[0].hostname); data/ga-5.7.2/armci/src-portals/kr_malloc.c:55:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(string,"kr_malloc: %s %ld(0x%lx)\n", s, i, i); data/ga-5.7.2/armci/src-portals/message.c:2161:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mp_group_name, mpgroup); data/ga-5.7.2/armci/src-portals/new_memory.c:137:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system(command) == -1) data/ga-5.7.2/armci/src-portals/request.c:28:16: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/src-portals/semaphores.c:13:6: [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. int fprintf(); data/ga-5.7.2/armci/src-portals/shmem.c:895:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system(command) == -1) data/ga-5.7.2/armci/src-portals/shmem.c:1059:44: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. semaphoreAcquire(int semid, int semnum,int access) { data/ga-5.7.2/armci/src-portals/shmem.c:1061:20: [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. op.sem_op = -access; data/ga-5.7.2/armci/src-portals/shmem.c:1069:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. semaphoreRelease(int semid,int semnum,int access) { data/ga-5.7.2/armci/src-portals/shmem.c:1071:20: [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. op.sem_op = access; data/ga-5.7.2/armci/src-portals/threads.c:9:12: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/src/collectives/message.c:2322:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mp_group_name, mpgroup); data/ga-5.7.2/armci/src/common/armci.c:988:7: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, ap); data/ga-5.7.2/armci/src/common/clusterinfo.c:116:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(work, name); data/ga-5.7.2/armci/src/common/clusterinfo.c:180:11: [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(armci_clus_info[cluster].hostname, master); data/ga-5.7.2/armci/src/common/clusterinfo.c:240:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(armci_clus_info[0].hostname, names); data/ga-5.7.2/armci/src/common/clusterinfo.c:293:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp1,host); data/ga-5.7.2/armci/src/common/clusterinfo.c:294: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). strcat(tmp1,nail); data/ga-5.7.2/armci/src/common/clusterinfo.c:339:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name,tmp); data/ga-5.7.2/armci/src/common/groups.c:204: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(grp_clus_info[0].hostname, armci_clus_info[clus_id].hostname); data/ga-5.7.2/armci/src/common/groups.c:213:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(grp_clus_info[cluster].hostname, data/ga-5.7.2/armci/src/common/groups.c:297:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(grp_clus_info[0].hostname, armci_clus_info[0].hostname); data/ga-5.7.2/armci/src/common/noncont.c:32:12: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/src/common/request.c:36:16: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/src/devices/lapi/lapi.c:39:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/ga-5.7.2/armci/src/devices/mpi-mt/mpi2_client.c:52:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, arg); data/ga-5.7.2/armci/src/devices/mpi-mt/mpi2_server.c:51:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, arg); data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c:51:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, arg); data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c:405:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(server_program, (*_armci_argv)[0]); data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_server.c:127:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, arg); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:349:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename,"%s","armci_chkpt_"); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:351:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((filename+strlen(filename)),"%s","_"); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:357:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(armci_storage_record[rid].fileinfo.filename,filename); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:910:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename,"%s","armci_chkpt_"); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:912:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((filename+strlen(filename)),"%s","_"); data/ga-5.7.2/armci/src/locks/locks.c:126:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arena_name,"%s/armci_arena%d.%ld", tmp,armci_clus_me,lockset.id); data/ga-5.7.2/armci/src/locks/locks.c:152:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arena_name,"%s/armci_arena%d.%ld", tmp,armci_clus_me,lockset.id); data/ga-5.7.2/armci/src/locks/semaphores.c:17:6: [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. int fprintf(); data/ga-5.7.2/armci/src/memory/kr_malloc.c:59:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(string,"kr_malloc: %s %ld(0x%lx)\n", s, i, i); data/ga-5.7.2/armci/src/memory/shmem.c:881:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system(command) == -1) data/ga-5.7.2/armci/src/memory/shmem.c:1131:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system(command) == -1) data/ga-5.7.2/armci/src/util/threads.c:9:12: [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,"DBG %d: " m,armci_me,a1,a2,a3);fflush(stderr) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:261:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":BEGIN:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:267:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":END:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:273:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":EVENT:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:306:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR_INT:%s:%d", string, integer)); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:313:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR_DBL:%s:%g", string, dbl)); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:318:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/llog.c:16:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. extern char *sprintf(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:48:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. extern char *sprintf(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:71:12: [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(tmp, argv[1]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:81:14: [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(tmp, home); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:83:14: [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(tmp+strlen(home)+6,argv[1]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:273: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. (void) execv(tmp,argv2); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:276:14: [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. (void) execv("/usr/bsd/rsh",argv2); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:279:14: [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. (void) execv("/usr/bin/remsh",argv2); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:282:14: [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. (void) execv("/usr/bin/rsh",argv2); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:285:14: [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. (void) execv("/usr/ucb/rsh",argv2); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:301:14: [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. (void) execv(remote_executable, argv2); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:410:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:435:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename = mktemp(template); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:638:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arena_name,"%s/tcgmsg.arena.%ld",tmp, (long)getpid()); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:730:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename = mktemp(template); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:839:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename = mktemp(template); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:917:15: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename1 = mktemp(template1); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_convex.c:81:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_convex.c:106:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename = mktemp(template); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_macx.c:88:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename = mktemp(template); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_macx.c:166:15: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename1 = mktemp(template1); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c:94:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arena_name,"%s/tcgmsg.arena.%ld",tmp, (long)getpid()); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c:186:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). filename = mktemp(template); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem.c:253:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem.c:286:27: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). id_list[*id].filename = mktemp(temp); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_convex.c:12:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_convex.c:46:29: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). id_list[*id].filename = mktemp(temp); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:31:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. extern char *sprintf(); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:242:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":BEGIN:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:248:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":END:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:254:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":EVENT:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:287:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR_INT:%s:%d", string, integer)); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:294:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR_DBL:%s:%g", string, dbl)); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:299:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR:%s", va_arg(ap, char *))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/lapi_putget.c:151:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(-1 == system(cmd)) fprintf(stderr,"system call failed\n"); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/shmem.c:136:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/shmem.c:166:29: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). id_list[*id].filename = mktemp(temp); data/ga-5.7.2/armci/tcgmsg/msgtypesf.h:3:62: [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. C to indicate the nature of the data to the message passing system data/ga-5.7.2/armci/testing/test_mt.c:86:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINTF0 if(!rank)printf data/ga-5.7.2/armci/testing/test_mt.c:87:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINTF0T if(!TH_ME)printf data/ga-5.7.2/armci/testing/test_mt.c:102:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(DSCR, fmt, ap); data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.cxx:83:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GA::GlobalArray::access(int lo[], int hi[], void *ptr, int ld[]) const { data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.h:219: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. void access(int lo[], int hi[], void *ptr, int ld[]) const; data/ga-5.7.2/cca/ga_cca_classic/TestComponent/TestComponent.cxx:18:12: [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. using std::printf; data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:90:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(work, name); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:154:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(armci_clus_info[cluster].hostname, master); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:214:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(armci_clus_info[0].hostname, names); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:267:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp1,host); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:268:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp1,nail); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:309:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name,tmp); data/ga-5.7.2/comex/src-mpi-mt/comex_impl.h:30:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(comex_trace_file, __VA_ARGS__); fflush(comex_trace_file) data/ga-5.7.2/comex/src-mpi-mt/comex_impl.h:30:24: [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 printf(...) fprintf(comex_trace_file, __VA_ARGS__); fflush(comex_trace_file) data/ga-5.7.2/comex/src-mpi-mt/comex_impl.h:32:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-mpi-mt/comex_impl.h:32:24: [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 printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-mpi-pr/comex_impl.h:47:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(comex_trace_file, __VA_ARGS__); fflush(comex_trace_file) data/ga-5.7.2/comex/src-mpi-pr/comex_impl.h:47:24: [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 printf(...) fprintf(comex_trace_file, __VA_ARGS__); fflush(comex_trace_file) data/ga-5.7.2/comex/src-mpi-pr/comex_impl.h:49:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-mpi-pr/comex_impl.h:49:24: [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 printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-mpi-pt/comex_impl.h:44:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(comex_trace_file, __VA_ARGS__); fflush(comex_trace_file) data/ga-5.7.2/comex/src-mpi-pt/comex_impl.h:44:24: [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 printf(...) fprintf(comex_trace_file, __VA_ARGS__); fflush(comex_trace_file) data/ga-5.7.2/comex/src-mpi-pt/comex_impl.h:46:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-mpi-pt/comex_impl.h:46:24: [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 printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-mpi/comex.c:44:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(my_file, __VA_ARGS__); fflush(my_file); data/ga-5.7.2/comex/src-mpi/comex.c:44:24: [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 printf(...) fprintf(my_file, __VA_ARGS__); fflush(my_file); data/ga-5.7.2/comex/src-mpi/comex.c:175:41: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define _my_free(ARG) _my_free(ARG); printf(#ARG) data/ga-5.7.2/comex/src-ofi/comex.c:256:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. uint64_t access, struct fid_mr** mr, data/ga-5.7.2/comex/src-ofi/comex.c:274:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access, /* In: access rights */ data/ga-5.7.2/comex/src-ofi/comex_impl.h:187:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, list); data/ga-5.7.2/comex/src-portals4/comex_impl.h:12:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(l_state.my_file, __VA_ARGS__); fflush(l_state.my_file) data/ga-5.7.2/comex/src-portals4/comex_impl.h:12:24: [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 printf(...) fprintf(l_state.my_file, __VA_ARGS__); fflush(l_state.my_file) data/ga-5.7.2/comex/src-portals4/comex_impl.h:14:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/comex/src-portals4/comex_impl.h:14:24: [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 printf(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) data/ga-5.7.2/ga++/src/GlobalArray.cc:175:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GA::GlobalArray::access(int lo[], int hi[], void *ptr, int ld[]) const { data/ga-5.7.2/ga++/src/GlobalArray.cc:180:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GA::GlobalArray::access(int64_t lo[], int64_t hi[], void *ptr, data/ga-5.7.2/ga++/src/GlobalArray.h:318: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. void access(int lo[], int hi[], void *ptr, int ld[]) const; data/ga-5.7.2/ga++/src/GlobalArray.h:323: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. void access(int64_t lo[], int64_t hi[], void *ptr, int64_t ld[]) const; data/ga-5.7.2/ga++/testing/ntestc.cc:167:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. g_a->access(lo, hi, &ptr, ld); data/ga-5.7.2/ga++/testing/ntestc.cc:175:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(msg,(char *)"%d: leading dimensions",me); data/ga-5.7.2/ga++/testing/ntestc.cc:214:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(msg,(char *)"%d: wrong value: %d != %f a",me, p, buf[i]); data/ga-5.7.2/global/X/xregion_fileio.c:26:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errmsg, "Unable to read data from file %s", filename); data/ga-5.7.2/global/X/xregion_fileio.c:32:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errmsg, "Unable to read data from file %s", filename); data/ga-5.7.2/global/X/xregion_fileio.c:50:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errmsg, "Unable to read data from file %s", filename); data/ga-5.7.2/global/X/xregion_fileio.c:59:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errmsg, "Unable to read data from file %s", filename); data/ga-5.7.2/global/X/xregion_main.c:51:3: [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. sscanf(argv[1],"%s", filename); data/ga-5.7.2/global/X/xregion_util.c:11:10: [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. (void) fprintf(stderr,message); data/ga-5.7.2/global/X/xregion_util.c:102:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, bufptr); data/ga-5.7.2/global/src/base.c:1501: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(GA[ga_handle].name, array_name); data/ga-5.7.2/global/src/base.c:3129: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(GA[ga_handle].name, array_name); data/ga-5.7.2/global/src/base.c:3263:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GA[ga_handle].name, array_name); data/ga-5.7.2/global/src/base.h:123:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string, "%s: INVALID ARRAY HANDLE", string); \ data/ga-5.7.2/global/src/base.h:128:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string, "%s: ARRAY NOT ACTIVE", string); \ data/ga-5.7.2/global/src/base.h:305:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string, "%s", str); \ data/ga-5.7.2/global/src/base.h:308:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string+_l, "%s", GA[val+GA_OFFSET].name); \ data/ga-5.7.2/global/src/base.h:317:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string+_l, "%s", "]"); \ data/ga-5.7.2/global/src/base.h:356:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string,"%s:req(%ld:%ld,%ld:%ld) out of range (1:%ld,1:%ld)",\ data/ga-5.7.2/global/src/ga_profile.c:165: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(GA_PROF[event_type][range].stride[idx].name, GA[g_a].name); data/ga-5.7.2/global/src/global.util.c:356:8: [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(error_buffer,GA_name_stack[level]); data/ga-5.7.2/global/src/global.util.c:359:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(error_buffer,string); data/ga-5.7.2/global/src/onesided.c:339:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(err_string,"%s:p=%ld invalid i/j (%ld,%ld)><(%ld:%ld,%ld:%ld)", \ data/ga-5.7.2/global/testing/ipc.clean.c:311:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/ga-5.7.2/global/testing/ipc.clean.c:344:27: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). id_list[*id].filename = mktemp(temp); data/ga-5.7.2/ma/ma.c:1653:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1665:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1677:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1688:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1700:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1710:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1721:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1973:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1983:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1993:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2022:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2157:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2217:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3102:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3246:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3256:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3266:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3289:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(ma_ebuf, data/ga-5.7.2/pario/dra/bign.c:164:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename,FNAME); data/ga-5.7.2/pario/dra/bign.c:167:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename,FNAME_ALT); data/ga-5.7.2/pario/dra/bign.c:171:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(msg, filename); data/ga-5.7.2/pario/dra/disk.arrays.c:915:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dummy_fname,"%s.%ld",DRA[handle].fname,(long)dai_io_nodeid(*d_a)); data/ga-5.7.2/pario/dra/disk.arrays.c:1750:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, DRA[handle].name); data/ga-5.7.2/pario/dra/disk.arrays.c:1751:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename, DRA[handle].fname); data/ga-5.7.2/pario/dra/disk.arrays.c:1777:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dummy_fname,"%s.%ld",DRA[handle].fname,(long)dai_io_nodeid(*d_a)); data/ga-5.7.2/pario/dra/disk.arrays.c:2221:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dummy_fname,"%s.%ld",DRA[handle].fname,(long)dai_io_nodeid(*d_a)); data/ga-5.7.2/pario/dra/disk.arrays.c:2348:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dummy_fname,"%s.%ld",DRA[handle].fname,(long)dai_io_nodeid(*d_a)); data/ga-5.7.2/pario/dra/disk.arrays.c:3599:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, DRA[handle].name); data/ga-5.7.2/pario/dra/disk.arrays.c:3600:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename, DRA[handle].fname); data/ga-5.7.2/pario/dra/disk.param.c:46:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(param_filename,filename); data/ga-5.7.2/pario/dra/disk.param.c:47:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(param_filename,HD_EXT); data/ga-5.7.2/pario/dra/disk.param.c:97:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(param_filename,filename); data/ga-5.7.2/pario/dra/disk.param.c:98: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). strcat(param_filename,HD_EXT); data/ga-5.7.2/pario/dra/disk.param.c:165:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(param_filename,filename); data/ga-5.7.2/pario/dra/disk.param.c:166: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). strcat(param_filename,HD_EXT); data/ga-5.7.2/pario/dra/disk.param.c:171:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(message,param_filename); data/ga-5.7.2/pario/dra/disk.param.c:221:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(param_filename,filename); data/ga-5.7.2/pario/dra/disk.param.c:222: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). strcat(param_filename,HD_EXT); data/ga-5.7.2/pario/dra/ntestc.c:124:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fname,"%s%d",FNAME,0); data/ga-5.7.2/pario/dra/ntestc.c:290:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fname,"%s%d",FNAME,1); data/ga-5.7.2/pario/dra/ntestc.c:380:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fname,"%s%d",FNAME,me); data/ga-5.7.2/pario/dra/perfn.c:91:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, fname); data/ga-5.7.2/pario/dra/perfn.c:93:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, fname_alt); data/ga-5.7.2/pario/dra/rate.c:190:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename,FNAME); data/ga-5.7.2/pario/dra/rate.c:192:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename,FNAME_ALT); data/ga-5.7.2/pario/eaf/eaf.c:722: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(oldfname, file[fd].fname); data/ga-5.7.2/pario/elio/elio.c:200:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fname, fd->name); data/ga-5.7.2/pario/elio/elio.c:418:7: [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(stderr," calling ftruncate with length = %f \n", dlength); data/ga-5.7.2/pario/elio/elio.c:862:54: [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. lustre_file = (strncmp(fname,"/dtemp",6) == 0) && (access(fname, F_OK) != 0) && (ME() == 0); data/ga-5.7.2/pario/elio/elio.c:1000: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. if (access(filename, F_OK) != 0) /* Succeed if the file does not exist */ data/ga-5.7.2/pario/elio/elio.c:1017:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fname,"%sx%3.3d",filename,extent); data/ga-5.7.2/pario/elio/elio.c:1059:18: [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). else (void) strcpy(msg, errtable[-OFFSET + code]); data/ga-5.7.2/pario/elio/eliop.h:81:18: [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. extern int fprintf(); data/ga-5.7.2/pario/makefile.h:31:49: [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. # However, there is a bug in IBM libs on PNNL system that prevents us data/ga-5.7.2/pario/sf/shared.files.c:105:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(SF[hndl].fname,"%s.%d",fname, (int)hndl); data/ga-5.7.2/pario/sf/shared.files.c:144:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(SF[hndl].fname,"%s.%d",fname, (int) *suffix); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:243:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":BEGIN:%s", va_arg(ap, char *))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:249:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":END:%s", va_arg(ap, char *))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:255:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":EVENT:%s", va_arg(ap, char *))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:300:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR_INT:%s:%d", string, integer)); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:309:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR_DBL:%s:%g", string, dbl)); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:316:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. RECORD(sprintf(bufpt, ":STR:%s", va_arg(ap, char *))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/misc.c:64:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, FMT_INT ": %s " FMT_INT " (%#lx).\n", data/ga-5.7.2/tcgmsg/tcgmsg-mpi/misc.c:67:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, FMT_INT ": %s " FMT_INT " (%#lx).\n", data/ga-5.7.2/tcgmsg/tcgmsg-mpi/msgtypesf.h:3:62: [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. C to indicate the nature of the data to the message passing system data/ga-5.7.2/tcgmsg/tcgmsg-mpi/nxtval-armci.c:45:20: [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) printf(FMT_INT ": nxtval: mproc=" FMT_INT "\n", data/ga-5.7.2/tcgmsg/tests/toplot.c:116:25: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (scanf("%d %d %s",&i1, &i2, string) != 3) data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-b-bc.c:79:18: [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 ((ch = getopt(argc, argv, "n:b:p:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-block.c:79:18: [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 ((ch = getopt(argc, argv, "n:b:p:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu.c:84:18: [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 ((ch = getopt(argc, argv, "n:b:p:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:110:18: [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 ((ch = getopt(argc, argv, "n:b:p:t:d:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:90:18: [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 ((ch = getopt(argc, argv, "n:b:p:t:d:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_get.c:89: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 ((ch = getopt(argc, argv, "n:b:p:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_put.c:90: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 ((ch = getopt(argc, argv, "n:b:p:h")) != -1) { data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/lu-thread.c:97:18: [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 ((ch = getopt(argc, argv, "n:p:b:toh")) != -1) { data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:368:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time_seed); rand(); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:652:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time_seed); rand(); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:299: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. if((tmp =getenv("ARMCI_HOSTNAME_REPLACE"))){ data/ga-5.7.2/armci/src-gemini/clusterinfo.c:345: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. if((tmp =getenv("ARMCI_HOSTNAME")) == NULL){ data/ga-5.7.2/armci/src-gemini/clusterinfo.c:360:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. enval = getenv("ARMCI_NSERV_EQ_NPROC"); data/ga-5.7.2/armci/src-gemini/shmem.c:358:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. uval = getenv("ARMCI_DEFAULT_SHMMAX"); data/ga-5.7.2/armci/src-gemini/shmem.c:457:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. uval = getenv("LIBELAN_NATTACH"); data/ga-5.7.2/armci/src-gemini/shmem.c:529: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. uval = getenv("LIBELAN_ALLOC_SIZE"); data/ga-5.7.2/armci/src-gemini/shmem.c:543: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. uval = getenv("LIBELAN3_MMAPBASE"); data/ga-5.7.2/armci/src-gemini/shmem.c:589: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. if(!getenv("ARMCI_DEFAULT_SHMMAX")) data/ga-5.7.2/armci/src-gemini/threads.c:29: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. char *uval = getenv("ARMCI_MAX_THREADS"); data/ga-5.7.2/armci/src-portals/clusterinfo.c:297: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. if((tmp =getenv("ARMCI_HOSTNAME_REPLACE"))){ data/ga-5.7.2/armci/src-portals/clusterinfo.c:343: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. if((tmp =getenv("ARMCI_HOSTNAME")) == NULL){ data/ga-5.7.2/armci/src-portals/clusterinfo.c:358:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. enval = getenv("ARMCI_NSERV_EQ_NPROC"); data/ga-5.7.2/armci/src-portals/shmem.c:358:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. uval = getenv("ARMCI_DEFAULT_SHMMAX"); data/ga-5.7.2/armci/src-portals/shmem.c:457:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. uval = getenv("LIBELAN_NATTACH"); data/ga-5.7.2/armci/src-portals/shmem.c:529: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. uval = getenv("LIBELAN_ALLOC_SIZE"); data/ga-5.7.2/armci/src-portals/shmem.c:543: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. uval = getenv("LIBELAN3_MMAPBASE"); data/ga-5.7.2/armci/src-portals/shmem.c:589: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. if(!getenv("ARMCI_DEFAULT_SHMMAX")) data/ga-5.7.2/armci/src-portals/threads.c:29: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. char *uval = getenv("ARMCI_MAX_THREADS"); data/ga-5.7.2/armci/src/common/armci.c:465:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *tmp1 = getenv("RT_GRQ"), *tmp2 = getenv("AIXTHREAD_SCOPE"); data/ga-5.7.2/armci/src/common/armci.c:465:47: [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 *tmp1 = getenv("RT_GRQ"), *tmp2 = getenv("AIXTHREAD_SCOPE"); data/ga-5.7.2/armci/src/common/armci.c:601: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. uval = getenv("ARMCI_TEST_CONNECTIONS"); data/ga-5.7.2/armci/src/common/clusterinfo.c:283: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. if((tmp =getenv("ARMCI_HOSTNAME_REPLACE"))){ data/ga-5.7.2/armci/src/common/clusterinfo.c:330: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. if((tmp =getenv("ARMCI_HOSTNAME")) == NULL){ data/ga-5.7.2/armci/src/common/clusterinfo.c:346:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. enval = getenv("ARMCI_NSERV_EQ_NPROC"); data/ga-5.7.2/armci/src/devices/openib/openib.c:768: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 ((value = getenv("ARMCI_OPENIB_USE_SL")) != NULL){ data/ga-5.7.2/armci/src/devices/openib/openib.c:776: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 ((value = getenv("ARMCI_OPENIB_SERVER_POLL")) != NULL){ data/ga-5.7.2/armci/src/devices/openib/openib.c:805:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. runtime_devname = getenv("ARMCI_OPENIB_DEVICE"); data/ga-5.7.2/armci/src/devices/openib/openib.c:878: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 ((value = getenv("ARMCI_USE_ODCM")) != NULL){ data/ga-5.7.2/armci/src/devices/openib/openib.c:5033:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((value = getenv("ARMCI_MAX_CLIENT_TO_SERVER_FACTOR")) != NULL){ data/ga-5.7.2/armci/src/locks/locks.c:116: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. extern char *getenv(const char *); data/ga-5.7.2/armci/src/locks/locks.c:125:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!(tmp = getenv("ARENA_DIR"))) tmp = "/tmp"; data/ga-5.7.2/armci/src/locks/locks.c:151:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!(tmp = getenv("ARENA_DIR"))) tmp = "/tmp"; data/ga-5.7.2/armci/src/memory/shmalloc.c:101: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. char *uval = getenv("XT_SYMMETRIC_HEAP_SIZE"); data/ga-5.7.2/armci/src/memory/shmem.c:328:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. uval = getenv("ARMCI_DEFAULT_SHMMAX"); data/ga-5.7.2/armci/src/memory/shmem.c:430:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. uval = getenv("LIBELAN_NATTACH"); data/ga-5.7.2/armci/src/memory/shmem.c:502: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. uval = getenv("LIBELAN_ALLOC_SIZE"); data/ga-5.7.2/armci/src/memory/shmem.c:516: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. uval = getenv("LIBELAN3_MMAPBASE"); data/ga-5.7.2/armci/src/memory/shmem.c:562: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. if(!getenv("ARMCI_DEFAULT_SHMMAX")) data/ga-5.7.2/armci/src/util/threads.c:31: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. char *uval = getenv("ARMCI_MAX_THREADS"); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/drand48.c:9:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long random(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/drand48.c:10:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern int srandom(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/drand48.c:14:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ( (double) random() ) * 4.6566128752458e-10; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/drand48.c:20:10: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. (void) srandom(*seed); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:29: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. extern char *getenv(); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:79: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 ( (home = getenv("HOME")) != (char *) NULL ) { data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:95: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. if ( (tmp = getenv("PROCGRP")) != (char *) NULL ) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:272: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 ( (tmp = getenv("TCGRSH")) != (char *) NULL ) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:630: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. extern char *getenv(const char *); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:636: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. if (!(tmp = getenv("ARENA_DIR"))) tmp = "/tmp"; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c:86: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. extern char *getenv(const char *); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c:92: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. if (!(tmp = getenv("ARENA_DIR"))) tmp = "/tmp"; data/ga-5.7.2/armci/tcgmsg/ipcv5.0/drand48.c:9:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long random(); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/drand48.c:10:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern int srandom(); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/drand48.c:14:23: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ( (double) random() ) * 4.6566128752458e-10; data/ga-5.7.2/armci/tcgmsg/ipcv5.0/drand48.c:20:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. (void) srandom(*seed); data/ga-5.7.2/armci/testing/test.c:922:9: [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. (void)srand((unsigned)me); data/ga-5.7.2/armci/testing/test_mt.c:140: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 ((ch = getopt(argc, argv, "t:s:i:d:h")) != -1) { data/ga-5.7.2/armci/testing/test_mt.c:210:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time_seed); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:257: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. if((tmp =getenv("ARMCI_HOSTNAME_REPLACE"))){ data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:300: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. if((tmp =getenv("ARMCI_HOSTNAME")) == NULL){ data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:316:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. enval = getenv("ARMCI_NSERV_EQ_NPROC"); data/ga-5.7.2/comex/src-dmapp/comex.c:1605: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 ((value = getenv("COMEX_DMAPP_ROUTING")) != NULL){ data/ga-5.7.2/comex/src-dmapp/comex.c:1624: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 ((value = getenv("HUGETLB_MORECORE")) != NULL) { data/ga-5.7.2/comex/src-dmapp/comex.c:1640: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 ((value = getenv("COMEX_USE_HUGEPAGES")) != NULL) { data/ga-5.7.2/comex/src-dmapp/comex.c:1654: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 ((value = getenv("HUGETLB_DEFAULT_PAGE_SIZE")) != NULL){ data/ga-5.7.2/comex/src-mpi-mt/comex.c:270:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((value = getenv("COMEX_MAX_NB_OUTSTANDING")) != NULL) { data/ga-5.7.2/comex/src-mpi-pr/comex.c:335:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_MAX_NB_OUTSTANDING"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:342:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_STATIC_BUFFER_SIZE"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:349:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_EAGER_THRESHOLD"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:355:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_PUT_SELF"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:361:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_GET_SELF"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:367:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_ACC_SELF"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:373:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_PUT_SMP"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:379:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_GET_SMP"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:385:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_ACC_SMP"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:391:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_PUT_PACKED"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:397:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_GET_PACKED"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:403:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_ACC_PACKED"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:409:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_PUT_DATATYPE"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:415:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_GET_DATATYPE"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:421:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_PUT_DATATYPE_THRESHOLD"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:427:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_GET_DATATYPE_THRESHOLD"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:433:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_PUT_IOV"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:439:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_GET_IOV"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:445:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_ENABLE_ACC_IOV"); data/ga-5.7.2/comex/src-mpi-pr/comex.c:451:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. value = getenv("COMEX_MAX_MESSAGE_SIZE"); data/ga-5.7.2/comex/src-mpi-pt/comex.c:292:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((value = getenv("COMEX_MAX_NB_OUTSTANDING")) != NULL) { data/ga-5.7.2/comex/src-ofa/openib.c:42: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 ((value = getenv("COMEX_OPENIB_USE_DREG")) != NULL){ data/ga-5.7.2/comex/src-ofi/env.c:38: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. env_data.provider = getenv("COMEX_OFI_PROVIDER"); data/ga-5.7.2/comex/src-ofi/env.c:39:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env_data.library_path = getenv("COMEX_OFI_LIBRARY"); data/ga-5.7.2/comex/src-ofi/env.c:75: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. val_ptr = getenv(env_name); data/ga-5.7.2/comex/src-portals4/comex.c:155:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((value = getenv("COMEX_MAX_NB_OUTSTANDING")) != NULL) { data/ga-5.7.2/comex/testing/test.c:1061:9: [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. (void)srand((unsigned)me); data/ga-5.7.2/compat/random.c:192:1: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random() data/ga-5.7.2/compat/random.c:228:6: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void srandom( x ) data/ga-5.7.2/compat/random.c:244:45: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. for( i = 0; i < 10*rand_deg; i++ ) random(); data/ga-5.7.2/compat/random.c:314:5: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom( seed ); data/ga-5.7.2/compat/random.c:335:1: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. setstate( arg_state ) data/ga-5.7.2/ga++/testing/ntestc.cc:190: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(me); /* different seed for every process */ data/ga-5.7.2/ga++/testing/thread-safe.cc:49:35: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if( char * env_threads = std::getenv("OMP_NUM_THREADS")) data/ga-5.7.2/gaf2c/drand.c:14:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom((unsigned) *flag); data/ga-5.7.2/gaf2c/drand.c:16:31: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ((DoublePrecision) random()) * 4.6566128752458e-10; data/ga-5.7.2/global/examples/lennard-jones/lennard.c:311: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((n = getopt(argc, argv, "b:")) != EOF) data/ga-5.7.2/global/src/iterator.c:88:11: [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. (void)srand((unsigned)GAme); \ data/ga-5.7.2/global/src/onesided.c:253:11: [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. (void)srand((unsigned)GAme); \ data/ga-5.7.2/global/testing/mulmatpatchc.c:57:5: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(seed); data/ga-5.7.2/global/testing/mulmatpatchc.c:163:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. m = random() % (size/2); data/ga-5.7.2/global/testing/mulmatpatchc.c:164:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. n = random() % (size/2); data/ga-5.7.2/global/testing/mulmatpatchc.c:165:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. k = random() % (size/2); data/ga-5.7.2/global/testing/mulmatpatchc.c:260:27: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ahi[i] = alo[i] = random() % (size/2); data/ga-5.7.2/global/testing/mulmatpatchc.c:261:27: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. bhi[i] = blo[i] = random() % (size/2); data/ga-5.7.2/global/testing/mulmatpatchc.c:262:27: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. chi[i] = clo[i] = random() % (size/2); data/ga-5.7.2/global/testing/ntestc.c:204:6: [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(me); /* different seed for every process */ data/ga-5.7.2/global/testing/ntestfc.c:214:6: [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(me); /* different seed for every process */ data/ga-5.7.2/global/testing/sprsmatvec.c:128:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned int)abs(*idum)); data/ga-5.7.2/global/testing/thread_perf_contig.c:140:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(env_threads = getenv("OMP_NUM_THREADS")) data/ga-5.7.2/global/testing/thread_perf_strided.c:222:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(env_threads = getenv("OMP_NUM_THREADS")) data/ga-5.7.2/global/testing/threadsafec.c:206:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(env_threads = getenv("OMP_NUM_THREADS")) data/ga-5.7.2/gparrays/testing/transpose.c:124:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(abs(*idum)); data/ga-5.7.2/ma/ma.c:2516:8: [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("MA_USE_ARMCI_MEM")) data/ga-5.7.2/pario/dra/env.c:29:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("DRA_NUM_SERV"); data/ga-5.7.2/pario/eaf/eaf_f2c.c:233:13: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(*seed) srandom((unsigned) *seed); data/ga-5.7.2/pario/eaf/eaf_f2c.c:234:20: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ((double) random())*4.6566128752458e-10; data/ga-5.7.2/tcgmsg/capi.c:51:23: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ( (double) random() ) * 4.6566128752458e-10; data/ga-5.7.2/tcgmsg/capi.c:236:5: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(aseed); data/ga-5.7.2/tcgmsg/fapi.c:20:31: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define _DRAND48_ F77_FUNC(drand48, DRAND48) data/ga-5.7.2/tcgmsg/fapi.c:81:23: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ( (double) random() ) * 4.6566128752458e-10; data/ga-5.7.2/tcgmsg/fapi.c:285:5: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(aseed); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/drand48.c:13:26: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. double val=((double) random() ) * 4.6566128752458e-10; data/ga-5.7.2/tcgmsg/tcgmsg-mpi/drand48.c:20:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. (void) srandom(*seed); data/ga-5.7.2/armci/examples/benchmarks/RandomAccess/simple/simple.c:238: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). globaltablelen = atoi(argv[1]); data/ga-5.7.2/armci/examples/benchmarks/RandomAccess/smp_bucket/smp_bucket.c:268: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). globaltablelen = atoi(argv[1]); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/cg.c:87:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(me==0)memcpy(dvec,rvec,na*sizeof(double)); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/cg.c:245:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = fopen("cg_output.out", "w"); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/generateinput.c:26: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). fd = open("matrix.bin",O_CREAT|O_WRONLY,0777); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/read_input.c:40:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = fopen("randominput.dat", "w"); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/read_input.c:49: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). na = atoi(argv[1]); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/read_input.c:50: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). nz = atoi(argv[2]); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/read_input.c:54: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). fd = fopen(argv[3], "r"); data/ga-5.7.2/armci/examples/benchmarks/cg/armci_sharedmemory/read_input.c:68: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). fd = fopen("randominput.dat", "r"); data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-b-bc.c:81:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-b-bc.c:82:36: [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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-b-bc.c:83:31: [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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-block.c:81:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-block.c:82:36: [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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu-block.c:83:31: [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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu.c:86:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu.c:87:36: [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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_blocking/lu.c:88:31: [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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:112:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:113:36: [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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:114:31: [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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:115: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). case 't': th_per_p = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:116:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'd': d = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:268:24: [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 (!(rep[l] = fopen(fname, "w"))) { perror(fname); abort(); } data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th-nbget.c:729:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, a[I+J*nblocks], size); data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:92:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:93:36: [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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:94:31: [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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:95: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). case 't': th_per_p = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:96:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'd': d = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_multithreaded/lu-block-th.c:424:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (proc_owner == me) memcpy(buf, a[I+J*nblocks], size); data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_get.c:91:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_get.c:92: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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_get.c:93: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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_put.c:92:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_put.c:93: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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/armci_nonblocking/lu_nb_put.c:94: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). case 'p': nproc = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/lu-thread.c:99:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': n = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/lu-thread.c:100:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'p': P = atoi(optarg); break; data/ga-5.7.2/armci/examples/benchmarks/lu/pthreads/lu-thread.c:101:36: [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). case 'b': block_size = atoi(optarg); break; data/ga-5.7.2/armci/examples/features/aggregation/simple/simple.c:72:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/examples/features/aggregation/simple/simple.c:93: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). if((np = atoi(argv[1])) < 1) goto usage; data/ga-5.7.2/armci/examples/features/aggregation/sparse_matvecmul/sparse_matvecmul.c:71:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/examples/features/aggregation/sparse_matvecmul/sparse_matvecmul.c:95: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). if((np = atoi(argv[1])) < 1) goto usage; data/ga-5.7.2/armci/examples/features/aggregation/sparse_matvecmul/sparse_matvecmul.c:197: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("Sparse-MPI/av41092.rua.data", "r")) == NULL) data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:105: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 exe_name[255]; data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:106: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 log_path[255]; data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:130:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). log_file = fopen(log_path, "w"); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:194:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *)out_ptrs[rank])[i] = (char)(rand() >> 24); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:195:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *)in_ptrs[rank])[i] = (char)(rand() >> 24); data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:342:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:388:14: [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. j += sprintf(buf + j, " %d->%d", p_srcs[i], p_dsts[i]); data/ga-5.7.2/armci/examples/features/concurrency/simple/comdegree.c:38:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/examples/features/gpc/hashtable/DistHashmap.cc:202:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mTmpBuf, (const char*)buf, (size_t)bufsize); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:100: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 exe_name[255]; data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:101: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 log_path[255]; data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:125:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). log_file = fopen(log_path, "w"); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:216: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. ((char *)array_ptrs[rank])[i] = (char)(rand() >> 24); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:234:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. *(int *)((char *)array_ptrs[rank] + l) = rand(); data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:604:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:672:14: [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. j += sprintf(buf + j, " %d->%d", p_srcs[i], p_dsts[i]); data/ga-5.7.2/armci/examples/features/notification/simple/testnotify.c:75:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/examples/features/notification/simple/testnotify.c:239:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[48]; data/ga-5.7.2/armci/examples/features/notification/simple/testnotify.c:240:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"(proc=%d):%f",me,patch1[idx1]); data/ga-5.7.2/armci/examples/features/notification/simple/testnotify.c:242:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%f\n",patch2[idx2]); data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:101:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpbuf2,tmpbuf3,LOOP*10000); data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:167:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[CPU_SETSIZE]; data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:169:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cid[8]; data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:173:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rheader[100]; data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:196: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). accloop=atoi(argv[1]); data/ga-5.7.2/armci/f90/arraywrap.c:89:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(tmp,ad->aptr,apsize); data/ga-5.7.2/armci/src-gemini/aggregate.c:39: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 agg_buf[_MAX_AGG_BUFFERS][_MAX_AGG_BUFSIZE]; data/ga-5.7.2/armci/src-gemini/aggregate.c:177:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&((char *)aggr[index])[aggr[index]->buf_pos_end], data/ga-5.7.2/armci/src-gemini/aggregate.c:177: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. memcpy(&((char *)aggr[index])[aggr[index]->buf_pos_end], data/ga-5.7.2/armci/src-gemini/aggregate.c:179:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. *(char **)registered_put_data = (char *)&((char *)aggr[index])[aggr[index]->buf_pos_end]; data/ga-5.7.2/armci/src-gemini/armci-onesided.c:306:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&resp_desc.local_mdesc, send_mdesc, sizeof(cos_mdesc_t)); data/ga-5.7.2/armci/src-gemini/armci-onesided.c:334:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&get_desc.local_mdesc, recv_mdesc, sizeof(cos_mdesc_t)); data/ga-5.7.2/armci/src-gemini/armci-onesided.c:354:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&get_desc.local_mdesc, recv_mdesc, sizeof(cos_mdesc_t)); data/ga-5.7.2/armci/src-gemini/armci-onesided.c:481:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return((long)((char *)_rem_meminfo[proc].reginfo[i].serv_ptr-(char *)_rem_meminfo[proc].reginfo[i].base_ptr)); data/ga-5.7.2/armci/src-gemini/armci-onesided.c:481:78: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return((long)((char *)_rem_meminfo[proc].reginfo[i].serv_ptr-(char *)_rem_meminfo[proc].reginfo[i].base_ptr)); data/ga-5.7.2/armci/src-gemini/armci-onesided.c:552:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret_mdh, mdh, sizeof(cos_mdesc_t)); data/ga-5.7.2/armci/src-gemini/armci.c:166: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 perr_str[80]; data/ga-5.7.2/armci/src-gemini/armci.c:168:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(perr_str,"Last System Error Message from Task %d:",armci_me); data/ga-5.7.2/armci/src-gemini/armci.c:564: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 hdl_flag[ARMCI_MAX_IMPLICIT]; data/ga-5.7.2/armci/src-gemini/armci.c:926:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d,", i); data/ga-5.7.2/armci/src-gemini/armci.c:928:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d,%d,", i, i + 1); data/ga-5.7.2/armci/src-gemini/armci.c:931:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d-%d,", i, i + run); data/ga-5.7.2/armci/src-gemini/armci.h:34:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define ARMCI_Put1(_s,_d,_b,_p) memcpy(_d,_s,_b), 0 data/ga-5.7.2/armci/src-gemini/armci.h:228: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 data[ARMCI_ONESIDED_SIZEOF_IREQ]; data/ga-5.7.2/armci/src-gemini/armci_portals.c:647: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 cid[8],*cidptr; data/ga-5.7.2/armci/src-gemini/armci_portals.c:1223:160: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. printf("\n%d:proc=%d regcount=%d reg=%d base=%p size=%d end=%p checkptr=%p\n",armci_me,proc,mem_info->reg_count,i,memreg[i].base_ptr,memreg[i].size, ((char *)memreg[i].base_ptr+memreg[i].size), ptr);fflush(stdout); data/ga-5.7.2/armci/src-gemini/armci_portals.c:1226:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ptr< ((char *)memreg[i].base_ptr+memreg[i].size)){ data/ga-5.7.2/armci/src-gemini/armci_portals.c:1227: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. *offset = ((char *)ptr-(char *)memreg[i].base_ptr); data/ga-5.7.2/armci/src-gemini/armci_portals.c:1980:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf,(msginfo+1),bytes); data/ga-5.7.2/armci/src-gemini/armci_portals.c:2060:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[CPU_SETSIZE]; data/ga-5.7.2/armci/src-gemini/armci_portals.c:2061:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ncid[8],*cidptr,cid[8]; data/ga-5.7.2/armci/src-gemini/armci_portals.c:2065:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cid, "%d", ccc); data/ga-5.7.2/armci/src-gemini/armci_portals.c:2205: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. return((long)((char *)_rem_meminfo[proc].reginfo[i].serv_ptr-(char *)_rem_meminfo[proc].reginfo[i].base_ptr)); data/ga-5.7.2/armci/src-gemini/armci_portals.c:2205:71: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return((long)((char *)_rem_meminfo[proc].reginfo[i].serv_ptr-(char *)_rem_meminfo[proc].reginfo[i].base_ptr)); data/ga-5.7.2/armci/src-gemini/armcip.h:171:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(a,b,len) memcpy(b,a,len) data/ga-5.7.2/armci/src-gemini/armcip.h:171:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(a,b,len) memcpy(b,a,len) data/ga-5.7.2/armci/src-gemini/armcip.h:360: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 hostname[HOSTNAME_LEN]; data/ga-5.7.2/armci/src-gemini/bufalloc.c:42: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 align[ALIGNMENT]; /* Align to ALIGNMENT byte boundary */ data/ga-5.7.2/armci/src-gemini/bufalloc.c:395:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[LEN]; data/ga-5.7.2/armci/src-gemini/bufalloc.c:400:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ar[100]; data/ga-5.7.2/armci/src-gemini/buffers.c:84:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MSG_BUFLEN_SMALL]; data/ga-5.7.2/armci/src-gemini/buffers.c:93:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[SMALL_BUF_LEN]; data/ga-5.7.2/armci/src-gemini/clusterinfo.c:94: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(name,"n%d",no); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:100:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"altix"); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:107:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"%d",cnos_get_rank()); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:340: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_HOSTNAME], *merged; data/ga-5.7.2/armci/src-gemini/clusterinfo.c:362:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name+len,"n%d",getpid()); data/ga-5.7.2/armci/src-gemini/copy.h:51:34: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define armci_copy(src,dst,n) bcopy(src,dst,n) data/ga-5.7.2/armci/src-gemini/copy.h:332:40: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if((n)<256 || n%sizeof(long) ) memcpy((dst),(src),(n));\ data/ga-5.7.2/armci/src-gemini/ds-shared.c:466:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&non_volatile_mesg, msginfo, sizeof(request_header_t)); data/ga-5.7.2/armci/src-gemini/kr_malloc.c:53:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[256]; data/ga-5.7.2/armci/src-gemini/kr_malloc.h:27: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 align[ALIGNMENT]; /* Align to ALIGNMENT byte boundary */ data/ga-5.7.2/armci/src-gemini/memory.c:196:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char*)ptr_ref_arr, (char*)(ptr_arr+armci_master), nproc*sizeof(void*)); data/ga-5.7.2/armci/src-gemini/memory.c:269:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(idlist, meminfo->idlist, SHMIDLEN*sizeof(long)); data/ga-5.7.2/armci/src-gemini/memory.c:501:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char*)ptr_ref_arr, (char*)(ptr_arr+grp_master), grp_clus_nproc*sizeof(void*)); data/ga-5.7.2/armci/src-gemini/message.c:372:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_nodel]; data/ga-5.7.2/armci/src-gemini/message.c:382:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_node]; data/ga-5.7.2/armci/src-gemini/message.c:384:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_node]; data/ga-5.7.2/armci/src-gemini/message.c:398:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_nodel]; data/ga-5.7.2/armci/src-gemini/message.c:405:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_nodel]; data/ga-5.7.2/armci/src-gemini/message.c:407:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_nodel]; data/ga-5.7.2/armci/src-gemini/message.c:556: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 error_msg[25]; data/ga-5.7.2/armci/src-gemini/message.c:557:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(error_msg, "ARMCI aborting [%d]", code); data/ga-5.7.2/armci/src-gemini/new_memory.c:111:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm shm %d",id); data/ga-5.7.2/armci/src-gemini/new_memory.c:135:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[64]; data/ga-5.7.2/armci/src-gemini/pendbufs.c:172:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbuf->buf, vbuf->buf, sizeof(request_header_t)+msginfo->dscrlen); data/ga-5.7.2/armci/src-gemini/portals.c:480:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char string[128]; data/ga-5.7.2/armci/src-gemini/portals.c:481:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(string,"[%i]:",armci_me); data/ga-5.7.2/armci/src-gemini/portals_cp.c:756: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(eagerBuffer,msginfo,sizeof(request_header_t)); data/ga-5.7.2/armci/src-gemini/portals_cp.c:758: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(eagerBuffer,buffer,msginfo->bytes); data/ga-5.7.2/armci/src-gemini/portals_cp.c:840: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(eagerBuffer,msginfo,sizeof(request_header_t)); data/ga-5.7.2/armci/src-gemini/portals_cp.c:842: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(eagerBuffer,buffer,msginfo->bytes); data/ga-5.7.2/armci/src-gemini/request.c:454:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf, resp, rlen); data/ga-5.7.2/armci/src-gemini/request.c:851:8: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(h->exthdr,buf,ehlen); data/ga-5.7.2/armci/src-gemini/request.c:1035:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf, ptr[s], (size_t)bytes); data/ga-5.7.2/armci/src-gemini/request.h:141: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 send[MAX_GPC_SEND_LEN]; data/ga-5.7.2/armci/src-gemini/request.h:142:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reply[MAX_GPC_REPLY_LEN]; data/ga-5.7.2/armci/src-gemini/request.h:163:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dscr[UBUF_LEN]; /*place to store the dscr*/ data/ga-5.7.2/armci/src-gemini/rtinfo.c:16:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[80]; data/ga-5.7.2/armci/src-gemini/rtinfo.c:17:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen("/proc/cpuinfo","r"); data/ga-5.7.2/armci/src-gemini/shmem.c:153:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm shm %d",id); data/ga-5.7.2/armci/src-gemini/shmem.c:155:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/bin/ipcrm -m %d",id); data/ga-5.7.2/armci/src-gemini/shmem.c:157:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/sbin/ipcrm -m %d",id); data/ga-5.7.2/armci/src-gemini/shmem.c:159:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm -m %d",id); data/ga-5.7.2/armci/src-gemini/shmem.c:892:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[64]; data/ga-5.7.2/armci/src-gemini/spawn.c:99:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char child_stack[256*1024]; data/ga-5.7.2/armci/src-gemini/strided.c:164:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(ps,pd,bytes); data/ga-5.7.2/armci/src-gemini/strided.c:931:3: [2] (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,bytes); data/ga-5.7.2/armci/src-portals/aggregate.c:39: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 agg_buf[_MAX_AGG_BUFFERS][_MAX_AGG_BUFSIZE]; data/ga-5.7.2/armci/src-portals/aggregate.c:177:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&((char *)aggr[index])[aggr[index]->buf_pos_end], data/ga-5.7.2/armci/src-portals/aggregate.c:177: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. memcpy(&((char *)aggr[index])[aggr[index]->buf_pos_end], data/ga-5.7.2/armci/src-portals/aggregate.c:179:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. *(char **)registered_put_data = (char *)&((char *)aggr[index])[aggr[index]->buf_pos_end]; data/ga-5.7.2/armci/src-portals/armci.c:162: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 perr_str[80]; data/ga-5.7.2/armci/src-portals/armci.c:164:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(perr_str,"Last System Error Message from Task %d:",armci_me); data/ga-5.7.2/armci/src-portals/armci.c:538: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 hdl_flag[ARMCI_MAX_IMPLICIT]; data/ga-5.7.2/armci/src-portals/armci.c:899:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d,", i); data/ga-5.7.2/armci/src-portals/armci.c:901:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d,%d,", i, i + 1); data/ga-5.7.2/armci/src-portals/armci.c:904:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d-%d,", i, i + run); data/ga-5.7.2/armci/src-portals/armci.h:34:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define ARMCI_Put1(_s,_d,_b,_p) memcpy(_d,_s,_b), 0 data/ga-5.7.2/armci/src-portals/armci_portals.c:651: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 cid[8],*cidptr; data/ga-5.7.2/armci/src-portals/armci_portals.c:1227:160: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. printf("\n%d:proc=%d regcount=%d reg=%d base=%p size=%d end=%p checkptr=%p\n",armci_me,proc,mem_info->reg_count,i,memreg[i].base_ptr,memreg[i].size, ((char *)memreg[i].base_ptr+memreg[i].size), ptr);fflush(stdout); data/ga-5.7.2/armci/src-portals/armci_portals.c:1230:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ptr< ((char *)memreg[i].base_ptr+memreg[i].size)){ data/ga-5.7.2/armci/src-portals/armci_portals.c:1231: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. *offset = ((char *)ptr-(char *)memreg[i].base_ptr); data/ga-5.7.2/armci/src-portals/armci_portals.c:1984:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf,(msginfo+1),bytes); data/ga-5.7.2/armci/src-portals/armci_portals.c:2062:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[CPU_SETSIZE]; data/ga-5.7.2/armci/src-portals/armci_portals.c:2063:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ncid[8],*cidptr,cid[8]; data/ga-5.7.2/armci/src-portals/armci_portals.c:2067:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cid, "%d", ccc); data/ga-5.7.2/armci/src-portals/armci_portals.c:2207: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. return((long)((char *)_rem_meminfo[proc].reginfo[i].serv_ptr-(char *)_rem_meminfo[proc].reginfo[i].base_ptr)); data/ga-5.7.2/armci/src-portals/armci_portals.c:2207:71: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return((long)((char *)_rem_meminfo[proc].reginfo[i].serv_ptr-(char *)_rem_meminfo[proc].reginfo[i].base_ptr)); data/ga-5.7.2/armci/src-portals/armcip.h:165:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(a,b,len) memcpy(b,a,len) data/ga-5.7.2/armci/src-portals/armcip.h:165:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(a,b,len) memcpy(b,a,len) data/ga-5.7.2/armci/src-portals/armcip.h:353: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 hostname[HOSTNAME_LEN]; data/ga-5.7.2/armci/src-portals/bufalloc.c:42: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 align[ALIGNMENT]; /* Align to ALIGNMENT byte boundary */ data/ga-5.7.2/armci/src-portals/bufalloc.c:395:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[LEN]; data/ga-5.7.2/armci/src-portals/bufalloc.c:400:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ar[100]; data/ga-5.7.2/armci/src-portals/buffers.c:84:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MSG_BUFLEN_SMALL]; data/ga-5.7.2/armci/src-portals/buffers.c:93:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[SMALL_BUF_LEN]; data/ga-5.7.2/armci/src-portals/clusterinfo.c:92: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(name,"n%d",no); data/ga-5.7.2/armci/src-portals/clusterinfo.c:98:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"altix"); data/ga-5.7.2/armci/src-portals/clusterinfo.c:105:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"%d",cnos_get_rank()); data/ga-5.7.2/armci/src-portals/clusterinfo.c:338: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_HOSTNAME], *merged; data/ga-5.7.2/armci/src-portals/clusterinfo.c:360:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name+len,"n%d",getpid()); data/ga-5.7.2/armci/src-portals/copy.h:51:34: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define armci_copy(src,dst,n) bcopy(src,dst,n) data/ga-5.7.2/armci/src-portals/copy.h:411:40: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if((n)<256 || n%sizeof(long) ) memcpy((dst),(src),(n));\ data/ga-5.7.2/armci/src-portals/kr_malloc.c:54:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[256]; data/ga-5.7.2/armci/src-portals/kr_malloc.h:27: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 align[ALIGNMENT]; /* Align to ALIGNMENT byte boundary */ data/ga-5.7.2/armci/src-portals/memory.c:196:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char*)ptr_ref_arr, (char*)(ptr_arr+armci_master), nproc*sizeof(void*)); data/ga-5.7.2/armci/src-portals/memory.c:269:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(idlist, meminfo->idlist, SHMIDLEN*sizeof(long)); data/ga-5.7.2/armci/src-portals/memory.c:501:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char*)ptr_ref_arr, (char*)(ptr_arr+grp_master), grp_clus_nproc*sizeof(void*)); data/ga-5.7.2/armci/src-portals/message.c:372:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_nodel]; data/ga-5.7.2/armci/src-portals/message.c:382:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_node]; data/ga-5.7.2/armci/src-portals/message.c:384:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_node]; data/ga-5.7.2/armci/src-portals/message.c:398:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_nodel]; data/ga-5.7.2/armci/src-portals/message.c:405:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_nodel]; data/ga-5.7.2/armci/src-portals/message.c:407:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_nodel]; data/ga-5.7.2/armci/src-portals/message.c:556: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 error_msg[25]; data/ga-5.7.2/armci/src-portals/message.c:557:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(error_msg, "ARMCI aborting [%d]", code); data/ga-5.7.2/armci/src-portals/new_memory.c:111:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm shm %d",id); data/ga-5.7.2/armci/src-portals/new_memory.c:135:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[64]; data/ga-5.7.2/armci/src-portals/pendbufs.c:172:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbuf->buf, vbuf->buf, sizeof(request_header_t)+msginfo->dscrlen); data/ga-5.7.2/armci/src-portals/portals.c:480:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char string[128]; data/ga-5.7.2/armci/src-portals/portals.c:481:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(string,"[%i]:",armci_me); data/ga-5.7.2/armci/src-portals/portals_cp.c:756: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(eagerBuffer,msginfo,sizeof(request_header_t)); data/ga-5.7.2/armci/src-portals/portals_cp.c:758: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(eagerBuffer,buffer,msginfo->bytes); data/ga-5.7.2/armci/src-portals/portals_cp.c:840: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(eagerBuffer,msginfo,sizeof(request_header_t)); data/ga-5.7.2/armci/src-portals/portals_cp.c:842: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(eagerBuffer,buffer,msginfo->bytes); data/ga-5.7.2/armci/src-portals/request.c:454:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf, resp, rlen); data/ga-5.7.2/armci/src-portals/request.c:850:8: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(h->exthdr,buf,ehlen); data/ga-5.7.2/armci/src-portals/request.c:1038:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf, ptr[s], (size_t)bytes); data/ga-5.7.2/armci/src-portals/request.h:136: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 send[MAX_GPC_SEND_LEN]; data/ga-5.7.2/armci/src-portals/request.h:137: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 reply[MAX_GPC_REPLY_LEN]; data/ga-5.7.2/armci/src-portals/request.h:158: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 dscr[UBUF_LEN]; /*place to store the dscr*/ data/ga-5.7.2/armci/src-portals/rtinfo.c:16:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[80]; data/ga-5.7.2/armci/src-portals/rtinfo.c:17:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen("/proc/cpuinfo","r"); data/ga-5.7.2/armci/src-portals/shmem.c:153:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm shm %d",id); data/ga-5.7.2/armci/src-portals/shmem.c:155:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/bin/ipcrm -m %d",id); data/ga-5.7.2/armci/src-portals/shmem.c:157:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/sbin/ipcrm -m %d",id); data/ga-5.7.2/armci/src-portals/shmem.c:159:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm -m %d",id); data/ga-5.7.2/armci/src-portals/shmem.c:893:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[64]; data/ga-5.7.2/armci/src-portals/spawn.c:113:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char child_stack[256*1024]; data/ga-5.7.2/armci/src-portals/strided.c:153:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(ps,pd,bytes); data/ga-5.7.2/armci/src-portals/strided.c:725:3: [2] (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,bytes); data/ga-5.7.2/armci/src/collectives/message.c:408:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_nodel]; data/ga-5.7.2/armci/src/collectives/message.c:418:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_node]; data/ga-5.7.2/armci/src/collectives/message.c:420:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_node]; data/ga-5.7.2/armci/src/collectives/message.c:434:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_nodel]; data/ga-5.7.2/armci/src/collectives/message.c:441:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. srcp = (char *)barr_snd_ptr[next_nodel]; data/ga-5.7.2/armci/src/collectives/message.c:443:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. dstn = (char *)barr_rcv_ptr[next_nodel]; data/ga-5.7.2/armci/src/collectives/message.c:592: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 error_msg[25]; data/ga-5.7.2/armci/src/collectives/message.c:593:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(error_msg, "ARMCI aborting [%d]", code); data/ga-5.7.2/armci/src/common/aggregate.c:43: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 agg_buf[_MAX_AGG_BUFFERS][_MAX_AGG_BUFSIZE]; data/ga-5.7.2/armci/src/common/aggregate.c:182:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&((char *)aggr[index])[aggr[index]->buf_pos_end], data/ga-5.7.2/armci/src/common/aggregate.c:182: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. memcpy(&((char *)aggr[index])[aggr[index]->buf_pos_end], data/ga-5.7.2/armci/src/common/aggregate.c:184:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. *(char **)registered_put_data = (char *)&((char *)aggr[index])[aggr[index]->buf_pos_end]; data/ga-5.7.2/armci/src/common/armci.c:163: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 perr_str[80]; data/ga-5.7.2/armci/src/common/armci.c:166:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(perr_str,"Last System Error Message from Task %d:",armci_me); data/ga-5.7.2/armci/src/common/armci.c:936:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d,", i); data/ga-5.7.2/armci/src/common/armci.c:938:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d,%d,", i, i + 1); data/ga-5.7.2/armci/src/common/armci.c:941:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "%d-%d,", i, i + run); data/ga-5.7.2/armci/src/common/async.c:42:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[UBUF_LEN]; data/ga-5.7.2/armci/src/common/clusterinfo.c:86: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(name,"n%d",no); data/ga-5.7.2/armci/src/common/clusterinfo.c:92:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"altix"); data/ga-5.7.2/armci/src/common/clusterinfo.c:101:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"%d",rank); data/ga-5.7.2/armci/src/common/clusterinfo.c:323: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_HOSTNAME], *merged; data/ga-5.7.2/armci/src/common/clusterinfo.c:348:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name+len,"n%d",getpid()); data/ga-5.7.2/armci/src/common/regions.c:74: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 exch_loc[MAX_REGIONS]; data/ga-5.7.2/armci/src/common/regions.c:75: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 exch_rem[MAX_REGIONS]; data/ga-5.7.2/armci/src/common/request.c:517: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(buffer, &ptr, sizeof(&ptr)); data/ga-5.7.2/armci/src/common/request.c:626: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(pextra,pold,msginfo->datalen); data/ga-5.7.2/armci/src/common/request.c:955:8: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(h->exthdr,buf,ehlen); data/ga-5.7.2/armci/src/common/request.c:1547:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(buf, ptr[s], (size_t)bytes); data/ga-5.7.2/armci/src/common/request.c:1750:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(hdr, gbuf->call.hdr, gbuf->call.hlen); data/ga-5.7.2/armci/src/common/request.c:1751:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(data, gbuf->call.data, gbuf->call.dlen); data/ga-5.7.2/armci/src/common/request.c:1825:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(send->hdr, ptr, send->hlen); /* armci_copy? */ data/ga-5.7.2/armci/src/common/request.c:1829:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(send->data, ptr, send->dlen); /* armci_copy? */ data/ga-5.7.2/armci/src/devices/lapi/lapi.c:28:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_msg_buf[LAPI_MAX_ERR_STRING]; /* for error msg returned by LAPI */ data/ga-5.7.2/armci/src/devices/lapi/lapi.c:218:5: [2] (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*)msginfo, uhdr, uhdrlen); data/ga-5.7.2/armci/src/devices/mpi-mt/mpi2_server.c:353: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 processor_name[MPI_MAX_PROCESSOR_NAME]; data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c:350: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 hostname[MPI_MAX_PROCESSOR_NAME], *hostnames=NULL; data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c:415: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 server_program[100]; data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c:465:39: [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). asprintf(&nid_arr[i], "%d", atoi((hostname_arr[i] + 3))); data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_server.c:501: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 processor_name[MPI_MAX_PROCESSOR_NAME]; data/ga-5.7.2/armci/src/devices/openib/openib.c:132:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CBUF_DLEN]; data/ga-5.7.2/armci/src/devices/openib/openib.c:141: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[VBUF_DLEN]; data/ga-5.7.2/armci/src/devices/openib/openib.c:769:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). armci_openib_sl = atoi(value); data/ga-5.7.2/armci/src/devices/openib/openib.c:777:36: [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). armci_openib_server_poll = atoi(value); data/ga-5.7.2/armci/src/devices/openib/openib.c:879:26: [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). armci_use_odcm = atoi(value); data/ga-5.7.2/armci/src/devices/openib/openib.c:903: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 tp_str[8]; data/ga-5.7.2/armci/src/devices/openib/openib.c:927:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cpu = atoi(tp_str); data/ga-5.7.2/armci/src/devices/openib/openib.c:1023:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. tmp = (char *)(serv_buf_arr[0]+clients); data/ga-5.7.2/armci/src/devices/openib/openib.c:2132:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[CPU_SETSIZE]; data/ga-5.7.2/armci/src/devices/openib/openib.c:2133:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cid[8]; data/ga-5.7.2/armci/src/devices/openib/openib.c:2158:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cid, "%d", ccc); data/ga-5.7.2/armci/src/devices/openib/openib.c:5034:53: [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). max_client_to_server_conn = armci_nclus/atoi(value); data/ga-5.7.2/armci/src/devices/openib/pendbufs.c:180:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbuf->buf, vbuf->buf, sizeof(request_header_t)+msginfo->dscrlen); data/ga-5.7.2/armci/src/devices/openib/pendbufs.h:22: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 rguard[PBUF_RGUARD_SIZE]; data/ga-5.7.2/armci/src/devices/openib/pendbufs.h:30: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 rguard[PBUF_RGUARD_SIZE]; data/ga-5.7.2/armci/src/devices/openib/rtinfo.c:18: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 line[80]; data/ga-5.7.2/armci/src/devices/openib/rtinfo.c:19:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/cpuinfo","r"); data/ga-5.7.2/armci/src/devices/sockets/dataserv.c:754:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[100]; data/ga-5.7.2/armci/src/devices/sockets/sockets.c:50:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(s1,s2,n) memcpy(s2,s1,n) data/ga-5.7.2/armci/src/devices/sockets/sockets.c:50:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(s1,s2,n) memcpy(s2,s1,n) data/ga-5.7.2/armci/src/devices/sockets/sockets.c:368:68: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. lastiovoriglen=iov[i].iov_len;lastiovorigbase=(char *)iov[i].iov_base; data/ga-5.7.2/armci/src/devices/sockets/sockets.c:423:68: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. lastiovoriglen=iov[i].iov_len;lastiovorigbase=(char *)iov[i].iov_base; data/ga-5.7.2/armci/src/devices/sockets/sockets.c:845:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char *) hp->h_addr, (char *) &server.sin_addr, hp->h_length); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:184:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&armci_storage_record[recind].group,group,sizeof(ARMCI_Group)); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:330: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 line[256],tmpfilename[100]; data/ga-5.7.2/armci/src/ft/armci_chkpt.c:350:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf((filename+strlen(filename)),"%d",armci_me); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:352:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename+strlen(filename),"%d",rid); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:362:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmpfilename, "/proc/%d/maps",getpid()); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:363:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp=fopen(tmpfilename, "r"); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:383: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. char tmpline[256]; data/ga-5.7.2/armci/src/ft/armci_chkpt.c:569: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. if(addr > (char *)armci_storage_record[rid].heap_mon.ptr){ data/ga-5.7.2/armci/src/ft/armci_chkpt.c:911:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf((filename+strlen(filename)),"%d",armci_me); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:913:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename+strlen(filename),"%d",rid); data/ga-5.7.2/armci/src/ft/armci_storage.c:49:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_d = fopen(filename,"w+"); data/ga-5.7.2/armci/src/ft/armci_storage.c:57:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_d = fopen(filename,"r"); data/ga-5.7.2/armci/src/include/armci.h:33:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define ARMCI_Put1(_s,_d,_b,_p) memcpy(_d,_s,_b), 0 data/ga-5.7.2/armci/src/include/armcip.h:165:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(a,b,len) memcpy(b,a,len) data/ga-5.7.2/armci/src/include/armcip.h:165:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define bcopy(a,b,len) memcpy(b,a,len) data/ga-5.7.2/armci/src/include/armcip.h:362: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 hostname[HOSTNAME_LEN]; data/ga-5.7.2/armci/src/include/copy.h:22: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. #define memcpy(dst, src, len) _fastbcopy(src, dst, len) data/ga-5.7.2/armci/src/include/copy.h:23:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define bcopy(src, dst, len) _fastbcopy(src, dst, len) data/ga-5.7.2/armci/src/include/copy.h:52: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. # define armci_copy(src,dst,n) memcpy((dst), (src), (n)) data/ga-5.7.2/armci/src/include/copy.h:85:48: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ((unsigned long)(dst)%ALIGN_SIZE)) memcpy((dst),(src),(n));\ data/ga-5.7.2/armci/src/include/copy.h:90:52: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. do if( ((n) < THRESH1D) || ((n)%ALIGN_SIZE) ) memcpy((dst), (src), (n));\ data/ga-5.7.2/armci/src/include/copy.h:387:40: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if((n)<256 || n%sizeof(long) ) memcpy((dst),(src),(n));\ data/ga-5.7.2/armci/src/include/kr_malloc.h:27: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 align[ALIGNMENT]; /* Align to ALIGNMENT byte boundary */ data/ga-5.7.2/armci/src/include/request.h:64:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char armcix_opaque_t [ARMCIX_OPAQUE_SIZE]; data/ga-5.7.2/armci/src/include/request.h:161: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 send[MAX_GPC_SEND_LEN]; data/ga-5.7.2/armci/src/include/request.h:162: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 reply[MAX_GPC_REPLY_LEN]; data/ga-5.7.2/armci/src/include/request.h:182: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 dscr[UBUF_LEN]; /*place to store the dscr*/ data/ga-5.7.2/armci/src/locks/locks.c:112: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 arena_name[FILE_LEN]; data/ga-5.7.2/armci/src/locks/locks.c:188: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 file_name[FILE_LEN]; data/ga-5.7.2/armci/src/locks/locks.c:199: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(file_name,"/tmp/ga.locks.%ld", *lockid); data/ga-5.7.2/armci/src/locks/locks.c:200:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (fd = open(file_name, O_RDWR|O_CREAT, 0666)) < 0 ) data/ga-5.7.2/armci/src/locks/locks.c:219: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(file_name,"/tmp/ga.locks.%ld", lockid); data/ga-5.7.2/armci/src/locks/locks.c:220:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (fd = open(file_name, O_RDWR|O_CREAT, 0666)) < 0 ) data/ga-5.7.2/armci/src/locks/locks.c:278: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 lock_name[64]; data/ga-5.7.2/armci/src/locks/locks.c:281:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(lock_name,"ARMCImutex.%d.%d",(int)lockid,i); data/ga-5.7.2/armci/src/memory/buffers.c:104:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MSG_BUFLEN_SMALL]; data/ga-5.7.2/armci/src/memory/buffers.c:113:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[SMALL_BUF_LEN]; data/ga-5.7.2/armci/src/memory/kr_malloc.c:58:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[256]; data/ga-5.7.2/armci/src/memory/memory.c:349:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char*)ptr_ref_arr, (char*)(ptr_arr+armci_master), nproc*sizeof(void*)); data/ga-5.7.2/armci/src/memory/memory.c:427:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(idlist, meminfo->idlist, SHMIDLEN*sizeof(long)); data/ga-5.7.2/armci/src/memory/memory.c:657:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char*)ptr_ref_arr, (char*)(ptr_arr+grp_master), grp_clus_nproc*sizeof(void*)); data/ga-5.7.2/armci/src/memory/shmalloc.c:129:23: [2] (integer) atol: 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). size = (size_t)atol(token); data/ga-5.7.2/armci/src/memory/shmem.c:175:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm shm %d",id); data/ga-5.7.2/armci/src/memory/shmem.c:177:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/bin/ipcrm -m %d",id); data/ga-5.7.2/armci/src/memory/shmem.c:179:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/sbin/ipcrm -m %d",id); data/ga-5.7.2/armci/src/memory/shmem.c:181:30: [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. #define CLEANUP_CMD(command) sprintf(command,"/usr/bin/ipcrm -m %d",id); data/ga-5.7.2/armci/src/memory/shmem.c:879:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[64]; data/ga-5.7.2/armci/src/memory/shmem.c:1129:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[64]; data/ga-5.7.2/armci/src/memory/winshmem.c:127:25: [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. #define SET_MAPNAME(id) sprintf(map_fname,"/tmp/ARMCIshmem.%d.%d",parent_pid,(id)) data/ga-5.7.2/armci/src/memory/winshmem.c:144: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 map_fname[64]; data/ga-5.7.2/armci/src/memory/winshmem.c:360: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). h_shm_map = open(map_fname, O_RDWR, S_IRWXU); data/ga-5.7.2/armci/src/memory/winshmem.c:364: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). h_shm_map = open(map_fname, O_CREAT|O_RDWR, S_IRWXU); data/ga-5.7.2/armci/src/progress/wait.c:59: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 hdl_flag[ARMCI_MAX_IMPLICIT]; data/ga-5.7.2/armci/src/xfer/strided.c:641:5: [2] (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_ptr, src_ptr,count[0]); data/ga-5.7.2/armci/src/xfer/strided.c:1100:3: [2] (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,bytes); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/cluster.c:81:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(nslave) > MAX_SLAVE) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/cluster.c:87:38: [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). SR_clus_info[SR_n_clus].nslave = atoi(nslave); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/cluster.c:96: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). for (i=0; i<atoi(nslave); i++) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:227:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(file = fopen(filename, "w"))) {ERROR_RETURN} data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:262:14: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:268:14: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:274:14: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:279:14: [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. RECORD(sprintf(bufpt, ":MSG_LEN:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:284:14: [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. RECORD(sprintf(bufpt, ":MSG_TO:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:289:14: [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. RECORD(sprintf(bufpt, ":MSG_FROM:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:294:14: [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. RECORD(sprintf(bufpt, ":MSG_TYPE:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:299:14: [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. RECORD(sprintf(bufpt, ":MSG_SYNC:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evon.c:39:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define bcopy(a, b, n) memcpy((b), (a), (n)) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evon.c:39:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define bcopy(a, b, n) memcpy((b), (a), (n)) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evon.c:122:12: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(string, value, len); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evon.c:154:12: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(string, value, len); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evon.c:186:12: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(string, value, len); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/llog.c:30: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[12]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/llog.c:33:10: [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. (void) sprintf(name, "log.%03ld",NODEID_()); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:72:12: [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. (void) strcpy(tmp+len, ".p"); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:82:14: [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. (void) strcpy(tmp+strlen(home),"/pdir/"); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:84:14: [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. (void) strcpy(tmp+strlen(home)+6+len,".p"); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:128:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (file = fopen(filename,"r")) == (FILE *) NULL ) { data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:207: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 local_hostname[256], c_port[8]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:208: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_n_clus[8], c_n_proc[8], c_clus_id[8], c_proc_id[8]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:209: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 *argv2[256]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:223:10: [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. (void) sprintf(c_port, "%d", port); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:224:10: [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. (void) sprintf(c_n_clus, "%ld", n_clus); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:225:10: [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. (void) sprintf(c_n_proc, "%ld", n_proc); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:226:10: [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. (void) sprintf(c_clus_id, "%ld", clus_id); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:227:10: [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. (void) sprintf(c_proc_id, "%ld", proc_id); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:339: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 hostname[256]; /* Me */ data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c:217: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). SR_n_clus = atoi(argv[i+3]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c:218: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). SR_n_proc = atoi(argv[i+4]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c:219: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). SR_clus_id = atoi(argv[i+5]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c:220: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). SR_proc_id = atoi(argv[i+6]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c:438:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. SR_proc_info[i].buffer = ((char *) SR_proc_info[i].header) + data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pbegin.c:512:12: [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. (void) sprintf(eventfile, "events.%03ld", NODEID_()); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pfilecopy.c:56: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 ((file = fopen(filename,"r")) == (FILE *) NULL) { data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pfilecopy.c:85: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 ((file = fopen(filename,"w+")) == (FILE *) NULL) { data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pfilecopy.c:119:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define bcopy(a, b, n) memcpy((b), (a), (n)) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pfilecopy.c:119:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define bcopy(a, b, n) memcpy((b), (a), (n)) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/pfilecopy.c:181:12: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(fname, filename, len); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:436:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (fd = open(filename, O_RDWR|O_CREAT, 0666)) < 0 ) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:622:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char arena_name[NAME_LEN]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:731:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (fd = open(filename, O_RDWR|O_CREAT, 0666)) < 0 ) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_convex.c:107:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (fd = open(filename, O_RDWR|O_CREAT, 0666)) < 0 ) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c:78:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char arena_name[NAME_LEN]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_sgius.c:187:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (fd = open(filename, O_RDWR|O_CREAT, 0666)) < 0 ) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem.c:145: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 *shaddr[MAX_ADDR]; /* Keep track of addresses */ data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem.c:287:27: [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 ( (id_list[*id].fd = open(id_list[*id].filename, data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_convex.c:47: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). if ( (id_list[*id].fd = open(id_list[*id].filename, data/ga-5.7.2/armci/tcgmsg/ipcv4.0/shmem_cray.c:22: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 *shaddr[MAX_ADDR]; /* Keep track of addresses */ data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:53:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define SRmover(a,b,n) memcpy(a,b,n) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:394:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fudge[SHORT_MSG_BUF_SIZE]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:435:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fudge,(char *) &header, sizeof(header)); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:436:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fudge+sizeof(header), buf, *lenbuf); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:816: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. (void) memcpy((char *) &header, (char *) &SR_proc_info[node].head_peek, data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:999: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 cport[8]; data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:1040:12: [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. (void) sprintf(cport,"%d",port); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sockets.c:519:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char *) hp->h_addr, (char *) &server.sin_addr, hp->h_length); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sockets.c:520:36: [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). server.sin_port = htons((ushort) atoi(cport)); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/srmover.c:8: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. #define memcpy(a ,b ,c) bcopy((b), (a), (c)) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/srmover.c:8:25: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memcpy(a ,b ,c) bcopy((b), (a), (c)) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/srmover.c:24:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy(a, b, (int) n); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/srmover.c:29: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. (void) memcpy(a, b, (int) n); /* abdicate responsibility */ data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send.c:21:54: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY_TO_LOCAL(src, dest, n, destnode) (void) memcpy(dest, src, n) data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send.c:22:45: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY_FROM_LOCAL(src, dest, n) (void)memcpy(dest, src, n) data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send.c:23:46: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY_FROM_REMOTE(src,dest,n,p) (void)memcpy(dest, src, n) data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send.c:24:44: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY_TO_REMOTE(src,dest,n,p) (void)memcpy(dest, src, n) data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send_lapi.c:36:44: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY_TO_LOCAL(src, dest, n) (void) memcpy(dest, src, (long) n) data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send_lapi.c:37:45: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY_FROM_LOCAL(src, dest, n) (void)memcpy(dest, src, (long) n) data/ga-5.7.2/armci/tcgmsg/ipcv5.0/copyall.save.c:26:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, (size_t) n); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/copyall.save.c:127:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, (size_t) n); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:206: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). if (!(file = fopen(filename, "w"))) { data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:243:24: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:249:24: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:255:24: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:260:24: [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. RECORD(sprintf(bufpt, ":MSG_LEN:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:265:24: [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. RECORD(sprintf(bufpt, ":MSG_TO:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:270:24: [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. RECORD(sprintf(bufpt, ":MSG_FROM:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:275:24: [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. RECORD(sprintf(bufpt, ":MSG_TYPE:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:280:24: [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. RECORD(sprintf(bufpt, ":MSG_SYNC:%d", va_arg(ap, int))); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/lapi_putget.c:137: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 cmd[100]; data/ga-5.7.2/armci/tcgmsg/ipcv5.0/lapi_putget.c:150:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cmd,"/u2/d3h325/bin/dbxwhere_pid %d ",getpid()); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/llog.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[12]; data/ga-5.7.2/armci/tcgmsg/ipcv5.0/llog.c:31:12: [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. (void) sprintf(name, "log.%03ld",(long)NODEID_()); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pbegin.c:80:29: [2] (integer) atol: 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). TCGMSG_nnodes = atol(argv[arg+1]); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pfilecopy.c:54:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file = fopen(filename,"r")) == (FILE *) NULL) { data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pfilecopy.c:84:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file = fopen(filename,"w+")) == (FILE *) NULL) { data/ga-5.7.2/armci/tcgmsg/ipcv5.0/pfilecopy.c:139:16: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(fname, filename, len); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/shmem.c:167: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). if ( (id_list[*id].fd = open(id_list[*id].filename, data/ga-5.7.2/armci/tcgmsg/ipcv5.0/tcgmsgP.h:79:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SEND_BUF_SIZE]; data/ga-5.7.2/armci/tcgmsg/ipcv5.0/tcgmsgP.h:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SHMEM_BUF_SIZE]; /**< Message buffer */ data/ga-5.7.2/armci/testing/clone.c:18:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char child_stack[256*1024]; data/ga-5.7.2/armci/testing/gpctest.c:36: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 rheader[100]; data/ga-5.7.2/armci/testing/perf.c:56:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char check_type[15]; data/ga-5.7.2/armci/testing/perf.c:133:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(check_type, "ARMCI_GetS:"); data/ga-5.7.2/armci/testing/perf.c:214:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(check_type, "ARMCI_PutS:"); data/ga-5.7.2/armci/testing/perf.c:283:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(check_type, "ARMCI_AccS:"); data/ga-5.7.2/armci/testing/perf_aggr.c:71:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/testing/perf_aggr.c:96: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/armci/testing/perf_nb.c:82:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/testing/perf_nb.c:106: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/armci/testing/te.c:33:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open("test.file", O_RDONLY); data/ga-5.7.2/armci/testing/test.c:77:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/testing/test.c:102: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/armci/testing/test.c:328:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[48]; data/ga-5.7.2/armci/testing/test.c:329:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "(proc=%d):%f", me, patch1[idx1]); data/ga-5.7.2/armci/testing/test.c:331:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "%f\n", patch2[idx2]); data/ga-5.7.2/armci/testing/test2.c:94:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/testing/test2.c:119: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/armci/testing/test2.c:724: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 *op[7] = {"+", "*", "min", "max", "absmax", "absmin", "or"}; data/ga-5.7.2/armci/testing/test2.c:950: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 *test_name[2] = { "acc_type", "collective" }; data/ga-5.7.2/armci/testing/test_groups.c:31:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/testing/test_groups.c:53: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/armci/testing/test_mt.c:83:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[2048]; data/ga-5.7.2/armci/testing/test_mt.c:143: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). tpp = atoi(optarg); data/ga-5.7.2/armci/testing/test_mt.c:152: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). iters = atoi(optarg); data/ga-5.7.2/armci/testing/test_mt.c:160: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). asize = atoi(optarg); data/ga-5.7.2/armci/testing/test_mt.c:168: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). delay = atoi(optarg); data/ga-5.7.2/armci/testing/test_mt.c:200:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dbg[i] = fopen(fname, "w"); data/ga-5.7.2/armci/testing/test_mt.c:230:14: [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. cbufl += sprintf(cbuf + cbufl, " %d->%d|%d->%d", data/ga-5.7.2/armci/testing/test_mt.c:241:14: [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. cbufl += sprintf(cbuf + cbufl, " %d", rnd_tgts[i]); data/ga-5.7.2/armci/testing/test_mt.c:290:14: [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. cbufl += sprintf(cbuf + cbufl, " %p", ptrs1[i]); data/ga-5.7.2/armci/testing/test_mt.c:294:14: [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. cbufl += sprintf(cbuf + cbufl, " %p", ptrs2[i]); data/ga-5.7.2/armci/testing/test_mt.c:363:16: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. cbufl += sprintf(cbuf + cbufl, "(%d,%d)%p:", i, j, &(((atype_t *)ptr)[i*ASIZExITERS+j*asize])); data/ga-5.7.2/armci/testing/test_mt.c:365:18: [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. cbufl += sprintf(cbuf + cbufl, " %.4f", ((atype_t *)ptr)[i*ASIZExITERS+j*asize+k]); data/ga-5.7.2/armci/testing/test_mt.c:373:14: [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. cbufl += sprintf(cbuf + cbufl, " %.4f", ((atype_t *)ptr)[i]); data/ga-5.7.2/armci/testing/test_mt.c:384: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 tbuf[TBUFSIZE]; data/ga-5.7.2/armci/testing/test_mt.c:392:16: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. tbufl += sprintf(tbuf + tbufl, "(%d,%d)%p:", i, j, &AELEM(array, i, j, 0)); data/ga-5.7.2/armci/testing/test_mt.c:394:18: [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. tbufl += sprintf(tbuf + tbufl, " %.4f", AELEM(array, i, j, k)); data/ga-5.7.2/armci/testing/test_mt.c:475:14: [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. cbufl += sprintf(cbuf + cbufl, " %d", rmt[i]); data/ga-5.7.2/armci/testing/testitr.c:58:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bp, ap, bytes); data/ga-5.7.2/armci/testing/testnotify.c:77:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/armci/testing/testnotify.c:102: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/armci/testing/testnotify.c:326:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[48]; data/ga-5.7.2/armci/testing/testnotify.c:327:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "(proc=%d):%f", me, patch1[idx1]); data/ga-5.7.2/armci/testing/testnotify.c:329:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "%f\n", patch2[idx2]); data/ga-5.7.2/armci/tools/armci_profile.c:101:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *gEventName[ARMCI_EVENTS]={ data/ga-5.7.2/armci/tools/armci_profile.c:628: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 file_name[50]; data/ga-5.7.2/armci/tools/armci_profile.c:629:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(file_name, "armci_profile.%d", armci_me); data/ga-5.7.2/armci/tools/armci_profile.c:630:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(file_name, "w"); data/ga-5.7.2/cca/ga_cca_classic/GAServices_wrapper.cxx:19: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 *list[2]; data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.cxx:45: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 temp_name[20]; data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.cxx:47: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(temp_name, "tmpGA%d", sTmpVar++); data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.cxx:54: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 temp_name[20]; data/ga-5.7.2/cca/ga_cca_classic/GlobalArray.cxx:58: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(temp_name, "tmpGA%d", sTmpVar++); data/ga-5.7.2/cca/ga_cca_classic/TestComponent/TestComponent.cxx:133:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int len; char proc_name[MPI_MAX_PROCESSOR_NAME]; data/ga-5.7.2/cca/ga_cca_classic/TestComponent/TestComponent_wrapper.cxx:18: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 *list[2]; data/ga-5.7.2/comex/src-armci/armci.c:27: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[MPI_MAX_PROCESSOR_NAME]; data/ga-5.7.2/comex/src-armci/armci.c:807:5: [2] (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(int) * n); data/ga-5.7.2/comex/src-armci/armci.h:33:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define ARMCI_Put1(_s,_d,_b,_p) memcpy(_d,_s,_b), 0 data/ga-5.7.2/comex/src-armci/iterator.c:169:5: [2] (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[off],sptr,seg_size); data/ga-5.7.2/comex/src-armci/iterator.c:188:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dptr,&buf[off],seg_size); data/ga-5.7.2/comex/src-armci/message.c:227:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(x, result, mpi_type_size * n); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:60:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"n%d",no); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:66:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"altix"); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:75:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"%d",rank); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:293:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_HOSTNAME], *merged; data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:318:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name+len,"n%d",getpid()); data/ga-5.7.2/comex/src-dmapp/clusterinfo.h:10: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 hostname[HOSTNAME_LEN]; data/ga-5.7.2/comex/src-dmapp/comex.c:225:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-dmapp/comex.c:260:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(l_state.put_buf, src, bytes); data/ga-5.7.2/comex/src-dmapp/comex.c:360:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-dmapp/comex.c:398:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, l_state.get_buf, bytes); data/ga-5.7.2/comex/src-dmapp/comex.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. char pipe_state[PIPELINED_MAX_BUFFERS]; data/ga-5.7.2/comex/src-dmapp/comex.c:1516:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&src_buf, &ptrs[comm_rank], sizeof(void *)); data/ga-5.7.2/comex/src-dmapp/comex.c:1606: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). l_state.dmapp_routing = (atoi(value)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:139:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[256]; data/ga-5.7.2/comex/src-mpi-mt/comex.c:271: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). nb_max_outstanding = atoi(value); data/ga-5.7.2/comex/src-mpi-mt/comex.c:1780:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(dst[i], &packed_buffer[packed_index], bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:1912:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:2920:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov->dst[i], &message[off], iov->bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3010:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3049:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3729:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3732:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3735:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3738:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3748:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3829:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3832:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3835:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3838:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3848:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov_copy->src, iov->src, sizeof(void*)*iov->count); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3851:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov_copy->dst, iov->dst, sizeof(void*)*iov->count); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3941:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3944:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3947:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3950:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-mt/comex.c:3960:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-mt/comex.c:4100:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], &src[src_idx], count[0]); data/ga-5.7.2/comex/src-mpi-mt/comex.c:4160:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&dst[dst_idx], &packed_buffer[packed_index], count[0]); data/ga-5.7.2/comex/src-mpi-mt/groups.c:391:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pathname[80]; data/ga-5.7.2/comex/src-mpi-mt/groups.c:392:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pathname, "trace.%d.log", g_state.rank); data/ga-5.7.2/comex/src-mpi-mt/groups.c:393:28: [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). comex_trace_file = fopen(pathname, "w"); data/ga-5.7.2/comex/src-mpi-mt/groups.c:424:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(sorted, g_state.hostid, sizeof(long)*g_state.size); data/ga-5.7.2/comex/src-mpi-mt/groups.c:480: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 location[128]; data/ga-5.7.2/comex/src-mpi-mt/groups.c:481: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 location_clean[128]; data/ga-5.7.2/comex/src-mpi-mt/groups.c:490:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(location_clean, "%2d%02d%1d%02d%02d", data/ga-5.7.2/comex/src-mpi-mt/groups.c:492:14: [2] (integer) atol: 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). nodeid = atol(location_clean); data/ga-5.7.2/comex/src-mpi-pr/comex.c:182:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[256]; data/ga-5.7.2/comex/src-mpi-pr/comex.c:337: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). nb_max_outstanding = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:344: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). static_server_buffer_size = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:351:31: [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). eager_threshold = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:357: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). COMEX_ENABLE_PUT_SELF = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:363: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). COMEX_ENABLE_GET_SELF = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:369: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). COMEX_ENABLE_ACC_SELF = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:375:36: [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). COMEX_ENABLE_PUT_SMP = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:381:36: [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). COMEX_ENABLE_GET_SMP = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:387:36: [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). COMEX_ENABLE_ACC_SMP = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:393:39: [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). COMEX_ENABLE_PUT_PACKED = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:399:39: [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). COMEX_ENABLE_GET_PACKED = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:405:39: [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). COMEX_ENABLE_ACC_PACKED = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:411: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). COMEX_ENABLE_PUT_DATATYPE = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:417: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). COMEX_ENABLE_GET_DATATYPE = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:423:44: [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). COMEX_PUT_DATATYPE_THRESHOLD = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:429:44: [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). COMEX_GET_DATATYPE_THRESHOLD = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:435:36: [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). COMEX_ENABLE_PUT_IOV = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:441:36: [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). COMEX_ENABLE_GET_IOV = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:447:36: [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). COMEX_ENABLE_ACC_IOV = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:453: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). max_message_size = atoi(value); data/ga-5.7.2/comex/src-mpi-pr/comex.c:1122:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], &src[src_idx], count[0]); data/ga-5.7.2/comex/src-mpi-pr/comex.c:1181:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&dst[dst_idx], &packed_buffer[packed_index], count[0]); data/ga-5.7.2/comex/src-mpi-pr/comex.c:1719:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &payload_int, length); data/ga-5.7.2/comex/src-mpi-pr/comex.c:1723:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &payload_long, length); data/ga-5.7.2/comex/src-mpi-pr/comex.c:2062:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), reg_entries_local, reg_entries_local_size); data/ga-5.7.2/comex/src-mpi-pr/comex.c:2140:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&names[SHM_NAME_SIZE*g_state.rank], name, SHM_NAME_SIZE); data/ga-5.7.2/comex/src-mpi-pr/comex.c:2392:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), rank_ptrs, rank_ptrs_local_size); data/ga-5.7.2/comex/src-mpi-pr/comex.c:2614:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(mapped_offset, payload, header->length); data/ga-5.7.2/comex/src-mpi-pr/comex.c:2828:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(mapped_offset, &packed_buffer[packed_index], bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:3052:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], mapped_offset, bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4496:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov->dst[i], &message[off], iov->bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4590:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4608:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(mapped_offset, src, bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4638:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), src, bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4672:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4690:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(dst, mapped_offset, bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4825:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), scale, scale_size); data/ga-5.7.2/comex/src-mpi-pr/comex.c:4827:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t)+scale_size, data/ga-5.7.2/comex/src-mpi-pr/comex.c:5011:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &stride, sizeof(stride_t)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5013:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t)+sizeof(stride_t), data/ga-5.7.2/comex/src-mpi-pr/comex.c:5115:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &stride, sizeof(stride_t)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5306:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &stride_src, sizeof(stride_t)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5389:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &stride_src, sizeof(stride_t)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5587:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), scale, scale_size); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5588:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t)+scale_size, &stride, sizeof(stride_t)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5590:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t)+scale_size+sizeof(stride_t), data/ga-5.7.2/comex/src-mpi-pr/comex.c:5675:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5678:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5681:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5684:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5694:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5778:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5781:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5784:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5787:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5797:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov_copy->src, iov->src, sizeof(void*)*iov->count); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5800:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov_copy->dst, iov->dst, sizeof(void*)*iov->count); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5894:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5897:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5900:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5903:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5913:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5966:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), scale, scale_size); data/ga-5.7.2/comex/src-mpi-pr/comex.c:5982: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 err_string[MPI_MAX_ERROR_STRING]; data/ga-5.7.2/comex/src-mpi-pr/groups.c:396:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pathname[80]; data/ga-5.7.2/comex/src-mpi-pr/groups.c:397:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pathname, "trace.%d.log", g_state.rank); data/ga-5.7.2/comex/src-mpi-pr/groups.c:398:28: [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). comex_trace_file = fopen(pathname, "w"); data/ga-5.7.2/comex/src-mpi-pr/groups.c:471:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(sorted, g_state.hostid, sizeof(long)*g_state.size); data/ga-5.7.2/comex/src-mpi-pr/groups.c:539: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 location[128]; data/ga-5.7.2/comex/src-mpi-pr/groups.c:540: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 location_clean[128]; data/ga-5.7.2/comex/src-mpi-pr/groups.c:549:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(location_clean, "%2d%02d%1d%02d%02d", data/ga-5.7.2/comex/src-mpi-pr/groups.c:551:14: [2] (integer) atol: 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). nodeid = atol(location_clean); data/ga-5.7.2/comex/src-mpi-pr/reg_cache.c:519:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(node->name, name, SHM_NAME_SIZE); data/ga-5.7.2/comex/src-mpi-pr/reg_cache.h:23:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[SHM_NAME_SIZE]; /**< name of region */ data/ga-5.7.2/comex/src-mpi-pt/comex.c:152:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[256]; data/ga-5.7.2/comex/src-mpi-pt/comex.c:293: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). nb_max_outstanding = atoi(value); data/ga-5.7.2/comex/src-mpi-pt/comex.c:928:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], &src[src_idx], count[0]); data/ga-5.7.2/comex/src-mpi-pt/comex.c:988:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&dst[dst_idx], &packed_buffer[packed_index], count[0]); data/ga-5.7.2/comex/src-mpi-pt/comex.c:1528:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &payload_int, length); data/ga-5.7.2/comex/src-mpi-pt/comex.c:1532:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(message+sizeof(header_t), &payload_long, length); data/ga-5.7.2/comex/src-mpi-pt/comex.c:1858:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message+sizeof(header_t), reg_entries_local, reg_entries_local_size); data/ga-5.7.2/comex/src-mpi-pt/comex.c:1939:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&names[SHM_NAME_SIZE*g_state.rank], name, SHM_NAME_SIZE); data/ga-5.7.2/comex/src-mpi-pt/comex.c:2185:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message+sizeof(header_t), rank_ptrs, rank_ptrs_local_size); data/ga-5.7.2/comex/src-mpi-pt/comex.c:2499:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(mapped_offset, &packed_buffer[packed_index], bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:2652:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], mapped_offset, bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:3977:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov->dst[i], &message[off], iov->bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4058:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4072:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mapped_offset, src, bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4108:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4122:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, mapped_offset, bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4231:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message+sizeof(header_t), scale, scale_size); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4807:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4810:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4813:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4816:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4826:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4908:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4911:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4914:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4917:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4927:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov_copy->src, iov->src, sizeof(void*)*iov->count); data/ga-5.7.2/comex/src-mpi-pt/comex.c:4930:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(iov_copy->dst, iov->dst, sizeof(void*)*iov->count); data/ga-5.7.2/comex/src-mpi-pt/comex.c:5021:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &limit, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:5024:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], &bytes, sizeof(int)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:5027:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], src, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:5030:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&iov_buf[iov_off], dst, limit*sizeof(void*)); data/ga-5.7.2/comex/src-mpi-pt/comex.c:5040:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(&packed_buffer[packed_index], src[i], bytes); data/ga-5.7.2/comex/src-mpi-pt/groups.c:391:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pathname[80]; data/ga-5.7.2/comex/src-mpi-pt/groups.c:392:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pathname, "trace.%d.log", g_state.rank); data/ga-5.7.2/comex/src-mpi-pt/groups.c:393:28: [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). comex_trace_file = fopen(pathname, "w"); data/ga-5.7.2/comex/src-mpi-pt/groups.c:448:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(sorted, g_state.hostid, sizeof(long)*g_state.size); data/ga-5.7.2/comex/src-mpi-pt/groups.c:516: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 location[128]; data/ga-5.7.2/comex/src-mpi-pt/groups.c:517: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 location_clean[128]; data/ga-5.7.2/comex/src-mpi-pt/groups.c:526:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(location_clean, "%2d%02d%1d%02d%02d", data/ga-5.7.2/comex/src-mpi-pt/groups.c:528:14: [2] (integer) atol: 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). nodeid = atol(location_clean); data/ga-5.7.2/comex/src-mpi-pt/reg_cache.c:519:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(node->name, name, SHM_NAME_SIZE); data/ga-5.7.2/comex/src-mpi-pt/reg_cache.h:21:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[SHM_NAME_SIZE]; /**< name of region */ data/ga-5.7.2/comex/src-mpi/comex.c:139: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. return memcpy(dest, src, n); data/ga-5.7.2/comex/src-mpi/comex.c:549:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(response_header, header, sizeof(header_t)); data/ga-5.7.2/comex/src-mpi/comex.c:1400:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pathname[80]; data/ga-5.7.2/comex/src-mpi/comex.c:1401:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pathname, "trace.%d.log", l_state.rank); data/ga-5.7.2/comex/src-mpi/comex.c:1402:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). my_file = fopen(pathname, "w"); data/ga-5.7.2/comex/src-mpi3/comex.c:127: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 err_string[MPI_MAX_ERROR_STRING]; data/ga-5.7.2/comex/src-mpi3/comex.c:966:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cursor, src_cursor, count[0]); data/ga-5.7.2/comex/src-mpi3/comex.c:1011:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cursor, src_cursor, count[0]); data/ga-5.7.2/comex/src-mpi3/comex.c:3150:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&src_buf, &ptrs[comm_rank], sizeof(void *)); data/ga-5.7.2/comex/src-mpi3/comex.c:3215:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&src, ®_entries[comm_rank], sizeof(reg_entry_t)); data/ga-5.7.2/comex/src-ofa/comex.c:86:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&src_buf, &ptrs[comm_rank], sizeof(void *)); data/ga-5.7.2/comex/src-ofa/device.c:30: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. (void) memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-ofa/device.c:40: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. (void) memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-ofa/openib.c:43:42: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). l_state.comex_openib_use_dreg = (atoi(value)); data/ga-5.7.2/comex/src-ofa/openib.c:545:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(src_ptr, src, bytes); data/ga-5.7.2/comex/src-ofa/openib.c:607:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, dst_ptr, bytes); data/ga-5.7.2/comex/src-ofi/comex.c:417:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[OFI_EP_NAME_MAX_LENGTH]; data/ga-5.7.2/comex/src-ofi/comex.c:460:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(my_name->name, name, my_name_len.length); data/ga-5.7.2/comex/src-ofi/comex.c:505: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 var_name[VAR_NAME_LEN] = {0}; data/ga-5.7.2/comex/src-ofi/comex.c:506:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * psms[PSM_COUNT] = {"PSM", "PSM2"}; data/ga-5.7.2/comex/src-ofi/comex.c:507:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * prefixes[PREFIX_COUNT] = {"OFI", "FI"}; data/ga-5.7.2/comex/src-ofi/comex.c:523: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 var[256]; data/ga-5.7.2/comex/src-ofi/comex.c:524:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(var, "%d", l_state.local_size); data/ga-5.7.2/comex/src-ofi/comex.c:526:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(var, "%d", l_state.local_proc); data/ga-5.7.2/comex/src-ofi/comex.c:3812:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. get_buf = (char *)malloc(sizeof(char) * count[0]); data/ga-5.7.2/comex/src-ofi/log.h:33:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_buf[20]; /*2016:07:21 14:47:39*/ \ data/ga-5.7.2/comex/src-portals4/comex.c:156: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). nb_max_outstanding = atoi(value); data/ga-5.7.2/comex/src-portals4/comex.c:1687:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-portals4/comex.c:1727:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, bytes); data/ga-5.7.2/comex/src-template/comex.c:311: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. get_buf = (char *)malloc(sizeof(char) * count[0]); data/ga-5.7.2/comex/src-template/comex.c:730:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&src_buf, &ptrs[comm_rank], sizeof(void *)); data/ga-5.7.2/comex/testing/test.c:64:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/comex/testing/test.c:90:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(x, result, sizeof(int) * n); data/ga-5.7.2/comex/testing/test.c:112:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(x, result, sizeof(long) * n); data/ga-5.7.2/comex/testing/test.c:139: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). if ((np = atoi(argv[1])) < 1) { data/ga-5.7.2/comex/testing/test.c:394:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[48]; data/ga-5.7.2/comex/testing/test.c:395:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "(proc=%d):%f", me, patch1[idx1]); data/ga-5.7.2/comex/testing/test.c:397:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "%f\n", patch2[idx2]); data/ga-5.7.2/comex/testing/test.c:462:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[48]; data/ga-5.7.2/comex/testing/test.c:463:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "(proc=%d): (%f,%f)", me, patch1[2*idx1],patch1[2*idx1+1]); data/ga-5.7.2/comex/testing/test.c:465:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "(%f,%f)\n", patch2[2*idx2],patch2[2*idx2+1]); data/ga-5.7.2/ga++/src/GlobalArray.cc:141: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 temp_name[20]; data/ga-5.7.2/ga++/src/GlobalArray.cc:143:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_name, "tmpGA%d", sTmpVar++); data/ga-5.7.2/ga++/testing/ntestc.cc:174:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/ga++/testing/ntestc.cc:213: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 msg[100]; data/ga-5.7.2/ga++/testing/thread-safe.cc:17: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). x = atoi(argv[1]); data/ga-5.7.2/ga++/testing/thread-safe.cc:18: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). y = atoi(argv[2]); data/ga-5.7.2/ga++/testing/thread-safe.cc:30:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20]; data/ga-5.7.2/ga++/testing/thread-safe.cc:44:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name, "test"); data/ga-5.7.2/ga++/testing/thread-safe.cc:50:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). thread_count = atoi(env_threads); data/ga-5.7.2/ga++/testing/thread-safe.cc:86:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name, "test1"); data/ga-5.7.2/ga++/testing/thread-safe.cc:151:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name, "test2"); data/ga-5.7.2/ga++/testing/thread-safe.cc:212:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name, "test3"); data/ga-5.7.2/ga++/testing/thread-safe.cc:215:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name, "test_correct"); data/ga-5.7.2/ga++/testing/thread-safe.cc:283:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name, "test3"); data/ga-5.7.2/gaf2c/gaf2c.c:100:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fstring[F2C_GETARG_ARGLEN_MAX]; data/ga-5.7.2/gaf2c/gaf2c.c:101:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cstring[F2C_GETARG_ARGLEN_MAX]; data/ga-5.7.2/gaf2c/testarg.c:27:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fstring[ARGLIMIT]; data/ga-5.7.2/gaf2c/testarg.c:28:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cstring[ARGLIMIT]; data/ga-5.7.2/global/X/xregion.h:120: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. SCOPE char title[80]; data/ga-5.7.2/global/X/xregion.h:121: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. SCOPE char interval_string[10], slowdown_string[11]; data/ga-5.7.2/global/X/xregion_colormap.c:36:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[9]; data/ga-5.7.2/global/X/xregion_colormap.c:51:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(string,"%2d",i); data/ga-5.7.2/global/X/xregion_colormap.c:58:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(string,"%5.1e",intval); data/ga-5.7.2/global/X/xregion_colormap.c:62:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(string,"%6.4f",intval); data/ga-5.7.2/global/X/xregion_display.c:10:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[60]; data/ga-5.7.2/global/X/xregion_display.c:19:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(title, "Time Lost Due To Contention"); data/ga-5.7.2/global/X/xregion_display.c:41: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(string, "max value = %8.5f", maxval); data/ga-5.7.2/global/X/xregion_fileio.c:15:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errmsg[128]; data/ga-5.7.2/global/X/xregion_fileio.c:17: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). fin = fopen(filename,"r"); data/ga-5.7.2/global/X/xregion_main.c:14: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 filename[128]; data/ga-5.7.2/global/X/xregion_overview.c:98:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char loc_str[40]; data/ga-5.7.2/global/X/xregion_overview.c:119: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(loc_str, "x, y: %d, %d", scale_x, scale_y); data/ga-5.7.2/global/X/xregion_overview.c:138: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 err_str[80]; data/ga-5.7.2/global/X/xregion_overview.c:139: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 loc_str[40]; data/ga-5.7.2/global/X/xregion_overview.c:292:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_str, "Selection Error: select area 500x500 or smaller"); data/ga-5.7.2/global/X/xregion_scrollbars.c:12:10: [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. (void) sprintf(interval_string, "%4d ms", interval); data/ga-5.7.2/global/X/xregion_scrollbars.c:19:10: [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. (void) sprintf(slowdown_string, "%5.1f times", slowdown); data/ga-5.7.2/global/X/xregion_util.c:33: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 *bufptr, name[40], buf[80]; data/ga-5.7.2/global/X/xregion_util.c:34: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[128]; data/ga-5.7.2/global/X/xregion_util.c:87: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(path, "./xregion.config"); data/ga-5.7.2/global/X/xregion_util.c:89:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = fopen(path,"r")) == NULL) data/ga-5.7.2/global/X/xregion_util.c:110:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(name, " Not Allocated"); data/ga-5.7.2/global/X/xregion_view.c:34:10: [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. (void) strcpy(title, "Array Access Display"); data/ga-5.7.2/global/X/xregion_view.c:119:10: [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. (void) sprintf(interval_string, "%4d ms", interval); data/ga-5.7.2/global/X/xregion_view.c:165:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void) sprintf(slowdown_string, "%5d times", (long)slowdown); data/ga-5.7.2/global/X/xregion_view.c:215: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 loc_str[40]; data/ga-5.7.2/global/X/xregion_view.c:224: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(loc_str, "Coordinates x, y: %d, %d", data/ga-5.7.2/global/examples/conjugate_gradient/read_input.c:42:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = fopen("randominput.dat", "w"); data/ga-5.7.2/global/examples/conjugate_gradient/read_input.c:58: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). na = atoi(argv[1]); data/ga-5.7.2/global/examples/conjugate_gradient/read_input.c:59: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). nz = atoi(argv[2]); data/ga-5.7.2/global/examples/conjugate_gradient/read_input.c:63: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). fd = fopen(argv[3], "r"); data/ga-5.7.2/global/examples/conjugate_gradient/read_input.c:77: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). fd = fopen("randominput.dat", "r"); data/ga-5.7.2/global/examples/lennard-jones/lennard.c:314: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). gBlockSize = atoi(optarg); data/ga-5.7.2/global/examples/lennard-jones/lennard.c:620:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). gOutfile = fopen("output.dat", "w"); data/ga-5.7.2/global/src/base.c:2108:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(GA[ga_handle].ptr[grp_me],buf,nelem*GA[ga_handle].elemsize); data/ga-5.7.2/global/src/base.c:2263:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr,buf,nelem*GA[ga_handle].elemsize); data/ga-5.7.2/global/src/base.c:2861:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. diff = (GA_ABS( base - (char *) ptr_arr[grp_me])) % item_size; data/ga-5.7.2/global/src/base.c:2985: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(myptr+sizeof(getmem_t),ptr_arr,(size_t)GAnproc*sizeof(char**)); data/ga-5.7.2/global/src/base.c:3276:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(GA[ga_handle].ptr,ptr_arr,(size_t)GAnproc*sizeof(char**)); data/ga-5.7.2/global/src/base.c:4590: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 trans[2]; data/ga-5.7.2/global/src/base.h: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. char name[FNAM+1]; /* array name */ data/ga-5.7.2/global/src/base.h:122:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; \ data/ga-5.7.2/global/src/base.h:127:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; \ data/ga-5.7.2/global/src/base.h:304: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 err_string[ERR_STR_LEN]; \ data/ga-5.7.2/global/src/base.h:310: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(err_string+_l, " [%ld:%ld ",(long)lo[_d],(long)hi[_d]); \ data/ga-5.7.2/global/src/base.h:314:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string+_l, ",%ld:%ld ",(long)lo[_d],(long)hi[_d]); \ data/ga-5.7.2/global/src/base.h:355:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; \ data/ga-5.7.2/global/src/base.h:370:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; \ data/ga-5.7.2/global/src/base.h:371:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"check subscript failed:%ld not in (%ld:%ld) dim=%d", \ data/ga-5.7.2/global/src/fapi.c:67: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:91: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:111: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:130: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:153: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:172: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:195: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:216: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:245: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:266: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:333: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:341: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:848: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:855: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:998: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:1005: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[FNAM]; data/ga-5.7.2/global/src/fapi.c:1094:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[FMSG]; data/ga-5.7.2/global/src/fapi.c:1102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[FMSG]; data/ga-5.7.2/global/src/fapi.c:1484: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[FMSG]; data/ga-5.7.2/global/src/fapi.c:1497: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[FMSG]; data/ga-5.7.2/global/src/fapi.c:1943:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[FNAM]; data/ga-5.7.2/global/src/ga_profile.c:73:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[FNAM+1]; data/ga-5.7.2/global/src/ga_profile.c:87:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *event_name[GA_EVENTS] = {"GET", "PUT", "ACC", "NON CONTIGUOUS GET", data/ga-5.7.2/global/src/ga_trace.c:125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[15]; data/ga-5.7.2/global/src/ga_trace.c:147:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(fname, "distrib.%d",(int) *ga); data/ga-5.7.2/global/src/ga_trace.c:148:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout = fopen(fname,"w"); data/ga-5.7.2/global/src/ga_trace.c:219:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[10]; data/ga-5.7.2/global/src/ga_trace.c:222:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(fname,"%03d",(int)*proc); data/ga-5.7.2/global/src/ga_trace.c:223:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout=fopen(fname,"w"); data/ga-5.7.2/global/src/ghosts.c:1364:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cache = (char *)GA[handle].cache; data/ga-5.7.2/global/src/ghosts.c:1687: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 send_name[32], rcv_name[32]; data/ga-5.7.2/global/src/ghosts.c:1721:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cache = (char *)GA[handle].cache; data/ga-5.7.2/global/src/ghosts.c:1742: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(send_name,"send_buffer"); data/ga-5.7.2/global/src/ghosts.c:1743: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(rcv_name,"receive_buffer"); data/ga-5.7.2/global/src/ghosts.c:1949: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 send_name[32], rcv_name[32]; data/ga-5.7.2/global/src/ghosts.c:2049: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(send_name,"send_buffer"); data/ga-5.7.2/global/src/ghosts.c:2050: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(rcv_name,"receive_buffer"); data/ga-5.7.2/global/src/ghosts.c:3098: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 send_name[32], rcv_name[32]; data/ga-5.7.2/global/src/ghosts.c:3133: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(send_name,"send_buffer"); data/ga-5.7.2/global/src/ghosts.c:3134: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(rcv_name,"receive_buffer"); data/ga-5.7.2/global/src/ghosts.c:3140:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cache = (char *)GA[handle].cache; data/ga-5.7.2/global/src/ghosts.c:3329:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cache = (char *)GA[handle].cache; data/ga-5.7.2/global/src/ghosts.c:3552: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 send_name[32], rcv_name[32]; data/ga-5.7.2/global/src/ghosts.c:3665: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(send_name,"send_buffer"); data/ga-5.7.2/global/src/ghosts.c:3666: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(rcv_name,"receive_buffer"); data/ga-5.7.2/global/src/global.util.c:345: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 error_buffer[ERR_LEN]; data/ga-5.7.2/global/src/global.util.c:354:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(error_buffer,"%d:", (int)pnga_nodeid()); data/ga-5.7.2/global/src/global.util.c:434:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/src/global.util.c:469:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"Process=%d\t owns array section: ",(int)proc); data/ga-5.7.2/global/src/matmul.c:2262:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmplo,alo,arank*sizeof(Integer)); data/ga-5.7.2/global/src/matmul.c:2263:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmphi,ahi,arank*sizeof(Integer)); data/ga-5.7.2/global/src/matmul.c:2282:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmplo,blo,brank*sizeof(Integer)); data/ga-5.7.2/global/src/matmul.c:2283:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmphi,bhi,brank*sizeof(Integer)); data/ga-5.7.2/global/src/matmul.c:2328:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmplo,clo,crank*sizeof(Integer)); data/ga-5.7.2/global/src/matmul.c:2329:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmphi,chi,crank*sizeof(Integer)); data/ga-5.7.2/global/src/onesided.c:338: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 err_string[ERR_STR_LEN]; \ data/ga-5.7.2/global/src/onesided.c:886:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(elem_copy, bufn, size); data/ga-5.7.2/global/src/onesided.c:2129:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:2130:8: [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(err_string,"proc=%d invalid i/j=(%ld,%ld)>< [%ld:%ld,%ld:%ld]", data/ga-5.7.2/global/src/onesided.c:2261:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:2262:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"invalid i/j=(%ld,%ld)", (long)i[k], (long)j[k]); data/ga-5.7.2/global/src/onesided.c:2273:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:2274:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"invalid i/j=(%ld,%ld)", (long)i[k], (long)j[k]); data/ga-5.7.2/global/src/onesided.c:2366:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:2367:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"proc=%d invalid i/j=(%ld,%ld)><[%ld:%ld,%ld:%ld]", data/ga-5.7.2/global/src/onesided.c:2494: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. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:2495:10: [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(err_string,"invalid i/j=(%ld,%ld)", (long)i[k], (long)j[k]); data/ga-5.7.2/global/src/onesided.c:2718:49: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ptr_src[map[iproc]][count[iproc]]=((char *)ptr_src[map[iproc]][count[iproc]])+offset*GA[handle].elemsize; data/ga-5.7.2/global/src/onesided.c:3588:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:3589:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"invalid i/j=(%ld,%ld)", (long)i[k], (long)j[k]); data/ga-5.7.2/global/src/onesided.c:3600:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:3601:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"invalid i/j=(%ld,%ld)", (long)i[k], (long)j[k]); data/ga-5.7.2/global/src/onesided.c:3694:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_string[ERR_STR_LEN]; data/ga-5.7.2/global/src/onesided.c:3695:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(err_string,"proc=%d invalid i/j=(%ld,%ld)><[%ld:%ld,%ld:%ld]", data/ga-5.7.2/global/testing/ga_lu.c:396: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). matrix_size = atoi(argv[1]); data/ga-5.7.2/global/testing/ipc.clean.c:199: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 *shaddr[MAX_ADDR]; /* Keep track of addresses */ data/ga-5.7.2/global/testing/ipc.clean.c:345:27: [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 ( (id_list[*id].fd = open(id_list[*id].filename, data/ga-5.7.2/global/testing/ntestc.c:188: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. char msg[100]; data/ga-5.7.2/global/testing/ntestc.c:189:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: leading dimensions",me); data/ga-5.7.2/global/testing/ntestc.c:227:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/testing/ntestc.c:228:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: wrong value: %d != %f a",me, p, buf[i]); data/ga-5.7.2/global/testing/ntestfc.c:196: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. char msg[100]; data/ga-5.7.2/global/testing/ntestfc.c:199:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: leading dimensions",me); data/ga-5.7.2/global/testing/ntestfc.c:245:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/testing/ntestfc.c:246:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: wrong value: %d != %f a",me, p, buf[i]); data/ga-5.7.2/global/testing/read_only.c:101:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). x = atoi(argv[1]); data/ga-5.7.2/global/testing/read_only.c:102:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). y = atoi(argv[2]); data/ga-5.7.2/global/testing/sprsmatvec.c:183:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp, *fopen(); data/ga-5.7.2/global/testing/testmatmultc.c:62: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 transa[/*ntrans*/] = "ntnt"; data/ga-5.7.2/global/testing/testmatmultc.c:63: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 transb[/*ntrans*/] = "nntt"; data/ga-5.7.2/global/testing/thread_perf_contig.c:141:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). thread_count = atoi(env_threads); data/ga-5.7.2/global/testing/thread_perf_strided.c:223:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). thread_count = atoi(env_threads); data/ga-5.7.2/global/testing/threadsafec.c:154: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). x = atoi(argv[1]); data/ga-5.7.2/global/testing/threadsafec.c:155: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). y = atoi(argv[2]); data/ga-5.7.2/global/testing/threadsafec.c:159:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). block_x = atoi(argv[3]); data/ga-5.7.2/global/testing/threadsafec.c:160:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). block_y = atoi(argv[4]); data/ga-5.7.2/global/testing/threadsafec.c:207:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). thread_count = atoi(env_threads); data/ga-5.7.2/global/testing/util.c:43:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define COPY(src, dst, bytes) memcpy((dst),(src),(bytes)) data/ga-5.7.2/global/testing/util.c:248:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[48], val[48]; data/ga-5.7.2/global/testing/util.c:249:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"ERROR (proc=%d): a",me); data/ga-5.7.2/global/testing/util.c:250:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(val,"=%f, ",patch1[idx1]); data/ga-5.7.2/global/testing/util.c:252:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"=%f\n",patch2[idx2]); data/ga-5.7.2/global/testing/util.c:361:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/testing/util.c:366:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: array section ",(int)*me); data/ga-5.7.2/global/testing/util.c:375:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/testing/util.c:379:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: copy ",(int)*me); data/ga-5.7.2/global/testing/util.c:383:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"to "); data/ga-5.7.2/global/testing/util.c:392:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/testing/util.c:396:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: ",(int)*me); data/ga-5.7.2/global/testing/util.c:400:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"+= "); data/ga-5.7.2/global/testing/util.c:409:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/ga-5.7.2/global/testing/util.c:413:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,"%d: dot ",(int)*me); data/ga-5.7.2/global/testing/util.c:417:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg,", "); data/ga-5.7.2/global/trace/adjust.c:71: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(fdstrname, "distrib.%d", ga-GA_OFFSET); data/ga-5.7.2/global/trace/adjust.c:72: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((fdistr = fopen(fdstrname,"r")) == NULL) { data/ga-5.7.2/global/trace/adjust.c:117:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(finname,"%03ld",i); data/ga-5.7.2/global/trace/adjust.c:118:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fin = fopen(finname,"r"); data/ga-5.7.2/global/trace/adjust.c:175:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fout = fopen(foutname,"w"); data/ga-5.7.2/global/trace/collisions.c:71:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ln[100]; data/ga-5.7.2/global/trace/collisions.c:86:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fin = fopen(argv[2],"r"); data/ga-5.7.2/gparrays/src/gpbase.c:95:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( meminfo.addr, &meminfo, meminfo_sz); data/ga-5.7.2/gparrays/src/gpbase.c:123:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &meminfo, ((char*)ptr)-meminfo_sz, meminfo_sz); data/ga-5.7.2/gparrays/testing/transpose.c:276:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp, *fopen(); data/ga-5.7.2/ma/error.c:19: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. public char ma_ebuf[MA_EBUF_SIZE]; data/ga-5.7.2/ma/f2c.c:35:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MA_NAMESIZE]; data/ga-5.7.2/ma/f2c.c:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MA_NAMESIZE]; data/ga-5.7.2/ma/f2c.c:237:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MA_NAMESIZE]; data/ga-5.7.2/ma/f2c.c:267:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MA_NAMESIZE]; data/ga-5.7.2/ma/ma.c:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MA_NAMESIZE]; /* given by client */ data/ga-5.7.2/ma/ma.c:304: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. public char ma_cb_char[2]; /* MT_C_CHAR */ data/ga-5.7.2/ma/ma.c:972: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 *fn[NUMADFIELDS]; /* field names */ data/ga-5.7.2/ma/ma.c:1579:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1626:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1642:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1748:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1817:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1826:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:1885:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2328:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2364:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2464:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2473:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2525:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2593:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2627:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2636:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2692:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2701:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2763:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2772:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2833:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2842:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2900:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2909:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2967:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:2976:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3036:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3045:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3178:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3412:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3452:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3462:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3472:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3521:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/ma.c:3630:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, "\n\t\t\t\theap\tstack\n\t\t\t\t----\t-----\n\tchecksum errors\t\t%4d\t%5d\n\tleft signature errors\t%4d\t%5d\n\tright signature errors\t%4d\t%5d\n\ttotal bad blocks\t%4d\t%5d\n\ttotal blocks\t\t%4d\t%5d", data/ga-5.7.2/ma/ma.c:3661:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/memcpy.h:39: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. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/ga-5.7.2/ma/memcpy.h:39:32: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/ga-5.7.2/ma/memcpy.h:40:33: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memmove(d, s, n) bcopy ((s), (d), (n)) data/ga-5.7.2/ma/memcpy.h:45: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. ((void)memcpy((char *)(to), (char *)(from), (int)(nbytes))) data/ga-5.7.2/ma/table.c:105:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/table.c:152:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/table.c:246:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/table.c:253:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(ma_ebuf, data/ga-5.7.2/ma/testc.c:146:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[81]; /* string buffer */ data/ga-5.7.2/pario/dra/bign.c:107: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 filename[80]; data/ga-5.7.2/pario/dra/bign.c:166: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 (! (fd = fopen(filename,"w"))) { data/ga-5.7.2/pario/dra/bign.c:168:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! (fd = fopen(filename,"w"))) { data/ga-5.7.2/pario/dra/bign.c:169:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[60]; data/ga-5.7.2/pario/dra/bign.c:170:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(msg, "Could not open file :: "); data/ga-5.7.2/pario/dra/buffers.c:55:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ctxt->buf[i].buffer = (char *) buffers[i]; data/ga-5.7.2/pario/dra/dbg_read.c:31:12: [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). type = atoi(argv[2]); data/ga-5.7.2/pario/dra/dbg_read.c:32:12: [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). from = atoi(argv[3]); data/ga-5.7.2/pario/dra/dbg_read.c:33:12: [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). to = atoi(argv[4]); data/ga-5.7.2/pario/dra/dbg_write.c:31:12: [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). type = atoi(argv[2]); data/ga-5.7.2/pario/dra/dbg_write.c:32:12: [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). from = atoi(argv[3]); data/ga-5.7.2/pario/dra/dbg_write.c:33:12: [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). to = atoi(argv[4]); data/ga-5.7.2/pario/dra/disk.arrays.c:369:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy_fname[DRA_MAX_FNAME]; data/ga-5.7.2/pario/dra/disk.param.c:32: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 param_filename[MAX_HD_NAME_LEN]; data/ga-5.7.2/pario/dra/disk.param.c:81: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 param_filename[MAX_HD_NAME_LEN]; data/ga-5.7.2/pario/dra/disk.param.c:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[HDLEN]; data/ga-5.7.2/pario/dra/disk.param.c:100:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fd=fopen(param_filename,"r"))){ data/ga-5.7.2/pario/dra/disk.param.c:153: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 param_filename[MAX_HD_NAME_LEN]; data/ga-5.7.2/pario/dra/disk.param.c:168:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(! (fd = fopen(param_filename,"w")) ) { data/ga-5.7.2/pario/dra/disk.param.c:169:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[MAX_HD_NAME_LEN*2]; data/ga-5.7.2/pario/dra/disk.param.c:170:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(message,"dai_write_param:open failed :: "); data/ga-5.7.2/pario/dra/disk.param.c:209: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 param_filename[MAX_HD_NAME_LEN]; data/ga-5.7.2/pario/dra/dra2arviz.c:29:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1024], fname[1024]; data/ga-5.7.2/pario/dra/dra2arviz.c:61: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). ilo = atoi(argv[2]); ihi = atoi(argv[3]); data/ga-5.7.2/pario/dra/dra2arviz.c:61: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). ilo = atoi(argv[2]); ihi = atoi(argv[3]); data/ga-5.7.2/pario/dra/dra2arviz.c:62: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). jlo = atoi(argv[4]); jhi = atoi(argv[5]); data/ga-5.7.2/pario/dra/dra2arviz.c:62: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). jlo = atoi(argv[4]); jhi = atoi(argv[5]); data/ga-5.7.2/pario/dra/drap.h:37:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[DRA_MAX_NAME+8]; /**< array name */ data/ga-5.7.2/pario/dra/drap.h:38:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[DRA_MAX_FNAME+8]; /**< metafile name */ data/ga-5.7.2/pario/dra/env.c:32: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). val = atoi(str); data/ga-5.7.2/pario/dra/fortran.c:15: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 cname[DRA_MAX_NAME+1], cfilename[DRA_MAX_FNAME+1]; data/ga-5.7.2/pario/dra/ntestc.c:66:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[200], fname[200]; data/ga-5.7.2/pario/dra/ntestc.c:67:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[80]; data/ga-5.7.2/pario/dra/ntestc.c:232:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[200]; data/ga-5.7.2/pario/dra/perfn.c:92: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 (! (fd = fopen(result, "w"))) { data/ga-5.7.2/pario/dra/perfn.c:94:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! (fd = fopen(result, "w"))) { data/ga-5.7.2/pario/dra/perfn.c:152: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 filename[80], filename1[80]; data/ga-5.7.2/pario/dra/rate.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 filename[80]; data/ga-5.7.2/pario/dra/rate.c:191: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 (! (fd = fopen(filename, "w"))) { data/ga-5.7.2/pario/dra/rate.c:193:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! (fd = fopen(filename, "w"))) { data/ga-5.7.2/pario/eaf/eaf.c:271:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char*)file[fd].pointer)+(long)offset, buf, bytes); data/ga-5.7.2/pario/eaf/eaf.c:313:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char*)file[fd].pointer)+(long)offset, buf, bytes); data/ga-5.7.2/pario/eaf/eaf.c:345:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, ((char*)file[fd].pointer)+(long)offset, bytes); data/ga-5.7.2/pario/eaf/eaf.c:384:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(file[fd].pointer, buf, bytes); data/ga-5.7.2/pario/eaf/eaf.c:506: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 dirname[PATH_MAX]; data/ga-5.7.2/pario/eaf/eaf.c:516:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fstype, "UFS"); data/ga-5.7.2/pario/eaf/eaf.c:518:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fstype, "PFS"); data/ga-5.7.2/pario/eaf/eaf.c:520:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fstype, "PIOFS"); data/ga-5.7.2/pario/eaf/eaf.c:522:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fstype, "UNKNOWN"); data/ga-5.7.2/pario/eaf/eaf.c:545:16: [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. (void) strcpy(msg, "OK"); data/ga-5.7.2/pario/eaf/eaf.c:547:16: [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. (void) strcpy(msg, "end of file"); data/ga-5.7.2/pario/eaf/eaf.c:549:16: [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. (void) strcpy(msg, "too many open files"); data/ga-5.7.2/pario/eaf/eaf.c:551:16: [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. (void) strcpy(msg, "memory allocation failed"); data/ga-5.7.2/pario/eaf/eaf.c:553:16: [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. (void) strcpy(msg, "failed opening file"); data/ga-5.7.2/pario/eaf/eaf.c:555:16: [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. (void) strcpy(msg, "failed closing file"); data/ga-5.7.2/pario/eaf/eaf.c:557:16: [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. (void) strcpy(msg, "invalid file descriptor"); data/ga-5.7.2/pario/eaf/eaf.c:559:16: [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. (void) strcpy(msg, "write failed"); data/ga-5.7.2/pario/eaf/eaf.c:561:16: [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. (void) strcpy(msg, "asynchronous write failed"); data/ga-5.7.2/pario/eaf/eaf.c:563:16: [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. (void) strcpy(msg, "read failed"); data/ga-5.7.2/pario/eaf/eaf.c:565:16: [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. (void) strcpy(msg, "asynchronous read failed"); data/ga-5.7.2/pario/eaf/eaf.c:567:16: [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. (void) strcpy(msg, "wait failed"); data/ga-5.7.2/pario/eaf/eaf.c:569:16: [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. (void) strcpy(msg, "probe failed"); data/ga-5.7.2/pario/eaf/eaf.c:571:16: [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. (void) strcpy(msg, "unlink failed"); data/ga-5.7.2/pario/eaf/eaf.c:573:16: [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. (void) strcpy(msg, "unimplemented operation"); data/ga-5.7.2/pario/eaf/eaf.c:575:16: [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. (void) strcpy(msg, "stat failed"); data/ga-5.7.2/pario/eaf/eaf.c:577:16: [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. (void) strcpy(msg, "an argument string/buffer is too short"); data/ga-5.7.2/pario/eaf/eaf.c:579:16: [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. (void) strcpy(msg, "an argument string/buffer is too long"); data/ga-5.7.2/pario/eaf/eaf.c:581:16: [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. (void) strcpy(msg, "offset is not an integer"); data/ga-5.7.2/pario/eaf/eaf.c:583:16: [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. (void) strcpy(msg, "truncate failed"); data/ga-5.7.2/pario/eaf/eaf_f2c.c:160:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/ga-5.7.2/pario/eaf/eaf_f2c.c:175:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/ga-5.7.2/pario/eaf/eaf_f2c.c:200:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pbuf[1024]; data/ga-5.7.2/pario/eaf/eaf_f2c.c:201: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 fbuf[32]; data/ga-5.7.2/pario/eaf/eaf_f2c.c:223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80]; data/ga-5.7.2/pario/elio/elio.c:86: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). # define OPEN open data/ga-5.7.2/pario/elio/elio.c:196:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[ELIO_FILENAME_MAX]; data/ga-5.7.2/pario/elio/elio.c:203:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(fname+len,"x%3.3d",fd->extent+1); data/ga-5.7.2/pario/elio/elio.c:802: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 dirname[ELIO_FILENAME_MAX]; data/ga-5.7.2/pario/elio/elio.c:1016:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[ELIO_FILENAME_MAX]; data/ga-5.7.2/pario/elio/elio.c:1053:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(msg, ">OK"); data/ga-5.7.2/pario/elio/elio.c:1065:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *errtable[ERRLEN] ={ data/ga-5.7.2/pario/elio/eliop.h:149: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. extern char *errtable[ERRLEN]; data/ga-5.7.2/pario/elio/stat.c:50: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 char path[_MAX_PATH]; data/ga-5.7.2/pario/elio/stat.c:51: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 char drive[_MAX_DRIVE]; data/ga-5.7.2/pario/elio/stat.c:61:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char drive[4]="A:\\"; data/ga-5.7.2/pario/sf/sf_fortran.c:14: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 cname[MAX_NAME+1]; data/ga-5.7.2/pario/sf/sf_fortran.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80]; data/ga-5.7.2/pario/sf/shared.files.c:48:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[200]; data/ga-5.7.2/pario/sf/shared.files.c:322:16: [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. (void) strcpy(msg, "SF operation failed"); data/ga-5.7.2/tcgmsg/examples/grid.c:178: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. SND_(&type1, (char *) grid[1], &bnrows, &west, &synch); data/ga-5.7.2/tcgmsg/examples/grid.c:179: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. RCV_(&type2, (char *) grid[0], &bnrows, &lenmes, &west, data/ga-5.7.2/tcgmsg/examples/grid.c:183: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. SND_(&type3, (char *) grid[ncols-1], &bnrows, &east, &synch); data/ga-5.7.2/tcgmsg/examples/grid.c:184: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. RCV_(&type4, (char *) grid[ncols], &bnrows, &lenmes, &east, data/ga-5.7.2/tcgmsg/examples/grid.c:190: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. RCV_(&type1, (char *) grid[ncols], &bnrows, &lenmes, &east, data/ga-5.7.2/tcgmsg/examples/grid.c:192: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. SND_(&type2, (char *) grid[ncols-1], &bnrows, &east, &synch); data/ga-5.7.2/tcgmsg/examples/grid.c:195: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. RCV_(&type3, (char *) grid[0], &bnrows, &lenmes, &west, data/ga-5.7.2/tcgmsg/examples/grid.c:197: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. SND_(&type4, (char *) grid[1], &bnrows, &west, &synch); data/ga-5.7.2/tcgmsg/examples/grid.c:256:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(plot_file = fopen("plot","w+"))) data/ga-5.7.2/tcgmsg/examples/grid.c:656: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). *pniter = atoi(*++argv); data/ga-5.7.2/tcgmsg/examples/grid.c:658: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). *pngrid = atoi(*++argv); data/ga-5.7.2/tcgmsg/examples/grid.c:660: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). *pnprint = atoi(*++argv); data/ga-5.7.2/tcgmsg/examples/grid.c:662: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). *pnlevel = atoi(*++argv); data/ga-5.7.2/tcgmsg/fapi.c:188:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char arg[F2C_GETARG_ARGLEN_MAX]; data/ga-5.7.2/tcgmsg/tcgmsg-mpi/clustercheck.c:24: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 myname[HOSTNAME_LEN], rootname[HOSTNAME_LEN]; data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:203: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). if (!(file = fopen(filename, "w"))) { data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:244:24: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:250:24: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:256:24: [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. RECORD(sprintf(bufpt, ":TIME:%.2f", walltime())); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:263:24: [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. RECORD(sprintf(bufpt, ":MSG_LEN:%d", va_arg(ap, int))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:270:24: [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. RECORD(sprintf(bufpt, ":MSG_TO:%d", va_arg(ap, int))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:277:24: [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. RECORD(sprintf(bufpt, ":MSG_FROM:%d", va_arg(ap, int))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:284:24: [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. RECORD(sprintf(bufpt, ":MSG_TYPE:%d", va_arg(ap, int))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:291:24: [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. RECORD(sprintf(bufpt, ":MSG_SYNC:%d", va_arg(ap, int))); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evon.c:61:16: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(string, value, len); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evon.c:75:16: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(string, value, len); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evon.c:89:16: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(string, value, len); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/llog.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[12]; data/ga-5.7.2/tcgmsg/tcgmsg-mpi/llog.c:31:12: [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. (void) sprintf(name, "log.%03ld",NODEID_()); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/misc.c:13:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tcgmsg_err_string[ERR_STR_LEN]; data/ga-5.7.2/tcgmsg/tcgmsg-mpi/pfilecopy.c:53:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file = fopen(filename,"r")) == (FILE *) NULL) { data/ga-5.7.2/tcgmsg/tcgmsg-mpi/pfilecopy.c:84:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file = fopen(filename,"w+")) == (FILE *) NULL) { data/ga-5.7.2/tcgmsg/tcgmsg-mpi/pfilecopy.c:142:16: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) bcopy(fname, filename, len); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/tcgmsgP.h:59: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. extern char tcgmsg_err_string[ERR_STR_LEN]; data/ga-5.7.2/tcgmsg/tests/parse.c:113: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 filename[11]; data/ga-5.7.2/tcgmsg/tests/parse.c:125: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). lo = atoi(argv[1]); data/ga-5.7.2/tcgmsg/tests/parse.c:126: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). hi = atoi(argv[2]); data/ga-5.7.2/tcgmsg/tests/parse.c:153:16: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void) sprintf(filename, "events.%03d", nproc); data/ga-5.7.2/tcgmsg/tests/parse.c:155:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( !(file = fopen(filename, "r")) ) { data/ga-5.7.2/tcgmsg/tests/parse.c:178:16: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void) sprintf(filename, "events.%03d", i); data/ga-5.7.2/tcgmsg/tests/parse.c:180:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( !(file = fopen(filename, "r")) ) { data/ga-5.7.2/tcgmsg/tests/test.c:185:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; data/ga-5.7.2/tcgmsg/tests/test.c:199:24: [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. (void) sprintf(buf, "Hello to %ld from %ld", data/ga-5.7.2/tcgmsg/tests/test.c:489:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/ga-5.7.2/tcgmsg/tests/test.isend.c:176:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; data/ga-5.7.2/tcgmsg/tests/test.isend.c:190:24: [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. (void) sprintf(buf, "Hello to %ld from %ld", kode, NODEID_()); data/ga-5.7.2/tcgmsg/tests/test.isend.c:373: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 *source[N_ISEND_MSG], *dest[N_ISEND_MSG]; data/ga-5.7.2/tcgmsg/tests/test.isend.c:523:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/ga-5.7.2/tcgmsg/tests/test2.c:184:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; data/ga-5.7.2/tcgmsg/tests/test2.c:198:24: [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. (void) sprintf(buf, "Hello to %ld from %ld", kode, tcg_nodeid()); data/ga-5.7.2/tcgmsg/tests/test2.c:464:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/ga-5.7.2/tcgmsg/tests/test3.c:188:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; data/ga-5.7.2/tcgmsg/tests/test3.c:202:24: [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. (void) sprintf(buf, "Hello to %ld from %ld", data/ga-5.7.2/tcgmsg/tests/test3.c:485:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/ga-5.7.2/tcgmsg/tests/toplot.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[1024]; data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:111:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (exe_name[strlen(exe_name) - 2] == '.') /* remove .x */ data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:112: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). exe_name[strlen(exe_name) - 2] = 0; data/ga-5.7.2/armci/examples/features/concurrency/multidma/multidma.c:115:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = ((int)strlen(exe_name)) - 1, k = -1; i >= 0; i--) data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:106:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (exe_name[strlen(exe_name) - 2] == '.') /* remove .x */ data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:107: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). exe_name[strlen(exe_name) - 2] = 0; data/ga-5.7.2/armci/examples/features/non-blocking/overlap/overlap.c:110:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = ((int)strlen(exe_name)) - 1, k = -1; i >= 0; i--) data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:218:7: [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); data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:257:7: [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); data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:294:7: [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); data/ga-5.7.2/armci/examples/features/proc_affinity/computation_impact/computation_impact.c:330:7: [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); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:117:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:161: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). s += strlen(s)+1; data/ga-5.7.2/armci/src-gemini/clusterinfo.c:221: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). s += strlen(s)+1; data/ga-5.7.2/armci/src-gemini/clusterinfo.c:276:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len=strlen(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/armci/src-gemini/clusterinfo.c:276: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 len=strlen(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/armci/src-gemini/clusterinfo.c:281: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). first= tmp = calloc(strlen(haystack)+nlen-len+1+1,1); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:287:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). left = strlen(haystack); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:307: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* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:307:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:352:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tmp) >= MAX_HOSTNAME) data/ga-5.7.2/armci/src-gemini/clusterinfo.c:353:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). armci_die("armci: hostname too long",strlen(tmp)); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:358: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(name); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:363:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:396:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fprintf(stderr,"%d: %s len=%d\n",armci_me, name,(int)strlen(name)); data/ga-5.7.2/armci/src-gemini/clusterinfo.c:415: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=strlen(armci_clus_info[i].hostname); data/ga-5.7.2/armci/src-gemini/message.c:272:16: [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(1); data/ga-5.7.2/armci/src-gemini/shmlimit.c:110:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((val=read(fd[0],&y,sizeof(int)))<sizeof(int)) data/ga-5.7.2/armci/src-gemini/spinlock.h:194:13: [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(1); data/ga-5.7.2/armci/src-portals/clusterinfo.c:115:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/ga-5.7.2/armci/src-portals/clusterinfo.c:159: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). s += strlen(s)+1; data/ga-5.7.2/armci/src-portals/clusterinfo.c:219: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). s += strlen(s)+1; data/ga-5.7.2/armci/src-portals/clusterinfo.c:274:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len=strlen(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/armci/src-portals/clusterinfo.c:274: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 len=strlen(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/armci/src-portals/clusterinfo.c:279: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). first= tmp = calloc(strlen(haystack)+nlen-len+1+1,1); data/ga-5.7.2/armci/src-portals/clusterinfo.c:285:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). left = strlen(haystack); data/ga-5.7.2/armci/src-portals/clusterinfo.c:305: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* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/armci/src-portals/clusterinfo.c:305:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/armci/src-portals/clusterinfo.c:350:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tmp) >= MAX_HOSTNAME) data/ga-5.7.2/armci/src-portals/clusterinfo.c:351:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). armci_die("armci: hostname too long",strlen(tmp)); data/ga-5.7.2/armci/src-portals/clusterinfo.c:356: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(name); data/ga-5.7.2/armci/src-portals/clusterinfo.c:361:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ga-5.7.2/armci/src-portals/clusterinfo.c:394:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fprintf(stderr,"%d: %s len=%d\n",armci_me, name,(int)strlen(name)); data/ga-5.7.2/armci/src-portals/clusterinfo.c:413: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=strlen(armci_clus_info[i].hostname); data/ga-5.7.2/armci/src-portals/message.c:272:16: [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(1); data/ga-5.7.2/armci/src-portals/shmlimit.c:110:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((val=read(fd[0],&y,sizeof(int)))<sizeof(int)) data/ga-5.7.2/armci/src-portals/spinlock.h:194:13: [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(1); data/ga-5.7.2/armci/src/collectives/message.c:308:16: [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(1); data/ga-5.7.2/armci/src/common/clusterinfo.c:111:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/ga-5.7.2/armci/src/common/clusterinfo.c:155: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). s += strlen(s)+1; data/ga-5.7.2/armci/src/common/clusterinfo.c:199: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). s += strlen(s)+1; data/ga-5.7.2/armci/src/common/clusterinfo.c:260: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(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/armci/src/common/clusterinfo.c:260: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). size_t len=strlen(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/armci/src/common/clusterinfo.c:265: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). first= tmp = calloc(strlen(haystack)+nlen-len+1+1,1); data/ga-5.7.2/armci/src/common/clusterinfo.c:271:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). left = strlen(haystack); data/ga-5.7.2/armci/src/common/clusterinfo.c:291: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* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/armci/src/common/clusterinfo.c:291:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/armci/src/common/clusterinfo.c:337:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tmp) >= MAX_HOSTNAME) data/ga-5.7.2/armci/src/common/clusterinfo.c:338:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). armci_die("armci: hostname too long",strlen(tmp)); data/ga-5.7.2/armci/src/common/clusterinfo.c:343:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ga-5.7.2/armci/src/common/clusterinfo.c:349:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ga-5.7.2/armci/src/common/clusterinfo.c:383:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fprintf(stderr,"%d: %s len=%d\n",armci_me, name,(int)strlen(name)); data/ga-5.7.2/armci/src/common/clusterinfo.c:402: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=strlen(armci_clus_info[i].hostname); data/ga-5.7.2/armci/src/devices/lapi/lapi.c:736:19: [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. (void)usleep(5); data/ga-5.7.2/armci/src/devices/mpi-spawn/mpi2_client.c:390:14: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(hostname_arr[j++], &hostnames[k], MPI_MAX_PROCESSOR_NAME); data/ga-5.7.2/armci/src/devices/openib/openib.c:925:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tp_str, tp, i); data/ga-5.7.2/armci/src/devices/openib/openib.c:2171:24: [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. serverwcount=0;usleep(1); data/ga-5.7.2/armci/src/devices/openib/openib.c:5214:17: [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(1); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:350: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). sprintf((filename+strlen(filename)),"%d",armci_me); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:351: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). sprintf((filename+strlen(filename)),"%s","_"); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:352: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). sprintf(filename+strlen(filename),"%d",rid); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:354:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). armci_storage_record[rid].fileinfo.filename = malloc(sizeof(char)*strlen(filename)); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:385:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(line, tmpline, 256); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:911: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). sprintf((filename+strlen(filename)),"%d",armci_me); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:912: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). sprintf((filename+strlen(filename)),"%s","_"); data/ga-5.7.2/armci/src/ft/armci_chkpt.c:913: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). sprintf(filename+strlen(filename),"%d",rid); data/ga-5.7.2/armci/src/include/spinlock.h:194:13: [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(1); data/ga-5.7.2/armci/src/memory/shmlimit.c:128:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val=read(fd[0],&y,sizeof(int)); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:212: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). #define RECORD(A) {A; nchars = strlen(bufpt); bufpt += nchars; left -= nchars;} data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:324:9: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. RECORD(sprintf(bufpt, "\n")); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/evlog.c:342:12: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. RECORD(sprintf(bufpt, "\n")); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:69:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(argv[1]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:80: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). tmp = malloc((unsigned) (strlen(home) + len + 9)); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:82: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). (void) strcpy(tmp+strlen(home),"/pdir/"); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:83: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). (void) strcpy(tmp+strlen(home)+6,argv[1]); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:84: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). (void) strcpy(tmp+strlen(home)+6+len,".p"); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:110:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (char) (test = getc(fp)) != '\n') data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:134:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (status = getc(file)) != EOF) { data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:148:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (status = getc(file)) != EOF) { data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:220:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (gethostname(local_hostname, 256) || strlen(local_hostname) == 0) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/parallel.c:373:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (gethostname(hostname, sizeof hostname) || strlen(hostname) == 0) data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema.c:958:26: [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. if(count%1000 == 999)usleep(1); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/sema_macx.c:207:26: [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. if(count%1000 == 999)usleep(1); data/ga-5.7.2/armci/tcgmsg/ipcv4.0/snd.c:1041: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). lenbuf = strlen(cport) + 1; data/ga-5.7.2/armci/tcgmsg/ipcv5.0/async_send.c:82:13: [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(1); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:44: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). nchars = strlen(bufpt); \ data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:305:28: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. RECORD(sprintf(bufpt, "\n")); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/evlog.c:323:16: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. RECORD(sprintf(bufpt, "\n")); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/getmem.c:34:24: [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. ptemp = (double *) memalign(size, (unsigned) size* *pn); data/ga-5.7.2/armci/tcgmsg/ipcv5.0/nxtval.shm.c:69:28: [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. if(loop==maxloop){ usleep(1); loop=0; } data/ga-5.7.2/armci/tcgmsg/ipcv5.0/queues.c:125:13: [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(1); data/ga-5.7.2/armci/testing/te.c:41:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &tempch, 1) < 1) { data/ga-5.7.2/armci/testing/test_mt.c:367:16: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. cbufl += sprintf(cbuf + cbufl, "\n"); data/ga-5.7.2/armci/testing/test_mt.c:369:14: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. cbufl += sprintf(cbuf + cbufl, "\n"); data/ga-5.7.2/armci/testing/test_mt.c:396:16: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. tbufl += sprintf(tbuf + tbufl, "\n"); data/ga-5.7.2/armci/testing/test_mt.c:398:14: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. tbufl += sprintf(tbuf + tbufl, "\n"); data/ga-5.7.2/armci/testing/test_mt.c:418:16: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. int i, j, k, mismatch; data/ga-5.7.2/armci/testing/test_mt.c:419:22: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. for (i = 0, k = 0, mismatch; i < iters; i++) for (j = 0; j < asize; j++, k++) { data/ga-5.7.2/comex/src-armci/armci.c:54: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). namelen = strlen(buf_ptr); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:85:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:129: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). s += strlen(s)+1; data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:173: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). s += strlen(s)+1; data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:234: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(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:234: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). size_t len=strlen(needle), nlen=strlen(nail),bytes; data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:239: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). first= tmp = calloc(strlen(haystack)+nlen-len+1+1,1); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:245:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). left = strlen(haystack); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:265:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:265:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* tmp1 = calloc(strlen(host)+strlen(nail)+1,1); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:307:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tmp) >= MAX_HOSTNAME) data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:308:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). armci_die("armci: hostname too long",strlen(tmp)); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:313:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:319:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:353:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fprintf(stderr,"%d: %s len=%d\n",armci_me, name,(int)strlen(name)); data/ga-5.7.2/comex/src-dmapp/clusterinfo.c:369:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len=strlen(armci_clus_info[i].hostname); data/ga-5.7.2/gaf2c/gaf2c.c:25:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int clength = strlen(cstring); data/ga-5.7.2/global/X/xregion_colormap.c:65:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(string); data/ga-5.7.2/global/src/base.c:1499:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(array_name) > FNAM) data/ga-5.7.2/global/src/base.h:307: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). _l = strlen(str); \ data/ga-5.7.2/global/src/base.h:309: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). _l = strlen(err_string); \ data/ga-5.7.2/global/src/base.h:311: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). _l=strlen(err_string); \ data/ga-5.7.2/global/src/base.h:315: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). _l=strlen(err_string); \ data/ga-5.7.2/global/src/base.h:318: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). _l=strlen(err_string); \ data/ga-5.7.2/global/src/global.util.c:357:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(error_buffer,":"); data/ga-5.7.2/global/src/global.util.c:360:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(error_buffer,":"); data/ga-5.7.2/global/trace/adjust.c:182:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((distrdata = getc(fdistr)) != EOF) putc(distrdata, fout); data/ga-5.7.2/ma/ma.c:1793:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(to, from, maxchars); data/ga-5.7.2/ma/string-util.c:99:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(s); data/ga-5.7.2/ma/string-util.c:108:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (length == strlen(slist[i])) data/ga-5.7.2/ma/testc.c:160:13: [1] (buffer) scanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (scanf("%80s", s) != 1) data/ga-5.7.2/ma/testc.c:181:21: [1] (buffer) scanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (scanf("%d %d %80s", &ii1, &ii2, s) != 3) data/ga-5.7.2/ma/testc.c:191:21: [1] (buffer) scanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (scanf("%d %d %80s", &ii1, &ii2, s) != 3) data/ga-5.7.2/ma/testc.c:301:21: [1] (buffer) scanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (scanf("%d %d %80s", &ii1, &ii2, s) != 3) data/ga-5.7.2/ma/testc.c:311:21: [1] (buffer) scanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (scanf("%d %d %80s", &ii1, &ii2, s) != 3) data/ga-5.7.2/pario/dra/disk.arrays.c:902:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (DRA[handle].fname, filename, DRA_MAX_FNAME); data/ga-5.7.2/pario/dra/disk.arrays.c:2183: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(filename)>DRA_MAX_FNAME) data/ga-5.7.2/pario/dra/disk.arrays.c:2210:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (DRA[handle].fname, filename, DRA_MAX_FNAME); data/ga-5.7.2/pario/dra/disk.arrays.c:2211:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(DRA[handle].name, name, DRA_MAX_NAME ); data/ga-5.7.2/pario/dra/disk.arrays.c:2310: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(filename)>DRA_MAX_FNAME) data/ga-5.7.2/pario/dra/disk.arrays.c:2335:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (DRA[handle].fname, filename, DRA_MAX_FNAME); data/ga-5.7.2/pario/dra/disk.arrays.c:2336:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(DRA[handle].name, name, DRA_MAX_NAME ); data/ga-5.7.2/pario/dra/disk.param.c:43:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(filename); data/ga-5.7.2/pario/dra/disk.param.c:94:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(filename); data/ga-5.7.2/pario/dra/disk.param.c:162:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(filename); data/ga-5.7.2/pario/dra/disk.param.c:218:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(filename); data/ga-5.7.2/pario/dra/patch.util.c:23:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. Integer mismatch; data/ga-5.7.2/pario/dra/patch.util.c:31:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(mismatch)return(FALSE); data/ga-5.7.2/pario/eaf/eaf.c:721: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). oldfname = malloc((unsigned) (strlen(file[fd].fname))); data/ga-5.7.2/pario/elio/elio.c:82:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define READ read data/ga-5.7.2/pario/elio/elio.c:201: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(fname); data/ga-5.7.2/pario/elio/elio.c:599:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SYNC_EMULATE(read); data/ga-5.7.2/pario/elio/elio.c:621:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SYNC_EMULATE(read); data/ga-5.7.2/pario/elio/stat.c:22: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 flen = strlen(fname); data/ga-5.7.2/pario/elio/stat.c:33:16: [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. if(flen==0)strcpy(dirname,"."); data/ga-5.7.2/pario/elio/stat.c:34:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). else {strncpy(dirname, fname, flen); dirname[flen]=(char)0;} data/ga-5.7.2/tcgmsg/capi.c:41: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). DGOP_(&atype, ax, &an, op, strlen(op)); data/ga-5.7.2/tcgmsg/capi.c:66: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). IGOP_(&atype, ax, &an, op, strlen(op)); data/ga-5.7.2/tcgmsg/examples/getmem.c:6:15: [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 char * memalign(); data/ga-5.7.2/tcgmsg/examples/getmem.c:32:22: [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. ptemp = (double *) memalign(size, (unsigned) size* *pn); data/ga-5.7.2/tcgmsg/fapi.c:71: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). DGOP_(&atype, ax, &an, op, strlen(op)); data/ga-5.7.2/tcgmsg/fapi.c:96: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). IGOP_(&atype, ax, &an, op, strlen(op)); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/clustercheck.c:46: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(myname); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:41: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). nchars = strlen(bufpt); \ data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:322:28: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. RECORD(sprintf(bufpt, "\n")); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/evlog.c:340:16: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. RECORD(sprintf(bufpt, "\n")); data/ga-5.7.2/tcgmsg/tcgmsg-mpi/tcgmsgP.h:64:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int _tot_len, _len = TCG_MIN(ERR_STR_LEN, strlen(_str));\ data/ga-5.7.2/tcgmsg/tcgmsg-mpi/tcgmsgP.h:65:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tcgmsg_err_string, _str, _len);\ data/ga-5.7.2/tcgmsg/tests/parse.c:36:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (input = getc(file)) != EOF ) { data/ga-5.7.2/tcgmsg/tests/test.c:274:23: [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. list_i = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test.c:283:23: [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. list_j = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test.c:292:23: [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. list_n = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test.isend.c:260:23: [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. list_i = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test.isend.c:269:23: [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. list_j = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test.isend.c:278:23: [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. list_n = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test2.c:268:23: [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. list_i = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test2.c:277:23: [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. list_j = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test2.c:286:23: [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. list_n = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test3.c:278:23: [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. list_i = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test3.c:287:23: [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. list_j = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/test3.c:296:23: [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. list_n = (long *) memalign(sizeof(long), (unsigned) lenbuf); data/ga-5.7.2/tcgmsg/tests/toplot.c:69:21: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (test = getchar()) != EOF ) { ANALYSIS SUMMARY: Hits = 1686 Lines analyzed = 309689 in approximately 8.44 seconds (36679 lines/second) Physical Source Lines of Code (SLOC) = 227933 Hits@level = [0] 6307 [1] 189 [2] 1095 [3] 140 [4] 262 [5] 0 Hits@level+ = [0+] 7993 [1+] 1686 [2+] 1497 [3+] 402 [4+] 262 [5+] 0 Hits/KSLOC@level+ = [0+] 35.0673 [1+] 7.39691 [2+] 6.56772 [3+] 1.76368 [4+] 1.14946 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.