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/engrampa-1.24.1/caja/caja-engrampa.c Examining data/engrampa-1.24.1/caja/caja-engrampa.h Examining data/engrampa-1.24.1/caja/engrampa-module.c Examining data/engrampa-1.24.1/copy-n-paste/eggdesktopfile.c Examining data/engrampa-1.24.1/copy-n-paste/eggdesktopfile.h Examining data/engrampa-1.24.1/copy-n-paste/eggsmclient-private.h Examining data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c Examining data/engrampa-1.24.1/copy-n-paste/eggsmclient.c Examining data/engrampa-1.24.1/copy-n-paste/eggsmclient.h Examining data/engrampa-1.24.1/src/actions.c Examining data/engrampa-1.24.1/src/actions.h Examining data/engrampa-1.24.1/src/dlg-add-files.c Examining data/engrampa-1.24.1/src/dlg-add-files.h Examining data/engrampa-1.24.1/src/dlg-add-folder.c Examining data/engrampa-1.24.1/src/dlg-add-folder.h Examining data/engrampa-1.24.1/src/dlg-ask-password.c Examining data/engrampa-1.24.1/src/dlg-ask-password.h Examining data/engrampa-1.24.1/src/dlg-batch-add.c Examining data/engrampa-1.24.1/src/dlg-batch-add.h Examining data/engrampa-1.24.1/src/dlg-delete.c Examining data/engrampa-1.24.1/src/dlg-delete.h Examining data/engrampa-1.24.1/src/dlg-extract.c Examining data/engrampa-1.24.1/src/dlg-extract.h Examining data/engrampa-1.24.1/src/dlg-new.c Examining data/engrampa-1.24.1/src/dlg-new.h Examining data/engrampa-1.24.1/src/dlg-open-with.c Examining data/engrampa-1.24.1/src/dlg-open-with.h Examining data/engrampa-1.24.1/src/dlg-package-installer.c Examining data/engrampa-1.24.1/src/dlg-package-installer.h Examining data/engrampa-1.24.1/src/dlg-password.c Examining data/engrampa-1.24.1/src/dlg-password.h Examining data/engrampa-1.24.1/src/dlg-prop.c Examining data/engrampa-1.24.1/src/dlg-prop.h Examining data/engrampa-1.24.1/src/dlg-update.c Examining data/engrampa-1.24.1/src/dlg-update.h Examining data/engrampa-1.24.1/src/egg-macros.h Examining data/engrampa-1.24.1/src/eggfileformatchooser.c Examining data/engrampa-1.24.1/src/eggfileformatchooser.h Examining data/engrampa-1.24.1/src/eggtreemultidnd.c Examining data/engrampa-1.24.1/src/eggtreemultidnd.h Examining data/engrampa-1.24.1/src/file-data.c Examining data/engrampa-1.24.1/src/file-data.h Examining data/engrampa-1.24.1/src/file-utils.c Examining data/engrampa-1.24.1/src/file-utils.h Examining data/engrampa-1.24.1/src/fr-archive.c Examining data/engrampa-1.24.1/src/fr-archive.h Examining data/engrampa-1.24.1/src/fr-command-7z.c Examining data/engrampa-1.24.1/src/fr-command-7z.h Examining data/engrampa-1.24.1/src/fr-command-ace.c Examining data/engrampa-1.24.1/src/fr-command-ace.h Examining data/engrampa-1.24.1/src/fr-command-alz.c Examining data/engrampa-1.24.1/src/fr-command-alz.h Examining data/engrampa-1.24.1/src/fr-command-ar.c Examining data/engrampa-1.24.1/src/fr-command-ar.h Examining data/engrampa-1.24.1/src/fr-command-arj.c Examining data/engrampa-1.24.1/src/fr-command-arj.h Examining data/engrampa-1.24.1/src/fr-command-cfile.c Examining data/engrampa-1.24.1/src/fr-command-cfile.h Examining data/engrampa-1.24.1/src/fr-command-cpio.c Examining data/engrampa-1.24.1/src/fr-command-cpio.h Examining data/engrampa-1.24.1/src/fr-command-dpkg.c Examining data/engrampa-1.24.1/src/fr-command-dpkg.h Examining data/engrampa-1.24.1/src/fr-command-iso.c Examining data/engrampa-1.24.1/src/fr-command-iso.h Examining data/engrampa-1.24.1/src/fr-command-jar.c Examining data/engrampa-1.24.1/src/fr-command-jar.h Examining data/engrampa-1.24.1/src/fr-command-lha.c Examining data/engrampa-1.24.1/src/fr-command-lha.h Examining data/engrampa-1.24.1/src/fr-command-lrzip.c Examining data/engrampa-1.24.1/src/fr-command-lrzip.h Examining data/engrampa-1.24.1/src/fr-command-rar.c Examining data/engrampa-1.24.1/src/fr-command-rar.h Examining data/engrampa-1.24.1/src/fr-command-rpm.c Examining data/engrampa-1.24.1/src/fr-command-rpm.h Examining data/engrampa-1.24.1/src/fr-command-tar.c Examining data/engrampa-1.24.1/src/fr-command-tar.h Examining data/engrampa-1.24.1/src/fr-command-unarchiver.c Examining data/engrampa-1.24.1/src/fr-command-unarchiver.h Examining data/engrampa-1.24.1/src/fr-command-unstuff.c Examining data/engrampa-1.24.1/src/fr-command-unstuff.h Examining data/engrampa-1.24.1/src/fr-command-zip.c Examining data/engrampa-1.24.1/src/fr-command-zip.h Examining data/engrampa-1.24.1/src/fr-command-zoo.c Examining data/engrampa-1.24.1/src/fr-command-zoo.h Examining data/engrampa-1.24.1/src/fr-command.c Examining data/engrampa-1.24.1/src/fr-command.h Examining data/engrampa-1.24.1/src/fr-error.c Examining data/engrampa-1.24.1/src/fr-error.h Examining data/engrampa-1.24.1/src/fr-init.c Examining data/engrampa-1.24.1/src/fr-init.h Examining data/engrampa-1.24.1/src/fr-list-model.c Examining data/engrampa-1.24.1/src/fr-list-model.h Examining data/engrampa-1.24.1/src/fr-proc-error.c Examining data/engrampa-1.24.1/src/fr-proc-error.h Examining data/engrampa-1.24.1/src/fr-process.c Examining data/engrampa-1.24.1/src/fr-process.h Examining data/engrampa-1.24.1/src/fr-stock.c Examining data/engrampa-1.24.1/src/fr-stock.h Examining data/engrampa-1.24.1/src/fr-window.c Examining data/engrampa-1.24.1/src/fr-window.h Examining data/engrampa-1.24.1/src/gio-utils.c Examining data/engrampa-1.24.1/src/gio-utils.h Examining data/engrampa-1.24.1/src/glib-utils.c Examining data/engrampa-1.24.1/src/glib-utils.h Examining data/engrampa-1.24.1/src/gtk-utils.c Examining data/engrampa-1.24.1/src/gtk-utils.h Examining data/engrampa-1.24.1/src/java-utils.c Examining data/engrampa-1.24.1/src/java-utils.h Examining data/engrampa-1.24.1/src/main.c Examining data/engrampa-1.24.1/src/open-file.c Examining data/engrampa-1.24.1/src/open-file.h Examining data/engrampa-1.24.1/src/preferences.c Examining data/engrampa-1.24.1/src/preferences.h Examining data/engrampa-1.24.1/src/rar-utils.c Examining data/engrampa-1.24.1/src/rar-utils.h Examining data/engrampa-1.24.1/src/server.c Examining data/engrampa-1.24.1/src/test-server.c Examining data/engrampa-1.24.1/src/typedefs.h Examining data/engrampa-1.24.1/src/ui.h FINAL RESULTS: data/engrampa-1.24.1/src/fr-archive.c:3173:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (dest_filename, "%s%s", destination, filename); data/engrampa-1.24.1/src/fr-archive.c:3175:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (dest_filename, "%s/%s", destination, filename); data/engrampa-1.24.1/src/fr-process.c:766:20: [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. if ((fixname) && (system (commandline->str) != 0)) data/engrampa-1.24.1/src/file-utils.c:896:12: [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. folder = g_get_home_dir (); data/engrampa-1.24.1/src/file-utils.c:898:12: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. folder = g_get_tmp_dir (); data/engrampa-1.24.1/src/file-utils.c:979:14: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. if (strcmp (g_get_tmp_dir (), dir) == 0) data/engrampa-1.24.1/src/file-utils.c:981:20: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. if (path_in_path (g_get_tmp_dir (), dir)) data/engrampa-1.24.1/src/file-utils.c:1203:33: [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. home_uri = g_filename_to_uri (g_get_home_dir (), NULL, NULL); data/engrampa-1.24.1/src/file-utils.h:35:15: [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_strconcat (g_get_home_dir (), \ data/engrampa-1.24.1/src/fr-archive.c:1717:50: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir()); data/engrampa-1.24.1/src/fr-archive.c:1766:49: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir()); data/engrampa-1.24.1/src/fr-archive.c:1776:50: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir()); data/engrampa-1.24.1/src/fr-archive.c:2586:50: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir()); data/engrampa-1.24.1/src/fr-archive.c:2693:48: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir()); data/engrampa-1.24.1/src/fr-archive.c:2858:50: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir()); data/engrampa-1.24.1/src/fr-command-alz.c:168:15: [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. char *env = getenv (*scan); data/engrampa-1.24.1/src/fr-init.c:671:17: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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_spawn_sync (g_get_tmp_dir (), argv, NULL, data/engrampa-1.24.1/src/fr-window.c:7709:48: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (archive->process, g_get_tmp_dir ()); data/engrampa-1.24.1/src/fr-window.c:8102:56: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';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. fr_process_set_working_dir (window->archive->process, g_get_tmp_dir ()); data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c:209:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pid_str[64]; data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c:320:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_string_ret[256]; data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c:869:12: [2] (misc) open: 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). fd = open (state_file_path, O_WRONLY | O_CREAT | O_EXCL, 0644); data/engrampa-1.24.1/src/dlg-new.c:329: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. const char *exts[4]; data/engrampa-1.24.1/src/fr-archive.c:576: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 buffer[32]; data/engrampa-1.24.1/src/fr-archive.c:3151:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dest_filename[4096]; data/engrampa-1.24.1/src/fr-command-7z.c:69: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). tm.tm_year = atoi (fields[0]) - 1900; data/engrampa-1.24.1/src/fr-command-7z.c:70: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). tm.tm_mon = atoi (fields[1]) - 1; data/engrampa-1.24.1/src/fr-command-7z.c:71: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). tm.tm_mday = atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-7z.c:79: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-7z.c:81: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-7z.c:83: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). tm.tm_sec = atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-7z.c:107: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 version[256]; data/engrampa-1.24.1/src/fr-command-ace.c:60: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). tm.tm_mday = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-ace.c:62: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). tm.tm_mon = atoi (fields[1]) - 1; data/engrampa-1.24.1/src/fr-command-ace.c:64: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 y = atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-ace.c:78: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-ace.c:80: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-alz.c:59: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). tm.tm_mon = atoi (fields[0]) - 1; data/engrampa-1.24.1/src/fr-command-alz.c:61: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). tm.tm_mday = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-alz.c:63: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). tm.tm_year = 100 + atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-alz.c:72: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-alz.c:74: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-arj.c:60: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). int y = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-arj.c:66: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). tm.tm_mon = atoi (fields[1]) - 1; data/engrampa-1.24.1/src/fr-command-arj.c:67: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). tm.tm_mday = atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-arj.c:75: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-arj.c:77: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-arj.c:79: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). tm.tm_sec = atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-cfile.c:62:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10]; data/engrampa-1.24.1/src/fr-command-cpio.c:66: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). tm.tm_mday = atoi (mday); data/engrampa-1.24.1/src/fr-command-cpio.c:73: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-cpio.c:74:18: [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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-cpio.c:81: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). tm.tm_year = atoi (year) - 1900; data/engrampa-1.24.1/src/fr-command-iso.c:64: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). tm.tm_mday = atoi (mday); data/engrampa-1.24.1/src/fr-command-iso.c:65: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). tm.tm_year = atoi (year) - 1900; data/engrampa-1.24.1/src/fr-command-lha.c:68: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). tm.tm_mday = atoi (mday); data/engrampa-1.24.1/src/fr-command-lha.c:70: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). tm.tm_year = atoi (time_or_year) - 1900; data/engrampa-1.24.1/src/fr-command-lha.c:84: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-lha.c:86: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-lha.c:283: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 options[5]; data/engrampa-1.24.1/src/fr-command-rar.c:131: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). tm.tm_year = atoi (fields[0]) - 1900; data/engrampa-1.24.1/src/fr-command-rar.c:133: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). tm.tm_mday = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-rar.c:135: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). tm.tm_mon = atoi (fields[1]) - 1; data/engrampa-1.24.1/src/fr-command-rar.c:138: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). tm.tm_mday = atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-rar.c:140:25: [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). tm.tm_year = 100 + atoi (fields[2]); data/engrampa-1.24.1/src/fr-command-rar.c:150: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-rar.c:152: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-rpm.c:69: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). tm.tm_mday = atoi (mday); data/engrampa-1.24.1/src/fr-command-rpm.c:80:18: [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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-rpm.c:81: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-rpm.c:88: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). tm.tm_year = atoi (year) - 1900; data/engrampa-1.24.1/src/fr-command-tar.c:1091: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. const char *try_command[3] = { "7za", "7zr", "7z" }; data/engrampa-1.24.1/src/fr-command-tar.c:1119: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. const char *try_command[3] = { "7za", "7zr", "7z" }; data/engrampa-1.24.1/src/fr-command-unstuff.c:97: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 (filename + i, "../", 3); data/engrampa-1.24.1/src/fr-command-unstuff.c:100: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 (filename + i, orig, strlen (orig) + 1); data/engrampa-1.24.1/src/fr-command-zip.c:71: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). tm.tm_year = atoi (year) - 1900; data/engrampa-1.24.1/src/fr-command-zip.c:72: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). tm.tm_mon = atoi (month) - 1; data/engrampa-1.24.1/src/fr-command-zip.c:73: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). tm.tm_mday = atoi (day); data/engrampa-1.24.1/src/fr-command-zip.c:84: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). tm.tm_hour = atoi (hour); data/engrampa-1.24.1/src/fr-command-zip.c:85: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). tm.tm_min = atoi (min); data/engrampa-1.24.1/src/fr-command-zip.c:86: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). tm.tm_sec = atoi (sec); data/engrampa-1.24.1/src/fr-command-zoo.c:59: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). year = atoi (year_s); data/engrampa-1.24.1/src/fr-command-zoo.c:92: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). tm.tm_mday = atoi (mday_s); data/engrampa-1.24.1/src/fr-command-zoo.c:96: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). tm.tm_hour = atoi (fields[0]); data/engrampa-1.24.1/src/fr-command-zoo.c:98: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). tm.tm_min = atoi (fields[1]); data/engrampa-1.24.1/src/fr-command-zoo.c:100:18: [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). tm.tm_sec = atoi (fields[2]); data/engrampa-1.24.1/src/fr-init.c:665:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[4]; data/engrampa-1.24.1/src/fr-process.c:697:5: [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 rarfile[strlen (argv[2]) + 7]; data/engrampa-1.24.1/src/java-utils.c:259:14: [2] (misc) open: 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). cfile->fd = open (fname, O_RDONLY); data/engrampa-1.24.1/src/java-utils.c:379:14: [2] (misc) open: 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). cfile->fd = open (fname, O_RDONLY); data/engrampa-1.24.1/src/java-utils.c:415:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char first_valid_word[8] = ""; data/engrampa-1.24.1/src/java-utils.c:423: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 buffer[500]; data/engrampa-1.24.1/src/main.c:268: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 *argv[2] = { NULL }; data/engrampa-1.24.1/src/rar-utils.c:98: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 buffer[11]; data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c:1147: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). pv.length = strlen (value); data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c:1181: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). pv.length = strlen (values->pdata[i]); data/engrampa-1.24.1/copy-n-paste/eggsmclient-xsmp.c:1210: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). prop->vals[0].length = strlen (value); data/engrampa-1.24.1/src/dlg-new.c:218: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). basename_noext = g_strndup (basename, strlen (basename) - strlen (ext)); data/engrampa-1.24.1/src/dlg-new.c:218:62: [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). basename_noext = g_strndup (basename, strlen (basename) - strlen (ext)); data/engrampa-1.24.1/src/eggfileformatchooser.c:306: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). length = strlen (filename); data/engrampa-1.24.1/src/eggfileformatchooser.c:312: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). extptr = filename + length - strlen (token) - 1; data/engrampa-1.24.1/src/file-data.c:157: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). path_l = strlen (path); data/engrampa-1.24.1/src/file-data.c:168: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). int original_path_l = strlen (fd->original_path); data/engrampa-1.24.1/src/file-utils.c:303: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). dirname_l = strlen (dirname); data/engrampa-1.24.1/src/file-utils.c:304: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). filename_l = strlen (filename); data/engrampa-1.24.1/src/file-utils.c:446:33: [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 ((file_name[0] == '\0') || (strlen (file_name) == 0)) data/engrampa-1.24.1/src/file-utils.c:449: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). last_char = strlen (file_name) - 1; data/engrampa-1.24.1/src/file-utils.c:474: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). last_char = strlen (path) - 1; data/engrampa-1.24.1/src/file-utils.c:496: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). p = strlen (path) - 1; data/engrampa-1.24.1/src/file-utils.c:518: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). copy_len = len = strlen (path); data/engrampa-1.24.1/src/file-utils.c:558: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 (path); data/engrampa-1.24.1/src/file-utils.c:663: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 (filename); data/engrampa-1.24.1/src/file-utils.c:689: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). filename_l = strlen (filename); data/engrampa-1.24.1/src/file-utils.c:690: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). ext_l = strlen (ext); data/engrampa-1.24.1/src/file-utils.c:962: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). if (strncmp (dir, folder, strlen (folder)) == 0) data/engrampa-1.24.1/src/file-utils.c:963:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (dir + strlen (folder), "/.fr-", 5) == 0) { data/engrampa-1.24.1/src/file-utils.c:1032: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). line_l = strlen (line); data/engrampa-1.24.1/src/file-utils.c:1033: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). pattern_l = strlen (pattern); data/engrampa-1.24.1/src/fr-archive.c:1361: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 (dest_dir[strlen (dest_dir) - 1] == G_DIR_SEPARATOR) data/engrampa-1.24.1/src/fr-archive.c:1362: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). dest_dir[strlen (dest_dir) - 1] = 0; data/engrampa-1.24.1/src/fr-archive.c:1469:69: [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_output_stream_write (G_OUTPUT_STREAM (ostream), filename, strlen (filename), NULL, error) < 0) data/engrampa-1.24.1/src/fr-archive.c:1518: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). l = strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:1522: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). l += strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2547: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 (path[strlen (path) - 1] == '/') data/engrampa-1.24.1/src/fr-archive.c:2606: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). l = strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2610: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). l += strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2790: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). temp_dir_l = strlen (temp_dir); data/engrampa-1.24.1/src/fr-archive.c:2801: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). l = temp_dir_l + 1 + strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2805: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). l += temp_dir_l + 1 + strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2878: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). l = strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2882: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). l += strlen (scan->data); data/engrampa-1.24.1/src/fr-archive.c:2905: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). int base_dir_len = strlen (base_dir); data/engrampa-1.24.1/src/fr-archive.c:2906: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). int path_len = strlen (path); data/engrampa-1.24.1/src/fr-archive.c:3021:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int dirname_l = strlen (dirname); data/engrampa-1.24.1/src/fr-archive.c:3171: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 ((destination[strlen (destination) - 1] == '/') data/engrampa-1.24.1/src/fr-archive.c:3319: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_name = g_strndup (name, strlen (name) - strlen (ext)); data/engrampa-1.24.1/src/fr-archive.c:3319: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). new_name = g_strndup (name, strlen (name) - strlen (ext)); data/engrampa-1.24.1/src/fr-command-7z.c:111:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (version, ver_start, ver_len); data/engrampa-1.24.1/src/fr-command-7z.c:175: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). (fdata->dir && (fdata->original_path[strlen (fdata->original_path) - 1] != '/')) ? "/" : "", data/engrampa-1.24.1/src/fr-command-7z.c:279: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). prefix_len = strlen (prefix); data/engrampa-1.24.1/src/fr-command-alz.c:118: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). name_len = strlen (name_field); data/engrampa-1.24.1/src/fr-command-cpio.c:146: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 (fdata->dir && (name[strlen (name) - 1] != '/')) { data/engrampa-1.24.1/src/fr-command-dpkg.c:139:33: [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 (fdata->dir && (name[strlen (name) - 1] != '/')) { data/engrampa-1.24.1/src/fr-command-jar.c:74: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). if ((package == NULL) || (strlen (package) == 0)) data/engrampa-1.24.1/src/fr-command-lha.c:111: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). line += strlen ("[MS-DOS]"); data/engrampa-1.24.1/src/fr-command-lha.c:116: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). line += strlen ("[generic]"); data/engrampa-1.24.1/src/fr-command-lha.c:121: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). line += strlen ("[unknown]"); data/engrampa-1.24.1/src/fr-command-lha.c:126: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). line += strlen ("[Amiga]"); data/engrampa-1.24.1/src/fr-command-lrzip.c:44: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 (line) == 0) data/engrampa-1.24.1/src/fr-command-lrzip.c:64: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). new_fname[strlen (new_fname) - 4] = '\0'; data/engrampa-1.24.1/src/fr-command-rar.c:414: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). if (strncmp (line, prefix, strlen (prefix)) == 0) data/engrampa-1.24.1/src/fr-command-rar.c:437: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). volume_filename[strlen (volume_filename) - 5] = '1'; data/engrampa-1.24.1/src/fr-command-rar.c:716: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). volume_filename = g_path_get_basename (line + strlen ("Cannot find volume ")); data/engrampa-1.24.1/src/fr-command-rpm.c:154: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 (fdata->dir && (name[strlen (name) - 1] != '/')) { data/engrampa-1.24.1/src/fr-command-tar.c:271: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). if (line[strlen (line) - 1] == '/') /* ignore directories */ data/engrampa-1.24.1/src/fr-command-tar.c:742:17: [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 l = strlen (new_name); data/engrampa-1.24.1/src/fr-command-unstuff.c:94: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). filename = g_malloc (3 * i + strlen (orig) + 1); data/engrampa-1.24.1/src/fr-command-unstuff.c:100: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). memcpy (filename + i, orig, strlen (orig) + 1); data/engrampa-1.24.1/src/fr-command-unstuff.c:124: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 ("progressEvent - "); data/engrampa-1.24.1/src/fr-command-unstuff.c:143: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). str_start = str_start + strlen (unstuff_comm->target_dir) - 1; data/engrampa-1.24.1/src/fr-command-zip.c:112: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). line_l = strlen (line); data/engrampa-1.24.1/src/fr-process.c:697: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 rarfile[strlen (argv[2]) + 7]; data/engrampa-1.24.1/src/fr-process.c:700: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). rarfile[strlen (rarfile) - 3] = 0; data/engrampa-1.24.1/src/fr-process.c:714: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). rarfile[strlen(rarfile) - 5] = 0; data/engrampa-1.24.1/src/fr-window.c:1088: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). dirname_l = strlen (dirname); data/engrampa-1.24.1/src/fr-window.c:1117: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). return strncasecmp (fdata->name, filter, strlen (filter)) == 0; data/engrampa-1.24.1/src/fr-window.c:1147: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 (fdata->full_path) == current_dir_len) data/engrampa-1.24.1/src/fr-window.c:1193: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). current_dir_len = strlen (current_dir); data/engrampa-1.24.1/src/fr-window.c:1231:17: [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_name_len = strlen (dir_name); data/engrampa-1.24.1/src/fr-window.c:1245: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). && (fdata->full_path[strlen (fdata->full_path) -1] != '/') data/engrampa-1.24.1/src/fr-window.c:1269: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). dir[strlen (dir) - 1] = 0; data/engrampa-1.24.1/src/fr-window.c:1273: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 (new_dir[strlen (new_dir) - 1] == '/') data/engrampa-1.24.1/src/fr-window.c:3400: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). if (path[strlen (path) - 1] != '/') data/engrampa-1.24.1/src/fr-window.c:3404: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). dirname_l = strlen (dirname); data/engrampa-1.24.1/src/fr-window.c:3414: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). int full_path_l = strlen (fd->full_path); data/engrampa-1.24.1/src/fr-window.c:4324: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). strlen (XDS_FILENAME)); data/engrampa-1.24.1/src/fr-window.c:4486:73: [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). gtk_selection_data_set (selection_data, XFR_ATOM, 8, (guchar *) data, strlen (data)); data/engrampa-1.24.1/src/fr-window.c:4566:73: [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). gtk_selection_data_set (selection_data, XFR_ATOM, 8, (guchar *) data, strlen (data)); data/engrampa-1.24.1/src/fr-window.c:6486: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). base_len = strlen (base_dir); data/engrampa-1.24.1/src/fr-window.c:7184: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). if (path[strlen (path) - 1] != '/') data/engrampa-1.24.1/src/fr-window.c:7665:7: [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 (filename) > (strlen (rdata->current_dir) + strlen (rdata->old_name))) data/engrampa-1.24.1/src/fr-window.c:7665: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 (strlen (filename) > (strlen (rdata->current_dir) + strlen (rdata->old_name))) data/engrampa-1.24.1/src/fr-window.c:7665: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). if (strlen (filename) > (strlen (rdata->current_dir) + strlen (rdata->old_name))) data/engrampa-1.24.1/src/fr-window.c:7666: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). common = g_strdup (filename + strlen (rdata->current_dir) + strlen (rdata->old_name)); data/engrampa-1.24.1/src/fr-window.c:7666:64: [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). common = g_strdup (filename + strlen (rdata->current_dir) + strlen (rdata->old_name)); data/engrampa-1.24.1/src/fr-window.c:7768: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). new_filename_l = strlen (new_filename); data/engrampa-1.24.1/src/fr-window.c:7940: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 (data)); data/engrampa-1.24.1/src/fr-window.c:7975: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). else if (parent_folder[strlen (parent_folder) - 1] == '/') data/engrampa-1.24.1/src/fr-window.c:8066:77: [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 *new_name = g_build_filename (current_dir_relative, old_name + strlen (data->base_dir) - 1, NULL); data/engrampa-1.24.1/src/fr-window.c:8071: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). && (old_name[strlen (old_name) - 1] != '/')) data/engrampa-1.24.1/src/fr-window.c:8205:77: [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 *new_name = g_build_filename (current_dir_relative, old_name + strlen (data->base_dir) - 1, NULL); data/engrampa-1.24.1/src/gio-utils.c:105: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). && (file_name[strlen (file_name) - 1] == '~')) data/engrampa-1.24.1/src/gio-utils.c:529:17: [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). base_dir_len = strlen (base_dir); data/engrampa-1.24.1/src/gio-utils.c:535:7: [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 (filename) <= base_dir_len) data/engrampa-1.24.1/src/gio-utils.c:828: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). base_len = strlen (base_dir); data/engrampa-1.24.1/src/glib-utils.c:113: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). int meta_chars_n = strlen (meta_chars); data/engrampa-1.24.1/src/glib-utils.c:135: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). int meta_chars_n = strlen (meta_chars); data/engrampa-1.24.1/src/glib-utils.c:149: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). new_l = strlen (str) + (count_chars_to_escape (str, meta_chars) * extra_chars); data/engrampa-1.24.1/src/glib-utils.c:186: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). int needle_size = strlen (needle); data/engrampa-1.24.1/src/glib-utils.c:220: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). gsize delimiter_size = strlen (delimiter); data/engrampa-1.24.1/src/glib-utils.c:227:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (new_string, remainder, size); data/engrampa-1.24.1/src/glib-utils.c:268: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). g_memmove (string, scan, strlen (scan) + 1); data/engrampa-1.24.1/src/glib-utils.c:554: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). last_char = strlen (file_name) - 1; data/engrampa-1.24.1/src/glib-utils.c:578:17: [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). base_dir_len = strlen (base_dir); data/engrampa-1.24.1/src/glib-utils.c:579: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 (path) < base_dir_len) data/engrampa-1.24.1/src/java-utils.c:155:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((i < cfile->const_pool_count - 1) && (read (cfile->fd, &tag, 1) != -1)) { data/engrampa-1.24.1/src/java-utils.c:163:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &class->name_index, 2) != 2) { data/engrampa-1.24.1/src/java-utils.c:210:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &(txt->length), 2) == -1) { data/engrampa-1.24.1/src/java-utils.c:216:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, txt->str, txt->length) == -1) { data/engrampa-1.24.1/src/java-utils.c:263:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((i = read (cfile->fd, &magic, 4)) != 4) data/engrampa-1.24.1/src/java-utils.c:267:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &major, 2 ) != 2) data/engrampa-1.24.1/src/java-utils.c:271:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &minor, 2) != 2) data/engrampa-1.24.1/src/java-utils.c:275:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &count, 2) != 2) data/engrampa-1.24.1/src/java-utils.c:280:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &cfile->access_flags, 2) != 2) data/engrampa-1.24.1/src/java-utils.c:284:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &cfile->this_class, 2) != 2) data/engrampa-1.24.1/src/java-utils.c:333:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read (fdesc, &ch, 1) == 1) { data/engrampa-1.24.1/src/java-utils.c:383:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (! valid_char_found && (read (cfile->fd, &ch, 1) == 1)) { data/engrampa-1.24.1/src/java-utils.c:418:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (cfile->fd, &first_valid_word[1], 6) != 6) data/engrampa-1.24.1/src/java-utils.c:426:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read (cfile->fd, &ch, 1) == 1) { data/engrampa-1.24.1/src/java-utils.c:443:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } while (read (cfile->fd, &ch, 1) == 1); data/engrampa-1.24.1/src/main.c:115:7: [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 (archive)) data/engrampa-1.24.1/src/rar-utils.c:52:7: [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). l = strlen (parts[2]); ANALYSIS SUMMARY: Hits = 222 Lines analyzed = 46014 in approximately 1.06 seconds (43303 lines/second) Physical Source Lines of Code (SLOC) = 33198 Hits@level = [0] 4 [1] 128 [2] 75 [3] 16 [4] 3 [5] 0 Hits@level+ = [0+] 226 [1+] 222 [2+] 94 [3+] 19 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 6.80764 [1+] 6.68715 [2+] 2.8315 [3+] 0.572324 [4+] 0.0903669 [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.