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/libapache2-mod-geoip-1.2.10/mod_geoip.c FINAL RESULTS: data/libapache2-mod-geoip-1.2.10/mod_geoip.c:99:1: [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 metrocodestr[100]; data/libapache2-mod-geoip-1.2.10/mod_geoip.c:100:1: [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 areacodestr[100]; data/libapache2-mod-geoip-1.2.10/mod_geoip.c:101:1: [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 latstr[100]; data/libapache2-mod-geoip-1.2.10/mod_geoip.c:102:1: [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 lonstr[100]; data/libapache2-mod-geoip-1.2.10/mod_geoip.c:572:17: [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(metrocodestr, "%d", gir->dma_code); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:573:17: [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(areacodestr, "%d", gir->area_code); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:584:17: [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(latstr, "%f", gir->latitude); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:585:17: [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(lonstr, "%f", gir->longitude); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:602:17: [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(metrocodestr, "%d", gir->dma_code); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:603:17: [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(areacodestr, "%d", gir->area_code); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:613:17: [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(latstr, "%f", gir->latitude); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:614:17: [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(lonstr, "%f", gir->longitude); data/libapache2-mod-geoip-1.2.10/mod_geoip.c:449:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ipaddr, ipaddr_ptr, 8 * 4 + 7); ANALYSIS SUMMARY: Hits = 13 Lines analyzed = 924 in approximately 0.04 seconds (21504 lines/second) Physical Source Lines of Code (SLOC) = 725 Hits@level = [0] 0 [1] 1 [2] 12 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 13 [1+] 13 [2+] 12 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 17.931 [1+] 17.931 [2+] 16.5517 [3+] 0 [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.