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/libaosd-0.2.7/libaosd/aosd-internal.h Examining data/libaosd-0.2.7/libaosd/aosd.h Examining data/libaosd-0.2.7/libaosd/aosd.c Examining data/libaosd-0.2.7/libaosd/aosd-internal.c Examining data/libaosd-0.2.7/libaosd/aosd-main.c Examining data/libaosd-0.2.7/libaosd-text/aosd-text.h Examining data/libaosd-0.2.7/libaosd-text/aosd-text.c Examining data/libaosd-0.2.7/examples/scroller/scroller.c Examining data/libaosd-0.2.7/examples/animation/animation.c Examining data/libaosd-0.2.7/examples/image/image.c Examining data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.c Examining data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.h FINAL RESULTS: data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.h:7:3: [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. fprintf(stderr, fmt "\n",## __VA_ARGS__) data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.c:222:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). CATCH((data.input = fopen(config.input, "r")) != NULL, data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.c:320: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 buf[1024]; data/libaosd-0.2.7/libaosd/aosd-internal.c:172: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 comp_manager_hint[32]; data/libaosd-0.2.7/libaosd/aosd-main.c:177:3: [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(&flash.user_render, &aosd->renderer, sizeof(RenderCallback)); data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.c:324:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* end = buf + strlen(buf) - 1; data/libaosd-0.2.7/examples/aosd_cat/aosd_cat.h:20:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(err_fmt) != 0) \ data/libaosd-0.2.7/libaosd-text/aosd-text.c:72:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (mbtowc(&wlf, lf, strlen(lf)) == -1) data/libaosd-0.2.7/libaosd-text/aosd-text.c:74:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (mbtowc(&wnl, nl, strlen(nl)) == -1) data/libaosd-0.2.7/libaosd-text/aosd-text.c:116:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). attr->end_index = strlen(pango_layout_get_text(lay)); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 2305 in approximately 0.14 seconds (16994 lines/second) Physical Source Lines of Code (SLOC) = 1731 Hits@level = [0] 3 [1] 5 [2] 4 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 13 [1+] 10 [2+] 5 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 7.51011 [1+] 5.77701 [2+] 2.8885 [3+] 0.577701 [4+] 0.577701 [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.