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/ell-0.33/ell/asn1-private.h Examining data/ell-0.33/ell/base64.c Examining data/ell-0.33/ell/base64.h Examining data/ell-0.33/ell/cert-private.h Examining data/ell-0.33/ell/cert.c Examining data/ell-0.33/ell/cert.h Examining data/ell-0.33/ell/checksum.c Examining data/ell-0.33/ell/checksum.h Examining data/ell-0.33/ell/cipher.c Examining data/ell-0.33/ell/cipher.h Examining data/ell-0.33/ell/dbus-client.c Examining data/ell-0.33/ell/dbus-client.h Examining data/ell-0.33/ell/dbus-filter.c Examining data/ell-0.33/ell/dbus-message.c Examining data/ell-0.33/ell/dbus-name-cache.c Examining data/ell-0.33/ell/dbus-private.h Examining data/ell-0.33/ell/dbus-service.c Examining data/ell-0.33/ell/dbus-service.h Examining data/ell-0.33/ell/dbus-util.c Examining data/ell-0.33/ell/dbus.c Examining data/ell-0.33/ell/dbus.h Examining data/ell-0.33/ell/dhcp-lease.c Examining data/ell-0.33/ell/dhcp-private.h Examining data/ell-0.33/ell/dhcp-transport.c Examining data/ell-0.33/ell/dhcp.c Examining data/ell-0.33/ell/dhcp.h Examining data/ell-0.33/ell/dhcp6-lease.c Examining data/ell-0.33/ell/dhcp6-private.h Examining data/ell-0.33/ell/dhcp6-transport.c Examining data/ell-0.33/ell/dhcp6.c Examining data/ell-0.33/ell/dhcp6.h Examining data/ell-0.33/ell/dir.c Examining data/ell-0.33/ell/dir.h Examining data/ell-0.33/ell/ecc-external.c Examining data/ell-0.33/ell/ecc-private.h Examining data/ell-0.33/ell/ecc.c Examining data/ell-0.33/ell/ecc.h Examining data/ell-0.33/ell/ecdh.c Examining data/ell-0.33/ell/ecdh.h Examining data/ell-0.33/ell/ell.h Examining data/ell-0.33/ell/file.c Examining data/ell-0.33/ell/file.h Examining data/ell-0.33/ell/genl.c Examining data/ell-0.33/ell/genl.h Examining data/ell-0.33/ell/gpio.c Examining data/ell-0.33/ell/gpio.h Examining data/ell-0.33/ell/gvariant-private.h Examining data/ell-0.33/ell/gvariant-util.c Examining data/ell-0.33/ell/hashmap.c Examining data/ell-0.33/ell/hashmap.h Examining data/ell-0.33/ell/hwdb.c Examining data/ell-0.33/ell/hwdb.h Examining data/ell-0.33/ell/idle.c Examining data/ell-0.33/ell/idle.h Examining data/ell-0.33/ell/io.c Examining data/ell-0.33/ell/io.h Examining data/ell-0.33/ell/key.c Examining data/ell-0.33/ell/key.h Examining data/ell-0.33/ell/log.c Examining data/ell-0.33/ell/log.h Examining data/ell-0.33/ell/main.c Examining data/ell-0.33/ell/main.h Examining data/ell-0.33/ell/missing.h Examining data/ell-0.33/ell/net.c Examining data/ell-0.33/ell/net.h Examining data/ell-0.33/ell/netlink-private.h Examining data/ell-0.33/ell/netlink.c Examining data/ell-0.33/ell/netlink.h Examining data/ell-0.33/ell/path.c Examining data/ell-0.33/ell/path.h Examining data/ell-0.33/ell/pem-private.h Examining data/ell-0.33/ell/pem.c Examining data/ell-0.33/ell/pem.h Examining data/ell-0.33/ell/pkcs5-private.h Examining data/ell-0.33/ell/pkcs5.c Examining data/ell-0.33/ell/pkcs5.h Examining data/ell-0.33/ell/plugin.c Examining data/ell-0.33/ell/plugin.h Examining data/ell-0.33/ell/private.h Examining data/ell-0.33/ell/queue.c Examining data/ell-0.33/ell/queue.h Examining data/ell-0.33/ell/random.c Examining data/ell-0.33/ell/random.h Examining data/ell-0.33/ell/ringbuf.c Examining data/ell-0.33/ell/ringbuf.h Examining data/ell-0.33/ell/rtnl.c Examining data/ell-0.33/ell/rtnl.h Examining data/ell-0.33/ell/settings.c Examining data/ell-0.33/ell/settings.h Examining data/ell-0.33/ell/signal.c Examining data/ell-0.33/ell/signal.h Examining data/ell-0.33/ell/siphash-private.h Examining data/ell-0.33/ell/siphash.c Examining data/ell-0.33/ell/string.c Examining data/ell-0.33/ell/string.h Examining data/ell-0.33/ell/strv.c Examining data/ell-0.33/ell/strv.h Examining data/ell-0.33/ell/test.c Examining data/ell-0.33/ell/test.h Examining data/ell-0.33/ell/time.c Examining data/ell-0.33/ell/time.h Examining data/ell-0.33/ell/timeout.c Examining data/ell-0.33/ell/timeout.h Examining data/ell-0.33/ell/tls-extensions.c Examining data/ell-0.33/ell/tls-private.h Examining data/ell-0.33/ell/tls-record.c Examining data/ell-0.33/ell/tls-suites.c Examining data/ell-0.33/ell/tls.c Examining data/ell-0.33/ell/tls.h Examining data/ell-0.33/ell/uintset.c Examining data/ell-0.33/ell/uintset.h Examining data/ell-0.33/ell/utf8.c Examining data/ell-0.33/ell/utf8.h Examining data/ell-0.33/ell/util.c Examining data/ell-0.33/ell/util.h Examining data/ell-0.33/ell/uuid.c Examining data/ell-0.33/ell/uuid.h Examining data/ell-0.33/examples/dbus-client.c Examining data/ell-0.33/examples/dbus-service.c Examining data/ell-0.33/examples/dhcp-client.c Examining data/ell-0.33/examples/dhcp6-client.c Examining data/ell-0.33/examples/glib-eventloop.c Examining data/ell-0.33/examples/https-client-test.c Examining data/ell-0.33/examples/https-server-test.c Examining data/ell-0.33/linux/gpio.h Examining data/ell-0.33/tools/certchain-verify.c Examining data/ell-0.33/tools/genl-discover.c Examining data/ell-0.33/tools/genl-request.c Examining data/ell-0.33/tools/genl-watch.c Examining data/ell-0.33/tools/gpio.c Examining data/ell-0.33/unit/example-plugin.c Examining data/ell-0.33/unit/test-base64.c Examining data/ell-0.33/unit/test-checksum.c Examining data/ell-0.33/unit/test-cipher.c Examining data/ell-0.33/unit/test-dbus-message-fds.c Examining data/ell-0.33/unit/test-dbus-message.c Examining data/ell-0.33/unit/test-dbus-properties.c Examining data/ell-0.33/unit/test-dbus-service.c Examining data/ell-0.33/unit/test-dbus-util.c Examining data/ell-0.33/unit/test-dbus-watch.c Examining data/ell-0.33/unit/test-dbus.c Examining data/ell-0.33/unit/test-dhcp.c Examining data/ell-0.33/unit/test-dhcp6.c Examining data/ell-0.33/unit/test-dir-watch.c Examining data/ell-0.33/unit/test-ecc.c Examining data/ell-0.33/unit/test-ecdh.c Examining data/ell-0.33/unit/test-endian.c Examining data/ell-0.33/unit/test-genl-msg.c Examining data/ell-0.33/unit/test-gvariant-message.c Examining data/ell-0.33/unit/test-gvariant-util.c Examining data/ell-0.33/unit/test-hashmap.c Examining data/ell-0.33/unit/test-hwdb.c Examining data/ell-0.33/unit/test-io.c Examining data/ell-0.33/unit/test-key.c Examining data/ell-0.33/unit/test-main.c Examining data/ell-0.33/unit/test-net.c Examining data/ell-0.33/unit/test-netlink.c Examining data/ell-0.33/unit/test-path.c Examining data/ell-0.33/unit/test-pbkdf2.c Examining data/ell-0.33/unit/test-pem.c Examining data/ell-0.33/unit/test-plugin.c Examining data/ell-0.33/unit/test-queue.c Examining data/ell-0.33/unit/test-random.c Examining data/ell-0.33/unit/test-ringbuf.c Examining data/ell-0.33/unit/test-rtnl.c Examining data/ell-0.33/unit/test-settings.c Examining data/ell-0.33/unit/test-siphash.c Examining data/ell-0.33/unit/test-string.c Examining data/ell-0.33/unit/test-time.c Examining data/ell-0.33/unit/test-tls.c Examining data/ell-0.33/unit/test-uintset.c Examining data/ell-0.33/unit/test-unit.c Examining data/ell-0.33/unit/test-utf8.c Examining data/ell-0.33/unit/test-util.c Examining data/ell-0.33/unit/test-uuid.c FINAL RESULTS: data/ell-0.33/ell/cert.c:442:4: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(error_buf, sizeof(error_buf), msg, ## args); \ data/ell-0.33/ell/checksum.c:139:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *) salg.salg_name, alg); data/ell-0.33/ell/checksum.c:444:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *) salg.salg_name, info->name); data/ell-0.33/ell/cipher.c:117:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *) salg.salg_type, alg_type); data/ell-0.33/ell/cipher.c:118:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *) salg.salg_name, alg_name); data/ell-0.33/ell/cipher.c:611: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((char *) salg.salg_name, name); data/ell-0.33/ell/cipher.c:622: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((char *) salg.salg_name, aead_cipher_type_to_name(a)); data/ell-0.33/ell/dbus-message.c:369: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(str, sizeof(str), format, args); data/ell-0.33/ell/dbus-service.c:332: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(info->metainfo, name); data/ell-0.33/ell/dbus-service.c:426: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(p, signature); data/ell-0.33/ell/dbus-service.c:443: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(interface->name, name); data/ell-0.33/ell/dbus-util.c:872: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(ret->signature, signature); data/ell-0.33/ell/dbus-util.c:985: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(builder->body + start + 1, value); data/ell-0.33/ell/dbus-util.c:989: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(builder->body + start + 4, value); data/ell-0.33/ell/dbus-util.c:1128: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(builder->body + start + 1, signature); data/ell-0.33/ell/dbus.h:118:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 3, 0))); data/ell-0.33/ell/dbus.h:123:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 3, 4))); data/ell-0.33/ell/gvariant-util.c:382: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(subsig, sig_start); data/ell-0.33/ell/gvariant-util.c:834: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(ret->signature, signature); data/ell-0.33/ell/hwdb.c:216:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(scratch_buf, "%s%s", prefix, prefix_str); data/ell-0.33/ell/hwdb.c:329:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(scratch_buf, "%s%s", prefix, prefix_str); data/ell-0.33/ell/hwdb.h:47:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/ell-0.33/ell/hwdb.h:50:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 0))); data/ell-0.33/ell/log.c:142:23: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 5, 0))) data/ell-0.33/ell/log.c:146:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, ap); data/ell-0.33/ell/log.c:161:23: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 5, 0))) data/ell-0.33/ell/log.c:210:23: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 5, 0))) data/ell-0.33/ell/log.h:50:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 5, 6))); data/ell-0.33/ell/path.c:131:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path + len, basename); data/ell-0.33/ell/path.c:133:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, mode) == 0) data/ell-0.33/ell/ringbuf.h:56:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/ell-0.33/ell/ringbuf.h:59:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 0))); data/ell-0.33/ell/settings.c:1121:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), "%" PRId64, in); data/ell-0.33/ell/settings.c:1167:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), "%" PRIu64, in); data/ell-0.33/ell/string.c:252:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(dest->str + dest->len, have_space, format, args); data/ell-0.33/ell/string.c:256:9: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. len = vsprintf(dest->str + dest->len, format, args_copy); data/ell-0.33/ell/string.h:45:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 0))); data/ell-0.33/ell/string.h:47:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/ell-0.33/ell/strv.h:41:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/ell-0.33/ell/strv.h:44:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 0))); data/ell-0.33/ell/util.h:282:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 1, 2))); data/ell-0.33/ell/util.h:284:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 1, 0))); data/ell-0.33/ell/util.h:307:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 3, 4))); data/ell-0.33/unit/test-hwdb.c:43:2: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, args); data/ell-0.33/unit/test-netlink.c:65: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(ifname, RTA_DATA(rta)); data/ell-0.33/ell/dbus.c:1193:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. address = getenv("DBUS_SYSTEM_BUS_ADDRESS"); data/ell-0.33/ell/dbus.c:1198:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. address = getenv("DBUS_SESSION_BUS_ADDRESS"); data/ell-0.33/ell/main.c:368:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. sock = getenv("NOTIFY_SOCKET"); data/ell-0.33/ell/main.c:395:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. watchdog_usec = getenv("WATCHDOG_USEC"); data/ell-0.33/ell/random.c:104:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return random() * RAND_MAX + random(); data/ell-0.33/ell/random.c:104:38: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return random() * RAND_MAX + random(); data/ell-0.33/examples/https-client-test.c:192:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TLS_DEBUG")) data/ell-0.33/examples/https-server-test.c:177:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TLS_DEBUG")) data/ell-0.33/tools/genl-discover.c:74:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GENL_DEBUG")) data/ell-0.33/tools/genl-request.c:101:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GENL_DEBUG")) data/ell-0.33/tools/genl-watch.c:85:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GENL_DEBUG")) data/ell-0.33/unit/test-dbus-service.c:340:17: [3] (random) lrand48: 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 = allowed[lrand48() % strlen(allowed)]; data/ell-0.33/unit/test-dir-watch.c:604: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, "d")) != -1) { data/ell-0.33/unit/test-tls.c:580:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TLS_SERVER_DEBUG")) data/ell-0.33/unit/test-tls.c:583:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TLS_DEBUG")) data/ell-0.33/ell/cert.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cert->asn1, buf, buf_len); data/ell-0.33/ell/cert.c:374: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(error, "Can't get public key from certificate " data/ell-0.33/ell/cert.c:382: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(error, "Can't link the public key from " data/ell-0.33/ell/cert.c:459:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char error_buf[200]; data/ell-0.33/ell/cert.c:558:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[100]; data/ell-0.33/ell/checksum.c:138: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((char *) salg.salg_type, "hash"); data/ell-0.33/ell/checksum.c:406:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[64]; data/ell-0.33/ell/checksum.c:434: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((char *) salg.salg_type, "hash"); data/ell-0.33/ell/cipher.c:280:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(CMSG_DATA(c_msg), &operation, sizeof(operation)); data/ell-0.33/ell/cipher.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(algiv->iv, iv, iv_len); data/ell-0.33/ell/cipher.c:383:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(CMSG_DATA(c_msg), &operation, sizeof(operation)); data/ell-0.33/ell/cipher.c:454:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c_msg_buf[CMSG_SPACE(4 + iv_length)]; data/ell-0.33/ell/cipher.c:472:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(CMSG_DATA(c_msg) + 0, &len, 4); data/ell-0.33/ell/cipher.c:473:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(CMSG_DATA(c_msg) + 4, iv, iv_length); data/ell-0.33/ell/cipher.c:509:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*iv + 1, nonce, nonce_len); data/ell-0.33/ell/cipher.c:604: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((char *) salg.salg_type, "skcipher"); data/ell-0.33/ell/cipher.c:619: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((char *) salg.salg_type, "aead"); data/ell-0.33/ell/dbus-filter.c:371:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *key, arg_buf[6]; data/ell-0.33/ell/dbus-message.c:365:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/ell-0.33/ell/dbus-message.c:775:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message->header, data, message->header_size); data/ell-0.33/ell/dbus-message.c:776:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message->body, data + body_pos, message->body_size); data/ell-0.33/ell/dbus-message.c:802:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message->fds, fds, num_fds * sizeof(int)); data/ell-0.33/ell/dbus-message.c:862:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message->fds, fds, num_fds * sizeof(int)); data/ell-0.33/ell/dbus-message.c:1620:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[256]; data/ell-0.33/ell/dbus-message.c:1711:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(signature, iter.sig_start, iter.sig_len); data/ell-0.33/ell/dbus-message.c:1738:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char subsig[256]; data/ell-0.33/ell/dbus-message.c:1882: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(subsig, s + 1, sigend - s - 1); data/ell-0.33/ell/dbus-message.c:1930: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(subsig, s + 1, sigend - s - 1); data/ell-0.33/ell/dbus-service.c:669:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(child->subpath, path, end - path); data/ell-0.33/ell/dbus-util.c:860:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[256]; data/ell-0.33/ell/dbus-util.c:970: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(builder->body + start, &b, len); data/ell-0.33/ell/dbus-util.c:972: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(builder->body + start, value, len); data/ell-0.33/ell/dbus-util.c:1001: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). const char open, data/ell-0.33/ell/dbus-util.c:1014: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 expect[256]; data/ell-0.33/ell/dbus-util.c:1021: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 (*start != open || *end != close) data/ell-0.33/ell/dbus-util.c:1024:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(expect, start + 1, end - start - 1); data/ell-0.33/ell/dbus-util.c:1065: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). const char open, data/ell-0.33/ell/dbus-util.c:1084: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). open, data/ell-0.33/ell/dbus-util.c:1181: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 expect[256]; data/ell-0.33/ell/dbus-util.c:1191:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(expect, start + 1, end - start - 1); data/ell-0.33/ell/dbus.c:450:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; data/ell-0.33/ell/dbus.c:629: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(CMSG_DATA(cmsg), fds, num_fds * sizeof(int)); data/ell-0.33/ell/dbus.c:735: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(classic->fd_buf + classic->num_fds, fds, data/ell-0.33/ell/dbus.c:1039:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uid[6], hexuid[12], *ptr = hexuid; data/ell-0.33/ell/dbus.c:1051:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. ptr += sprintf(ptr, "%02x", uid[i]); data/ell-0.33/ell/dhcp-lease.c:119: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(lease->domain_name, v, l); data/ell-0.33/ell/dhcp-private.h:78:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct dhcp_transport *s, uint32_t xid); data/ell-0.33/ell/dhcp-transport.c:52:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ifname[IFNAMSIZ]; data/ell-0.33/ell/dhcp-transport.c:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[2048]; data/ell-0.33/ell/dhcp.c:308:3: [2] (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)[2], optval, optlen); data/ell-0.33/ell/dhcp.c:551:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message->chaddr, &client->addr, client->addr_len); data/ell-0.33/ell/dhcp.c:1105:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client->addr, addr, addr_len); data/ell-0.33/ell/dhcp.c:1220:25: [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 (client->transport->open) data/ell-0.33/ell/dhcp.c:1221:26: [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 (client->transport->open(client->transport, data/ell-0.33/ell/dhcp6-lease.c:37: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. static inline char *get_ip(const uint8_t a[static 16]) data/ell-0.33/ell/dhcp6-lease.c:40:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[INET6_ADDRSTRLEN]; data/ell-0.33/ell/dhcp6-lease.c:42:2: [2] (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.s6_addr, a, 16); data/ell-0.33/ell/dhcp6-lease.c:251:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out->iaid, expected_iaid, 4); data/ell-0.33/ell/dhcp6-lease.c:254:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&out->info, &info, sizeof(info)); data/ell-0.33/ell/dhcp6-private.h:65:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct dhcp6_transport *s); data/ell-0.33/ell/dhcp6-transport.c:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/ell-0.33/ell/dhcp6.c:262:2: [2] (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 + OPTION_HEADER_LEN, bytes, len); data/ell-0.33/ell/dhcp6.c:476:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(option_reserve(builder, 4), client->addr + 2, 4); data/ell-0.33/ell/dhcp6.c:503:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ia_addr + 4, client->lease->ia_na.info.addr, 16); data/ell-0.33/ell/dhcp6.c:587:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client->duid->identifier + 2 + 4, client->addr, data/ell-0.33/ell/dhcp6.c:957:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&seek, &iter, sizeof(struct dhcp6_option_iter)); data/ell-0.33/ell/dhcp6.c:1317:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client->addr, addr, addr_len); data/ell-0.33/ell/dhcp6.c:1387:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client->duid->identifier + 2, client->addr, client->addr_len); data/ell-0.33/ell/dhcp6.c:1471:25: [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 (client->transport->open) { data/ell-0.33/ell/dhcp6.c:1472:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int r = client->transport->open(client->transport); data/ell-0.33/ell/ecc.c:242:2: [2] (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, tmp, ndigits * 8); data/ell-0.33/ell/ecc.c:254:2: [2] (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, tmp, ndigits * 8); data/ell-0.33/ell/ecc.c:273:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(y_sqr, sum, curve->ndigits * 8); data/ell-0.33/ell/ecc.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(expo, curve->p, curve->ndigits * 8); data/ell-0.33/ell/ecc.c:355:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(point->y, y_min, curve->ndigits * 8); data/ell-0.33/ell/ecc.c:357:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(point->x, x, curve->ndigits * 8); data/ell-0.33/ell/ecc.c:398:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret->x, resx, ndigits * 8); data/ell-0.33/ell/ecc.c:399:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret->y, resy, ndigits * 8); data/ell-0.33/ell/ecc.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(n, base, ndigits * 8); data/ell-0.33/ell/ecc.c:419: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(r, tmp, ndigits * 8); data/ell-0.33/ell/ecc.c:423: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(n, tmp, ndigits * 8); data/ell-0.33/ell/ecc.c:427:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, r, ndigits * 8); data/ell-0.33/ell/ecc.c:585:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(c->c, buf, len); data/ell-0.33/ell/file.c:55: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(filename, O_RDONLY); data/ell-0.33/ell/genl.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[GENL_NAMSIZ]; data/ell-0.33/ell/genl.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[GENL_NAMSIZ]; data/ell-0.33/ell/genl.c:148:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GENL_NAMSIZ]; data/ell-0.33/ell/genl.c:1037: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[8192]; data/ell-0.33/ell/genl.c:1038: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 control[32]; data/ell-0.33/ell/genl.c:1652:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->data + msg->len + NLA_HDRLEN, data, len); data/ell-0.33/ell/genl.c:1683:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->data + msg->len, iov->iov_base, iov->iov_len); data/ell-0.33/ell/gpio.c:112: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(path, O_RDONLY | O_CLOEXEC); data/ell-0.33/ell/gvariant-util.c:323:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&x, p, sz); data/ell-0.33/ell/gvariant-util.c:351:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &x, sz); data/ell-0.33/ell/gvariant-util.c:364:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char subsig[256]; data/ell-0.33/ell/gvariant-util.c:379:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(subsig, sig_start, len); data/ell-0.33/ell/gvariant-util.c:414:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(subsig, sig_start + children[i].sig_start, len); data/ell-0.33/ell/gvariant-util.c:501:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[256]; data/ell-0.33/ell/gvariant-util.c:508:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sig, iter->sig_start + iter->sig_pos, data/ell-0.33/ell/gvariant-util.c:689:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[256]; data/ell-0.33/ell/gvariant-util.c:708:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(signature, nul + 1, end - nul - 1); data/ell-0.33/ell/gvariant-util.c:781:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signature[256]; data/ell-0.33/ell/gvariant-util.c:930: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). const char open, data/ell-0.33/ell/gvariant-util.c:944: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 expect[256]; data/ell-0.33/ell/gvariant-util.c:951: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 (*start != open || *end != close) data/ell-0.33/ell/gvariant-util.c:954:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(expect, start + 1, end - start - 1); data/ell-0.33/ell/gvariant-util.c:996: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). const char open, data/ell-0.33/ell/gvariant-util.c:1039: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). open, data/ell-0.33/ell/gvariant-util.c:1110:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(builder->body + start + 1, container->signature, siglen); data/ell-0.33/ell/gvariant-util.c:1146: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 expect[256]; data/ell-0.33/ell/gvariant-util.c:1156:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(expect, start + 1, end - start - 1); data/ell-0.33/ell/gvariant-util.c:1238:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(builder->body + start, value, len); data/ell-0.33/ell/gvariant-util.c:1252:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(builder->body + start, value, len); data/ell-0.33/ell/hwdb.c:42: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 trie_sig[8] = { 'K', 'S', 'L', 'P', 'H', 'H', 'R', 'H' }; data/ell-0.33/ell/hwdb.c:102: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(pathname, O_RDONLY | O_CLOEXEC); data/ell-0.33/ell/key.c:560:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prime_1, prime_buf, prime_len); data/ell-0.33/ell/log.c:167:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hdr[64], *str; data/ell-0.33/ell/log.c:216:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prio[16], *str; data/ell-0.33/ell/main.c:399:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). msec = atoi(watchdog_usec) / 1000; data/ell-0.33/ell/net.c:77:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out_addr, ifr.ifr_hwaddr.sa_data, 6); data/ell-0.33/ell/netlink.c:234: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 buffer[4096]; data/ell-0.33/ell/netlink.c:235: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 control[32]; data/ell-0.33/ell/netlink.c:436:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((void *) nlmsg) + NLMSG_HDRLEN, data, len); data/ell-0.33/ell/pem.c:234:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). info->fd = open(filename, O_RDONLY); data/ell-0.33/ell/pkcs5.c:77:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t, password, strlen(password)); data/ell-0.33/ell/pkcs5.c:78:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t + strlen(password), salt, salt_len); data/ell-0.33/ell/pkcs5.c:98:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out_dk, t, dk_len); data/ell-0.33/ell/pkcs5.c:153:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(u, salt, salt_len); data/ell-0.33/ell/ringbuf.c:436:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ringbuf->buffer + offset, data, end); data/ell-0.33/ell/ringbuf.c:445:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ringbuf->buffer, data + end, left); data/ell-0.33/ell/rtnl.c:67:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(RTA_DATA(rta), data, data_len); data/ell-0.33/ell/rtnl.c:78:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[INET6_ADDRSTRLEN]; data/ell-0.33/ell/rtnl.c:494:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char address[128]; data/ell-0.33/ell/settings.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[32]; data/ell-0.33/ell/settings.c:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[0]; data/ell-0.33/ell/settings.c:360:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(group->type, type, type_len); data/ell-0.33/ell/settings.c:364:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(group->data, ptr + 2, bytes); data/ell-0.33/ell/settings.c:664: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(filename, O_RDONLY); data/ell-0.33/ell/settings.c:1026:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; data/ell-0.33/ell/settings.c:1073:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; data/ell-0.33/ell/settings.c:1119:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; data/ell-0.33/ell/settings.c:1165:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; data/ell-0.33/ell/string.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(dest->str + dest->len, src, size); data/ell-0.33/ell/string.c:218:2: [2] (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->str + dest->len, src, max); data/ell-0.33/ell/string.c:354:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(arg->chars + arg->cur_len, mem, len); data/ell-0.33/ell/tls-record.c:179:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iv, tls->fixed_iv[1], tls->fixed_iv_length[1]); data/ell-0.33/ell/tls-record.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(ciphertext, iv + tls->fixed_iv_length[1], data/ell-0.33/ell/tls-record.c:243:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(plaintext + 5, data, fragment_len); data/ell-0.33/ell/tls-record.c:359:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tls->message_buf + tls->message_buf_len, plaintext, data/ell-0.33/ell/tls-record.c:420: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(compressed + 13, tls->record_buf + 5, data/ell-0.33/ell/tls-record.c:565:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iv, tls->fixed_iv[0], tls->fixed_iv_length[0]); data/ell-0.33/ell/tls-record.c:566:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iv + tls->fixed_iv_length[0], tls->record_buf + 5, data/ell-0.33/ell/tls-record.c:635:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tls->record_buf + tls->record_buf_len, data, chunk_len); data/ell-0.33/ell/tls-suites.c:328:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pre_master_secret + 2, random_secret, 46); data/ell-0.33/ell/tls-suites.c:796:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr + 2, prime_buf, params->prime_len); data/ell-0.33/ell/tls-suites.c:800:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr + 2, &generator_buf, 1); data/ell-0.33/ell/tls-suites.c:804:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr + 2, public_buf + zeros, public_len - zeros); data/ell-0.33/ell/tls-suites.c:999:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr + 2, public_buf + zeros, public_len - zeros); data/ell-0.33/ell/tls.c:101:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prfseed, label, strlen(label)); data/ell-0.33/ell/tls.c:102:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prfseed + strlen(label), seed, seed_len); data/ell-0.33/ell/tls.c:104:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a, prfseed, prfseed_len); data/ell-0.33/ell/tls.c:114:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a + a_len, prfseed, prfseed_len); data/ell-0.33/ell/tls.c:150:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 0, tls->pending.client_random, 32); data/ell-0.33/ell/tls.c:151:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 32, tls->pending.server_random, 32); data/ell-0.33/ell/tls.c:221:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char error_buf[200]; data/ell-0.33/ell/tls.c:367:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tls->fixed_iv[txrx], tls->pending.key_block + key_offset, data/ell-0.33/ell/tls.c:391:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char error_buf[200]; data/ell-0.33/ell/tls.c:807:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100]; data/ell-0.33/ell/tls.c:988:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, tls->pending.client_random, 32); data/ell-0.33/ell/tls.c:1043:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, tls->pending.server_random, 32); data/ell-0.33/ell/tls.c:1089:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*ptr, der, der_len); data/ell-0.33/ell/tls.c:1214:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, dn, dn_size); /* value */ data/ell-0.33/ell/tls.c:1245:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 0, tls->pending.client_random, 32); data/ell-0.33/ell/tls.c:1246:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 32, tls->pending.server_random, 32); data/ell-0.33/ell/tls.c:1275:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 0, tls->pending.server_random, 32); data/ell-0.33/ell/tls.c:1276:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 32, tls->pending.client_random, 32); data/ell-0.33/ell/tls.c:1410:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 0, tls->prev_digest[HANDSHAKE_HASH_MD5], 16); data/ell-0.33/ell/tls.c:1411:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(seed + 16, tls->prev_digest[HANDSHAKE_HASH_SHA1], 20); data/ell-0.33/ell/tls.c:1579:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tls->pending.client_random, buf + 2, 32); data/ell-0.33/ell/tls.c:1779:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tls->pending.server_random, buf + 2, 32); data/ell-0.33/ell/tls.c:2123:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, tls->prev_digest[type], len); data/ell-0.33/ell/tls.c:3008:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100]; data/ell-0.33/ell/uintset.c:491:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone->bits, original->bits, bitmap_size); data/ell-0.33/ell/utf8.c:42: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. LIB_EXPORT unsigned char l_ascii_table[256] = { data/ell-0.33/ell/utf8.c:88:15: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const wchar_t mins[3] = { 1 << 7, 1 << 11, 1 << 16 }; data/ell-0.33/ell/util.c:123:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, mem, size); data/ell-0.33/ell/util.c:276:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, len); data/ell-0.33/ell/util.c:345: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 *hexstring_common(const unsigned char *buf, size_t len, data/ell-0.33/ell/util.c:345:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *hexstring_common(const unsigned char *buf, size_t len, data/ell-0.33/ell/util.c:346:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char hexdigits[static 16]) data/ell-0.33/ell/util.c:461:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[68]; data/ell-0.33/ell/util.c:525:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[68]; data/ell-0.33/ell/util.c:610:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char path[PATH_MAX + 1]; data/ell-0.33/ell/util.c:612:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[100]; data/ell-0.33/ell/util.c:618:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/mounts", "r"); data/ell-0.33/ell/uuid.c:228:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. LIB_EXPORT bool l_uuid_from_string(const char *src, uint8_t uuid[16]) data/ell-0.33/ell/uuid.c:258:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(uuid, buf, sizeof(buf)); data/ell-0.33/ell/uuid.h:56:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. bool l_uuid_from_string(const char *src, uint8_t uuid[16]); data/ell-0.33/examples/dhcp-client.c:94:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ifindex = atoi(argv[1]); data/ell-0.33/examples/dhcp6-client.c:69:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ifindex = atoi(argv[1]); data/ell-0.33/examples/glib-eventloop.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[32]; data/ell-0.33/linux/gpio.h:25:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/ell-0.33/linux/gpio.h:26:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[32]; data/ell-0.33/linux/gpio.h:52:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/ell-0.33/linux/gpio.h:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char consumer[32]; data/ell-0.33/linux/gpio.h:92:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char consumer_label[32]; data/ell-0.33/linux/gpio.h:133:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char consumer_label[32]; data/ell-0.33/tools/certchain-verify.c:45: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(file, O_RDONLY); data/ell-0.33/unit/test-checksum.c:51: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 digest[16]; data/ell-0.33/unit/test-checksum.c:74:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[16]; data/ell-0.33/unit/test-checksum.c:97: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 digest[20]; data/ell-0.33/unit/test-checksum.c:120: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 digest[32]; data/ell-0.33/unit/test-checksum.c:144: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 digest[16]; data/ell-0.33/unit/test-checksum.c:160: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 digest1[20]; data/ell-0.33/unit/test-checksum.c:161: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 digest2[20]; data/ell-0.33/unit/test-cipher.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/ell-0.33/unit/test-cipher.c:61:2: [2] (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, FIXED_STR, FIXED_LEN); data/ell-0.33/unit/test-cipher.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[256]; data/ell-0.33/unit/test-cipher.c:91:2: [2] (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, FIXED_STR, FIXED_LEN); data/ell-0.33/unit/test-dbus-message-fds.c:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *prg_argv[5]; data/ell-0.33/unit/test-dbus-message-fds.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *prg_envp[1]; data/ell-0.33/unit/test-dbus-message-fds.c:205: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("/dev/random", O_RDONLY); data/ell-0.33/unit/test-dbus-message-fds.c:282:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd0 = open("/dev/random", O_RDONLY); data/ell-0.33/unit/test-dbus-message.c:1489:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(blob, header, header_size); data/ell-0.33/unit/test-dbus-message.c:1490:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(blob + header_size, body, body_size); data/ell-0.33/unit/test-dbus-message.c:2823:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd0 = open("/dev/random", O_RDONLY); data/ell-0.33/unit/test-dbus-message.c:2855: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("/dev/random", O_RDONLY); data/ell-0.33/unit/test-dbus-properties.c:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *prg_argv[5]; data/ell-0.33/unit/test-dbus-properties.c:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *prg_envp[1]; data/ell-0.33/unit/test-dbus-service.c:307:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[50]; data/ell-0.33/unit/test-dbus.c:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *prg_argv[5]; data/ell-0.33/unit/test-dbus.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *prg_envp[1]; data/ell-0.33/unit/test-dhcp.c:182:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&opt[4], test->options, test->len); data/ell-0.33/unit/test-dhcp.c:185:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&message->file, test->file, test->filelen); data/ell-0.33/unit/test-dhcp.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(&message->sname, test->sname, test->snamelen); data/ell-0.33/unit/test-dhcp.c:670:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client_packet, data, len); data/ell-0.33/unit/test-dhcp.c:682:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client_packet, data, len); data/ell-0.33/unit/test-dhcp6.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(client_packet, data, len); data/ell-0.33/unit/test-dhcp6.c:213:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client_packet, packet, sizeof(packet)); \ data/ell-0.33/unit/test-dhcp6.c:214:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(client_packet + 1, transaction_id, sizeof(transaction_id)); \ data/ell-0.33/unit/test-dir-watch.c:242: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(pathname, O_RDONLY); data/ell-0.33/unit/test-ecc.c:36:2: [2] (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, tmp, curve->ndigits * 8); \ data/ell-0.33/unit/test-ecdh.c:57:2: [2] (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, random_buf, len); data/ell-0.33/unit/test-ecdh.c:132:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_public->x, a_pub_buf, 32); data/ell-0.33/unit/test-ecdh.c:133:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_public->y, a_pub_buf + 4, 32); data/ell-0.33/unit/test-ecdh.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(b_public->x, b_pub_buf, 32); data/ell-0.33/unit/test-ecdh.c:135:2: [2] (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_public->y, b_pub_buf + 4, 32); data/ell-0.33/unit/test-ecdh.c:195:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_public->x, a_pub_buf, 48); data/ell-0.33/unit/test-ecdh.c:196:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_public->y, a_pub_buf + 6, 48); data/ell-0.33/unit/test-ecdh.c:197:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b_public->x, b_pub_buf, 48); data/ell-0.33/unit/test-ecdh.c:198:2: [2] (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_public->y, b_pub_buf + 6, 48); data/ell-0.33/unit/test-genl-msg.c:51:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char mac[6] = data/ell-0.33/unit/test-genl-msg.c:100:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char mac[6] = data/ell-0.33/unit/test-gvariant-message.c:216:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(blob, header, header_size); data/ell-0.33/unit/test-gvariant-message.c:217:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(blob + header_size, body, body_size); data/ell-0.33/unit/test-io.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[32]; data/ell-0.33/unit/test-key.c: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 buf[64] = { 0 }; data/ell-0.33/unit/test-netlink.c:47:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ifname[IF_NAMESIZE]; data/ell-0.33/unit/test-pbkdf2.c:46: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 output[25]; data/ell-0.33/unit/test-string.c:280:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *result[10]; data/ell-0.33/unit/test-tls.c:481:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->plaintext_buf + s->plaintext_buf_len, data, len); data/ell-0.33/unit/test-tls.c:496:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->raw_buf + s->raw_buf_len, data, len); data/ell-0.33/unit/test-tls.c:912:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(path, "r"); data/ell-0.33/unit/test-uuid.c:150:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; data/ell-0.33/ell/cipher.c:348:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read(sk, out, out_len); data/ell-0.33/ell/dbus-message.c:1406:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!iter->sig_start || strlen(signature) != iter->sig_len || data/ell-0.33/ell/dbus-message.c:1751:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). stack[stack_index].sig_end = signature + strlen(signature); data/ell-0.33/ell/dbus-message.c:1921: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). stack[stack_index].sig_end = str + strlen(str); data/ell-0.33/ell/dbus-service.c:150: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). offset += strlen(sig) + 1; data/ell-0.33/ell/dbus-service.c:160: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). offset += strlen(pname) + 1; data/ell-0.33/ell/dbus-service.c:164: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). offset += strlen(sig) + 1; data/ell-0.33/ell/dbus-service.c:174: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). offset += strlen(pname) + 1; data/ell-0.33/ell/dbus-service.c:202: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). offset += strlen(sig) + 1; data/ell-0.33/ell/dbus-service.c:212: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). offset += strlen(pname) + 1; data/ell-0.33/ell/dbus-service.c:277:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int len = strlen(signature) + 1; \ data/ell-0.33/ell/dbus-service.c:287: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(pname) + 1; \ data/ell-0.33/ell/dbus-service.c:328:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). param_info_len + strlen(name) + 1); data/ell-0.33/ell/dbus-service.c:331:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). info->name_len = strlen(name); data/ell-0.33/ell/dbus-service.c:379:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). metainfo_len += strlen(name) + 1; data/ell-0.33/ell/dbus-service.c:383:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). info->name_len = strlen(name); data/ell-0.33/ell/dbus-service.c:416: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). metainfo_len = strlen(name) + 1; data/ell-0.33/ell/dbus-service.c:417:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). metainfo_len += strlen(signature) + 1; data/ell-0.33/ell/dbus-service.c:421:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). info->name_len = strlen(name); data/ell-0.33/ell/dbus-service.c:437: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). interface = l_malloc(sizeof(*interface) + strlen(name) + 1); data/ell-0.33/ell/dbus-service.c:833:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). signature = property->metainfo + strlen(property->metainfo) + 1; data/ell-0.33/ell/dbus-service.c:939: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). signature = property->metainfo + strlen(property->metainfo) + 1; data/ell-0.33/ell/dbus-service.c:992:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). signature = property->metainfo + strlen(property->metainfo) + 1; data/ell-0.33/ell/dbus-service.c:1543:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path_len = strlen(manager->path); data/ell-0.33/ell/dbus-service.c:1646:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path_len = strlen(manager->path); data/ell-0.33/ell/dbus-service.c:1854: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). signature = property->metainfo + strlen(property->metainfo) + 1; data/ell-0.33/ell/dbus-util.c:294:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (method[0] == '\0' || strlen(method) > DBUS_MAX_METHOD_LEN) data/ell-0.33/ell/dbus-util.c:314: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 (interface[0] == '\0' || strlen(interface) > DBUS_MAX_INTERFACE_LEN) data/ell-0.33/ell/dbus-util.c:361: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 (bus_name[0] == '\0' || strlen(bus_name) > DBUS_MAX_INTERFACE_LEN) data/ell-0.33/ell/dbus-util.c:449: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). sig_len = strlen(sig_start); data/ell-0.33/ell/dbus-util.c:980: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/ell-0.33/ell/dbus-util.c:1010:5: [1] (buffer) strlen: Does not handle 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(signature) + 2 > 255) data/ell-0.33/ell/dbus-util.c:1088:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). parent->sigindex += strlen(container->signature) + 2; data/ell-0.33/ell/dbus-util.c:1125: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). siglen = strlen(signature); data/ell-0.33/ell/dbus-util.c:1177:5: [1] (buffer) strlen: Does not handle 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(signature) + 1 > 255) data/ell-0.33/ell/dbus-util.c:1233:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). parent->sigindex += strlen(container->signature) + 1; data/ell-0.33/ell/dbus.c:405: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(classic->auth_command); data/ell-0.33/ell/dbus.c:1050:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = 0; i < strlen(uid); i++) data/ell-0.33/ell/dbus.c:1122: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(path); data/ell-0.33/ell/dbus.c:1131:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr.sun_path + 1, path, sizeof(addr.sun_path) - 2); data/ell-0.33/ell/dbus.c:1139:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1); data/ell-0.33/ell/dhcp-transport.c:114:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)); data/ell-0.33/ell/dhcp-transport.c:286: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). ifname, strlen(ifname) + 1) < 0) data/ell-0.33/ell/dhcp.c:606: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(client->hostname), data/ell-0.33/ell/dhcp.c:687: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(client->hostname), data/ell-0.33/ell/dhcp6-transport.c:56:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)); data/ell-0.33/ell/dir.c:185:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = L_TFR(read(fd, buf, sizeof(buf))); data/ell-0.33/ell/file.c:67:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(fd, contents + bytes_read, 4096); data/ell-0.33/ell/genl.c:1321: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(family) >= GENL_NAMSIZ) data/ell-0.33/ell/genl.c:1400:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/ell-0.33/ell/genl.c:1528: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(name); data/ell-0.33/ell/genl.c:1529: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). if (unlikely(strlen(name) >= GENL_NAMSIZ)) data/ell-0.33/ell/gvariant-util.c:182: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(sig) > 255) data/ell-0.33/ell/gvariant-util.c:201: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(sig) > 255) data/ell-0.33/ell/gvariant-util.c:386:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). iter->sig_len = strlen(subsig); data/ell-0.33/ell/gvariant-util.c:940:5: [1] (buffer) strlen: Does not handle 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(signature) + 2 > 255) data/ell-0.33/ell/gvariant-util.c:1043:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). parent->sigindex += strlen(container->signature) + 2; data/ell-0.33/ell/gvariant-util.c:1107: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). siglen = strlen(container->signature); data/ell-0.33/ell/gvariant-util.c:1142:5: [1] (buffer) strlen: Does not handle 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(signature) + 1 > 255) data/ell-0.33/ell/gvariant-util.c:1203:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). parent->sigindex += strlen(container->signature) + 1; data/ell-0.33/ell/gvariant-util.c:1250: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) + 1; data/ell-0.33/ell/gvariant-util.c:1342: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). size = 3 + strlen(signature) + 8; data/ell-0.33/ell/gvariant-util.c:1350: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). variant_buf = mempcpy(variant_buf, signature, strlen(signature)); data/ell-0.33/ell/gvariant-util.c:1373: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). offset_start = body_size + 3 + strlen(signature); data/ell-0.33/ell/hashmap.c:168:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/ell-0.33/ell/hwdb.c:214:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). scratch_len = strlen(prefix) + strlen(prefix_str); data/ell-0.33/ell/hwdb.c:214: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). scratch_len = strlen(prefix) + strlen(prefix_str); data/ell-0.33/ell/hwdb.c:327:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). scratch_len = strlen(prefix) + strlen(prefix_str); data/ell-0.33/ell/hwdb.c:327: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). scratch_len = strlen(prefix) + strlen(prefix_str); data/ell-0.33/ell/log.c:89:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1); data/ell-0.33/ell/log.c:234: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). iov[4].iov_len = strlen(file); data/ell-0.33/ell/log.c:240: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). iov[7].iov_len = strlen(line); data/ell-0.33/ell/log.c:246:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). iov[10].iov_len = strlen(func); data/ell-0.33/ell/main.c:344: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). err = send(notify_fd, state, strlen(state), MSG_NOSIGNAL); data/ell-0.33/ell/main.c:384:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr.sun_path, sock, sizeof(addr.sun_path) - 1); data/ell-0.33/ell/net.c:143: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). str_len = strlen(str); data/ell-0.33/ell/net.c:144: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). suffix_len = strlen(suffix); data/ell-0.33/ell/path.c:120: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). overhead = strlen(basename) + 1; data/ell-0.33/ell/path.c:126:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(path); data/ell-0.33/ell/pem.c:60:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (buf_len < strlen(PEM_START_BOUNDARY)) data/ell-0.33/ell/pem.c:64: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). if (memcmp(buf, PEM_START_BOUNDARY, strlen(PEM_START_BOUNDARY))) data/ell-0.33/ell/pem.c:75:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). start = buf + strlen(PEM_START_BOUNDARY); data/ell-0.33/ell/pem.c:111:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(PEM_END_BOUNDARY) + label_len + 5; data/ell-0.33/ell/pem.c:116: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). if (memcmp(buf_ptr, PEM_END_BOUNDARY, strlen(PEM_END_BOUNDARY)) || data/ell-0.33/ell/pem.c:117:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcmp(buf_ptr + strlen(PEM_END_BOUNDARY), data/ell-0.33/ell/pem.c:155:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). start = label - strlen("-----BEGIN "); data/ell-0.33/ell/pkcs5.c:49:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uint8_t t[20 + salt_len + strlen(password)]; data/ell-0.33/ell/pkcs5.c:77:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(t, password, strlen(password)); data/ell-0.33/ell/pkcs5.c:78: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). memcpy(t + strlen(password), salt, salt_len); data/ell-0.33/ell/pkcs5.c:79: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). t_len = strlen(password) + salt_len; data/ell-0.33/ell/pkcs5.c:138: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). checksum = l_checksum_new_hmac(type, password, strlen(password)); data/ell-0.33/ell/settings.c:83: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). explicit_bzero(pair->value, strlen(pair->value)); data/ell-0.33/ell/settings.c:137: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). ret = l_new(char, strlen(value) + 1); data/ell-0.33/ell/settings.c:507:7: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!equal) { data/ell-0.33/ell/settings.c:523:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. while (equal < data + len && l_ascii_isblank(*equal)) data/ell-0.33/ell/settings.c:523:48: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. while (equal < data + len && l_ascii_isblank(*equal)) data/ell-0.33/ell/settings.c:526:31: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return parse_value(settings, equal, len - (equal - data), line); data/ell-0.33/ell/settings.c:648:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen(ret); data/ell-0.33/ell/settings.c:918: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). explicit_bzero(pair->value, strlen(pair->value)); data/ell-0.33/ell/settings.c:925: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). explicit_bzero(value, strlen(value)); data/ell-0.33/ell/signal.c:97:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read(fd, &si, sizeof(si)); data/ell-0.33/ell/string.c:156: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). size = strlen(src); data/ell-0.33/ell/strv.c:189:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(str_array[i]); data/ell-0.33/ell/timeout.c:76:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read(timeout->fd, &expired, sizeof(expired)); data/ell-0.33/ell/tls.c:94:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t a_len, chunk_len, prfseed_len = strlen(label) + seed_len; data/ell-0.33/ell/tls.c:101: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). memcpy(prfseed, label, strlen(label)); data/ell-0.33/ell/tls.c:102:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(prfseed + strlen(label), seed, seed_len); data/ell-0.33/ell/tls.c:723:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len, *i, strlen(*i))) data/ell-0.33/ell/tls.c:794: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). if (tls_domain_match_mask(cn, cn_len, *i, strlen(*i))) data/ell-0.33/ell/util.c:263: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). size_t src_len = src ? strlen(src) : 0; data/ell-0.33/ell/util.c:304: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). str_len = strlen(str); data/ell-0.33/ell/util.c:305: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). prefix_len = strlen(prefix); data/ell-0.33/ell/util.c:334: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). str_len = strlen(str); data/ell-0.33/ell/util.c:335: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). suffix_len = strlen(suffix); data/ell-0.33/ell/util.c:622:9: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. while (fscanf(fp, "%*s %" L_STRINGIFY(PATH_MAX) "s %99s %*s %*d %*d\n", data/ell-0.33/ell/uuid.c:236: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(src) < 16 * 2 + 4) data/ell-0.33/examples/glib-eventloop.c:77:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). written = write(fd, str, strlen(str)); data/ell-0.33/examples/glib-eventloop.c:90:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read(fd, str, sizeof(str)); data/ell-0.33/examples/https-client-test.c:55:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). l = read(l_io_get_fd(io), buf, sizeof(buf)); data/ell-0.33/examples/https-server-test.c:54:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). l = read(l_io_get_fd(io), buf, sizeof(buf)); data/ell-0.33/examples/https-server-test.c:82:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l_tls_write(tls, (void *) reply, strlen(reply)); data/ell-0.33/unit/test-base64.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). decoded = l_base64_decode(test->input, strlen(test->input), data/ell-0.33/unit/test-base64.c:120:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded = l_base64_encode((uint8_t *)test->input, strlen(test->input), data/ell-0.33/unit/test-base64.c:123: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). assert(encoded_size == strlen(test->output)); data/ell-0.33/unit/test-checksum.c:38:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define FIXED_LEN (strlen (FIXED_STR)) data/ell-0.33/unit/test-cipher.c:38:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define FIXED_LEN (strlen(FIXED_STR)) data/ell-0.33/unit/test-cipher.c:41:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define KEY_LEN (strlen(KEY_STR)) data/ell-0.33/unit/test-dbus-message-fds.c:343:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(200 * 1000); data/ell-0.33/unit/test-dbus-properties.c:1016:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(200 * 1000); data/ell-0.33/unit/test-dbus-service.c:340: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). ch = allowed[lrand48() % strlen(allowed)]; data/ell-0.33/unit/test-dbus.c:215:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(200 * 1000); data/ell-0.33/unit/test-dir-watch.c:250:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read(fd, buf, length); data/ell-0.33/unit/test-dir-watch.c:275:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(content); data/ell-0.33/unit/test-gvariant-util.c:258:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:284:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:328:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:395:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:431:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:472:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:530:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:574:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:606:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:655:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:695:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:733:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:782:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:844:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:895:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-gvariant-util.c:972:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->signature + strlen(test->signature), data/ell-0.33/unit/test-io.c:46:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). written = write(fd, str, strlen(str)); data/ell-0.33/unit/test-io.c:59:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read(fd, str, sizeof(str)); data/ell-0.33/unit/test-key.c:34:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define KEY1_LEN (strlen(KEY1_STR)) data/ell-0.33/unit/test-key.c:36:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define KEY2_LEN (strlen(KEY2_STR)) data/ell-0.33/unit/test-key.c:602:5: [1] (buffer) strlen: Does not handle 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(plaintext), sizeof(ciphertext)); data/ell-0.33/unit/test-key.c:612: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). assert(len == (ssize_t)strlen(plaintext)); data/ell-0.33/unit/test-key.c:620: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). assert(len == (ssize_t)strlen(plaintext)); data/ell-0.33/unit/test-key.c:634:5: [1] (buffer) strlen: Does not handle 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(plaintext), sizeof(ciphertext)); data/ell-0.33/unit/test-key.c:638:5: [1] (buffer) strlen: Does not handle 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(plaintext), sizeof(ciphertext)); data/ell-0.33/unit/test-key.c:642:5: [1] (buffer) strlen: Does not handle 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(plaintext), sizeof(ciphertext)); data/ell-0.33/unit/test-key.c:646:5: [1] (buffer) strlen: Does not handle 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(plaintext), sizeof(ciphertext)); data/ell-0.33/unit/test-key.c:650:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). reference_signature, strlen(plaintext), data/ell-0.33/unit/test-key.c:657:5: [1] (buffer) strlen: Does not handle 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(plaintext), sizeof(ciphertext)); data/ell-0.33/unit/test-main.c:69:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(250 * 1000); data/ell-0.33/unit/test-pbkdf2.c:50: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). salt_len = test->salt_len ? : strlen(test->salt); data/ell-0.33/unit/test-pbkdf2.c:52: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). key_len = test->key_len ? : (strlen(test->key) / 2); data/ell-0.33/unit/test-pem.c:166: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(test->list)); data/ell-0.33/unit/test-pem.c:170: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(test->ca)); data/ell-0.33/unit/test-pem.c:217: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(raw_private_key), data/ell-0.33/unit/test-pem.c:242: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). strlen(test->input), data/ell-0.33/unit/test-settings.c:315:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(l_settings_load_from_data(settings, raw_data, strlen(raw_data))); data/ell-0.33/unit/test-settings.c:392: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(invalid_data[i]))); data/ell-0.33/unit/test-settings.c:406: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). l_settings_load_from_data(settings, data1, strlen(data1)); data/ell-0.33/unit/test-settings.c:519: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). l_settings_load_from_data(settings, data2, strlen(data2)); data/ell-0.33/unit/test-settings.c:542: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). r = l_settings_load_from_data(settings, data, strlen(data)); data/ell-0.33/unit/test-string.c:41: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). assert(l_string_length(str) == strlen("Foobar7BarFoo")); data/ell-0.33/unit/test-string.c:61: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). assert(l_string_length(str) == strlen("Foobar7100BarFoo")); data/ell-0.33/unit/test-string.c:108: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). assert(l_string_length(str) == strlen(test->expected)); data/ell-0.33/unit/test-tls.c:479: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). assert(s->plaintext_buf_len + len <= strlen(s->expect_data)); data/ell-0.33/unit/test-tls.c:484:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (s->plaintext_buf_len == (int) strlen(s->expect_data) && data/ell-0.33/unit/test-tls.c:512: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(s->send_data)); data/ell-0.33/unit/test-util.c:107: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). assert(strlen(dst) == dst_bytes - 1); data/ell-0.33/unit/test-uuid.c:57:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v3(L_UUID_NAMESPACE_DNS, dns, strlen(dns), uuid); data/ell-0.33/unit/test-uuid.c:63:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v3(L_UUID_NAMESPACE_URL, url, strlen(url), uuid); data/ell-0.33/unit/test-uuid.c:68:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v3(L_UUID_NAMESPACE_OID, oid, strlen(oid), uuid); data/ell-0.33/unit/test-uuid.c:73: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). r = l_uuid_v3(L_UUID_NAMESPACE_X500, x500, strlen(x500), uuid); data/ell-0.33/unit/test-uuid.c:122:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v5(L_UUID_NAMESPACE_DNS, dns, strlen(dns), uuid); data/ell-0.33/unit/test-uuid.c:128:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v5(L_UUID_NAMESPACE_URL, url, strlen(url), uuid); data/ell-0.33/unit/test-uuid.c:133:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v5(L_UUID_NAMESPACE_OID, oid, strlen(oid), uuid); data/ell-0.33/unit/test-uuid.c:138: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). r = l_uuid_v5(L_UUID_NAMESPACE_X500, x500, strlen(x500), uuid); data/ell-0.33/unit/test-uuid.c:152:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = l_uuid_v5(L_UUID_NAMESPACE_DNS, dns, strlen(dns), uuid); ANALYSIS SUMMARY: Hits = 514 Lines analyzed = 66093 in approximately 1.57 seconds (41983 lines/second) Physical Source Lines of Code (SLOC) = 46122 Hits@level = [0] 132 [1] 190 [2] 264 [3] 15 [4] 45 [5] 0 Hits@level+ = [0+] 646 [1+] 514 [2+] 324 [3+] 60 [4+] 45 [5+] 0 Hits/KSLOC@level+ = [0+] 14.0063 [1+] 11.1444 [2+] 7.02485 [3+] 1.3009 [4+] 0.975673 [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.