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/linux-atm-2.5.1/src/arpd/arp.h Examining data/linux-atm-2.5.1/src/arpd/atmarp.c Examining data/linux-atm-2.5.1/src/arpd/atmarp.h Examining data/linux-atm-2.5.1/src/arpd/atmarpd.c Examining data/linux-atm-2.5.1/src/arpd/atmarpd.h Examining data/linux-atm-2.5.1/src/arpd/io.h Examining data/linux-atm-2.5.1/src/arpd/itf.h Examining data/linux-atm-2.5.1/src/arpd/table.h Examining data/linux-atm-2.5.1/src/arpd/io.c Examining data/linux-atm-2.5.1/src/arpd/table.c Examining data/linux-atm-2.5.1/src/arpd/arp.c Examining data/linux-atm-2.5.1/src/arpd/itf.c Examining data/linux-atm-2.5.1/src/br2684/br2684ctl.c Examining data/linux-atm-2.5.1/src/debug/delay.c Examining data/linux-atm-2.5.1/src/debug/dnstest.c Examining data/linux-atm-2.5.1/src/debug/ed.c Examining data/linux-atm-2.5.1/src/debug/svctor.c Examining data/linux-atm-2.5.1/src/debug/znth.c Examining data/linux-atm-2.5.1/src/ilmid/actions.c Examining data/linux-atm-2.5.1/src/ilmid/actions.h Examining data/linux-atm-2.5.1/src/ilmid/atmf_uni.c Examining data/linux-atm-2.5.1/src/ilmid/atmf_uni.h Examining data/linux-atm-2.5.1/src/ilmid/ilmid.c Examining data/linux-atm-2.5.1/src/ilmid/ilmid.h Examining data/linux-atm-2.5.1/src/ilmid/ilmidiag.c Examining data/linux-atm-2.5.1/src/ilmid/io.c Examining data/linux-atm-2.5.1/src/ilmid/io.h Examining data/linux-atm-2.5.1/src/ilmid/message.c Examining data/linux-atm-2.5.1/src/ilmid/message.h Examining data/linux-atm-2.5.1/src/ilmid/mib.c Examining data/linux-atm-2.5.1/src/ilmid/mib.h Examining data/linux-atm-2.5.1/src/ilmid/rfc1155_smi.c Examining data/linux-atm-2.5.1/src/ilmid/rfc1155_smi.h Examining data/linux-atm-2.5.1/src/ilmid/rfc1157_snmp.c Examining data/linux-atm-2.5.1/src/ilmid/rfc1157_snmp.h Examining data/linux-atm-2.5.1/src/ilmid/states.c Examining data/linux-atm-2.5.1/src/ilmid/states.h Examining data/linux-atm-2.5.1/src/ilmid/sysgroup.c Examining data/linux-atm-2.5.1/src/ilmid/sysgroup.h Examining data/linux-atm-2.5.1/src/ilmid/util.c Examining data/linux-atm-2.5.1/src/ilmid/util.h Examining data/linux-atm-2.5.1/src/ilmid/wait.c Examining data/linux-atm-2.5.1/src/ilmid/wait.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_bits.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_bits.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_config.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_incl.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_int.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_len.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_len.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_list.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_list.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_null.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_null.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_octs.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_octs.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_oid.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_tag.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_tag.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/exp_buf.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/exp_buf.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/min_buf.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/nibble_alloc.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/nibble_alloc.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/print.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/print.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/sbuf.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/str_stk.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/str_stk.h Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_int.c Examining data/linux-atm-2.5.1/src/ilmid/asn1/asn_oid.c Examining data/linux-atm-2.5.1/src/include/atm.h Examining data/linux-atm-2.5.1/src/include/atmd.h Examining data/linux-atm-2.5.1/src/include/atmsap.h Examining data/linux-atm-2.5.1/src/lane/atm_lecs.c Examining data/linux-atm-2.5.1/src/lane/atm_lecs.h Examining data/linux-atm-2.5.1/src/lane/connect.h Examining data/linux-atm-2.5.1/src/lane/db.c Examining data/linux-atm-2.5.1/src/lane/db.h Examining data/linux-atm-2.5.1/src/lane/dump.c Examining data/linux-atm-2.5.1/src/lane/dump.h Examining data/linux-atm-2.5.1/src/lane/events.c Examining data/linux-atm-2.5.1/src/lane/events.h Examining data/linux-atm-2.5.1/src/lane/lane.c Examining data/linux-atm-2.5.1/src/lane/lane.h Examining data/linux-atm-2.5.1/src/lane/lane_atm.h Examining data/linux-atm-2.5.1/src/lane/ldb.c Examining data/linux-atm-2.5.1/src/lane/ldb.h Examining data/linux-atm-2.5.1/src/lane/lecs.h Examining data/linux-atm-2.5.1/src/lane/lecs_db.h Examining data/linux-atm-2.5.1/src/lane/lecs_load.c Examining data/linux-atm-2.5.1/src/lane/lecs_load.h Examining data/linux-atm-2.5.1/src/lane/load.c Examining data/linux-atm-2.5.1/src/lane/load.h Examining data/linux-atm-2.5.1/src/lane/load_lex.h Examining data/linux-atm-2.5.1/src/lane/mem.c Examining data/linux-atm-2.5.1/src/lane/mem.h Examining data/linux-atm-2.5.1/src/lane/mem_lecs.c Examining data/linux-atm-2.5.1/src/lane/mem_lecs.h Examining data/linux-atm-2.5.1/src/lane/packet.c Examining data/linux-atm-2.5.1/src/lane/packet.h Examining data/linux-atm-2.5.1/src/lane/timers.c Examining data/linux-atm-2.5.1/src/lane/timers.h Examining data/linux-atm-2.5.1/src/lane/units.c Examining data/linux-atm-2.5.1/src/lane/units.h Examining data/linux-atm-2.5.1/src/lane/connect.c Examining data/linux-atm-2.5.1/src/lane/connect_bus.c Examining data/linux-atm-2.5.1/src/lane/lane_atm.c Examining data/linux-atm-2.5.1/src/lane/lecs.c Examining data/linux-atm-2.5.1/src/led/address.c Examining data/linux-atm-2.5.1/src/led/address.h Examining data/linux-atm-2.5.1/src/led/conn.c Examining data/linux-atm-2.5.1/src/led/conn.h Examining data/linux-atm-2.5.1/src/led/display.c Examining data/linux-atm-2.5.1/src/led/display.h Examining data/linux-atm-2.5.1/src/led/frame_defs.h Examining data/linux-atm-2.5.1/src/led/frames.c Examining data/linux-atm-2.5.1/src/led/frames.h Examining data/linux-atm-2.5.1/src/led/join.c Examining data/linux-atm-2.5.1/src/led/join.h Examining data/linux-atm-2.5.1/src/led/kernel.c Examining data/linux-atm-2.5.1/src/led/kernel.h Examining data/linux-atm-2.5.1/src/led/lec.h Examining data/linux-atm-2.5.1/src/led/main.c Examining data/linux-atm-2.5.1/src/lib/atm2text.c Examining data/linux-atm-2.5.1/src/lib/atmequal.c Examining data/linux-atm-2.5.1/src/lib/atmres.h Examining data/linux-atm-2.5.1/src/lib/common.c Examining data/linux-atm-2.5.1/src/lib/diag.c Examining data/linux-atm-2.5.1/src/lib/kptr.c Examining data/linux-atm-2.5.1/src/lib/misc.c Examining data/linux-atm-2.5.1/src/lib/qos2text.c Examining data/linux-atm-2.5.1/src/lib/qosequal.c Examining data/linux-atm-2.5.1/src/lib/sap2text.c Examining data/linux-atm-2.5.1/src/lib/sapequal.c Examining data/linux-atm-2.5.1/src/lib/text2atm.c Examining data/linux-atm-2.5.1/src/lib/text2ip.c Examining data/linux-atm-2.5.1/src/lib/text2qos.c Examining data/linux-atm-2.5.1/src/lib/text2sap.c Examining data/linux-atm-2.5.1/src/lib/timer.c Examining data/linux-atm-2.5.1/src/lib/ans.c Examining data/linux-atm-2.5.1/src/lib/sdu2cell.c Examining data/linux-atm-2.5.1/src/lib/unix.c Examining data/linux-atm-2.5.1/src/maint/atmaddr.c Examining data/linux-atm-2.5.1/src/maint/atmdiag.c Examining data/linux-atm-2.5.1/src/maint/atmloop.c Examining data/linux-atm-2.5.1/src/maint/enitune.c Examining data/linux-atm-2.5.1/src/maint/esi.c Examining data/linux-atm-2.5.1/src/maint/nstune.c Examining data/linux-atm-2.5.1/src/maint/sonetdiag.c Examining data/linux-atm-2.5.1/src/maint/zntune.c Examining data/linux-atm-2.5.1/src/maint/atmtcp.c Examining data/linux-atm-2.5.1/src/maint/hediag.c Examining data/linux-atm-2.5.1/src/maint/atmdump.c Examining data/linux-atm-2.5.1/src/maint/saaldump.c Examining data/linux-atm-2.5.1/src/mpoad/get_vars.c Examining data/linux-atm-2.5.1/src/mpoad/get_vars.h Examining data/linux-atm-2.5.1/src/mpoad/id_list.c Examining data/linux-atm-2.5.1/src/mpoad/io.h Examining data/linux-atm-2.5.1/src/mpoad/k_interf.c Examining data/linux-atm-2.5.1/src/mpoad/k_interf.h Examining data/linux-atm-2.5.1/src/mpoad/lecs.c Examining data/linux-atm-2.5.1/src/mpoad/lecs.h Examining data/linux-atm-2.5.1/src/mpoad/main.c Examining data/linux-atm-2.5.1/src/mpoad/p_factory.c Examining data/linux-atm-2.5.1/src/mpoad/p_recogn.c Examining data/linux-atm-2.5.1/src/mpoad/packets.h Examining data/linux-atm-2.5.1/src/mpoad/poll2select.c Examining data/linux-atm-2.5.1/src/mpoad/poll2select.h Examining data/linux-atm-2.5.1/src/mpoad/tag_list.c Examining data/linux-atm-2.5.1/src/mpoad/io.c Examining data/linux-atm-2.5.1/src/oamd/atmoamd.c Examining data/linux-atm-2.5.1/src/oamd/crc10.c Examining data/linux-atm-2.5.1/src/oamd/crc10.h Examining data/linux-atm-2.5.1/src/oamd/io.c Examining data/linux-atm-2.5.1/src/oamd/io.h Examining data/linux-atm-2.5.1/src/oamd/oam.c Examining data/linux-atm-2.5.1/src/oamd/oam.h Examining data/linux-atm-2.5.1/src/q2931/header.c Examining data/linux-atm-2.5.1/src/q2931/op.h Examining data/linux-atm-2.5.1/src/q2931/qlib.c Examining data/linux-atm-2.5.1/src/q2931/qlib.h Examining data/linux-atm-2.5.1/src/q2931/qtest.c Examining data/linux-atm-2.5.1/src/q2931/uni.h Examining data/linux-atm-2.5.1/src/qgen/common.c Examining data/linux-atm-2.5.1/src/qgen/common.h Examining data/linux-atm-2.5.1/src/qgen/file.c Examining data/linux-atm-2.5.1/src/qgen/file.h Examining data/linux-atm-2.5.1/src/qgen/first.c Examining data/linux-atm-2.5.1/src/qgen/qgen.c Examining data/linux-atm-2.5.1/src/qgen/qgen.h Examining data/linux-atm-2.5.1/src/qgen/second.c Examining data/linux-atm-2.5.1/src/qgen/third.c Examining data/linux-atm-2.5.1/src/saal/pdu.c Examining data/linux-atm-2.5.1/src/saal/pdu.h Examining data/linux-atm-2.5.1/src/saal/queue.c Examining data/linux-atm-2.5.1/src/saal/queue.h Examining data/linux-atm-2.5.1/src/saal/saal.c Examining data/linux-atm-2.5.1/src/saal/saal.h Examining data/linux-atm-2.5.1/src/saal/sscf.c Examining data/linux-atm-2.5.1/src/saal/sscf.h Examining data/linux-atm-2.5.1/src/saal/sscop.c Examining data/linux-atm-2.5.1/src/saal/sscop.h Examining data/linux-atm-2.5.1/src/sigd/atmsigd.c Examining data/linux-atm-2.5.1/src/sigd/io.h Examining data/linux-atm-2.5.1/src/sigd/kernel.c Examining data/linux-atm-2.5.1/src/sigd/policy.c Examining data/linux-atm-2.5.1/src/sigd/policy.h Examining data/linux-atm-2.5.1/src/sigd/proto.c Examining data/linux-atm-2.5.1/src/sigd/proto.h Examining data/linux-atm-2.5.1/src/sigd/sap.c Examining data/linux-atm-2.5.1/src/sigd/sap.h Examining data/linux-atm-2.5.1/src/sigd/timeout.c Examining data/linux-atm-2.5.1/src/sigd/timeout.h Examining data/linux-atm-2.5.1/src/sigd/trace.c Examining data/linux-atm-2.5.1/src/sigd/trace.h Examining data/linux-atm-2.5.1/src/sigd/uni.c Examining data/linux-atm-2.5.1/src/sigd/io.c Examining data/linux-atm-2.5.1/src/switch/control.c Examining data/linux-atm-2.5.1/src/switch/dispatch.c Examining data/linux-atm-2.5.1/src/switch/dispatch.h Examining data/linux-atm-2.5.1/src/switch/fab.h Examining data/linux-atm-2.5.1/src/switch/proto.c Examining data/linux-atm-2.5.1/src/switch/proto.h Examining data/linux-atm-2.5.1/src/switch/relay.c Examining data/linux-atm-2.5.1/src/switch/route.c Examining data/linux-atm-2.5.1/src/switch/route.h Examining data/linux-atm-2.5.1/src/switch/sig.c Examining data/linux-atm-2.5.1/src/switch/sig.h Examining data/linux-atm-2.5.1/src/switch/swc.c Examining data/linux-atm-2.5.1/src/switch/swc.h Examining data/linux-atm-2.5.1/src/switch/debug/debug.c Examining data/linux-atm-2.5.1/src/switch/tcp/tcpsw.c Examining data/linux-atm-2.5.1/src/test/align.c Examining data/linux-atm-2.5.1/src/test/aping.c Examining data/linux-atm-2.5.1/src/test/aread.c Examining data/linux-atm-2.5.1/src/test/atmswitch.c Examining data/linux-atm-2.5.1/src/test/awrite.c Examining data/linux-atm-2.5.1/src/test/br.c Examining data/linux-atm-2.5.1/src/test/bw.c Examining data/linux-atm-2.5.1/src/test/isp.c Examining data/linux-atm-2.5.1/src/test/isp.h Examining data/linux-atm-2.5.1/src/test/pmp_send.c Examining data/linux-atm-2.5.1/src/test/svc_recv.c Examining data/linux-atm-2.5.1/src/test/svc_send.c Examining data/linux-atm-2.5.1/src/test/window.c Examining data/linux-atm-2.5.1/src/test/ttcp.c FINAL RESULTS: data/linux-atm-2.5.1/src/arpd/table.c:92:14: [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. else if (vfprintf(out_file,fmt,ap) < 0 || putc('\n',out_file) < 0) data/linux-atm-2.5.1/src/arpd/table.c:177:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,flag_name[i]); data/linux-atm-2.5.1/src/lane/dump.c:188:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. printf_ret = vsnprintf(buffer, BUFSIZE, format, args); data/linux-atm-2.5.1/src/lane/dump.c:199:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. printf_ret = vsnprintf(buffer, BUFSIZE, format, args); data/linux-atm-2.5.1/src/lane/dump.c:219:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf_ret = sprintf(buffer, "%s: %s", unit->name, format); data/linux-atm-2.5.1/src/lane/dump.c:223:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. sprintf_ret = vsnprintf(buffer2, 2048, buffer, args); data/linux-atm-2.5.1/src/lane/lane.c:217: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(var_file, optarg); data/linux-atm-2.5.1/src/lane/lane.c:230: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(var_file, DEFAULT_CFG_FILE); data/linux-atm-2.5.1/src/lane/lecs_load.c:33:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(message,"Can't open configuration file '%s' ",filename); data/linux-atm-2.5.1/src/led/display.c:43:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. p += sprintf(p, "Op-Code 0x%x (%s)\n", ntohs(hdr->opcode), opcode2text(hdr->opcode)); data/linux-atm-2.5.1/src/led/display.c:44:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. p += sprintf(p, "Status %d (%s)\n", hdr->status, status2text(hdr->status)); data/linux-atm-2.5.1/src/led/display.c:56:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. p += sprintf(p, "Source Lan 0x%x (%s)\n", ntohs(f->src_lan_dst.tag), lan_dst2text(&f->src_lan_dst)); data/linux-atm-2.5.1/src/led/display.c:57:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. p += sprintf(p, "Target Lan 0x%x (%s)\n", ntohs(f->target_lan_dst.tag), lan_dst2text(&f->target_lan_dst)); data/linux-atm-2.5.1/src/led/join.c:56: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(lec_params.c5_elan_name, elan_name); data/linux-atm-2.5.1/src/led/join.c:59: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(lec_params.foreId, foreId); data/linux-atm-2.5.1/src/led/join.c:224: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(config_req->elan_name, lec_params.c5_elan_name); data/linux-atm-2.5.1/src/led/join.c:409: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(frame->elan_name, lec_params.c5_elan_name); data/linux-atm-2.5.1/src/led/main.c:257:25: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(elan_name, optarg); data/linux-atm-2.5.1/src/lib/atm2text.c:86:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer,addr->sas_addr.pub); data/linux-atm-2.5.1/src/lib/atm2text.c:171: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(buffer,here); data/linux-atm-2.5.1/src/lib/diag.c:144:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buffer,MAX_DIAG_MSG+1,fmt,ap); data/linux-atm-2.5.1/src/lib/diag.c:156:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(to,fmt,ap); data/linux-atm-2.5.1/src/lib/qos2text.c:21:38: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. if (curr->F != ATM_MAX_PCR) *pos += sprintf(*pos,#F "=%d",curr->F); \ data/linux-atm-2.5.1/src/lib/qos2text.c:23:6: [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(*pos,#F "=max"); \ data/linux-atm-2.5.1/src/lib/qos2text.c:46:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (!comp) *pos += sprintf(*pos,"%snone",prefix); data/linux-atm-2.5.1/src/lib/qos2text.c:53: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(*pos,prefix); data/linux-atm-2.5.1/src/lib/sap2text.c:44:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(scratch,40,fmt,ap); data/linux-atm-2.5.1/src/lib/sap2text.c:51: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(*pos,scratch); data/linux-atm-2.5.1/src/lib/sap2text.c:81:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(*end,str); data/linux-atm-2.5.1/src/lib/unix.c:24: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(addr->sun_path,path); data/linux-atm-2.5.1/src/maint/atmtcp.c:443:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(msg,"O %d.%d %s %s",&vpi,&vci,orig_addr,qos) == 4) data/linux-atm-2.5.1/src/maint/saaldump.c:40:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt,ap); data/linux-atm-2.5.1/src/maint/saaldump.c:54:11: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. len = vsprintf(buf,msg,ap); data/linux-atm-2.5.1/src/maint/saaldump.c:73:5: [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(msg,ap); data/linux-atm-2.5.1/src/mpoad/io.c:46:17: [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 printf data/linux-atm-2.5.1/src/mpoad/io.c:52:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define ddprintf printf data/linux-atm-2.5.1/src/mpoad/k_interf.c:22:17: [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 printf data/linux-atm-2.5.1/src/mpoad/lecs.c:74: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(frame->elan_name, elan_name); data/linux-atm-2.5.1/src/mpoad/p_factory.c:21:17: [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 printf data/linux-atm-2.5.1/src/mpoad/p_recogn.c:22:17: [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 printf data/linux-atm-2.5.1/src/oamd/oam.c:25:2: [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. system("backuprdsi stop&"); data/linux-atm-2.5.1/src/oamd/oam.c:27:2: [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. system("backuprdsi start&"); data/linux-atm-2.5.1/src/q2931/qlib.c:18:14: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DUMP printf data/linux-atm-2.5.1/src/q2931/qlib.c:37:5: [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(msg,ap); data/linux-atm-2.5.1/src/qgen/common.c:42: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,ap); data/linux-atm-2.5.1/src/qgen/file.c:38:9: [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. if (vfprintf(h_file,fmt,ap) == EOF) { data/linux-atm-2.5.1/src/qgen/file.c:51:9: [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. if (vfprintf(c_file,fmt,ap) == EOF) { data/linux-atm-2.5.1/src/qgen/file.c:64:9: [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. if (vfprintf(test_file,fmt,ap) == EOF) { data/linux-atm-2.5.1/src/qgen/file.c:77:9: [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. if (vfprintf(dump_file,fmt,ap) == EOF) { data/linux-atm-2.5.1/src/qgen/file.c:89:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s.out.h",prefix); data/linux-atm-2.5.1/src/qgen/file.c:95:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s.out.c",prefix); data/linux-atm-2.5.1/src/qgen/file.c:101:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s.test.c",prefix); data/linux-atm-2.5.1/src/qgen/file.c:108:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%s.dump.c",prefix); data/linux-atm-2.5.1/src/qgen/file.c:203: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(buffer+(here-fmt),va_arg(ap,const char *)); data/linux-atm-2.5.1/src/qgen/file.c:204:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buffer,here+2); data/linux-atm-2.5.1/src/sigd/trace.c:89:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf,*walk == 'd' ? "%d" : "%x",num); data/linux-atm-2.5.1/src/sigd/trace.c:251: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(buf,msg); data/linux-atm-2.5.1/src/switch/sig.c:96:23: [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 (sig->command) system(sig->command); data/linux-atm-2.5.1/src/test/isp.c:107:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"-%s",walk->name); data/linux-atm-2.5.1/src/arpd/atmarp.c:129:17: [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 ((c = getopt(argc,argv,"acdqQsV")) != EOF) data/linux-atm-2.5.1/src/arpd/atmarpd.c:59:17: [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 ((c = getopt(argc,argv,"bdD:l:mnpV")) != EOF) data/linux-atm-2.5.1/src/br2684/br2684ctl.c:228:17: [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 ((c = getopt(argc, argv,"q:a:bc:e:s:p:?h")) !=EOF) data/linux-atm-2.5.1/src/ilmid/ilmid.c:381:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((opt = getopt(argc, argv, "bdhi:l:q:xvu:V")) != EOF) data/linux-atm-2.5.1/src/lane/lane.c:183:9: [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. i = getopt(argc, argv, "d:m:f:"); data/linux-atm-2.5.1/src/lane/lecs.c:126:9: [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. i = getopt(argc, argv, "f:l:d"); data/linux-atm-2.5.1/src/led/conn.c:730: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. srand(time(NULL)); data/linux-atm-2.5.1/src/led/main.c:220:28: [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. poll_ret = getopt(argc, argv, "bc:e:n:s:m:l:i:I:q:12pf:t:F:"); data/linux-atm-2.5.1/src/maint/atmdump.c:94:17: [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 ((c = getopt(argc,argv,"t:g:c")) != EOF) data/linux-atm-2.5.1/src/maint/atmloop.c:82:17: [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 ((c = getopt(argc,argv,"l:qr:sV")) != EOF) data/linux-atm-2.5.1/src/maint/atmtcp.c:708:17: [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 ((c = getopt(argc,argv,"dvV")) != EOF) data/linux-atm-2.5.1/src/maint/enitune.c:36:17: [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 ((c = getopt(argc,argv,"t:r:")) != EOF) data/linux-atm-2.5.1/src/maint/esi.c:57:17: [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 ((c = getopt(argc,argv,"fV")) != EOF) data/linux-atm-2.5.1/src/maint/saaldump.c:134:17: [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 ((c = getopt(argc,argv,"iq")) != EOF) data/linux-atm-2.5.1/src/maint/zntune.c:38:17: [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 ((c = getopt(argc,argv,"l:h:t:z")) != EOF) data/linux-atm-2.5.1/src/mpoad/main.c:107:15: [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. opt_ret = getopt(argc, argv, "h:s:l:c:L:n:C:i:m:"); data/linux-atm-2.5.1/src/oamd/atmoamd.c:49:17: [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 ((c = getopt(argc,argv,"bdV")) != EOF) data/linux-atm-2.5.1/src/qgen/qgen.c:32: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. prefix = getenv("PREFIX"); data/linux-atm-2.5.1/src/sigd/atmsigd.c:340:17: [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 ((c = getopt(argc,argv,"Abc:dD:l:m:nNP:q:t:u:V")) != EOF) data/linux-atm-2.5.1/src/sigd/atmsigd.c:370:17: [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 ((c = getopt(argc,argv,"Abc:dD:l:m:nNP:q:t:u:")) != EOF) data/linux-atm-2.5.1/src/switch/relay.c:282:17: [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 ((c = getopt(argc,argv,"bc:d")) != EOF) data/linux-atm-2.5.1/src/test/align.c:55:12: [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. length = (random() % MAX_SDU)+1; data/linux-atm-2.5.1/src/test/align.c:56:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. offset = random() % MAX_OFFSET; data/linux-atm-2.5.1/src/test/align.c:57:7: [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. ch = random() & 0xff; data/linux-atm-2.5.1/src/test/align.c:133: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(0); /* we want it to be deterministic */ data/linux-atm-2.5.1/src/test/atmswitch.c:62: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((option = getopt ( argc, argv, options_list)) != -1 ){ data/linux-atm-2.5.1/src/test/ttcp.c:204:17: [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 ((c = getopt(argc, argv, "adrstuvBDTb:f:l:n:p:P:S:A:O:C")) != -1) { data/linux-atm-2.5.1/src/arpd/arp.c:173:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*here,&ip,4); data/linux-atm-2.5.1/src/arpd/arp.c:187:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*here,addr->sas_addr.pub,*num_tl & TL_LEN); data/linux-atm-2.5.1/src/arpd/arp.c:194:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*here,addr->sas_addr.prv,ATM_ESA_LEN); data/linux-atm-2.5.1/src/arpd/arp.c:224:5: [2] (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,llc_oui_arp,RFC1483LLC_LEN); data/linux-atm-2.5.1/src/arpd/arp.c:740: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(addr->sas_addr.pub,num,num_tl & TL_LEN); data/linux-atm-2.5.1/src/arpd/arp.c:746:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. else memcpy(addr->sas_addr.prv,sub,ATM_ESA_LEN); data/linux-atm-2.5.1/src/arpd/arp.c:752: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. else memcpy(addr->sas_addr.prv,num,ATM_ESA_LEN); data/linux-atm-2.5.1/src/arpd/arp.c:809: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 buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/arpd/arp.c:978:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/arpd/atmarp.c:36:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/arpd/atmarp.c:43: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. if (error) strcpy(buf,"<invalid>"); data/linux-atm-2.5.1/src/arpd/atmarp.c:83:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUF_SIZE]; data/linux-atm-2.5.1/src/arpd/atmarp.c:86: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(ATMARP_DUMP_DIR "/" ATMARP_DUMP_FILE,O_RDONLY)) < 0) { data/linux-atm-2.5.1/src/arpd/atmarp.h:25:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[1]; data/linux-atm-2.5.1/src/arpd/io.c:220:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[MAX_BUFFER]; data/linux-atm-2.5.1/src/arpd/io.c:244:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[MAX_BUFFER]; data/linux-atm-2.5.1/src/arpd/io.c:245:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[80]; /* actually, it's only 7+16*3+1 */ data/linux-atm-2.5.1/src/arpd/io.c:264: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(line," %04x:",i); data/linux-atm-2.5.1/src/arpd/io.c:267:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(strchr(line,0)," %02x",buffer[i]); data/linux-atm-2.5.1/src/arpd/io.c:275:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/arpd/io.c:296: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. 0) strcpy(buffer,"<atm2text error>"); data/linux-atm-2.5.1/src/arpd/io.c:576: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. printf("%02X ",((unsigned char *) data)[i]); data/linux-atm-2.5.1/src/arpd/io.c:591: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(req.ifr_ifrn.ifrn_name,"atm%d",number); data/linux-atm-2.5.1/src/arpd/table.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 addr_buf[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/arpd/table.c:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char qos_buf[MAX_ATM_QOS_LEN+1]; data/linux-atm-2.5.1/src/arpd/table.c:110:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(addr_buf,"<getsocknam error>"); data/linux-atm-2.5.1/src/arpd/table.c:121: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. pretty) < 0) strcpy(addr_buf,"<atm2text error>"); data/linux-atm-2.5.1/src/arpd/table.c:132:6: [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(qos_buf,"<invalid qos>"); data/linux-atm-2.5.1/src/arpd/table.c: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 addr_buf[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/arpd/table.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 qos_buf[MAX_ATM_QOS_LEN+1]; data/linux-atm-2.5.1/src/arpd/table.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 tmp[100]; /* large enough for all flags */ data/linux-atm-2.5.1/src/arpd/table.c:168:20: [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. if (!entry->addr) strcpy(addr_buf,"<none>"); data/linux-atm-2.5.1/src/arpd/table.c:171:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(addr_buf,"<error>"); data/linux-atm-2.5.1/src/arpd/table.c:184: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(qos_buf,"<error>"); data/linux-atm-2.5.1/src/arpd/table.c:205:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_ATM_QOS_LEN+1]; data/linux-atm-2.5.1/src/arpd/table.c:211:52: [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. if (qos2text(buf,sizeof(buf),&itf->qos,0) < 0) strcpy(buf,"<error>"); data/linux-atm-2.5.1/src/arpd/table.c:245: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). out_file = fopen(ATMARP_TMP_DUMP_FILE,"w"); data/linux-atm-2.5.1/src/br2684/br2684ctl.c:70:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/linux-atm-2.5.1/src/br2684/br2684ctl.c:75: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). pidfile = fopen(name, "w"); data/linux-atm-2.5.1/src/br2684/br2684ctl.c:103: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(ni.ifname, "nas%d", itfnum); data/linux-atm-2.5.1/src/br2684/br2684ctl.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(be.ifspec.spec.ifname, "nas%d", lastitf); data/linux-atm-2.5.1/src/br2684/br2684ctl.c:244: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). params.itfnum= atoi(optarg); data/linux-atm-2.5.1/src/br2684/br2684ctl.c:247: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). params.encap=(atoi(optarg)); data/linux-atm-2.5.1/src/br2684/br2684ctl.c:254: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). params.sndbuf=(atoi(optarg)); data/linux-atm-2.5.1/src/br2684/br2684ctl.c:263: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). params.payload = atoi(optarg); data/linux-atm-2.5.1/src/debug/delay.c:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[1]; data/linux-atm-2.5.1/src/debug/delay.c:118:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->data,buffer,size); data/linux-atm-2.5.1/src/debug/dnstest.c:21:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[1024]; data/linux-atm-2.5.1/src/debug/ed.c:35: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). req.number = atoi(argv[1]); data/linux-atm-2.5.1/src/ilmid/asn1/asn_bits.c:34: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 numToHexCharTblG[16] = data/linux-atm-2.5.1/src/ilmid/asn1/asn_bits.c:244: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(bufCurr, strStkG.stk[curr].str, strStkG.stk[curr].len); data/linux-atm-2.5.1/src/ilmid/asn1/asn_octs.c:204: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(bufCurr, strStkG.stk[curr].str, strStkG.stk[curr].len); data/linux-atm-2.5.1/src/ilmid/asn1/exp_buf.c:396: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 + totalGotLen, srcPtr, gotLen); data/linux-atm-2.5.1/src/ilmid/asn1/exp_buf.c:543:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf->dataStart, data, len); data/linux-atm-2.5.1/src/ilmid/asn1/exp_buf.c:555:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf->dataStart, dataPtr, bytesLeft); data/linux-atm-2.5.1/src/ilmid/asn1/min_buf.h:46:5: [2] (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), *(b), (len));\ data/linux-atm-2.5.1/src/ilmid/asn1/min_buf.h:59:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*(b), (data), (len)); data/linux-atm-2.5.1/src/ilmid/asn1/sbuf.h:110: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(dst, (b)->readLoc, (b)->dataEnd - (b)->readLoc);\ data/linux-atm-2.5.1/src/ilmid/asn1/sbuf.h:116: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(dst, (b)->readLoc, copyLen);\ data/linux-atm-2.5.1/src/ilmid/asn1/sbuf.h:157: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((b)->dataStart, seg, segLen);\ data/linux-atm-2.5.1/src/ilmid/atmf_uni.c:240:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(atmNetPrefix.octs, &varBindName->octs[NETPREFIX_LEN + 2], atmNetPrefix.octetLen); data/linux-atm-2.5.1/src/ilmid/ilmid.c:304:3: [2] (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->atmfMySystemIdentifier.octs, data/linux-atm-2.5.1/src/ilmid/ilmid.c:313:3: [2] (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->atmfPortMyIfName.octs, data/linux-atm-2.5.1/src/ilmid/ilmid.h:63:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char remote_sysname[ATM_REMOTE_SYSNAME_LEN]; data/linux-atm-2.5.1/src/ilmid/ilmid.h:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char remote_contact[ATM_REMOTE_CONTACT_LEN]; data/linux-atm-2.5.1/src/ilmid/ilmid.h:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char remote_portname[ATM_REMOTE_PORTNAME_LEN]; data/linux-atm-2.5.1/src/ilmid/ilmidiag.c:14:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *ilmiver[4] = { "", "unsupported", "4.0", "undefined" }; data/linux-atm-2.5.1/src/ilmid/ilmidiag.c:15:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *univer[6] = { "", "", "3.0", "3.1", "4.0", "undefined" }; data/linux-atm-2.5.1/src/ilmid/io.c:60:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char esi[ESI_LEN]; data/linux-atm-2.5.1/src/ilmid/io.c:73: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(atmfMySystemIdentifierValue.octs, esi, 6); data/linux-atm-2.5.1/src/ilmid/io.c:105:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr.sas_addr.prv, lecs, 20); data/linux-atm-2.5.1/src/ilmid/io.c:132: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[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/ilmid/io.c:231: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 data[MAX_ILMI_MSG]; data/linux-atm-2.5.1/src/ilmid/io.c:273: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 data[MAX_ILMI_MSG]; data/linux-atm-2.5.1/src/ilmid/message.c:69:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( entry->name.octs, what->octs, what->octetLen ); data/linux-atm-2.5.1/src/ilmid/message.c:107:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( entry->name.octs, what->octs, what->octetLen ); data/linux-atm-2.5.1/src/ilmid/message.c:148:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(entry->name.octs, ADDRESS_OID, ADDRESS_LEN); data/linux-atm-2.5.1/src/ilmid/message.c:180:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(entry->name.octs, ADDRESS_OID, ADDRESS_LEN); data/linux-atm-2.5.1/src/ilmid/mib.c:359:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[128]; data/linux-atm-2.5.1/src/ilmid/mib.c:364: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. else memcpy(&local_ip,h->h_addr_list[0],4); data/linux-atm-2.5.1/src/ilmid/mib.c:372: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(((IpAddress *) var->value)->octs,&local_ip,4); data/linux-atm-2.5.1/src/ilmid/util.h:32:30: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define AsnOidCopy(o1, o2) ({memcpy((o1)->octs, (o2)->octs, (o1)->octetLen = (o2)->octetLen);}) data/linux-atm-2.5.1/src/ilmid/util.h:34:32: [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 AsnOidAppend(o1, o2) ({memcpy(&(o1)->octs[(o1)->octetLen], (o2)->octs, (o2)->octetLen); \ data/linux-atm-2.5.1/src/ilmid/wait.c:71:3: [2] (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->octs, src->octs, src->octetLen ); data/linux-atm-2.5.1/src/ilmid/wait.c:75:3: [2] (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->octs, "(empty)\0", 8 ); data/linux-atm-2.5.1/src/lane/atm_lecs.c:49:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(server.sas_addr.prv, our_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/lane/connect.c:263: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 buffer[BUFSIZE]; data/linux-atm-2.5.1/src/lane/connect.c:862:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp->atm_address, get_var_addr(&conn_unit, "S6"), data/linux-atm-2.5.1/src/lane/connect_bus.c:175: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 buffer[BUFSIZE]; data/linux-atm-2.5.1/src/lane/connect_bus.c:407: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 packet_string[1024]; data/linux-atm-2.5.1/src/lane/connect_bus.c:427: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(&packet_string[3*i],"%2.2x ",0xff&data_packet[i]); data/linux-atm-2.5.1/src/lane/db.c:115:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp->address, &address, sizeof(AtmAddr_t)); data/linux-atm-2.5.1/src/lane/db.c:192:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp->mac_address, &maddr,sizeof(LaneDestination_t)); data/linux-atm-2.5.1/src/lane/db.c:193:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp->atm_address, &aaddr, sizeof(AtmAddr_t)); data/linux-atm-2.5.1/src/lane/dump.c:78: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). dump_filep = fopen(dump_filename, "a"); data/linux-atm-2.5.1/src/lane/dump.c:89: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). dump_filep = fopen(dump_console, "w"); data/linux-atm-2.5.1/src/lane/dump.c:176: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[BUFSIZE]; data/linux-atm-2.5.1/src/lane/dump.c:212: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[2048]; data/linux-atm-2.5.1/src/lane/dump.c:213: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 buffer2[2048]; data/linux-atm-2.5.1/src/lane/dump.c:269: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[ATM_ADDR_LEN*3+2]; data/linux-atm-2.5.1/src/lane/dump.c:274: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(&buffer[i*2], "%2.2x ", 0xff&(unsigned char)addr->addr[i]); data/linux-atm-2.5.1/src/lane/dump.c:284: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[ATM_ADDR_LEN*3+2]; data/linux-atm-2.5.1/src/lane/dump.c:287: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(&buffer[i*2], "%2.2x ", 0xff&(unsigned char)addr.addr[i]); data/linux-atm-2.5.1/src/lane/events.c:172:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *typetable[CE_MAX + 1] = { data/linux-atm-2.5.1/src/lane/lane.h:21:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char destaddr[6]; data/linux-atm-2.5.1/src/lane/lane.h:22:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char srcaddr[6]; data/linux-atm-2.5.1/src/lane/lane.h:37:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char mac_address[6]; data/linux-atm-2.5.1/src/lane/lane.h:39: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. unsigned char reserved[4]; data/linux-atm-2.5.1/src/lane/lane.h:53:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char addr[20]; data/linux-atm-2.5.1/src/lane/lane.h:86: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 elan_name[32]; data/linux-atm-2.5.1/src/lane/lane_atm.c:87:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(server.sas_addr.prv, our_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/lane/lane_atm.c:164:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(address.sas_addr.prv, our_addr, sizeof(AtmAddr_t)); data/linux-atm-2.5.1/src/lane/ldb.c:40: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 tmpbuffer[256]; data/linux-atm-2.5.1/src/lane/ldb.c:82:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(elan->les_addr, tmp.sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/lane/ldb.c:189: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(&tmpbuffer[i*3],"%2.2x.", addr[i]&0xff); data/linux-atm-2.5.1/src/lane/ldb.c:191: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(&tmpbuffer[(ATM_ESA_LEN-1)*3],"%2.2x", addr[ATM_ESA_LEN-1]); data/linux-atm-2.5.1/src/lane/ldb.c:252:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lecs_address, tmp.sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/lane/ldb.h:12: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 elan_name[32]; data/linux-atm-2.5.1/src/lane/ldb.h: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 *addresses[256]; data/linux-atm-2.5.1/src/lane/ldb.h:16:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char les_addr[20]; data/linux-atm-2.5.1/src/lane/lecs.c:99:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dp->elan_name, elan->elan_name, elan->elan_name_size); data/linux-atm-2.5.1/src/lane/lecs.c:101:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dp->target_atm, elan->les_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/lane/lecs.c:123:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[P_SIZE]; data/linux-atm-2.5.1/src/lane/lecs.c:141: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(config_file, optarg, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lecs.c:151: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(listen_addr, optarg, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lecs.h:29:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char source_lan[8]; data/linux-atm-2.5.1/src/lane/lecs.h:30:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char target_lan[8]; data/linux-atm-2.5.1/src/lane/lecs.h:31:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char source_atm[20]; data/linux-atm-2.5.1/src/lane/lecs.h:36:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char target_atm[20]; data/linux-atm-2.5.1/src/lane/lecs.h:37:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char elan_name[32]; data/linux-atm-2.5.1/src/lane/lecs_load.c:29: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 message[300]; data/linux-atm-2.5.1/src/lane/lecs_load.c:31: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). yyin = fopen(filename,"r"); data/linux-atm-2.5.1/src/lane/load.c:466: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). yyin = fopen(file, "r"); data/linux-atm-2.5.1/src/lane/mem_lecs.c:48:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(entry->unit, unit, strlen(unit)+1); data/linux-atm-2.5.1/src/led/address.c:94: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(atm_addr, listen_addr[0].sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:81: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(msg.content.normal.atm_addr, atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:118: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 qos_text[MAX_ATM_QOS_LEN + 1]; data/linux-atm-2.5.1/src/led/conn.c:149: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. sprintf(qos_text, "<bad qos>"); data/linux-atm-2.5.1/src/led/conn.c:239: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 buff[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/led/conn.c:269: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(buff, "<Unknown ATM address>"); data/linux-atm-2.5.1/src/led/conn.c:321:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr.sas_addr.prv, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:346:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(my_addr.sas_addr.prv, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:348: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_addr.sas_addr.prv, atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:410: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 buff[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/led/conn.c:421: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(buff, "<Unknown ATM address>"); data/linux-atm-2.5.1/src/led/conn.c:518: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(ioc.atm_addr, new->atm_address, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:541: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/conn.c:620: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(ioc.atm_addr, conn->atm_address, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:640: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(msg.content.normal.atm_addr, conn->atm_address, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.c:714:73: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. diag(COMPONENT, DIAG_DEBUG, "0x%2x", ((unsigned char *)buff)[i]); data/linux-atm-2.5.1/src/led/conn.c:813:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(conn->atm_address, atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/conn.h:35:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char atm_address[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/led/display.c:30: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 text[MAX_TEXT]; data/linux-atm-2.5.1/src/led/display.c:40: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. p += sprintf(p, "Marker 0x%x\n", ntohs(hdr->marker)); data/linux-atm-2.5.1/src/led/display.c:41: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. p += sprintf(p, "Protocol 0x%x\n", hdr->protocol); data/linux-atm-2.5.1/src/led/display.c:42: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. p += sprintf(p, "Version 0x%x\n", hdr->version); data/linux-atm-2.5.1/src/led/display.c:45: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. p += sprintf(p, "Trans-ID %d\n", ntohl(hdr->tran_id)); data/linux-atm-2.5.1/src/led/display.c:46: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. p += sprintf(p, "Req Lec-ID %d\n", ntohs(hdr->lec_id)); data/linux-atm-2.5.1/src/led/display.c:47: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. p += sprintf(p, "Flags 0x%x", ntohs(hdr->flags)); data/linux-atm-2.5.1/src/led/display.c:48:53: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if (hdr->flags & htons(REMOTE_ADDRESS)) p+= sprintf(p, " 'Remote Address'"); data/linux-atm-2.5.1/src/led/display.c:49:53: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if (hdr->flags & htons(V2_CAPABLE)) p+= sprintf(p, " 'V2 Capable'"); data/linux-atm-2.5.1/src/led/display.c:50:53: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if (hdr->flags & htons(V2_REQUIRED)) p+= sprintf(p, " 'V2 Required'"); data/linux-atm-2.5.1/src/led/display.c:51:53: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if (hdr->flags & htons(PROXY_FLAG)) p+= sprintf(p, " 'Proxy Flag'"); data/linux-atm-2.5.1/src/led/display.c:52:53: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if (hdr->flags & htons(TOPO_CHANGE)) p+= sprintf(p, " 'Topology Change'"); data/linux-atm-2.5.1/src/led/display.c:58: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. p += sprintf(p, "Source ATM "); p += my_atm2text(f->src_atm_addr, p); p += sprintf(p, "\n"); data/linux-atm-2.5.1/src/led/display.c:59: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. p += sprintf(p, "Lan type 0x%x\n", f->lan_type); data/linux-atm-2.5.1/src/led/display.c:60: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. p += sprintf(p, "Lan MTU 0x%x\n", f->max_frame_size); data/linux-atm-2.5.1/src/led/display.c:61: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. p += sprintf(p, "# of TLVs 0x%x\n", f->num_tlvs); data/linux-atm-2.5.1/src/led/display.c:62: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. p += sprintf(p, "Elan Name size 0x%x\n", f->elan_name_size); data/linux-atm-2.5.1/src/led/display.c:63: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. p += sprintf(p, "Target ATM "); p += my_atm2text(f->target_atm_addr, p); p += sprintf(p, "\n"); data/linux-atm-2.5.1/src/led/display.c:64: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. p += sprintf(p, "Elan Name ("); data/linux-atm-2.5.1/src/led/display.c:65:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, f->elan_name, f->elan_name_size); p += f->elan_name_size; data/linux-atm-2.5.1/src/led/display.c:66: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. p += sprintf(p, ")\n"); data/linux-atm-2.5.1/src/led/display.c:89: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. len += sprintf(dest + len, "%2.2x ", *(atm_addr + i)); data/linux-atm-2.5.1/src/led/display.c:96: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 text[42]; /* big enough for text + MAC */ data/linux-atm-2.5.1/src/led/display.c:101: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(text, "Not present"); data/linux-atm-2.5.1/src/led/display.c:104:22: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. p += sprintf(p, "MAC address"); data/linux-atm-2.5.1/src/led/display.c:109:22: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. p += sprintf(p, "Route Descriptor"); data/linux-atm-2.5.1/src/led/display.c:114: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(text, "<Unknown Lan destination>"); data/linux-atm-2.5.1/src/led/display.c:123: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(buff, "%02x-%02x-%02x-%02x-%02x-%02x", data/linux-atm-2.5.1/src/led/frames.c:148: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(msg.content.proxy.mac_addr, frame->target_lan_dst.mac, ETH_ALEN); data/linux-atm-2.5.1/src/led/frames.c:149: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(msg.content.proxy.atm_addr, frame->src_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:178:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rsp, frame, sizeof(struct ctrl_frame)); data/linux-atm-2.5.1/src/led/frames.c:180:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rsp->target_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:183:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rsp + 1, lec_params.tlvs, lec_params.sizeoftlvs); data/linux-atm-2.5.1/src/led/frames.c:194:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->content.normal.mac_addr, frame->src_lan_dst.mac, ETH_ALEN); data/linux-atm-2.5.1/src/led/frames.c:195:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->content.normal.atm_addr, frame->src_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:199:37: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (sizeoftlvs > 0) memcpy(msg + 1, frame + 1, sizeoftlvs); data/linux-atm-2.5.1/src/led/frames.c:220:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char empty[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/led/frames.c:237:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->content.normal.mac_addr, frame->src_lan_dst.mac, ETH_ALEN); data/linux-atm-2.5.1/src/led/frames.c:238: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(msg->content.normal.atm_addr, frame->src_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:242:29: [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 (sizeoftlvs > 0) memcpy(msg + 1, frame + 1, sizeoftlvs); data/linux-atm-2.5.1/src/led/frames.c:256: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/frames.c:270: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(msg->content.normal.mac_addr, frame->target_lan_dst.mac, ETH_ALEN); data/linux-atm-2.5.1/src/led/frames.c:271:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->content.normal.atm_addr, frame->target_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:274:29: [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 (sizeoftlvs > 0) memcpy(msg + 1, frame + 1, sizeoftlvs); data/linux-atm-2.5.1/src/led/frames.c:305: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(msg.content.normal.atm_addr, conn->atm_address, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:394: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(frame.src_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:395: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(frame.target_atm_addr, conn->atm_address, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:407: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/frames.c:413: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(frame->src_lan_dst.mac, lec_params.c6_mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/frames.c:414: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(frame->src_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/frames.c:417:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((frame + 1), lec_params.tlvs, lec_params.sizeoftlvs); data/linux-atm-2.5.1/src/led/frames.c:541:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lec_params.c35_preferred_les, tlvp, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:32:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char well_known_lecs[ATM_ESA_LEN] = {0x47,0x00,0x79,0x00,0x00, data/linux-atm-2.5.1/src/led/join.c:55: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(lec_params.c6_mac_addr, mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/join.c:57: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(lec_params.c1n_my_atm_addr, listen_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:124:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr_c5.sas_addr.prv, well_known_lecs, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:125:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr_47.sas_addr.prv, well_known_lecs, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:170: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/join.c:204: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/join.c:218: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(config_req->src_lan_dst.mac, lec_params.c6_mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/join.c:219: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(config_req->src_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:308: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(lec_params.c9_les_atm_addr, frame->target_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:332: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/join.c:339:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(les_addr.sas_addr.prv, manual_atm_addr->sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:340: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. } else memcpy(les_addr.sas_addr.prv, lec_params.c9_les_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:394: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 buff[MAX_CTRL_FRAME], *tlvp; data/linux-atm-2.5.1/src/led/join.c:412: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(frame->src_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:413: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(frame->src_lan_dst.mac, lec_params.c6_mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/join.c:424:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tlvp, lec_params.c35_preferred_les, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:431:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tlvp, lec_params.foreId, strlen(lec_params.foreId)); data/linux-atm-2.5.1/src/led/join.c:586: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/join.c:606:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frame->src_lan_dst.mac, lec_params.c6_mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/join.c:607:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frame->src_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:609:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frame->target_lan_dst.mac, bus_mac, ETH_ALEN); data/linux-atm-2.5.1/src/led/join.c:631: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(listen_addr.sas_addr.prv, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:673: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(ioc_data.atm_addr, mcast_fwd->atm_address, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/join.c:696: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/join.c:761:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr->sas_addr.prv, frame->target_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/kernel.c:86: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(msg.content.normal.mac_addr, mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/kernel.c:191: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 buff[MAX_CTRL_FRAME]; data/linux-atm-2.5.1/src/led/kernel.c:203: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(frame->src_lan_dst.mac, lec_params.c6_mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/kernel.c:204: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(frame->src_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/kernel.c:206:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frame->target_lan_dst.mac, mac_addr, ETH_ALEN); data/linux-atm-2.5.1/src/led/kernel.c:220:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((frame + 1), lec_params.tlvs, lec_params.sizeoftlvs); data/linux-atm-2.5.1/src/led/kernel.c:278: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(frame->target_atm_addr, lec_params.c1n_my_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/kernel.c:280: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(frame->target_lan_dst.mac, target_mac, ETH_ALEN); data/linux-atm-2.5.1/src/led/kernel.c:281: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(frame->src_atm_addr, src_atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/led/kernel.c:284:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frame + 1, lec_params.tlvs, lec_params.sizeoftlvs); data/linux-atm-2.5.1/src/led/kernel.c:346:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char txt[80]; data/linux-atm-2.5.1/src/led/lec.h:15:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c1n_my_atm_addr[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/led/lec.h: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. char c5_elan_name[32 + 1]; data/linux-atm-2.5.1/src/led/lec.h:20: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 c6_mac_addr[ETH_ALEN]; data/linux-atm-2.5.1/src/led/lec.h:25:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c9_les_atm_addr[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/led/lec.h:40:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c35_preferred_les[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/led/lec.h:50: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 foreId[255]; data/linux-atm-2.5.1/src/led/main.c:85: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 hexnum [17+1], curr; data/linux-atm-2.5.1/src/led/main.c:188: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 mac_addr[ETH_ALEN]; data/linux-atm-2.5.1/src/led/main.c:189: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 elan_name[32 + 1]; data/linux-atm-2.5.1/src/led/main.c:190: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 preferred_les[ATM_ESA_LEN]; /* LANE2 */ data/linux-atm-2.5.1/src/led/main.c:191: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 foreId[255]; /* Max size for a TLV */ data/linux-atm-2.5.1/src/led/main.c:192: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 atm2textbuff[100]; data/linux-atm-2.5.1/src/led/main.c:193: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 esibuff[20]; data/linux-atm-2.5.1/src/led/main.c:206: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 pidbuf[PATH_MAX + 1]; data/linux-atm-2.5.1/src/led/main.c:339:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (foreId, optarg, strlen(optarg)); data/linux-atm-2.5.1/src/led/main.c:410:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pidbuf, "/var/run/lec%d.pid", itf); data/linux-atm-2.5.1/src/led/main.c:411:7: [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(pidbuf, O_CREAT | O_WRONLY, 0600); data/linux-atm-2.5.1/src/led/main.c:416:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pidbuf, "%d\n", getpid()); data/linux-atm-2.5.1/src/lib/ans.c:43:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char answer[MAX_ANSWER]; data/linux-atm-2.5.1/src/lib/ans.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 name[MAX_NAME]; data/linux-atm-2.5.1/src/lib/ans.c:92:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((struct sockaddr_atmsvc *) result)-> data/linux-atm-2.5.1/src/lib/ans.c:99:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((struct sockaddr_atmsvc *) result)-> data/linux-atm-2.5.1/src/lib/ans.c:121:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((struct sockaddr_atmsvc *) result)->sas_addr.pub,found, data/linux-atm-2.5.1/src/lib/ans.c:167: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(buf++,"%x", data/linux-atm-2.5.1/src/lib/ans.c:171:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,"AESA.ATMA.INT."); data/linux-atm-2.5.1/src/lib/ans.c:190:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf, "NSAP.INT."); data/linux-atm-2.5.1/src/lib/ans.c:199:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_LINE]; data/linux-atm-2.5.1/src/lib/ans.c:209: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). if (!(file = fopen(E164_CC_FILE,"r"))) data/linux-atm-2.5.1/src/lib/ans.c:240:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,".E164.ATMA.INT."); data/linux-atm-2.5.1/src/lib/ans.c:248:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[MAX_NAME]; /* could be smaller ... */ data/linux-atm-2.5.1/src/lib/atm2text.c:137: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(buffer,"%02X",addr->sas_addr.prv[i]); data/linux-atm-2.5.1/src/lib/atm2text.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 line[MAX_ATM_NAME_LEN+1]; data/linux-atm-2.5.1/src/lib/atm2text.c:185: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(HOSTS_ATM,"r"))) return TRY_OTHER; data/linux-atm-2.5.1/src/lib/diag.c:97: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). else if (!(log_to = fopen(name,"w"))) { data/linux-atm-2.5.1/src/lib/diag.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 buffer[MAX_DIAG_MSG+1]; data/linux-atm-2.5.1/src/lib/diag.c:134:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char datestr[DATESTR_LEN]; data/linux-atm-2.5.1/src/lib/diag.c:181:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[DUMP_LINE_WIDTH+1]; data/linux-atm-2.5.1/src/lib/diag.c:192: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(curr," %02x",*data++); data/linux-atm-2.5.1/src/lib/kptr.c:37:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[KPRT_PRINT_BUFS][sizeof(atm_kptr_t)*2+1]; data/linux-atm-2.5.1/src/lib/kptr.c:45:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result+2*i,"%02x",((unsigned char *) p)[i]); data/linux-atm-2.5.1/src/lib/kptr.c:45:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. sprintf(result+2*i,"%02x",((unsigned char *) p)[i]); data/linux-atm-2.5.1/src/lib/misc.c:47:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vs_id,ATM_FORUM_OUI "\x01",4); data/linux-atm-2.5.1/src/lib/qos2text.c:68:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer,"ubr"); data/linux-atm-2.5.1/src/lib/qos2text.c:72:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer,"cbr"); data/linux-atm-2.5.1/src/lib/qos2text.c:76:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer,"abr"); data/linux-atm-2.5.1/src/lib/qos2text.c:90:6: [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(pos,"aal0"); data/linux-atm-2.5.1/src/lib/qos2text.c:94:6: [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(pos,"aal5"); data/linux-atm-2.5.1/src/lib/sap2text.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 scratch[40]; /* we don't put long strings anyway */ data/linux-atm-2.5.1/src/lib/text2atm.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 line[MAX_ATM_NAME_LEN+1]; data/linux-atm-2.5.1/src/lib/text2atm.c:219: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(HOSTS_ATM,"r"))) return TRY_OTHER; data/linux-atm-2.5.1/src/lib/text2ip.c:54:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ip,hostent->h_addr,hostent->h_length); data/linux-atm-2.5.1/src/maint/atmaddr.c:37:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/maint/atmdump.c:63:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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("%02x ",((unsigned char *) cell)[i+4]); data/linux-atm-2.5.1/src/maint/atmtcp.c:36:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[MAX_PACKET]; data/linux-atm-2.5.1/src/maint/atmtcp.c:52:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct _out *out,int in_link,struct atmtcp_control *msg); data/linux-atm-2.5.1/src/maint/atmtcp.c:111:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (out->ops->open) data/linux-atm-2.5.1/src/maint/atmtcp.c:112:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). changed += out->ops->open(out,in_link,msg); data/linux-atm-2.5.1/src/maint/atmtcp.c:409:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char orig_addr[MAX_ATM_ADDR_LEN]; data/linux-atm-2.5.1/src/maint/atmtcp.c:410:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char qos[MAX_ATM_QOS_LEN]; data/linux-atm-2.5.1/src/maint/atmtcp.c:482:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_ATM_NAME_LEN*2+MAX_ATM_NAME_LEN+5]; data/linux-atm-2.5.1/src/maint/atmtcp.c:492: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. pos += sprintf(pos,"%c %d.%d",msg->type == ATMTCP_CTRL_OPEN ? 'O' : 'C', data/linux-atm-2.5.1/src/maint/atmtcp.c:867: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 ((fd = open(ARG,O_RDONLY)) < 0) { data/linux-atm-2.5.1/src/maint/atmtcp.c:884:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((*fd = open(ARG,O_CREAT | O_WRONLY | O_TRUNC,0666)) < 0) { data/linux-atm-2.5.1/src/maint/esi.c:50:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char esi_buf[ESI_LEN]; data/linux-atm-2.5.1/src/maint/hediag.c:184: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). sioc.number = atoi(argv[1]); data/linux-atm-2.5.1/src/maint/saaldump.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 buf[MAX_ITEM]; data/linux-atm-2.5.1/src/maint/saaldump.c:127:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[ATM_MAX_AAL5_PDU]; data/linux-atm-2.5.1/src/mpoad/get_vars.c: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 name[6]; data/linux-atm-2.5.1/src/mpoad/get_vars.c:46: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(name, "lec%d", iface_nmbr ); data/linux-atm-2.5.1/src/mpoad/get_vars.c:47:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(req.ifr_ifrn.ifrn_name,name,sizeof(name)); data/linux-atm-2.5.1/src/mpoad/get_vars.c:68:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(address,mpc_control.data_listen_addr.sas_addr.prv,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/io.c:260: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 tmp[MAX_PACKET_LENGTH + sizeof(struct llc_snap_hdr)]; data/linux-atm-2.5.1/src/mpoad/io.c:270: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(pos, &llc_snap_mpoa_ctrl, sizeof(struct llc_snap_hdr)); data/linux-atm-2.5.1/src/mpoad/io.c:272:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, buff, length); data/linux-atm-2.5.1/src/mpoad/io.c:290: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 tmp[MAX_PACKET_LENGTH + sizeof(struct llc_snap_hdr)]; data/linux-atm-2.5.1/src/mpoad/io.c:293:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, &llc_snap_mpoa_ctrl, sizeof(struct llc_snap_hdr)); data/linux-atm-2.5.1/src/mpoad/io.c:295:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, buff, length); data/linux-atm-2.5.1/src/mpoad/io.c:333:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl,mpc_control.MPS_CTRL_ATM_ADDR,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/io.c:344:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl,mpc_control.MPS_CTRL_ATM_ADDR,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/io.c:486: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 buff[MAX_PACKET_LENGTH]; data/linux-atm-2.5.1/src/mpoad/io.c:587: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 buff[MAX_PACKET_LENGTH]; data/linux-atm-2.5.1/src/mpoad/io.c:736:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr.sas_addr.prv, atm_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/io.c:778:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mps_ctrl_addr.sas_addr.prv,mpc_control.MPS_CTRL_ATM_ADDR,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/io.c:779:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctrl_listen_addr.sas_addr.prv,mpc_control.OWN_ATM_ADDRESS,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/k_interf.c:163:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/mpoad/k_interf.c:167:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mps_ctrl_addr.sas_addr.prv, msg->MPS_ctrl, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/k_interf.c:178:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mpc_control.MPS_CTRL_ATM_ADDR, msg->MPS_ctrl, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/lecs.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 buff[MAXFRAME]; data/linux-atm-2.5.1/src/mpoad/lecs.c:71: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(frame->src_atm_addr, lec_addr, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/lecs.c:86: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(tmp, lec_addr, ATM_ESA_LEN); tmp += ATM_ESA_LEN; data/linux-atm-2.5.1/src/mpoad/lecs.c:133:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(params->mpc_p3, tlvs, length); data/linux-atm-2.5.1/src/mpoad/main.c:58:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char wellknown_lecs[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/mpoad/main.c:78:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctrl->sas_addr.prv, sa.sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:79: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(mpc_control.OWN_ATM_ADDRESS, ctrl->sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:80:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mpc_control.lecs_address.sas_addr.prv,wellknown_lecs, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:83:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data->sas_addr.prv, sa.sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:120: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(mpc_control.OWN_ATM_ADDRESS,control_listen_addr.sas_addr.prv, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:137: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(mpc_control.MPS_CTRL_ATM_ADDR,mps_ctrl_addr.sas_addr.prv,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:147: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(mpc_control.LEC_ADDRESS,lec_addr.sas_addr.prv,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:166: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). mpc_control.INTERFACE_NUMBER = atoi(optarg); data/linux-atm-2.5.1/src/mpoad/main.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(msg.MPS_ctrl,mpc_control.OWN_ATM_ADDRESS,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/main.c:232:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char mac_addr[ETH_ALEN]; data/linux-atm-2.5.1/src/mpoad/main.c:245: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(&msg.MPS_ctrl,&mac_addr,ETH_ALEN); data/linux-atm-2.5.1/src/mpoad/p_factory.c:278:37: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. common = (struct nhrp_common_h *) memcpy(reply+pos, data/linux-atm-2.5.1/src/mpoad/p_factory.c:293:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cie->cli_nbma_address,mpc_control.data_listen_addr.sas_addr.prv,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_factory.c:326:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dll_ext->dll_header,values.dll_ext.dll_header,values.dll_ext.dh_length); data/linux-atm-2.5.1/src/mpoad/p_factory.c:368:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(common->src_nbma_address, mpc_control.OWN_ATM_ADDRESS, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:46: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(values->dll_ext.dll_header,dll_ext->dll_header data/linux-atm-2.5.1/src/mpoad/p_recogn.c:188:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(eg_MPC_data_ATM_addr, common_no_ip->src_nbma_address data/linux-atm-2.5.1/src/mpoad/p_recogn.c:214:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl, mpc_control.MPS_CTRL_ATM_ADDR, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:238:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.content.eg_info.in_MPC_data_ATM_addr, data/linux-atm-2.5.1/src/mpoad/p_recogn.c:257:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.content.eg_info.DLL_header, values.dll_ext.dll_header, msg.content.eg_info.DH_length); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:263:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl, mpc_control.MPS_CTRL_ATM_ADDR, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:301:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl,mpc_control.MPS_CTRL_ATM_ADDR,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:354:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl,mpc_control.MPS_CTRL_ATM_ADDR,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:400:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.content.in_info.eg_MPC_ATM_addr,cie->cli_nbma_address,ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/p_recogn.c:401:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg.MPS_ctrl,mpc_control.MPS_CTRL_ATM_ADDR, ATM_ESA_LEN); data/linux-atm-2.5.1/src/mpoad/packets.h:12:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char MPS_CTRL_ATM_ADDR[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/mpoad/packets.h:14:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char MPS_MAC_ADDRESS[13]; data/linux-atm-2.5.1/src/mpoad/packets.h:15:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char OWN_ATM_ADDRESS[ATM_ESA_LEN];/* Our control ATM address */ data/linux-atm-2.5.1/src/mpoad/packets.h:19:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char LEC_ADDRESS[ATM_ESA_LEN]; data/linux-atm-2.5.1/src/mpoad/packets.h:20:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char elan_name[33]; data/linux-atm-2.5.1/src/oamd/oam.c:134:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pdu + 6, lpBackLocId, 16); data/linux-atm-2.5.1/src/oamd/oam.c:136:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pdu + 22, (unsigned char *) srcId, 16); data/linux-atm-2.5.1/src/oamd/oam.c:138:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pdu + 38, (unsigned char *) srcId, 8); data/linux-atm-2.5.1/src/q2931/qlib.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(dsc->data,q_initial,Q_DATA_BYTES); data/linux-atm-2.5.1/src/q2931/qlib.c:291:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dsc->data+(fields[field].pos/8),buf,(size_t) size); data/linux-atm-2.5.1/src/q2931/qlib.c:360:5: [2] (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,dsc->data+(fields[field].pos/8),len); data/linux-atm-2.5.1/src/q2931/qlib.c:426:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos,dsc->data+pc[1]/8,dsc->length[*pc]); data/linux-atm-2.5.1/src/q2931/qlib.c:552:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char *stack[LENGTH_STACK]; data/linux-atm-2.5.1/src/q2931/qlib.c:616: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(dsc->data+pc[1]/8,pos,(size_t) len); data/linux-atm-2.5.1/src/q2931/qlib.c:776: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). int PREFIX(open)(Q_DSC *dsc,void *buf,int size) data/linux-atm-2.5.1/src/q2931/qlib.c:834:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char msg[5000]; /* should be large enough for that */ data/linux-atm-2.5.1/src/q2931/qlib.h:96: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). int PREFIX(open)(Q_DSC *dsc,void *buf,int size); data/linux-atm-2.5.1/src/qgen/file.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 name[100]; /* maximum name */ data/linux-atm-2.5.1/src/qgen/file.c:90:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h_file = fopen(name,"w"); data/linux-atm-2.5.1/src/qgen/file.c:96: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). c_file = fopen(name,"w"); data/linux-atm-2.5.1/src/qgen/file.c:102: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). test_file = fopen(name,"w"); data/linux-atm-2.5.1/src/qgen/file.c:109: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). dump_file = fopen(name,"w"); data/linux-atm-2.5.1/src/qgen/file.c:168:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[21]; /* enough for 64 bits ... */ data/linux-atm-2.5.1/src/qgen/file.c:170: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(buffer,"%d",val); data/linux-atm-2.5.1/src/qgen/file.c:199: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[200]; /* ugly */ data/linux-atm-2.5.1/src/saal/queue.c:34:5: [2] (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->data,b->data,b->length); data/linux-atm-2.5.1/src/saal/sscop.c:160:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((unsigned char *) buf->data,data,num); data/linux-atm-2.5.1/src/saal/sscop.c:686:5: [2] (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->data,msg,length); data/linux-atm-2.5.1/src/saal/sscop.c:1497:5: [2] (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->data,buffer,size); data/linux-atm-2.5.1/src/sigd/atmsigd.c:92:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. mid2name(((unsigned char *) msg)[5]),((unsigned char *) msg)[5], data/linux-atm-2.5.1/src/sigd/atmsigd.c:92:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. mid2name(((unsigned char *) msg)[5]),((unsigned char *) msg)[5], data/linux-atm-2.5.1/src/sigd/atmsigd.c:93: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. (((unsigned char *) msg)[2] << 16) | (((unsigned char *) msg)[3] << 8) | data/linux-atm-2.5.1/src/sigd/atmsigd.c:93:56: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (((unsigned char *) msg)[2] << 16) | (((unsigned char *) msg)[3] << 8) | data/linux-atm-2.5.1/src/sigd/atmsigd.c:94:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *) msg)[4],size); data/linux-atm-2.5.1/src/sigd/atmsigd.c:136:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/sigd/atmsigd.c:146:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. fprintf(file," %02X",((unsigned char *) addr)[i]); data/linux-atm-2.5.1/src/sigd/atmsigd.c:154:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_SAP_LEN+1]; data/linux-atm-2.5.1/src/sigd/atmsigd.c:163:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. fprintf(file," %02X",((unsigned char *) sap)[i]); data/linux-atm-2.5.1/src/sigd/atmsigd.c:208:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX+1]; data/linux-atm-2.5.1/src/sigd/atmsigd.c:215: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(path,"atmsigd.%d.status.%d",getpid(),status_num++); data/linux-atm-2.5.1/src/sigd/atmsigd.c:216: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(path,"w"))) data/linux-atm-2.5.1/src/sigd/atmsigd.c:232: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(path,"atmsigd.%d.trace.%d",getpid(),trace_num++); data/linux-atm-2.5.1/src/sigd/atmsigd.c:233: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(path,"w"))) data/linux-atm-2.5.1/src/sigd/atmsigd.c:288:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX+1]; data/linux-atm-2.5.1/src/sigd/atmsigd.c:294:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(path,"atmsigd.%d.trace.exit",getpid()); data/linux-atm-2.5.1/src/sigd/atmsigd.c:295: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). if (!(file = fopen(path,"w"))) { data/linux-atm-2.5.1/src/sigd/atmsigd.c:346: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 (!(yyin = fopen(config_file,"r"))) data/linux-atm-2.5.1/src/sigd/io.c:75:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char buffer[sizeof(struct atmsvc_msg)+1]; data/linux-atm-2.5.1/src/sigd/io.c:166:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char buffer[MAX_Q_MSG]; data/linux-atm-2.5.1/src/sigd/io.c:187:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. pdu_name[size > 3 && !(size & 3) ? ((unsigned char *) msg)[size-4] & 0xf data/linux-atm-2.5.1/src/sigd/kernel.c:59:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/linux-atm-2.5.1/src/sigd/kernel.c:719:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/sigd/kernel.c:725:29: [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. &walk->addr,pretty) < 0) strcpy(buf,"<invalid>"); data/linux-atm-2.5.1/src/sigd/policy.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 buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/sigd/policy.c:50:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer,"<invalid address>"); data/linux-atm-2.5.1/src/sigd/proto.c:72:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char q_buffer[MAX_Q_MSG]; data/linux-atm-2.5.1/src/sigd/proto.c:292: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[4]; data/linux-atm-2.5.1/src/sigd/proto.c:294: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(buf,"%d",va_arg(ap,int)); data/linux-atm-2.5.1/src/sigd/trace.c:59:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(string+curr_len,str,len); data/linux-atm-2.5.1/src/sigd/trace.c:79: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[21]; /* big enough for 64 bits */ data/linux-atm-2.5.1/src/sigd/trace.c:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/sigd/trace.c:119:47: [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. A2T_NAME | A2T_LOCAL | A2T_PRETTY) < 0) strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/sigd/trace.c:126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_SAP_LEN+1]; data/linux-atm-2.5.1/src/sigd/trace.c:129:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/sigd/trace.c:136:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_QOS_LEN+1]; data/linux-atm-2.5.1/src/sigd/trace.c:139:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/sigd/trace.c:263:5: [2] (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,msg,size); data/linux-atm-2.5.1/src/sigd/uni.c:144:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/sigd/uni.c:166: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(buffer,"<invalid address>"); data/linux-atm-2.5.1/src/sigd/uni.c:302:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/sigd/uni.c:393:30: [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. &sock->remote,0) < 0) strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/sigd/uni.c:414:30: [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. &sock->remote,0) < 0) strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/sigd/uni.c:814:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. "%s",S_PVC(sig),mid2name(((unsigned char *) msg)[5]), data/linux-atm-2.5.1/src/sigd/uni.c:815:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *) msg)[5],call_ref,curr ? kptr_print(&curr->id) : "?"); data/linux-atm-2.5.1/src/switch/proto.c:40:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *sources[4] = {"CALLER","CALLED","RM"}; data/linux-atm-2.5.1/src/switch/relay.c:302: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 (!(yyin = fopen(config_file,"r"))) data/linux-atm-2.5.1/src/switch/sig.c:40:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[sizeof(struct atmsvc_msg)+1]; data/linux-atm-2.5.1/src/switch/swc.c:58:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/switch/swc.c:86:25: [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. A2T_PRETTY) < 0) strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/switch/swc.c:90:25: [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. A2T_PRETTY) < 0) strcpy(buffer,"<invalid>"); data/linux-atm-2.5.1/src/switch/tcp/tcpsw.c:53:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUFFER_SIZE]; data/linux-atm-2.5.1/src/switch/tcp/tcpsw.c:227: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(walk->buffer,lnk->buffer,lnk->len); data/linux-atm-2.5.1/src/test/align.c:44:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[MAX_SDU],out[MAX_SDU]; data/linux-atm-2.5.1/src/test/aping.c:84: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 dummy[2]; data/linux-atm-2.5.1/src/test/aread.c:63:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[BSIZE+4096]; data/linux-atm-2.5.1/src/test/atmswitch.c:156:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_SIZE]; data/linux-atm-2.5.1/src/test/awrite.c:40:30: [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). offset = argc == 3 ? 0 : atoi(argv[3]); data/linux-atm-2.5.1/src/test/br.c:57:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[BSIZE+4096]; data/linux-atm-2.5.1/src/test/bw.c:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BSIZE]; data/linux-atm-2.5.1/src/test/bw.c:39: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). else blocks = atoi(argv[2]); data/linux-atm-2.5.1/src/test/isp.c:101:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[30]; /* probably large enough :) */ data/linux-atm-2.5.1/src/test/isp.c:111:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"%d (0x%x)",code,code); data/linux-atm-2.5.1/src/test/isp.c:142:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1000]; /* bigger than any MAX_ATM_*_LEN */ data/linux-atm-2.5.1/src/test/isp.c:156:36: [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. A2T_PRETTY | A2T_NAME) < 0) strcpy(buf,"<invalid>"); data/linux-atm-2.5.1/src/test/isp.c:161:36: [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. A2T_PRETTY | A2T_NAME) < 0) strcpy(buf,"<invalid>"); data/linux-atm-2.5.1/src/test/isp.c:166: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(buf,"<invalid>"); data/linux-atm-2.5.1/src/test/isp.c:171:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,"<invalid>"); data/linux-atm-2.5.1/src/test/pmp_send.c:56:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sap.bhli.hl_info, BHLI_MAGIC, 8); data/linux-atm-2.5.1/src/test/svc_recv.c:70: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). selector = atoi(argv[2]); data/linux-atm-2.5.1/src/test/svc_recv.c:86:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sap.bhli.hl_info, BHLI_MAGIC, 8); data/linux-atm-2.5.1/src/test/svc_recv.c:105: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 atm2textbuf[MAX_ATM_ADDR_LEN + 1]; data/linux-atm-2.5.1/src/test/svc_send.c:51:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sap.bhli.hl_info, BHLI_MAGIC, 8); data/linux-atm-2.5.1/src/test/ttcp.c:161: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 stats[128]; data/linux-atm-2.5.1/src/test/ttcp.c:234: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). nbuf = atoi(optarg); data/linux-atm-2.5.1/src/test/ttcp.c:237: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). buflen = atoi(optarg); data/linux-atm-2.5.1/src/test/ttcp.c:258: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). bufalign = atoi(optarg); data/linux-atm-2.5.1/src/test/ttcp.c:261: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). bufoffset = atoi(optarg); data/linux-atm-2.5.1/src/test/ttcp.c:265:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sockbufsize = atoi(optarg); data/linux-atm-2.5.1/src/test/ttcp.c:336:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(host) > 0 ) { data/linux-atm-2.5.1/src/test/ttcp.c:349:6: [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(addr->h_addr,(char*)&addr_tmp, addr->h_length); data/linux-atm-2.5.1/src/test/ttcp.c:411:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sap.bhli.hl_info,TTCP_HLT_VS_ID,7); data/linux-atm-2.5.1/src/test/ttcp.c:476:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_ATM_ADDR_LEN+1]; data/linux-atm-2.5.1/src/test/ttcp.c:480:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name,"<invalid>"); data/linux-atm-2.5.1/src/test/ttcp.c:713:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char obuf[50]; data/linux-atm-2.5.1/src/test/ttcp.c:716: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(obuf, "%f GB", b / 1024.0 / 1024.0 / 1024.0); data/linux-atm-2.5.1/src/test/ttcp.c:720: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(obuf, "%f KB", b / 1024.0); data/linux-atm-2.5.1/src/test/ttcp.c:723: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(obuf, "%f MB", b / 1024.0 / 1024.0); data/linux-atm-2.5.1/src/test/ttcp.c:726: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(obuf, "%f Gbit", b * 8.0 / 1024.0 / 1024.0 / 1024.0); data/linux-atm-2.5.1/src/test/ttcp.c:729: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(obuf, "%f Kbit", b * 8.0 / 1024.0); data/linux-atm-2.5.1/src/test/ttcp.c:732: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(obuf, "%f Mbit", b * 8.0 / 1024.0 / 1024.0); data/linux-atm-2.5.1/src/test/ttcp.c:789:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[132]; data/linux-atm-2.5.1/src/test/ttcp.c:839: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(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec/100000); data/linux-atm-2.5.1/src/test/ttcp.c:845: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(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec/100000); data/linux-atm-2.5.1/src/test/ttcp.c:855: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(outp,"%d%%", (int) (t*100 / ((ms ? ms : 1)))); data/linux-atm-2.5.1/src/test/ttcp.c:862: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(outp,"%d", i); data/linux-atm-2.5.1/src/test/ttcp.c:867: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(outp,"%ld", t == 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t); data/linux-atm-2.5.1/src/test/ttcp.c:872: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(outp,"%ld", t == 0 ? 0 : data/linux-atm-2.5.1/src/test/ttcp.c:878: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(outp,"%ld", t == 0 ? 0 : data/linux-atm-2.5.1/src/test/ttcp.c:885: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(outp,"%ld", r1->ru_maxrss/2); data/linux-atm-2.5.1/src/test/ttcp.c:890: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(outp,"%ld", r1->ru_majflt-r0->ru_majflt); data/linux-atm-2.5.1/src/test/ttcp.c:895: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(outp,"%ld", r1->ru_minflt-r0->ru_minflt); data/linux-atm-2.5.1/src/test/ttcp.c:900: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(outp,"%ld", r1->ru_inblock-r0->ru_inblock); data/linux-atm-2.5.1/src/test/ttcp.c:905: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(outp,"%ld", r1->ru_oublock-r0->ru_oublock); data/linux-atm-2.5.1/src/test/ttcp.c:909: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(outp,"%ld+%ld", r1->ru_nvcsw-r0->ru_nvcsw, data/linux-atm-2.5.1/src/test/ttcp.c:956: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(cp,"%d:", i); data/linux-atm-2.5.1/src/test/ttcp.c:959: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(cp,"%d%d", (i/60) / 10, (i/60) % 10); data/linux-atm-2.5.1/src/test/ttcp.c:963: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(cp,"%d", i / 60); data/linux-atm-2.5.1/src/test/ttcp.c:968:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cp,"%d%d", i / 10, i % 10); data/linux-atm-2.5.1/src/test/window.c:70: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 buffer2[REPLY_SIZE]; data/linux-atm-2.5.1/src/test/window.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). NUM_WINDOWS = atoi(argv[4]); data/linux-atm-2.5.1/src/test/window.c:94:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). PINGPONG_SIZE = atoi(argv[5]); data/linux-atm-2.5.1/src/test/window.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). WINDOW_SIZE = atoi(argv[6]); data/linux-atm-2.5.1/src/arpd/arp.c:186: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). *num_tl = strlen(addr->sas_addr.pub) | TL_E164; data/linux-atm-2.5.1/src/arpd/atmarp.c:63:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(s,&reply,sizeof(reply)); data/linux-atm-2.5.1/src/arpd/atmarp.c:90:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((size = read(fd,buffer,BUF_SIZE))) { data/linux-atm-2.5.1/src/arpd/atmarp.c:168: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(here) > 3 && !strncmp(here,"atm",3)) here += 3; data/linux-atm-2.5.1/src/arpd/io.c:94:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(kernel,&ctrl,sizeof(ctrl)); data/linux-atm-2.5.1/src/arpd/io.c:223:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(vcc->fd,buffer,MAX_BUFFER); data/linux-atm-2.5.1/src/arpd/io.c:249:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(vcc->fd,buffer,MAX_BUFFER); data/linux-atm-2.5.1/src/arpd/table.c:176:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. if (*tmp) strcat(tmp,","); data/linux-atm-2.5.1/src/debug/delay.c:105:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(lnk->in,buffer,ATM_MAX_AAL5_PDU); data/linux-atm-2.5.1/src/ilmid/ilmidiag.c:73:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &ic, sizeof(ic)) < sizeof(ic)) { data/linux-atm-2.5.1/src/ilmid/io.c:235:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((int) (length = read(fd, data, MAX_ILMI_MSG)) < 0) data/linux-atm-2.5.1/src/ilmid/io.c:365:13: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). oldumask = umask(0); data/linux-atm-2.5.1/src/ilmid/io.c:371:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(oldumask); data/linux-atm-2.5.1/src/ilmid/io.c:374:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(oldumask); data/linux-atm-2.5.1/src/ilmid/io.c:413:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if( remsys->sysName.octs ) strncpy( ic.remote_sysname, data/linux-atm-2.5.1/src/ilmid/io.c:417:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. else strncpy( ic.remote_sysname, "(empty)", 7 ); data/linux-atm-2.5.1/src/ilmid/io.c:418:32: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if( remsys->sysContact.octs ) strncpy( ic.remote_contact, data/linux-atm-2.5.1/src/ilmid/io.c:422:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. else strncpy( ic.remote_contact, "(empty)", 7 ); data/linux-atm-2.5.1/src/ilmid/io.c:424:38: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if( apoint->atmfPortMyIfName.octs ) strncpy( data/linux-atm-2.5.1/src/ilmid/io.c:428:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. else strncpy( ic.remote_portname, "(empty)", 7 ); data/linux-atm-2.5.1/src/lane/connect.c:291:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nbytes = read(tmp->active_fd, buffer, BUFSIZE); data/linux-atm-2.5.1/src/lane/connect.c:648: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(elanname) != control_packet->elan_name_size) || data/linux-atm-2.5.1/src/lane/connect_bus.c:201:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nbytes = read(tmp->active_fd, buffer, BUFSIZE); data/linux-atm-2.5.1/src/lane/lane.c:216:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). var_file = mem_alloc(&main_unit, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lane.c:229:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). var_file = mem_alloc(&main_unit, strlen(DEFAULT_CFG_FILE)+1); data/linux-atm-2.5.1/src/lane/ldb.c:53:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). elan_arr[no_elans]->elan_name_size = MIN(32, strlen(name)); data/linux-atm-2.5.1/src/lane/ldb.c:54:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(elan_arr[no_elans]->elan_name, name, data/linux-atm-2.5.1/src/lane/lecs.c:137: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). config_file = (char*)mem_alloc(COMP_NAME, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lecs.c:141:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(config_file, optarg, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lecs.c:148: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). listen_addr = (char*)mem_alloc(COMP_NAME, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lecs.c:151:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(listen_addr, optarg, strlen(optarg)+1); data/linux-atm-2.5.1/src/lane/lecs.c:225:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd_arr[i], buffer, P_SIZE); data/linux-atm-2.5.1/src/lane/mem_lecs.c:42:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). entry->unit = (char*)malloc(strlen(unit)+1); data/linux-atm-2.5.1/src/lane/mem_lecs.c:48:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(entry->unit, unit, strlen(unit)+1); data/linux-atm-2.5.1/src/led/conn.c:703:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(conn->fd, buff, length); data/linux-atm-2.5.1/src/led/display.c:39: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. p += sprintf(p, "\n"); data/linux-atm-2.5.1/src/led/display.c:53: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. p += sprintf(p, "\n"); data/linux-atm-2.5.1/src/led/display.c:58:88: [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. p += sprintf(p, "Source ATM "); p += my_atm2text(f->src_atm_addr, p); p += sprintf(p, "\n"); data/linux-atm-2.5.1/src/led/display.c:63:91: [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. p += sprintf(p, "Target ATM "); p += my_atm2text(f->target_atm_addr, p); p += sprintf(p, "\n"); data/linux-atm-2.5.1/src/led/display.c:105:22: [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. p += sprintf(p, " "); data/linux-atm-2.5.1/src/led/display.c:110:22: [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. p += sprintf(p, " "); data/linux-atm-2.5.1/src/led/join.c:222:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). config_req->elan_name_size = strlen(lec_params.c5_elan_name); data/linux-atm-2.5.1/src/led/join.c:223:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(lec_params.c5_elan_name) > 0) data/linux-atm-2.5.1/src/led/join.c:306:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lec_params.c5_elan_name, frame->elan_name, frame->elan_name_size); data/linux-atm-2.5.1/src/led/join.c:401:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(lec_params.foreId) > 0) frame_size += (5 + strlen(lec_params.foreId)); data/linux-atm-2.5.1/src/led/join.c:401:63: [1] (buffer) strlen: Does not handle strings 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(lec_params.foreId) > 0) frame_size += (5 + strlen(lec_params.foreId)); data/linux-atm-2.5.1/src/led/join.c:410: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). frame->elan_name_size = strlen(lec_params.c5_elan_name); data/linux-atm-2.5.1/src/led/join.c:428:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(lec_params.foreId) > 0) { data/linux-atm-2.5.1/src/led/join.c:430:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tlvp +=4; *tlvp = (uint8_t)strlen(lec_params.foreId); tlvp++; data/linux-atm-2.5.1/src/led/join.c:431: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). memcpy(tlvp, lec_params.foreId, strlen(lec_params.foreId)); data/linux-atm-2.5.1/src/led/join.c:432: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). tlvp += strlen(lec_params.foreId); data/linux-atm-2.5.1/src/led/join.c:558:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lec_params.c5_elan_name, frame->elan_name, frame->elan_name_size); data/linux-atm-2.5.1/src/led/kernel.c:136:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). retval = read(lec_params.kernel->fd, &msg, sizeof(struct atmlec_msg)); data/linux-atm-2.5.1/src/led/kernel.c:214:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(lec_params.kernel->fd, (frame + 1), sizeoftlvs) < 0) { data/linux-atm-2.5.1/src/led/kernel.c:247:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(lec_params.kernel->fd, lec_params.tlvs, sizeoftlvs) < 0) { data/linux-atm-2.5.1/src/led/main.c:92: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). for (i = 0; i < strlen(parsestring); i++) { data/linux-atm-2.5.1/src/led/main.c:129:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(string); data/linux-atm-2.5.1/src/led/main.c:253:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(optarg) > 32) { data/linux-atm-2.5.1/src/led/main.c:281:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (isdigit(optarg[0]) && strlen(optarg) < 4 && data/linux-atm-2.5.1/src/led/main.c:335:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(optarg) > 255) { data/linux-atm-2.5.1/src/led/main.c:339: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). memcpy (foreId, optarg, strlen(optarg)); data/linux-atm-2.5.1/src/led/main.c:340: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). foreId[strlen(optarg)] = '\0'; data/linux-atm-2.5.1/src/led/main.c:417: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). write(fd, pidbuf, strlen(pidbuf)); data/linux-atm-2.5.1/src/lib/atm2text.c:80: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). len = strlen(addr->sas_addr.pub); data/linux-atm-2.5.1/src/lib/atm2text.c:170: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(here) < length) { data/linux-atm-2.5.1/src/lib/atm2text.c:206:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (result != TRY_OTHER) return strlen(buffer); data/linux-atm-2.5.1/src/lib/atmequal.c:72:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len_a = strlen(a->sas_addr.pub); data/linux-atm-2.5.1/src/lib/atmequal.c:73:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len_b = strlen(b->sas_addr.pub); data/linux-atm-2.5.1/src/lib/diag.c:186:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data_line = DUMP_LINE_WIDTH-(app_name ? strlen(app_name)+1 : 0)- data/linux-atm-2.5.1/src/lib/diag.c:187: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). strlen(component)-3; data/linux-atm-2.5.1/src/lib/misc.c:28: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). ref_len = strlen(*pos); data/linux-atm-2.5.1/src/lib/misc.c:32: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). len = strlen(value); data/linux-atm-2.5.1/src/lib/qos2text.c:24: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). *pos += strlen(#F)+4; \ data/linux-atm-2.5.1/src/lib/qos2text.c:54:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *pos += strlen(prefix); data/linux-atm-2.5.1/src/lib/qos2text.c:83:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(pos,","); data/linux-atm-2.5.1/src/lib/sap2text.c:76: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(str)+*end-*pos; data/linux-atm-2.5.1/src/lib/text2ip.c:33:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(text,"0123456789.") == strlen(text)) { data/linux-atm-2.5.1/src/lib/text2qos.c:64:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(end) < 3) { data/linux-atm-2.5.1/src/lib/unix.c:25: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). return (char *) &addr->sun_path[strlen(path)]-(char *) addr; data/linux-atm-2.5.1/src/lib/unix.c:40:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). old_umask = umask(~mode); data/linux-atm-2.5.1/src/lib/unix.c:42:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void) umask(old_umask); data/linux-atm-2.5.1/src/maint/atmdump.c:140:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((size = read(s,buf,52)) == 52) { data/linux-atm-2.5.1/src/maint/atmdump.c:154:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((size = read(0,buf+1,ATM_CELL_PAYLOAD)) < 0) { data/linux-atm-2.5.1/src/maint/atmtcp.c:196:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(in->fd,in->buf,MAX_PACKET); data/linux-atm-2.5.1/src/maint/atmtcp.c:272:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(in->fd,hdr+1,MAX_PACKET-sizeof(*hdr)); data/linux-atm-2.5.1/src/maint/atmtcp.c:416:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(in->fd,in->buf+in->bytes,size); data/linux-atm-2.5.1/src/maint/atmtcp.c:537:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(in->fd,in->buf+in->bytes,size); data/linux-atm-2.5.1/src/maint/atmtcp.c:816:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (to_switch) tcp_do_send(*fd,line,strlen(line)+1); data/linux-atm-2.5.1/src/maint/atmtcp.c:909:13: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do c = getchar(); data/linux-atm-2.5.1/src/maint/esi.c:75:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(argv[optind]) == ESI_LEN*2) esi = argv[optind]; data/linux-atm-2.5.1/src/maint/saaldump.c:167:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((size = read(s,buf,ATM_MAX_AAL5_PDU)) > 0) { data/linux-atm-2.5.1/src/mpoad/io.c:489:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(fd, buff, sizeof(buff)); data/linux-atm-2.5.1/src/mpoad/io.c:599:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(pfd->fd, buff, sizeof(buff)); data/linux-atm-2.5.1/src/mpoad/k_interf.c:60:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(fd, (void *)&msg, sizeof(msg)); data/linux-atm-2.5.1/src/mpoad/lecs.c:75: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). frame->elan_name_size = strlen(elan_name); data/linux-atm-2.5.1/src/mpoad/lecs.c:101:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). retval = read(fd, buff, MAXFRAME); data/linux-atm-2.5.1/src/mpoad/main.c:151:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(mpc_control.elan_name,optarg,33); data/linux-atm-2.5.1/src/mpoad/main.c:162:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(mpc_control.MPS_MAC_ADDRESS,optarg,13); data/linux-atm-2.5.1/src/mpoad/main.c:234: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). int i = strlen(string); data/linux-atm-2.5.1/src/oamd/io.c:69:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(kernel, &ctrl, sizeof (ctrl)); data/linux-atm-2.5.1/src/qgen/file.c:202:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,fmt,(size_t) (here-fmt)); data/linux-atm-2.5.1/src/sigd/io.c:78:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!need_connect) size = read(kernel,buffer,sizeof(buffer)); data/linux-atm-2.5.1/src/sigd/io.c:169:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(sig->signaling,buffer,MAX_Q_MSG); data/linux-atm-2.5.1/src/sigd/kernel.c:94: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). strlen(local->sas_addr.pub)); data/linux-atm-2.5.1/src/sigd/kernel.c:183: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). strlen(local->sas_addr.pub)); data/linux-atm-2.5.1/src/sigd/sap.c:139:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(addr->sas_addr.pub)); data/linux-atm-2.5.1/src/sigd/trace.c:76: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). append_chunk(str,strlen(str)); data/linux-atm-2.5.1/src/sigd/trace.c:90: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). append_chunk(buf,strlen(buf)); data/linux-atm-2.5.1/src/sigd/trace.c:250: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). buf = alloc(strlen(msg)+1); data/linux-atm-2.5.1/src/sigd/trace.c:252:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). store(&print_text,"MESSAGE",&null_pvc,buf,strlen(msg)); data/linux-atm-2.5.1/src/switch/sig.c:43:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(sig->s,buf,sizeof(buf)); data/linux-atm-2.5.1/src/switch/swc.c:34:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(s,msg,sizeof(*msg)); data/linux-atm-2.5.1/src/switch/tcp/tcpsw.c:199:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(fd,lnk->buffer+lnk->len,BUFFER_SIZE-lnk->len); data/linux-atm-2.5.1/src/switch/tcp/tcpsw.c:238: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). lnk->len -= strlen(lnk->buffer)+1; data/linux-atm-2.5.1/src/switch/tcp/tcpsw.c:239:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(lnk->buffer,lnk->buffer-strlen(lnk->buffer)-1,lnk->len); data/linux-atm-2.5.1/src/test/align.c:74:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(s,in,length); data/linux-atm-2.5.1/src/test/aping.c:87:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(s,dummy,2); data/linux-atm-2.5.1/src/test/aread.c:70:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(s,start,BSIZE); data/linux-atm-2.5.1/src/test/atmswitch.c:159:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bufsiz=read(s[pvc],buf,BUF_SIZE); data/linux-atm-2.5.1/src/test/awrite.c:44: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). qos.txtp.max_sdu = strlen(argv[2])-offset; data/linux-atm-2.5.1/src/test/awrite.c:53:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = write(s,argv[2]+offset,strlen(argv[2])-offset); data/linux-atm-2.5.1/src/test/br.c:62:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(s,start,BSIZE); data/linux-atm-2.5.1/src/test/bw.c:61:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else while ((size = read(0,buffer,BSIZE)) > 0) data/linux-atm-2.5.1/src/test/isp.c:49:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = read(sock,msg,sizeof(*msg)); data/linux-atm-2.5.1/src/test/svc_recv.c:142:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((rv = read(fd, outbuf, 65535)) < 0) data/linux-atm-2.5.1/src/test/ttcp.c:593:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((cnt = read(0, buf, buflen)) > 0 && Nwrite(fd,buf,cnt) == cnt) data/linux-atm-2.5.1/src/test/ttcp.c:793:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy( str, line, len ); data/linux-atm-2.5.1/src/test/ttcp.c:996:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cnt = read( _fd, _buf, count ); data/linux-atm-2.5.1/src/test/ttcp.c:1068:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(_fd, bufp, n-count); data/linux-atm-2.5.1/src/test/window.c:181:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(s2, buffer2, REPLY_SIZE); data/linux-atm-2.5.1/src/test/window.c:246:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(s1, buffer, PINGPONG_SIZE); ANALYSIS SUMMARY: Hits = 717 Lines analyzed = 47501 in approximately 1.38 seconds (34350 lines/second) Physical Source Lines of Code (SLOC) = 36115 Hits@level = [0] 689 [1] 131 [2] 500 [3] 27 [4] 59 [5] 0 Hits@level+ = [0+] 1406 [1+] 717 [2+] 586 [3+] 86 [4+] 59 [5+] 0 Hits/KSLOC@level+ = [0+] 38.9312 [1+] 19.8532 [2+] 16.2259 [3+] 2.38128 [4+] 1.63367 [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.