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/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/keystoreLinuxNative.c Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/keystoreLinuxNative.h Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/keystoreNative.h Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.win32.x86/cpp/jnicrypt.cpp Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.win32.x86/cpp/jnicrypt.h Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.win32.x86_64/cpp/jnicrypt.cpp Examining data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.win32.x86_64/cpp/jnicrypt.h FINAL RESULTS: data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:45:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer [60]; data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:46:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "Could not obtain password. Result: %d", (int) status); data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:104:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer [60]; data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:105: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(buffer, "Could not obtain password. Result: %d", (int) status); data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:124:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer [60]; data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:125: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(buffer, "Could change password. Result: %d", (int) status); data/equinox-bundles-4.17/bundles/org.eclipse.equinox.security.macosx/keystoreNative/src/keystoreNativejnilib.c:52:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(truncatedPassword, passwordData, passwordLength * sizeof(char)); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 610 in approximately 0.42 seconds (1457 lines/second) Physical Source Lines of Code (SLOC) = 352 Hits@level = [0] 0 [1] 1 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 19.8864 [1+] 19.8864 [2+] 17.0455 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 66 (--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.