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/aces3-3.0.8/config.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/acescore/aces_com_machsp.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/acescore/aces_malloc.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/acescore/include/acescore.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/acescore/include/jobarc.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/acescore/include/lists.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/aces.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/blas.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/const.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/cvwecp.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/disttype.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/f77_name.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/f_types.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/flags.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/iachar.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/listnum.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/matx.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpi.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpi_errno.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpi_fortdefs.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpidefs.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpif.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpio.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/parallel_aces.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_precious.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/old/fortran_strncasecmp.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/old/fortran_strpbrk_core.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/errmsg.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/a3time.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/bwchdir.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/icopy.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/errmsg.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/a3time.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/bwchdir.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/icopy.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/timer.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/timer.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/archive/dxpose_513.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/archive/quicksort.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/bufferlines.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_abort.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_adr.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_atof.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_atol.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_exit.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_free.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_gtod.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_malloc.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_memmove.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_memset.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_rutimes.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_sbrk.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_strerror.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_strncasecmp.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_system.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/cd_nodename.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/cd_noderank.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/dmat_xpose.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/dnormsqr.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/dvec_cshift.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/dzero.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/f_remove_core.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/f_strpbrk_core.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/flushout.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/icopy.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/ignorefpe.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/izero.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/nan_abort.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/test/main.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/tools.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/wallclock.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/xshift.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/c_exit.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/c_memmove.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/c_memset.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/c_strncasecmp.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/f_strpbrk_core.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/icopy.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/include/flags.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/include/iachar.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/include/jobarc.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/c_adr.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/c_system.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_precious.h Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/aces_malloc.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/f_remove_core.c Examining data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/c_free.c Examining data/aces3-3.0.8/src/aces/aces_library/special_directory/ecp/dzero.c Examining data/aces3-3.0.8/src/aces/aces_library/special_directory/nlo/output_files.h Examining data/aces3-3.0.8/src/main/c_exit.c Examining data/aces3-3.0.8/src/main/sumz.c Examining data/aces3-3.0.8/src/sia/framelib/c_flush_stdout.c Examining data/aces3-3.0.8/src/sia/framelib/c_line_parse.c Examining data/aces3-3.0.8/src/sia/framelib/c_timer.c Examining data/aces3-3.0.8/src/sia/framelib/check_malloc.c Examining data/aces3-3.0.8/src/sia/framelib/convert_to_base_index.c Examining data/aces3-3.0.8/src/sia/framelib/get_physmem.c Examining data/aces3-3.0.8/src/sia/framelib/top_mem_free.c Examining data/aces3-3.0.8/src/sia/include/F12.h Examining data/aces3-3.0.8/src/sia/include/F12_1el_type.h Examining data/aces3-3.0.8/src/sia/include/F12_gr.h Examining data/aces3-3.0.8/src/sia/include/batch_table.h Examining data/aces3-3.0.8/src/sia/include/blkmgr.h Examining data/aces3-3.0.8/src/sia/include/block_index.h Examining data/aces3-3.0.8/src/sia/include/blockdata_list.h Examining data/aces3-3.0.8/src/sia/include/c_timer.h Examining data/aces3-3.0.8/src/sia/include/checkpoint_data.h Examining data/aces3-3.0.8/src/sia/include/company.h Examining data/aces3-3.0.8/src/sia/include/context.h Examining data/aces3-3.0.8/src/sia/include/cstype.h Examining data/aces3-3.0.8/src/sia/include/daveom.h Examining data/aces3-3.0.8/src/sia/include/dbugcom.h Examining data/aces3-3.0.8/src/sia/include/dropmo.h Examining data/aces3-3.0.8/src/sia/include/eominit.h Examining data/aces3-3.0.8/src/sia/include/epsilon.h Examining data/aces3-3.0.8/src/sia/include/erd_dbug.h Examining data/aces3-3.0.8/src/sia/include/f77_name.h Examining data/aces3-3.0.8/src/sia/include/f_types.h Examining data/aces3-3.0.8/src/sia/include/fmo.h Examining data/aces3-3.0.8/src/sia/include/frag_def.h Examining data/aces3-3.0.8/src/sia/include/hess.h Examining data/aces3-3.0.8/src/sia/include/int_gen_parms.h Examining data/aces3-3.0.8/src/sia/include/interpreter.h Examining data/aces3-3.0.8/src/sia/include/machine_types.h Examining data/aces3-3.0.8/src/sia/include/maxdim.h Examining data/aces3-3.0.8/src/sia/include/mem.h Examining data/aces3-3.0.8/src/sia/include/mem_alloc.h Examining data/aces3-3.0.8/src/sia/include/parallel_info.h Examining data/aces3-3.0.8/src/sia/include/prefetch.h Examining data/aces3-3.0.8/src/sia/include/proto_defines.h Examining data/aces3-3.0.8/src/sia/include/proto_events.h Examining data/aces3-3.0.8/src/sia/include/proto_params.h Examining data/aces3-3.0.8/src/sia/include/proto_win.h Examining data/aces3-3.0.8/src/sia/include/pst.h Examining data/aces3-3.0.8/src/sia/include/pst_functions.h Examining data/aces3-3.0.8/src/sia/include/restrict_pardo.h Examining data/aces3-3.0.8/src/sia/include/run_aces.h Examining data/aces3-3.0.8/src/sia/include/saved_data.h Examining data/aces3-3.0.8/src/sia/include/scflindep.h Examining data/aces3-3.0.8/src/sia/include/server_delay.h Examining data/aces3-3.0.8/src/sia/include/server_monitor.h Examining data/aces3-3.0.8/src/sia/include/sheap.h Examining data/aces3-3.0.8/src/sia/include/sial_config_params.h Examining data/aces3-3.0.8/src/sia/include/symbolic_constants.h Examining data/aces3-3.0.8/src/sia/include/timerz.h Examining data/aces3-3.0.8/src/sia/include/typecheck.h Examining data/aces3-3.0.8/src/sia/include/where_table.h Examining data/aces3-3.0.8/src/sia/include/aces3_version.h Examining data/aces3-3.0.8/src/sia/include/mem_alloc_data.h Examining data/aces3-3.0.8/src/sia/manager/diskcall.c Examining data/aces3-3.0.8/src/sia/manager/server.h Examining data/aces3-3.0.8/src/sia/manager/server_ckpt_data.h Examining data/aces3-3.0.8/src/sia/manager/server_stat.h Examining data/aces3-3.0.8/src/sia/manager/server_struct.h Examining data/aces3-3.0.8/src/sia/manager/syscopy.c Examining data/aces3-3.0.8/src/sia/sip/include/c_blkmgr.h Examining data/aces3-3.0.8/src/sia/sip/include/cstype.h Examining data/aces3-3.0.8/src/sia/sip/include/scratchpad.h Examining data/aces3-3.0.8/src/sia/sip/include/server_barrier_data.h Examining data/aces3-3.0.8/src/sia/sip/include/sip_tables.h Examining data/aces3-3.0.8/src/sia/sip/include/trace.h Examining data/aces3-3.0.8/src/sia/sip/sip_instructions/c_blkmgr.c Examining data/aces3-3.0.8/src/sia/sip/sip_instructions/generate_scratch_filename.c Examining data/aces3-3.0.8/src/sia/sip/sip_instructions/pardo_timer.c Examining data/aces3-3.0.8/src/sia/sip_shared/c_getenv.c Examining data/aces3-3.0.8/src/sia/sip_shared/c_mem_free.c Examining data/aces3-3.0.8/src/sia/sip_shared/unmask_addr.c Examining data/aces3-3.0.8/src/sia/sip_shared/user_sub.c Examining data/aces3-3.0.8/src/sia/sip_shared/malloc_wrapper.c Examining data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/errorhl.h Examining data/aces3-3.0.8/src/sial_compiler/sial/instruct.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/instruct.h Examining data/aces3-3.0.8/src/sial_compiler/sial/interfacec.c Examining data/aces3-3.0.8/src/sial_compiler/sial/interfacec.h Examining data/aces3-3.0.8/src/sial_compiler/sial/interpret.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/interpret.h Examining data/aces3-3.0.8/src/sial_compiler/sial/interpretface.c Examining data/aces3-3.0.8/src/sial_compiler/sial/keywdcnt.h Examining data/aces3-3.0.8/src/sial_compiler/sial/lexical.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/lexical.h Examining data/aces3-3.0.8/src/sial_compiler/sial/parser_interface.h Examining data/aces3-3.0.8/src/sial_compiler/sial/qcarray.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/qcarray.h Examining data/aces3-3.0.8/src/sial_compiler/sial/sial.h Examining data/aces3-3.0.8/src/sial_compiler/sial/syntax.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/syntax.h Examining data/aces3-3.0.8/src/sial_compiler/sial/variable.cpp Examining data/aces3-3.0.8/src/sial_compiler/sial/variable.h Examining data/aces3-3.0.8/src/sial_compiler/sial/errorhl.cpp FINAL RESULTS: data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/aces.h:30:41: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. c M_TRACEBACK set to the call which gets a traceback if supported by data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:28:13: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. lsize = readlink(elink,prgname,99); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpif.h:30:61: [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. ! take the position that the poor users should get a better system, we data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/include/mpi/mpif.h:32: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. ! get a better system... data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1142: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(keyname+stublen,keydef+stublen+1); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1145: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(keyname,keydef); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:37: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(szSaveDir,F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:51:13: [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(szSaveDir,R_OK|W_OK|X_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:61:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(&szOld[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:67:13: [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(&szCmd[0])) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:77:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(&szCurrent[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:123:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(&szFile[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:129:21: [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(&szCmd[0])) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:145:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(&szOld[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:149:13: [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(&szCmd[0])) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:36: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(szBak,F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:40:13: [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(szBak,F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:49: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(szBak,R_OK|X_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:84:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(&szCmd[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:90:21: [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(&szCmd[0])) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/bwchdir.c:28:9: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. fscanf(f,"%s",mypath); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/bwchdir.c:28:9: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. fscanf(f,"%s",mypath); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_system.c:11:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. { return (f_int)system(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_system.c:14:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. { return (f_int)system(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_system.c:17:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. { return (f_int)system(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/cd_noderank.c:23: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(&szSymLink[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:37:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:40:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. gdb = popen(command,"r"); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:48: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,bt); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1173: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(keyname+stublen,keydef+stublen+1); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1176: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(keyname,keydef); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/c_system.c:27:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. { return (f_int)system(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/c_system.c:30:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. { return (f_int)system(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/c_system.c:33:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. { return (f_int)system(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:55: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(szSaveDir,F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:69:13: [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(szSaveDir,R_OK|W_OK|X_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:80:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(&szCurrent[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:83:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(&szOld[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:148:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(&szFile[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:174:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(&szOld[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:52: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(szBak,F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:56:13: [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(szBak,F_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:65: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(szBak,R_OK|X_OK)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:84:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(&szCmd[0],F_OK)) data/aces3-3.0.8/src/aces/aces_library/special_directory/nlo/output_files.h:5:30: [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 the host system interface module. data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:45:24: [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). case 3: strcpy(cval, &line[i]); /* character */ data/aces3-3.0.8/src/sia/framelib/top_mem_free.c:49:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system("top >mem.txt") != 0) data/aces3-3.0.8/src/sia/include/pst_functions.h:2:30: [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. c Convenience functions to access pst data. data/aces3-3.0.8/src/sia/manager/syscopy.c:40:5: [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. int system(char *cmd) data/aces3-3.0.8/src/sia/manager/syscopy.c:49:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(line, cmd); data/aces3-3.0.8/src/sia/sip/sip_instructions/generate_scratch_filename.c:31:9: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). cp = mktemp(template); data/aces3-3.0.8/src/sia/sip/sip_instructions/generate_scratch_filename.c:32: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(fn, cp); data/aces3-3.0.8/src/sia/sip/sip_instructions/generate_scratch_filename.c:34:4: [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(fn,extension); data/aces3-3.0.8/src/sia/sip_shared/c_getenv.c:36: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(value, cp); data/aces3-3.0.8/src/sia/sip_shared/user_sub.c:57: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(user_sub_names[nuser_sub-1], sub_name); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1326:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (cz=getenv(value)) data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1357:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (cz=getenv(value)) data/aces3-3.0.8/src/sia/include/cstype.h:5:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define InitializeCriticalSection(_mut_ptr_) \ data/aces3-3.0.8/src/sia/include/cstype.h:9:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define EnterCriticalSection(_mut_ptr_) \ data/aces3-3.0.8/src/sia/sip/include/cstype.h:5:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define InitializeCriticalSection(_mut_ptr_) \ data/aces3-3.0.8/src/sia/sip/include/cstype.h:9:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define EnterCriticalSection(_mut_ptr_) \ data/aces3-3.0.8/src/sia/sip_shared/c_getenv.c:33: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. cp = getenv(envvar); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:403:15: [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). pos = atol(value); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1104:38: [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). f_flags.ioppar[*index] = atol(value); /* initialize to an integer */ data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1161: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 keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1199:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1249:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *key, *value, kvpair[81]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1359:26: [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). f_int var = -1 + atol(key); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1445: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 keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1604: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 keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1651:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szJunk[32]; f_int lSize = sizeof(szJunk); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:26:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szSaveDir[80], szCmd[CMDLEN], szCurrent[CURLEN], szOld[OLDLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:101:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int i=0; char szBuf[BUFLEN], szFile[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:102:25: [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 *fpFILES = fopen("FILES","r"); /* check FILES for overrides */ data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:26:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szSaveDir[80], szCmd[CMDLEN], szBak[BAKLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:61:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int i=0; char szBuf[BUFLEN], szFile[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:62:25: [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 *fpFILES = fopen("FILES","r"); /* check FILES for overrides */ data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/bwchdir.c:19:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mypath[256]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/bwchdir.c:22: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 ((f=fopen("MPIDIRS","r"))==NULL) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/libr/old/icopy.c:32:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s2,s1,(size_t)(*length*sizeof(i))); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/bwchdir.c:19:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mypath[256]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/bwchdir.c:22: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 ((f=fopen("MPIDIRS","r"))==NULL) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/libr/old/icopy.c:32:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s2,s1,(size_t)(*length*sizeof(i))); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_atol.c:11:17: [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). { return (f_int)atol(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_atol.c:14:17: [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). { return (f_int)atol(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/c_atol.c:17:17: [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). { return (f_int)atol(str); } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/cd_noderank.c:13:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szSymLink[128]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:19:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bt[256]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:20:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[256]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c: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 prgname[256]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:22:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char elink[256]; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/tools/trapfpe.c:27: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(elink,"/proc/%i/file",pid); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:403:15: [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). pos = atol(value); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1135:38: [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). f_flags.ioppar[*index] = atol(value); /* initialize to an integer */ data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1192: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 keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1230:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1280:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *key, *value, kvpair[81]; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1390:26: [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). f_int var = -1 + atol(key); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1476: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 keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1635: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 keyname[MAX_KEY_LENGTH]; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1682:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szJunk[32]; f_int lSize = sizeof(szJunk); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szSaveDir[80], szCmd[CMDLEN], szCurrent[CURLEN], szOld[OLDLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:87: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 szFileOld[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:91:31: [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 * oldfile = fopen(szFileOld,"rb"); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:113:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szFileOld[FILLEN],szFileCur[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:118:27: [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 * oldfile = fopen(szFileCur,"rb"); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:142: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 szBuf[BUFLEN], szFile[FILLEN], szFileOut[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:153: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). FILE * infile = fopen(szFile,"rb"); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:154: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). FILE * outfile = fopen(szFileOut,"wb"); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:179:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szFileOld[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:183:27: [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 * oldfile = fopen(szFileOld,"rb"); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:42:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szSaveDir[80], szCmd[CMDLEN], szBak[BAKLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:77:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int i=0; char szBuf[BUFLEN], szFile[FILLEN], szFileBak[FILLEN]; data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:89:30: [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 * infile = fopen(szFileBak,"rb"); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:90:31: [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 * outfile = fopen(szFile,"wb"); data/aces3-3.0.8/src/main/sumz.c:1264:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tstr[41]; data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:57: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 cstr[100]; data/aces3-3.0.8/src/sia/framelib/top_mem_free.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[linesize]; data/aces3-3.0.8/src/sia/framelib/top_mem_free.c:55: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). memfile=fopen ("mem.txt", "r"); data/aces3-3.0.8/src/sia/manager/diskcall.c:65:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (*fh = open( (const char*)filename, O_CREAT|O_RDWR, S_IRUSR | data/aces3-3.0.8/src/sia/manager/diskcall.c:80:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (*fh = open( (const char*)filename, O_RDWR, S_IRUSR | data/aces3-3.0.8/src/sia/manager/diskcall.c:101:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (handle = open( (const char*)filename, O_RDWR, S_IRUSR | data/aces3-3.0.8/src/sia/manager/syscopy.c:149: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 buf[BUFSIZE]; data/aces3-3.0.8/src/sia/sip_shared/user_sub.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 user_sub_names[MAX_USER_SUB][MAX_USER_SUB_NAME]; data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char infilename[240]; data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp: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 outfilename[240]; data/aces3-3.0.8/src/sial_compiler/sial/interpret.cpp:78:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). infile.open(infilename); data/aces3-3.0.8/src/sial_compiler/sial/lexical.cpp:161:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]=""; data/aces3-3.0.8/src/sial_compiler/sial/lexical.cpp:209: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). intconst[intno]=atoi((const char *)temp); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1141:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(keyname,keydef,stublen); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1253:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(kvpair,kvpair0,81); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1269:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *s1 = value+strlen(value)-1; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1329:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cz) > 80) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1340:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cz = value+strlen(value)-1; data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/asv_ctl.c:1459:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(value); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:27:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if (!strncpy(szSaveDir,szSaveDirIn,80)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:107:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&szFile[0],coarse_precious[i],FILLEN); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_backup.c:118:23: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). { strncpy(&szFile[0],cz,FILLEN); i = 1; } data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:27:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if (!strncpy(szSaveDir,szSaveDirIn,80)) data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:67:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&szFile[0],coarse_precious[i],FILLEN); data/aces3-3.0.8/src/aces/aces_library/a2driver/a2util/joda/coarse_restore.c:78:23: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). { strncpy(&szFile[0],cz,FILLEN); i = 1; } data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1172:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(keyname,keydef,stublen); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1284:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(kvpair,kvpair0,81); data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1300:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *s1 = value+strlen(value)-1; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1360:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cz) > 80) data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1371:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cz = value+strlen(value)-1; data/aces3-3.0.8/src/aces/aces_library/a2driver/aces2/asv_ctl.c:1490:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(value); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:45:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if (!strncpy(szSaveDir,szSaveDirIn,80)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:147:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&szFile[0],coarse_precious[i],FILLEN); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_backup.c:163:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c=getc(infile))!=EOF) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:43:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if (!strncpy(szSaveDir,szSaveDirIn,80)) data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:82:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&szFile[0],coarse_precious[i],FILLEN); data/aces3-3.0.8/src/aces/aces_library/a2driver/geopt/coarse_restore.c:99:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c=getc(infile))!=EOF) data/aces3-3.0.8/src/main/sumz.c:231:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(sleep_time); data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:31:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = 0; i < strlen(line); i++) data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:35: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). while (i < strlen(line)) data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:62:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). while (istart < strlen(s)) data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:66: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). while (istart < strlen(s)) data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:75:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = iend+1; i < strlen(s); i++) data/aces3-3.0.8/src/sia/framelib/c_line_parse.c:83:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cstr, &s[istart], iend-istart+1); data/aces3-3.0.8/src/sia/manager/diskcall.c:239:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((read( fh, (char*)buffer, size*sizeof(double))) <0 ) data/aces3-3.0.8/src/sia/manager/diskcall.c:297:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((read( handle, (char*)buffer, size*sizeof(f_int))) <0 ) data/aces3-3.0.8/src/sia/manager/syscopy.c:48: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). line = (char *) malloc(strlen(cmd)+1); data/aces3-3.0.8/src/sia/manager/syscopy.c:170:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read( ihandle, (char*)buf, datasize); data/aces3-3.0.8/src/sia/sip/sip_instructions/generate_scratch_filename.c:33:4: [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(fn,"."); data/aces3-3.0.8/src/sia/sip_shared/c_getenv.c:37: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). *lenval = strlen(cp); data/aces3-3.0.8/src/sia/sip_shared/user_sub.c:55: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(sub_name) <= MAX_USER_SUB_NAME) data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:103:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len=strlen(argv[argnumber]); data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:104:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(outfilename, argv[argnumber], len); data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:130:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length=strlen(argv[argnumber]); data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:134:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(infilename, argv[argnumber], length); data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:155:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(outfilename, infilename, length-5); data/aces3-3.0.8/src/sial_compiler/compiler/sial.cpp:157:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat(outfilename, ".sio", 4); data/aces3-3.0.8/src/sial_compiler/sial/lexical.cpp:259: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). strsize=max(temp-psource, signed(strlen(keywords[i]))); ANALYSIS SUMMARY: Hits = 174 Lines analyzed = 33745 in approximately 1.61 seconds (20983 lines/second) Physical Source Lines of Code (SLOC) = 27850 Hits@level = [0] 399 [1] 45 [2] 67 [3] 7 [4] 53 [5] 2 Hits@level+ = [0+] 573 [1+] 174 [2+] 129 [3+] 62 [4+] 55 [5+] 2 Hits/KSLOC@level+ = [0+] 20.5745 [1+] 6.24776 [2+] 4.63196 [3+] 2.22621 [4+] 1.97487 [5+] 0.0718133 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.