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/purple-plugin-pack-2.8.0/album/album-ui.c Examining data/purple-plugin-pack-2.8.0/album/album-ui.h Examining data/purple-plugin-pack-2.8.0/album/album.c Examining data/purple-plugin-pack-2.8.0/album/album.h Examining data/purple-plugin-pack-2.8.0/autoreply/autoreply.c Examining data/purple-plugin-pack-2.8.0/bash/bash.c Examining data/purple-plugin-pack-2.8.0/blistops/blistops.c Examining data/purple-plugin-pack-2.8.0/capsnot/capsnot.c Examining data/purple-plugin-pack-2.8.0/colorize/colorize.c Examining data/purple-plugin-pack-2.8.0/common/glib_compat.h Examining data/purple-plugin-pack-2.8.0/common/gtk_template.c Examining data/purple-plugin-pack-2.8.0/common/pp_internal.h Examining data/purple-plugin-pack-2.8.0/common/purple_template.c Examining data/purple-plugin-pack-2.8.0/convbadger/convbadger.c Examining data/purple-plugin-pack-2.8.0/dewysiwygification/dewysiwygification.c Examining data/purple-plugin-pack-2.8.0/dice/dice.c Examining data/purple-plugin-pack-2.8.0/difftopic/difftopic.c Examining data/purple-plugin-pack-2.8.0/eight_ball/eight_ball.c Examining data/purple-plugin-pack-2.8.0/enhancedhist/enhancedhist.c Examining data/purple-plugin-pack-2.8.0/flip/flip.c Examining data/purple-plugin-pack-2.8.0/gRIM/gRIM.c Examining data/purple-plugin-pack-2.8.0/google/google.c Examining data/purple-plugin-pack-2.8.0/groupmsg/groupmsg.c Examining data/purple-plugin-pack-2.8.0/highlight/highlight.c Examining data/purple-plugin-pack-2.8.0/icon-override/icon_override.c Examining data/purple-plugin-pack-2.8.0/ignore/ignore.c Examining data/purple-plugin-pack-2.8.0/irc-more/irc-more.c Examining data/purple-plugin-pack-2.8.0/irchelper/irchelper.c Examining data/purple-plugin-pack-2.8.0/irssi/datechange.c Examining data/purple-plugin-pack-2.8.0/irssi/datechange.h Examining data/purple-plugin-pack-2.8.0/irssi/irssi.c Examining data/purple-plugin-pack-2.8.0/irssi/irssi.h Examining data/purple-plugin-pack-2.8.0/irssi/lastlog.c Examining data/purple-plugin-pack-2.8.0/irssi/lastlog.h Examining data/purple-plugin-pack-2.8.0/irssi/layout.c Examining data/purple-plugin-pack-2.8.0/irssi/layout.h Examining data/purple-plugin-pack-2.8.0/irssi/textfmt.c Examining data/purple-plugin-pack-2.8.0/irssi/textfmt.h Examining data/purple-plugin-pack-2.8.0/irssi/window.c Examining data/purple-plugin-pack-2.8.0/irssi/window.h Examining data/purple-plugin-pack-2.8.0/lastseen/lastseen.c Examining data/purple-plugin-pack-2.8.0/listhandler/aim_blt_files.c Examining data/purple-plugin-pack-2.8.0/listhandler/aim_blt_files.h Examining data/purple-plugin-pack-2.8.0/listhandler/alias_xml_files.c Examining data/purple-plugin-pack-2.8.0/listhandler/alias_xml_files.h Examining data/purple-plugin-pack-2.8.0/listhandler/gen_xml_files.c Examining data/purple-plugin-pack-2.8.0/listhandler/gen_xml_files.h Examining data/purple-plugin-pack-2.8.0/listhandler/lh_util.c Examining data/purple-plugin-pack-2.8.0/listhandler/lh_util.h Examining data/purple-plugin-pack-2.8.0/listhandler/listhandler.c Examining data/purple-plugin-pack-2.8.0/listhandler/listhandler.h Examining data/purple-plugin-pack-2.8.0/listhandler/migrate.c Examining data/purple-plugin-pack-2.8.0/listhandler/migrate.h Examining data/purple-plugin-pack-2.8.0/listhandler/purple_blist_xml.c Examining data/purple-plugin-pack-2.8.0/listhandler/purple_blist_xml.h Examining data/purple-plugin-pack-2.8.0/listlog/listlog.c Examining data/purple-plugin-pack-2.8.0/mystatusbox/mystatusbox.c Examining data/purple-plugin-pack-2.8.0/nicksaid/nicksaid.c Examining data/purple-plugin-pack-2.8.0/ning/ning.c Examining data/purple-plugin-pack-2.8.0/ning/ning.h Examining data/purple-plugin-pack-2.8.0/ning/ning_chat.c Examining data/purple-plugin-pack-2.8.0/ning/ning_chat.h Examining data/purple-plugin-pack-2.8.0/ning/ning_connection.c Examining data/purple-plugin-pack-2.8.0/ning/ning_connection.h Examining data/purple-plugin-pack-2.8.0/okcupid/okc_blist.c Examining data/purple-plugin-pack-2.8.0/okcupid/okc_blist.h Examining data/purple-plugin-pack-2.8.0/okcupid/okc_connection.c Examining data/purple-plugin-pack-2.8.0/okcupid/okc_connection.h Examining data/purple-plugin-pack-2.8.0/okcupid/okc_messages.c Examining data/purple-plugin-pack-2.8.0/okcupid/okc_messages.h Examining data/purple-plugin-pack-2.8.0/okcupid/okcupid.c Examining data/purple-plugin-pack-2.8.0/okcupid/okcupid.h Examining data/purple-plugin-pack-2.8.0/oldlogger/oldlogger.c Examining data/purple-plugin-pack-2.8.0/omegle/om_connection.c Examining data/purple-plugin-pack-2.8.0/omegle/om_connection.h Examining data/purple-plugin-pack-2.8.0/omegle/omegle.c Examining data/purple-plugin-pack-2.8.0/omegle/omegle.h Examining data/purple-plugin-pack-2.8.0/plonkers/plonkers.c Examining data/purple-plugin-pack-2.8.0/schedule/pidgin-schedule.c Examining data/purple-plugin-pack-2.8.0/schedule/schedule.c Examining data/purple-plugin-pack-2.8.0/schedule/schedule.h Examining data/purple-plugin-pack-2.8.0/sepandtab/sepandtab.c Examining data/purple-plugin-pack-2.8.0/showoffline/showoffline.c Examining data/purple-plugin-pack-2.8.0/simfix/simfix.c Examining data/purple-plugin-pack-2.8.0/slashexec/slashexec.c Examining data/purple-plugin-pack-2.8.0/snpp/snpp.c Examining data/purple-plugin-pack-2.8.0/splitter/splitter.c Examining data/purple-plugin-pack-2.8.0/sslinfo/sslinfo.c Examining data/purple-plugin-pack-2.8.0/switchspell/switchspell.c Examining data/purple-plugin-pack-2.8.0/timelog/log-widget.c Examining data/purple-plugin-pack-2.8.0/timelog/log-widget.h Examining data/purple-plugin-pack-2.8.0/timelog/range-widget.c Examining data/purple-plugin-pack-2.8.0/timelog/range-widget.h Examining data/purple-plugin-pack-2.8.0/timelog/timelog.c Examining data/purple-plugin-pack-2.8.0/timelog/timelog.h Examining data/purple-plugin-pack-2.8.0/translate/translate.c Examining data/purple-plugin-pack-2.8.0/xmppprio/xmppprio.c FINAL RESULTS: data/purple-plugin-pack-2.8.0/ignore/ignore.c:50:7: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. k += snprintf(key, sizeof(key), PREF_ROOT "/%s/%s/", data/purple-plugin-pack-2.8.0/irchelper/irchelper.c:1043:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(msg, MESSAGE_PURPLE_NOTICE_PREFIX PATTERN_WEIRD_LOGIN_CRUFT, &temp) == 1) data/purple-plugin-pack-2.8.0/bash/bash.c:53:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/purple-plugin-pack-2.8.0/dice/dice.c:325:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/purple-plugin-pack-2.8.0/eight_ball/eight_ball.c:271:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/purple-plugin-pack-2.8.0/flip/flip.c:39:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/purple-plugin-pack-2.8.0/ning/ning.h:47:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # define dlopen(a,b) LoadLibrary(a) data/purple-plugin-pack-2.8.0/okcupid/okc_messages.c:322:6: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int(), oca->server_seqid, oca->server_gmt, data/purple-plugin-pack-2.8.0/okcupid/okc_messages.c:361:6: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int(), oca->server_seqid, oca->server_gmt, data/purple-plugin-pack-2.8.0/okcupid/okc_messages.c:488:13: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. msg->rid = g_random_int_range(0, 2000000000); /* just fits inside a 32bit int */ data/purple-plugin-pack-2.8.0/okcupid/okcupid.h:47:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # define dlopen(a,b) LoadLibrary(a) data/purple-plugin-pack-2.8.0/omegle/omegle.h:45:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # define dlopen(a,b) LoadLibrary(a) data/purple-plugin-pack-2.8.0/switchspell/switchspell.c:269:79: [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. g_object_set_data(G_OBJECT(gtkconv->entry), PROP_LANG, lang ? (char *)lang : getenv("LANG")); data/purple-plugin-pack-2.8.0/bash/bash.c:66: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). quoteid = atoi(args[0]); data/purple-plugin-pack-2.8.0/dice/dice.c:92:16: [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 bonus = atoi(dn); data/purple-plugin-pack-2.8.0/dice/dice.c:113: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). dice = atoi(dn); data/purple-plugin-pack-2.8.0/dice/dice.c:121: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). sides = atoi(dn); data/purple-plugin-pack-2.8.0/dice/dice.c:232:11: [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). dice = atoi(args[0]); data/purple-plugin-pack-2.8.0/dice/dice.c:233: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). sides = (args[1]) ? atoi(args[1]) : DEFAULT_SIDES; data/purple-plugin-pack-2.8.0/dice/dice.c:242:11: [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). dice = atoi(splitted[0]); /* We should have the number of dice easily now. */ data/purple-plugin-pack-2.8.0/dice/dice.c:246: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). sides = atoi(resplitted[0]); /* Number of sides on the left. */ data/purple-plugin-pack-2.8.0/dice/dice.c:247: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). bonus += atoi(resplitted[1]); /* Bonus on the right. */ data/purple-plugin-pack-2.8.0/dice/dice.c:253: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). sides = atoi(resplitted[0]); /* Number of sides on the left. */ data/purple-plugin-pack-2.8.0/dice/dice.c:254: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). bonus -= atoi(resplitted[1]); /* Penalty on the right. */ data/purple-plugin-pack-2.8.0/dice/dice.c:258: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). sides = atoi(splitted[1]); /* We're assuming it's just a number, then. Number of sides. */ data/purple-plugin-pack-2.8.0/dice/dice.c:264:11: [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). sides = atoi(args[1]); /* Grab it and make it the number of sides the dice have. */ data/purple-plugin-pack-2.8.0/eight_ball/eight_ball.c:294:11: [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). index = atoi(args[0]); data/purple-plugin-pack-2.8.0/gRIM/gRIM.c:137:4: [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 t[2] = {*s++, 0}; data/purple-plugin-pack-2.8.0/gRIM/gRIM.c:138:4: [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 tag[16]; data/purple-plugin-pack-2.8.0/gRIM/gRIM.c:176: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 str[MAX_LENGTH]; data/purple-plugin-pack-2.8.0/ignore/ignore.c:47:9: [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 char key[1024]; data/purple-plugin-pack-2.8.0/irssi/window.c:70: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). gint tab = atoi(sub_cmd) - 1; /* index starts at zero */ data/purple-plugin-pack-2.8.0/listhandler/aim_blt_files.c:395:17: [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 *export = fopen(filename, "w"); data/purple-plugin-pack-2.8.0/listhandler/alias_xml_files.c:145:17: [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 *export = fopen(filename, "w"); data/purple-plugin-pack-2.8.0/listhandler/gen_xml_files.c:278:17: [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 *export = fopen(filename, "w"); data/purple-plugin-pack-2.8.0/listhandler/purple_blist_xml.c:146:35: [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). tmpinfo->signed_on = data ? atoi(data) : 0; data/purple-plugin-pack-2.8.0/listhandler/purple_blist_xml.c:148:36: [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). tmpinfo->signed_off = data ? atoi(data) : 0; data/purple-plugin-pack-2.8.0/listhandler/purple_blist_xml.c:150:34: [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). tmpinfo->lastseen = data ? atoi(data) : 0; data/purple-plugin-pack-2.8.0/listhandler/purple_blist_xml.c:152:35: [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). tmpinfo->last_seen = data ? atoi(data) : 0; data/purple-plugin-pack-2.8.0/ning/ning_connection.c:281: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(conn->rx_buf + conn->rx_len, buf, len + 1); data/purple-plugin-pack-2.8.0/okcupid/okc_connection.c:283: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(okconn->rx_buf + okconn->rx_len, buf, len + 1); data/purple-plugin-pack-2.8.0/okcupid/okcupid.c:91:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&dest[j], "<BR>"); data/purple-plugin-pack-2.8.0/okcupid/okcupid.c:94:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&dest[j], "<"); data/purple-plugin-pack-2.8.0/okcupid/okcupid.c:97:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&dest[j], ">"); data/purple-plugin-pack-2.8.0/okcupid/okcupid.c:100:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&dest[j], "&"); data/purple-plugin-pack-2.8.0/okcupid/okcupid.c:103:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&dest[j], """); data/purple-plugin-pack-2.8.0/oldlogger/oldlogger.c:118:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(index_path + strlen(index_path) - 3, "idx"); data/purple-plugin-pack-2.8.0/oldlogger/oldlogger.c:203: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 date[64]; data/purple-plugin-pack-2.8.0/oldlogger/oldlogger.c:326: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 date[64]; data/purple-plugin-pack-2.8.0/omegle/om_connection.c:280: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(omconn->rx_buf + omconn->rx_len, buf, len + 1); data/purple-plugin-pack-2.8.0/schedule/schedule.c:426: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). int type = atoi(xmlnode_get_attrib(when, "type")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:430: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). schedule->d.date = atoi(xmlnode_get_attrib(when, "date")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:432:21: [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). schedule->d.day = atoi(xmlnode_get_attrib(when, "day")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:434: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). schedule->month = atoi(xmlnode_get_attrib(when, "month")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:435: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). schedule->year = atoi(xmlnode_get_attrib(when, "year")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:436: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). schedule->hour = atoi(xmlnode_get_attrib(when, "hour")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:437:21: [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). schedule->minute = atoi(xmlnode_get_attrib(when, "minute")); data/purple-plugin-pack-2.8.0/schedule/schedule.c:443: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). int type = atoi(xmlnode_get_attrib(action, "type")); data/purple-plugin-pack-2.8.0/snpp/snpp.c:127: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 command[SNPP_INITIAL_BUFSIZE]; data/purple-plugin-pack-2.8.0/snpp/snpp.c:148: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 command[SNPP_INITIAL_BUFSIZE]; data/purple-plugin-pack-2.8.0/snpp/snpp.c:161: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 command[SNPP_INITIAL_BUFSIZE]; data/purple-plugin-pack-2.8.0/snpp/snpp.c:174: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 command[SNPP_INITIAL_BUFSIZE]; data/purple-plugin-pack-2.8.0/snpp/snpp.c:187: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 command[SNPP_INITIAL_BUFSIZE]; data/purple-plugin-pack-2.8.0/snpp/snpp.c:203: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 buf[SNPP_INITIAL_BUFSIZE]; data/purple-plugin-pack-2.8.0/timelog/log-widget.c:62: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 name[64]; data/purple-plugin-pack-2.8.0/timelog/log-widget.c:63: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 title[64]; data/purple-plugin-pack-2.8.0/timelog/log-widget.c:64: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 prev_top_name[64] = ""; data/purple-plugin-pack-2.8.0/timelog/log-widget.c:131:4: [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 title[64]; data/purple-plugin-pack-2.8.0/timelog/log-widget.c:195: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 time[64]; data/purple-plugin-pack-2.8.0/album/album-ui.c:267:39: [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). const gchar *file_ext = filename + strlen(filename) - strlen(fmt_ext); data/purple-plugin-pack-2.8.0/album/album-ui.c:267: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). const gchar *file_ext = filename + strlen(filename) - strlen(fmt_ext); data/purple-plugin-pack-2.8.0/blistops/blistops.c:151: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). new = g_strdup_printf("%s%s%s", html, name, find + strlen(alias)); data/purple-plugin-pack-2.8.0/colorize/colorize.c:131: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). new_msg = g_string_sized_new(strlen( *message )); /* A decent starting size */ data/purple-plugin-pack-2.8.0/enhancedhist/enhancedhist.c:207: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). log_size = strlen(history); data/purple-plugin-pack-2.8.0/gRIM/gRIM.c:122: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). int len = strlen(list->data); data/purple-plugin-pack-2.8.0/gRIM/gRIM.c:184: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). char *s = str + strlen(str) - 1; data/purple-plugin-pack-2.8.0/google/google.c:121: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(url_s); data/purple-plugin-pack-2.8.0/google/google.c:122: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). url_s += strlen(needle); data/purple-plugin-pack-2.8.0/google/google.c:152:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((len = read(source, buff, sizeof(buff))) > 0) data/purple-plugin-pack-2.8.0/google/google.c:175: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). total_len = strlen(gfud->request); data/purple-plugin-pack-2.8.0/irc-more/irc-more.c:162: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). irc_info->send_raw(gc, msg, strlen(msg)); data/purple-plugin-pack-2.8.0/irc-more/irc-more.c:169:32: [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). irc_info->send_raw(gc, msg2, strlen(msg2)); data/purple-plugin-pack-2.8.0/irc-more/irc-more.c:194: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). arg0len = strlen(args[0]); data/purple-plugin-pack-2.8.0/irc-more/irc-more.c:195: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). arg1len = strlen(args[1]); data/purple-plugin-pack-2.8.0/irc-more/irc-more.c:217: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(msg); data/purple-plugin-pack-2.8.0/irchelper/irchelper.c:766: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_str_has_prefix(tmp + strlen(name), MESSAGE_MODE_NOTICE_SUFFIX NICK_CHANSERV)) data/purple-plugin-pack-2.8.0/irchelper/irchelper.c:1155: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 ((msg3 = g_strstr_len(msg3, strlen(msg3), "]"))) data/purple-plugin-pack-2.8.0/listhandler/aim_blt_files.c:149:40: [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(strings[i], " ", 2) && strlen(strings[i]) >= 3 && data/purple-plugin-pack-2.8.0/listhandler/aim_blt_files.c:172: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). if(!strncmp(strings[i], " ", 3) && strlen(strings[i]) >= 4 && data/purple-plugin-pack-2.8.0/nicksaid/nicksaid.c:110: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). buf[strlen(buf) - 1] = '\0'; data/purple-plugin-pack-2.8.0/nicksaid/nicksaid.c:463: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). char *e = s + strlen(iter->data); data/purple-plugin-pack-2.8.0/ning/ning.c:202: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). tmp += strlen(start_string); data/purple-plugin-pack-2.8.0/ning/ning.c:206: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). obj = ning_json_parse(ning_json_string, strlen(ning_json_string)); data/purple-plugin-pack-2.8.0/ning/ning.c:221: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). tmp += strlen(xgtoken_start); data/purple-plugin-pack-2.8.0/ning/ning_connection.c:138: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). header_len = strlen(headers); data/purple-plugin-pack-2.8.0/ning/ning_connection.c:511:32: [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). "Content-length: %zu\r\n", strlen(postdata)); data/purple-plugin-pack-2.8.0/ning/ning_connection.c:523:67: [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). proxy_auth_base64 = purple_base64_encode((guchar *)proxy_auth, strlen(proxy_auth)); data/purple-plugin-pack-2.8.0/okcupid/okc_connection.c:138: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). header_len = strlen(headers); data/purple-plugin-pack-2.8.0/okcupid/okc_connection.c:530:32: [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). "Content-length: %zu\r\n", strlen(postdata)); data/purple-plugin-pack-2.8.0/okcupid/okc_connection.c:543:67: [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). proxy_auth_base64 = purple_base64_encode((guchar *)proxy_auth, strlen(proxy_auth)); data/purple-plugin-pack-2.8.0/okcupid/okc_messages.c:500: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). return strlen(message); data/purple-plugin-pack-2.8.0/oldlogger/oldlogger.c:63: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). buf[strlen(buf) - 1] = '\0'; data/purple-plugin-pack-2.8.0/oldlogger/oldlogger.c:118:22: [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). strcpy(index_path + strlen(index_path) - 3, "idx"); data/purple-plugin-pack-2.8.0/omegle/om_connection.c:140: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). header_len = strlen(headers); data/purple-plugin-pack-2.8.0/omegle/om_connection.c:515:32: [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). "Content-length: %zu\r\n", strlen(postdata)); data/purple-plugin-pack-2.8.0/omegle/om_connection.c:526:67: [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). proxy_auth_base64 = purple_base64_encode((guchar *)proxy_auth, strlen(proxy_auth)); data/purple-plugin-pack-2.8.0/omegle/omegle.c:286: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). return strlen(message); data/purple-plugin-pack-2.8.0/plonkers/plonkers.c:144:36: [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). lower = g_ascii_strdown(args[0], strlen(args[0])); data/purple-plugin-pack-2.8.0/slashexec/slashexec.c:73: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). stringlen = strlen(string); data/purple-plugin-pack-2.8.0/slashexec/slashexec.c:90: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). stringlen = strlen(string); data/purple-plugin-pack-2.8.0/slashexec/slashexec.c:133: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). if(strlen(args) == 0 || strlen(args) > MAX_CMD_LEN) data/purple-plugin-pack-2.8.0/slashexec/slashexec.c:133: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). if(strlen(args) == 0 || strlen(args) > MAX_CMD_LEN) data/purple-plugin-pack-2.8.0/slashexec/slashexec.c:261: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). cmd_stdout[strlen(cmd_stdout) - 1] = '\0'; data/purple-plugin-pack-2.8.0/snpp/snpp.c:106: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 (!write(fd,buf,strlen(buf))) { data/purple-plugin-pack-2.8.0/snpp/snpp.c:212:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((len = read(sd->fd, buf, SNPP_INITIAL_BUFSIZE - 1)) < 0) { data/purple-plugin-pack-2.8.0/snpp/snpp.c:363:36: [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 (sd->current_page->message && (strlen(sd->current_page->message) > 0)) { data/purple-plugin-pack-2.8.0/splitter/splitter.c:130: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(message) == 0) data/purple-plugin-pack-2.8.0/splitter/splitter.c:260: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(message); data/purple-plugin-pack-2.8.0/splitter/splitter.c:287: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(message); data/purple-plugin-pack-2.8.0/splitter/splitter.c:433: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 (0 == strncmp(*message, "?OTR", strlen("?OTR"))) data/purple-plugin-pack-2.8.0/sslinfo/sslinfo.c:66: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). strlen(ssl_plugin->info->name)); data/purple-plugin-pack-2.8.0/sslinfo/sslinfo.c:73: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). strlen(ssl_plugin->info->version)); data/purple-plugin-pack-2.8.0/sslinfo/sslinfo.c:80: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). strlen(ssl_plugin->info->author)); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:72:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, log->name, sizeof(name)); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:77:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, utf8_tmp, sizeof(name)); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:80:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(title, utf8_tmp, sizeof(title)); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:88:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(prev_top_name, name, sizeof(prev_top_name)); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:128:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && *read && purple_strcasestr(read, search_term)) { data/purple-plugin-pack-2.8.0/timelog/log-widget.c:128:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && *read && purple_strcasestr(read, search_term)) { data/purple-plugin-pack-2.8.0/timelog/log-widget.c:128:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && *read && purple_strcasestr(read, search_term)) { data/purple-plugin-pack-2.8.0/timelog/log-widget.c:136:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(title, title_utf8, sizeof(title)); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:144:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_free(read); data/purple-plugin-pack-2.8.0/timelog/log-widget.c:246:53: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gtk_imhtml_append_text(GTK_IMHTML(viewer->imhtml), read, data/purple-plugin-pack-2.8.0/timelog/log-widget.c:249:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_free(read); data/purple-plugin-pack-2.8.0/translate/translate.c:121: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). strstart = strstart + strlen(trans_start); data/purple-plugin-pack-2.8.0/translate/translate.c:132: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). strstart = strstart + strlen(lang_start); data/purple-plugin-pack-2.8.0/translate/translate.c:889: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 (language && strlen(language) == 2) data/purple-plugin-pack-2.8.0/translate/translate.c:891: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 (!language || strlen(language) != 2) ANALYSIS SUMMARY: Hits = 138 Lines analyzed = 26447 in approximately 0.71 seconds (37264 lines/second) Physical Source Lines of Code (SLOC) = 18407 Hits@level = [0] 42 [1] 69 [2] 56 [3] 11 [4] 2 [5] 0 Hits@level+ = [0+] 180 [1+] 138 [2+] 69 [3+] 13 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 9.77889 [1+] 7.49715 [2+] 3.74857 [3+] 0.706253 [4+] 0.108654 [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.