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/tklib-0.7/modules/ctext/test.c FINAL RESULTS: data/tklib-0.7/modules/ctext/test.c:201: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 (winId, "%ld", children[i]); data/tklib-0.7/modules/ctext/test.c:209: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 (transientForWinId, "%ld", twin); data/tklib-0.7/modules/ctext/test.c:376:2: [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 (winId, "%ld", win); data/tklib-0.7/modules/ctext/test.c:610:2: [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 (winId, "%ld", event->window); data/tklib-0.7/modules/ctext/test.c:619: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 (transientForWinId, "%ld", twin); data/tklib-0.7/modules/ctext/test.c:994:5: [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 (winId, "%ld", win); data/tklib-0.7/modules/ctext/test.c:1045:6: [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 (winId, "%ld", report.xunmap.window); data/tklib-0.7/modules/ctext/test.c:1069:6: [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 (winId, "%ld", report.xproperty.window); data/tklib-0.7/modules/ctext/test.c:1101:6: [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 (winId, "%ld", win); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 1134 in approximately 0.10 seconds (10992 lines/second) Physical Source Lines of Code (SLOC) = 791 Hits@level = [0] 24 [1] 0 [2] 9 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 33 [1+] 9 [2+] 9 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 41.7193 [1+] 11.378 [2+] 11.378 [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.