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/ocaml-dbus-0.29/dbus_stubs.c FINAL RESULTS: data/ocaml-dbus-0.29/dbus_stubs.c:37:32: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUG_APPEND(fmt, ...) fprintf(stderr, "debug: append: " fmt, ##__VA_ARGS__) data/ocaml-dbus-0.29/dbus_stubs.c:43:29: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUG_GET(fmt, ...) fprintf(stderr, "debug: get: " fmt, ##__VA_ARGS__) data/ocaml-dbus-0.29/dbus_stubs.c:49:29: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUG_SIG(fmt, ...) fprintf(stderr, "debug: sig: " fmt, ##__VA_ARGS__) data/ocaml-dbus-0.29/dbus_stubs.c:288: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[256]; data/ocaml-dbus-0.29/dbus_stubs.c:1778: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(String_val(msgstr), c_msgstr, c_msglen); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1899 in approximately 0.05 seconds (34907 lines/second) Physical Source Lines of Code (SLOC) = 1561 Hits@level = [0] 0 [1] 0 [2] 2 [3] 0 [4] 3 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 5 [3+] 3 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 3.20307 [1+] 3.20307 [2+] 3.20307 [3+] 1.92184 [4+] 1.92184 [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.