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/pcmanfm-1.3.1/src/desktop-ui.c
Examining data/pcmanfm-1.3.1/src/gseal-gtk-compat.h
Examining data/pcmanfm-1.3.1/src/app-config.c
Examining data/pcmanfm-1.3.1/src/main-win.c
Examining data/pcmanfm-1.3.1/src/pref.c
Examining data/pcmanfm-1.3.1/src/connect-server.h
Examining data/pcmanfm-1.3.1/src/pcmanfm.c
Examining data/pcmanfm-1.3.1/src/tab-page.h
Examining data/pcmanfm-1.3.1/src/desktop.h
Examining data/pcmanfm-1.3.1/src/single-inst.c
Examining data/pcmanfm-1.3.1/src/single-inst.h
Examining data/pcmanfm-1.3.1/src/app-config.h
Examining data/pcmanfm-1.3.1/src/pcmanfm.h
Examining data/pcmanfm-1.3.1/src/volume-manager.h
Examining data/pcmanfm-1.3.1/src/connect-server.c
Examining data/pcmanfm-1.3.1/src/pref.h
Examining data/pcmanfm-1.3.1/src/desktop.c
Examining data/pcmanfm-1.3.1/src/main-win-ui.c
Examining data/pcmanfm-1.3.1/src/volume-manager.c
Examining data/pcmanfm-1.3.1/src/main-win.h
Examining data/pcmanfm-1.3.1/src/tab-page.c
Examining data/pcmanfm-1.3.1/src/pcmanfm-modules.h

FINAL RESULTS:

data/pcmanfm-1.3.1/src/single-inst.c:423: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_get_tmp_dir(),
data/pcmanfm-1.3.1/src/app-config.c:596: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.
        char wpn_buf[32];
data/pcmanfm-1.3.1/src/app-config.c:710:32:  [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).
                    tmp_int |= atoi(tmp);
data/pcmanfm-1.3.1/src/app-config.c:729:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            tmp_int = atoi(tmp);
data/pcmanfm-1.3.1/src/app-config.c:956: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 const *list[5];
data/pcmanfm-1.3.1/src/single-inst.c:257:13:  [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 sock_path[256];
data/pcmanfm-1.3.1/src/single-inst.c:286:5:  [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(argv, client->argv->pdata, sizeof(char*) * argc);
data/pcmanfm-1.3.1/src/single-inst.c:329:42:  [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).
                    client->screen_num = atoi(line);
data/pcmanfm-1.3.1/src/single-inst.c:414: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).
        dpynum = atoi(p + 1);
data/pcmanfm-1.3.1/src/tab-page.c:409:13:  [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 size_str[128];
data/pcmanfm-1.3.1/src/tab-page.c:737: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.
        char total_str[ 64 ];
data/pcmanfm-1.3.1/src/tab-page.c:738: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.
        char free_str[ 64 ];
data/pcmanfm-1.3.1/src/tab-page.c:1111: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).
                infos[i].width = atoi(delim);
data/pcmanfm-1.3.1/src/desktop.c:3771: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).
            found = (strncmp(name, key, strlen(key)) == 0);
data/pcmanfm-1.3.1/src/desktop.c:3786: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).
            found = (strncmp(name, key, strlen(key)) == 0);
data/pcmanfm-1.3.1/src/desktop.c:3969: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).
        found = (strncmp(name, key, strlen(key)) == 0);
data/pcmanfm-1.3.1/src/single-inst.c:196:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    addr_len = strlen(addr.sun_path) + sizeof(addr.sun_family);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 15574 in approximately 0.38 seconds (40969 lines/second)
Physical Source Lines of Code (SLOC) = 12549
Hits@level = [0]  14 [1]   4 [2]  12 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  31 [1+]  17 [2+]  13 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.47032 [1+] 1.35469 [2+] 1.03594 [3+] 0.0796876 [4+]   0 [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.