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/hawtjni-1.17/hawtjni-example/src/main/native-package/src/foo.c Examining data/hawtjni-1.17/hawtjni-example/src/main/native-package/src/foo.h Examining data/hawtjni-1.17/hawtjni-example/src/main/native-package/src/hawtjni-example.h Examining data/hawtjni-1.17/hawtjni-generator/src/main/resources/hawtjni-callback.c Examining data/hawtjni-1.17/hawtjni-generator/src/main/resources/hawtjni.c Examining data/hawtjni-1.17/hawtjni-generator/src/main/resources/hawtjni.h Examining data/hawtjni-1.17/hawtjni-generator/src/main/resources/windows/stdint.h FINAL RESULTS: data/hawtjni-1.17/hawtjni-generator/src/main/resources/hawtjni.h:122:17: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE hm = LoadLibrary(name##_LIB); \ data/hawtjni-1.17/hawtjni-example/src/main/native-package/src/foo.h:22:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[20]; ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 1578 in approximately 0.10 seconds (16486 lines/second) Physical Source Lines of Code (SLOC) = 1194 Hits@level = [0] 7 [1] 0 [2] 1 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 2 [2+] 2 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 7.53769 [1+] 1.67504 [2+] 1.67504 [3+] 0.837521 [4+] 0 [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.