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/python-confluent-kafka-1.3.0/confluent_kafka/src/Admin.c Examining data/python-confluent-kafka-1.3.0/confluent_kafka/src/AdminTypes.c Examining data/python-confluent-kafka-1.3.0/confluent_kafka/src/Consumer.c Examining data/python-confluent-kafka-1.3.0/confluent_kafka/src/Metadata.c Examining data/python-confluent-kafka-1.3.0/confluent_kafka/src/Producer.c Examining data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c Examining data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.h FINAL RESULTS: data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:299:3: [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(buf, sizeof(buf), fmt, ap); data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:2247:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _len = snprintf(tmpdoc, sizeof(tmpdoc), __VA_ARGS__); \ data/python-confluent-kafka-1.3.0/confluent_kafka/src/Admin.c:107:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[512]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/Admin.c:184:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[512]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/Admin.c:376:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[512]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/Admin.c:624:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[512]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/Admin.c:1472:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[256]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/Consumer.c:1356:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[256]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/Producer.c:486:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[256]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:290:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[512]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:799:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char offset_str[40]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:1227:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[512]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:1548:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[256]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:1698: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 errstr[256]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:2231:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dash[_COL2_W], eq[_COL2_W]; data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:2242:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(doc, origdoc, dof+1); data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:2245: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 tmpdoc[512]; \ data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:2253:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(doc+dof, tmpdoc, _len+1); \ data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:1057: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). vsize = (Py_ssize_t)strlen(v); data/python-confluent-kafka-1.3.0/confluent_kafka/src/confluent_kafka.c:2239: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). dof = strlen(origdoc); ANALYSIS SUMMARY: Hits = 20 Lines analyzed = 7390 in approximately 0.19 seconds (38875 lines/second) Physical Source Lines of Code (SLOC) = 5200 Hits@level = [0] 2 [1] 2 [2] 16 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 22 [1+] 20 [2+] 18 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 4.23077 [1+] 3.84615 [2+] 3.46154 [3+] 0.384615 [4+] 0.384615 [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.