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/mate-notification-daemon-1.24.1/src/capplet/mate-notification-properties.c Examining data/mate-notification-daemon-1.24.1/src/daemon/daemon.c Examining data/mate-notification-daemon-1.24.1/src/daemon/daemon.h Examining data/mate-notification-daemon-1.24.1/src/daemon/engines.c Examining data/mate-notification-daemon-1.24.1/src/daemon/engines.h Examining data/mate-notification-daemon-1.24.1/src/daemon/mnd-daemon.c Examining data/mate-notification-daemon-1.24.1/src/daemon/sound.c Examining data/mate-notification-daemon-1.24.1/src/daemon/sound.h Examining data/mate-notification-daemon-1.24.1/src/daemon/stack.c Examining data/mate-notification-daemon-1.24.1/src/daemon/stack.h Examining data/mate-notification-daemon-1.24.1/src/themes/coco/coco-theme.c Examining data/mate-notification-daemon-1.24.1/src/themes/nodoka/nodoka-theme.c Examining data/mate-notification-daemon-1.24.1/src/themes/slider/theme.c Examining data/mate-notification-daemon-1.24.1/src/themes/standard/theme.c FINAL RESULTS: data/mate-notification-daemon-1.24.1/src/capplet/mate-notification-properties.c:296: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). result[strlen(result) - strlen("." G_MODULE_SUFFIX)] = '\0'; data/mate-notification-daemon-1.24.1/src/capplet/mate-notification-properties.c:296:26: [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). result[strlen(result) - strlen("." G_MODULE_SUFFIX)] = '\0'; data/mate-notification-daemon-1.24.1/src/themes/coco/coco-theme.c:510:27: [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). doc = xmlReadMemory(str, strlen (str), "noname.xml", NULL, 0); data/mate-notification-daemon-1.24.1/src/themes/coco/coco-theme.c:543:37: [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 ((body_label_text == NULL) || (strlen (body_label_text) == 0)) { data/mate-notification-daemon-1.24.1/src/themes/nodoka/nodoka-theme.c:895:27: [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). doc = xmlReadMemory(str, strlen (str), "noname.xml", NULL, 0); data/mate-notification-daemon-1.24.1/src/themes/nodoka/nodoka-theme.c:928:37: [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 ((body_label_text == NULL) || (strlen (body_label_text) == 0)) { data/mate-notification-daemon-1.24.1/src/themes/slider/theme.c:519:27: [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). doc = xmlReadMemory(str, strlen (str), "noname.xml", NULL, 0); data/mate-notification-daemon-1.24.1/src/themes/slider/theme.c:552:37: [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 ((body_label_text == NULL) || (strlen (body_label_text) == 0)) { data/mate-notification-daemon-1.24.1/src/themes/standard/theme.c:867:27: [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). doc = xmlReadMemory(str, strlen (str), "noname.xml", NULL, 0); data/mate-notification-daemon-1.24.1/src/themes/standard/theme.c:900:37: [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 ((body_label_text == NULL) || (strlen (body_label_text) == 0)) { ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 7329 in approximately 0.16 seconds (44850 lines/second) Physical Source Lines of Code (SLOC) = 5386 Hits@level = [0] 0 [1] 10 [2] 0 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 10 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.85667 [1+] 1.85667 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 3 (--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.