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/evolution-rss-0.3.96/src/dbus.h Examining data/evolution-rss-0.3.96/src/strptime.c Examining data/evolution-rss-0.3.96/src/network-soup.c Examining data/evolution-rss-0.3.96/src/parser.c Examining data/evolution-rss-0.3.96/src/debug.h Examining data/evolution-rss-0.3.96/src/file-gio.h Examining data/evolution-rss-0.3.96/src/rss-evo-common.c Examining data/evolution-rss-0.3.96/src/rss-icon-factory.c Examining data/evolution-rss-0.3.96/src/misc.h Examining data/evolution-rss-0.3.96/src/misc.c Examining data/evolution-rss-0.3.96/src/rss.h Examining data/evolution-rss-0.3.96/src/rss-config.c Examining data/evolution-rss-0.3.96/src/rss-icon-factory.h Examining data/evolution-rss-0.3.96/src/rss-formatter.h Examining data/evolution-rss-0.3.96/src/rss-config-factory.c Examining data/evolution-rss-0.3.96/src/evolution-import-rss.c Examining data/evolution-rss-0.3.96/src/rss-status-icon.c Examining data/evolution-rss-0.3.96/src/rss-status-icon.h Examining data/evolution-rss-0.3.96/src/gecko-utils.cpp Examining data/evolution-rss-0.3.96/src/rss-config.h Examining data/evolution-rss-0.3.96/src/rss-evo-common.h Examining data/evolution-rss-0.3.96/src/fetch.h Examining data/evolution-rss-0.3.96/src/rss-image.h Examining data/evolution-rss-0.3.96/src/e-mail-parser-evolution-rss.c Examining data/evolution-rss-0.3.96/src/file-gio.c Examining data/evolution-rss-0.3.96/src/e-mail-part-rss.h Examining data/evolution-rss-0.3.96/src/rss-config-factory.h Examining data/evolution-rss-0.3.96/src/fetch.c Examining data/evolution-rss-0.3.96/src/module-eds-rss.c Examining data/evolution-rss-0.3.96/src/parser.h Examining data/evolution-rss-0.3.96/src/rss-cache.h Examining data/evolution-rss-0.3.96/src/e-mail-parser-evolution-rss.h Examining data/evolution-rss-0.3.96/src/dbus.c Examining data/evolution-rss-0.3.96/src/rss-image.c Examining data/evolution-rss-0.3.96/src/notification.c Examining data/evolution-rss-0.3.96/src/gecko-utils.h Examining data/evolution-rss-0.3.96/src/evolution-module-rss.c Examining data/evolution-rss-0.3.96/src/rss-formatter.c Examining data/evolution-rss-0.3.96/src/e-mail-part-rss.c Examining data/evolution-rss-0.3.96/src/network.h Examining data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.h Examining data/evolution-rss-0.3.96/src/notification.h Examining data/evolution-rss-0.3.96/src/network-soup.h Examining data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c Examining data/evolution-rss-0.3.96/src/rss-cache.c Examining data/evolution-rss-0.3.96/src/rss.c FINAL RESULTS: data/evolution-rss-0.3.96/src/evolution-import-rss.c:45:52: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. #define run(x) G_STMT_START { g_message ("%s", x); system (x); } G_STMT_END data/evolution-rss-0.3.96/src/rss-cache.c:84:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dir, "%s" G_DIR_SEPARATOR_S "%s" G_DIR_SEPARATOR_S "%02x", data/evolution-rss-0.3.96/src/rss-cache.c:90:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dir, "%s" G_DIR_SEPARATOR_S "%s" G_DIR_SEPARATOR_S "%02x", cache->path, HTTP_CACHE_PATH, hash); data/evolution-rss-0.3.96/src/rss-cache.c:116:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dir, "%s/%s/%02x", cdc->path, path, hash); data/evolution-rss-0.3.96/src/gecko-utils.cpp:243:5: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. g_get_home_dir (), data/evolution-rss-0.3.96/src/rss.c:3862:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. d = getenv("RSS_DEBUG"); data/evolution-rss-0.3.96/src/fetch.c:47:7: [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). f = fopen(fname, "rb"); data/evolution-rss-0.3.96/src/gecko-utils.cpp:194:2: [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 xpcomLocation[4096]; data/evolution-rss-0.3.96/src/misc.c:388:11: [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. unsigned char res[17], *f; data/evolution-rss-0.3.96/src/misc.c:393:8: [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. const char tohex[16] = "0123456789abcdef"; data/evolution-rss-0.3.96/src/misc.c:572:8: [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). fw = fopen(tmp, "w+"); data/evolution-rss-0.3.96/src/misc.c:578:7: [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). fr = fopen(file_name, "r"); data/evolution-rss-0.3.96/src/misc.c:581:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (port && atoi(port) == 80) { data/evolution-rss-0.3.96/src/misc.c:614:7: [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). fr = fopen(file_name, "r"); data/evolution-rss-0.3.96/src/misc.c:617:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (port && atoi(port) == 80) { data/evolution-rss-0.3.96/src/misc.c:641:13: [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). FILE *fw = fopen(file, "a+"); data/evolution-rss-0.3.96/src/network-soup.c:121:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). info->total = atoi(clen); data/evolution-rss-0.3.96/src/network-soup.c:150:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). info->total = atoi(clen); data/evolution-rss-0.3.96/src/network-soup.c:483:2: [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 rfeed[512]; data/evolution-rss-0.3.96/src/network-soup.c:501:7: [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). fr = fopen(feed_name, "r"); data/evolution-rss-0.3.96/src/network-soup.c:533:7: [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). fr = fopen(feed_name, "w+"); data/evolution-rss-0.3.96/src/parser.c:290: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 (sax, &htmlDefaultSAXHandler, sizeof (xmlSAXHandlerV1)); data/evolution-rss-0.3.96/src/parser.c:963:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). r->ttl = atoi(tmp); data/evolution-rss-0.3.96/src/parser.c:979:14: [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. static const char *html_const[4] = {"img", "a", NULL}; data/evolution-rss-0.3.96/src/parser.c:1329:7: [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). fr = fopen(feed_name, "r"); data/evolution-rss-0.3.96/src/parser.c:1330:7: [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). fw = fopen(feed_name, "a+"); data/evolution-rss-0.3.96/src/rss-config-factory.c:1468:6: [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). f = fopen(feed_file, "wb"); data/evolution-rss-0.3.96/src/rss-config-factory.c:2900:2: [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 outstr[200]; data/evolution-rss-0.3.96/src/rss-config-factory.c:2961:6: [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). f = fopen(file, "w+"); data/evolution-rss-0.3.96/src/rss-config-factory.c:3022:6: [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). f = fopen(file, "r"); data/evolution-rss-0.3.96/src/rss-config.c:152:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). del_feed = atoi(ctmp); data/evolution-rss-0.3.96/src/rss-config.c:154:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). del_days = atoi(ctmp); data/evolution-rss-0.3.96/src/rss-config.c:156:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). del_messages = atoi(ctmp); data/evolution-rss-0.3.96/src/rss-config.c:168:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). update = atoi(ctmp); data/evolution-rss-0.3.96/src/rss-config.c:170:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ttl = atoi(ctmp); data/evolution-rss-0.3.96/src/rss-config.c:173:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ttl_multiply = atoi(ctmp); data/evolution-rss-0.3.96/src/rss-config.c:365:2: [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 (tmp, xmlbuf, n); data/evolution-rss-0.3.96/src/rss-config.c:481:15: [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). if ((ffile = fopen(feed_file, "r"))) { data/evolution-rss-0.3.96/src/rss-config.c:497:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). GINT_TO_POINTER(atoi(g_strstrip(str[4])))); data/evolution-rss-0.3.96/src/rss-config.c:503:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). GINT_TO_POINTER(atoi(str[2]))); data/evolution-rss-0.3.96/src/rss-config.c:514:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). GINT_TO_POINTER(atoi(str[2]))); data/evolution-rss-0.3.96/src/rss-config.c:612:13: [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). FILE *f = fopen(feed_file, "r"); data/evolution-rss-0.3.96/src/rss-config.c:646:13: [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). FILE *f = fopen(feed_file, "r"); data/evolution-rss-0.3.96/src/rss-config.c:687:14: [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). FILE *fr = fopen(feed_name, "r"); data/evolution-rss-0.3.96/src/rss-config.c:688:14: [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). FILE *fw = fopen(md5_name, "a+"); data/evolution-rss-0.3.96/src/rss-config.c:705:14: [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). FILE *fr = fopen(feed_name, "r"); data/evolution-rss-0.3.96/src/rss-config.c:706:14: [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). FILE *fw = fopen(md5_name, "a+"); data/evolution-rss-0.3.96/src/rss-image.c:271:12: [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). if ((f = fopen(fav_file, "w"))) { data/evolution-rss-0.3.96/src/rss-image.c:278:11: [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). if ((f = fopen(fav_file, "r+"))) { data/evolution-rss-0.3.96/src/rss.c:544:16: [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). CFL->file = fopen(name, "w"); data/evolution-rss-0.3.96/src/rss.c:1656:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i = atoi(result->str); data/evolution-rss-0.3.96/src/rss.c:2869:11: [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). if ((f = fopen(feed_file, "w"))) { data/evolution-rss-0.3.96/src/rss.c:2952:6: [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). f = fopen(feed_file, "wb"); data/evolution-rss-0.3.96/src/rss.c:3864:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rss_verbose_debug = atoi(d); data/evolution-rss-0.3.96/src/strptime.c:33:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define localtime_r(tp,tmp) memcpy(tmp,localtime(tp),sizeof(struct tm)) data/evolution-rss-0.3.96/src/dbus.c:103: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 (feed->feed_url && strlen(feed->feed_url)) { data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:236:4: [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). strlen(str), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:288:19: [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 (result && strlen(result)) { data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:312:42: [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). g_output_stream_write_all(stream, src, strlen(src), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:324:5: [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). strlen(tstr), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:357:43: [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). g_output_stream_write_all(stream, str, strlen(str), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:359:44: [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). g_output_stream_write_all(stream, tstr, strlen(tstr), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:362:44: [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). g_output_stream_write_all(stream, tstr, strlen(tstr), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:364:52: [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). g_output_stream_write_all(stream, err->message, strlen(err->message), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/e-mail-formatter-evolution-rss.c:366:44: [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). g_output_stream_write_all(stream, tstr, strlen(tstr), NULL, cancellable, NULL); data/evolution-rss-0.3.96/src/fetch.c:55: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). g_string_append_len(result, buf, strlen(buf)); data/evolution-rss-0.3.96/src/misc.c:164:28: [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). str = g_string_erase(str, strlen(tmp) - strlen(strstr(tmp, substr)), strlen(substr)); data/evolution-rss-0.3.96/src/misc.c:164:42: [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). str = g_string_erase(str, strlen(tmp) - strlen(strstr(tmp, substr)), strlen(substr)); data/evolution-rss-0.3.96/src/misc.c:164:71: [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). str = g_string_erase(str, strlen(tmp) - strlen(strstr(tmp, substr)), strlen(substr)); data/evolution-rss-0.3.96/src/misc.c:300:14: [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). guint len = strlen(source); data/evolution-rss-0.3.96/src/misc.c:327:15: [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). cnt <= (int)(strlen (str)); data/evolution-rss-0.3.96/src/misc.c:380:18: [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). for (i = 0; i < strlen(msg); i++) data/evolution-rss-0.3.96/src/parser.c:245:10: [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). len = strlen (buf); data/evolution-rss-0.3.96/src/parser.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). len = strlen (buf); data/evolution-rss-0.3.96/src/parser.c:812:25: [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). wb = w = g_malloc (3 * strlen (p)); data/evolution-rss-0.3.96/src/parser.c:988:48: [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). xmlDoc *src = (xmlDoc *)parse_html_sux (text, strlen(text)); data/evolution-rss-0.3.96/src/parser.c:1061:25: [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). (sax, buffer, string, strlen (string), "", XML_CHAR_ENCODING_UTF8); data/evolution-rss-0.3.96/src/parser.c:1168:15: [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 (!q || !strlen(q)) data/evolution-rss-0.3.96/src/parser.c:1190:12: [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 (b && strlen(b)) data/evolution-rss-0.3.96/src/parser.c:1197:14: [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 (!b || !strlen(b)) data/evolution-rss-0.3.96/src/parser.c:1218:16: [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 (encl && !strlen(encl)) { data/evolution-rss-0.3.96/src/parser.c:1540:8: [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). len = strlen(res->str); data/evolution-rss-0.3.96/src/parser.c:1586:10: [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). inlen = strlen(str); data/evolution-rss-0.3.96/src/rss-cache.c:82:15: [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). dir = alloca(strlen(camel_data_cache_get_path(cache)) data/evolution-rss-0.3.96/src/rss-cache.c:83:5: [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). + strlen(HTTP_CACHE_PATH) + 8); data/evolution-rss-0.3.96/src/rss-cache.c:88:15: [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). dir = alloca(strlen(cache->path) data/evolution-rss-0.3.96/src/rss-cache.c:89:5: [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). + strlen(HTTP_CACHE_PATH) + 8); data/evolution-rss-0.3.96/src/rss-cache.c:115:15: [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). dir = alloca(strlen(cdc->path) + strlen(path) + 8); data/evolution-rss-0.3.96/src/rss-cache.c:115:35: [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). dir = alloca(strlen(cdc->path) + strlen(path) + 8); data/evolution-rss-0.3.96/src/rss-config-factory.c:429:41: [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). gchar *tip = g_markup_escape_text(key, strlen(key)); data/evolution-rss-0.3.96/src/rss-config-factory.c:1083:44: [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 (url && !strncmp(url, feed->feed_url, strlen(url))) data/evolution-rss-0.3.96/src/rss-config-factory.c:1190: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 (feed->feed_url && strlen(feed->feed_url)) { data/evolution-rss-0.3.96/src/rss-config-factory.c:1930:13: [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 (tmp && strlen(tmp) > 40) { data/evolution-rss-0.3.96/src/rss-config-factory.c:2091:16: [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 (url && strlen(url)) { data/evolution-rss-0.3.96/src/rss-config-factory.c:2256:14: [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 (url && strlen(url)) { data/evolution-rss-0.3.96/src/rss-config-factory.c:2645:34: [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 (!strncmp(tmp, flist->data, strlen(tmp))) { data/evolution-rss-0.3.96/src/rss-config-factory.c:2711:46: [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). gchar *url_esc = g_markup_escape_text(url, strlen(url)); data/evolution-rss-0.3.96/src/rss-config-factory.c:2712:46: [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). gchar *key_esc = g_markup_escape_text(key, strlen(key)); data/evolution-rss-0.3.96/src/rss-config-factory.c:2841:45: [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 (!g_ascii_strncasecmp(tmp, list->data, strlen(tmp))) { data/evolution-rss-0.3.96/src/rss-config-factory.c:2861:30: [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). g_string_truncate(spacer, strlen(spacer->str)-4); data/evolution-rss-0.3.96/src/rss-config-factory.c:2881:29: [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). g_string_truncate(spacer, strlen(spacer->str)-4); data/evolution-rss-0.3.96/src/rss-config-factory.c:2963:16: [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). fwrite(opml, strlen(opml), 1, f); data/evolution-rss-0.3.96/src/rss-config-factory.c:3841:48: [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). || g_ascii_strncasecmp(folder, main_folder, strlen(main_folder)) data/evolution-rss-0.3.96/src/rss-config-factory.c:3913:43: [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 (url && !strncmp(url, feed->feed_url, strlen(url))) data/evolution-rss-0.3.96/src/rss-config-factory.c:3967:47: [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). || g_ascii_strncasecmp(folder, main_folder, strlen(main_folder)) data/evolution-rss-0.3.96/src/rss-config.c:694:19: [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). fwrite(rfeed, strlen(rfeed), 1, fw); data/evolution-rss-0.3.96/src/rss-config.c:712:19: [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). fwrite(rfeed, strlen(rfeed), 1, fw); data/evolution-rss-0.3.96/src/rss-formatter.c:123:51: [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). xmlDoc *src = (xmlDoc *)parse_html(website, tmp, strlen(tmp)); data/evolution-rss-0.3.96/src/rss-image.c:891:59: [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). working:burl = (gchar *)g_base64_encode((guchar *)tmpurl, strlen(tmpurl)); data/evolution-rss-0.3.96/src/rss-status-icon.c:120:6: [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(st->chn_name)) { data/evolution-rss-0.3.96/src/rss.c:1365:11: [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). length = strlen (text); data/evolution-rss-0.3.96/src/rss.c:1514:53: [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). || g_ascii_strncasecmp(folder_name, main_folder, strlen(main_folder))) data/evolution-rss-0.3.96/src/rss.c:1573:56: [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). || g_ascii_strncasecmp(t->folder_name, main_folder, strlen(main_folder))) data/evolution-rss-0.3.96/src/rss.c:1881:28: [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 (chn_name == NULL || !strlen(chn_name)) { data/evolution-rss-0.3.96/src/rss.c:2361:19: [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 (chn_name && strlen(chn_name)) { data/evolution-rss-0.3.96/src/rss.c:2472:6: [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). && strlen(url) data/evolution-rss-0.3.96/src/rss.c:2555:50: [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). camel_stream_write(ub->stream, response->str, strlen(response->str), NULL, NULL); data/evolution-rss-0.3.96/src/rss.c:2558:50: [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). camel_stream_write(ub->stream, response->str, strlen(response->str), NULL); data/evolution-rss-0.3.96/src/rss.c:2568: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). len = strlen(response->str); data/evolution-rss-0.3.96/src/rss.c:2649:31: [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 = xml_parse_sux (stream, strlen(stream)); data/evolution-rss-0.3.96/src/rss.c:2914:25: [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 (!strncmp(key, tmp, strlen(tmp))) { data/evolution-rss-0.3.96/src/rss.c:3047:20: [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 (path[i] && strlen(path[i])) { data/evolution-rss-0.3.96/src/rss.c:3180:56: [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 (!g_ascii_strncasecmp(info->old_base, main_folder, strlen(main_folder)) data/evolution-rss-0.3.96/src/rss.c:3181:74: [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). || !g_ascii_strncasecmp(info->old_base, OLD_FEEDS_FOLDER, strlen(OLD_FEEDS_FOLDER))) { data/evolution-rss-0.3.96/src/rss.c:3183:50: [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 (!g_ascii_strncasecmp(old_name, main_folder, strlen(main_folder)) data/evolution-rss-0.3.96/src/rss.c:3184:68: [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). || !g_ascii_strncasecmp(old_name, OLD_FEEDS_FOLDER, strlen(OLD_FEEDS_FOLDER))) { data/evolution-rss-0.3.96/src/rss.c:3194:56: [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 (!g_ascii_strncasecmp(main_folder, info->old_base, strlen(info->old_base)) data/evolution-rss-0.3.96/src/rss.c:3195:60: [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). || !g_ascii_strncasecmp(OLD_FEEDS_FOLDER, info->old_base, strlen(info->old_base))) data/evolution-rss-0.3.96/src/rss.c:3198:51: [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 (!g_ascii_strncasecmp(main_folder, old_name, strlen(old_name)) data/evolution-rss-0.3.96/src/rss.c:3199:55: [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). || !g_ascii_strncasecmp(OLD_FEEDS_FOLDER, old_name, strlen(old_name))) data/evolution-rss-0.3.96/src/rss.c:4093:58: [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). camel_stream_mem_new_with_buffer ((gchar *) CF->body, strlen(CF->body)); data/evolution-rss-0.3.96/src/rss.c:4432:8: [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(l->data)) data/evolution-rss-0.3.96/src/strptime.c:38:30: [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). (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) data/evolution-rss-0.3.96/src/strptime.c:38:59: [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). (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) ANALYSIS SUMMARY: Hits = 134 Lines analyzed = 20530 in approximately 0.48 seconds (43125 lines/second) Physical Source Lines of Code (SLOC) = 17090 Hits@level = [0] 17 [1] 79 [2] 49 [3] 2 [4] 4 [5] 0 Hits@level+ = [0+] 151 [1+] 134 [2+] 55 [3+] 6 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 8.83558 [1+] 7.84084 [2+] 3.21826 [3+] 0.351083 [4+] 0.234055 [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.