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/gnome-hwp-support-0.1.6/properties/hwp-properties-main.c
Examining data/gnome-hwp-support-0.1.6/properties/hwp-properties-view.c
Examining data/gnome-hwp-support-0.1.6/properties/hwp-properties-view.h
Examining data/gnome-hwp-support-0.1.6/properties/props-data.c
Examining data/gnome-hwp-support-0.1.6/properties/props-data.h
Examining data/gnome-hwp-support-0.1.6/properties/test.c
Examining data/gnome-hwp-support-0.1.6/thumbnailer/hwp-thumbnailer.c

FINAL RESULTS:

data/gnome-hwp-support-0.1.6/thumbnailer/hwp-thumbnailer.c:38:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "s:")) != -1) {
data/gnome-hwp-support-0.1.6/properties/props-data.c:59: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(buf + 28, component_guid, sizeof(component_guid));
data/gnome-hwp-support-0.1.6/thumbnailer/hwp-thumbnailer.c:41: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).
            max_size = atoi(optarg);
data/gnome-hwp-support-0.1.6/properties/hwp-properties-view.c:130: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).
	remaining_bytes = strlen (name);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 793 in approximately 0.07 seconds (11779 lines/second)
Physical Source Lines of Code (SLOC) = 510
Hits@level = [0]   8 [1]   1 [2]   2 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  12 [1+]   4 [2+]   3 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 23.5294 [1+] 7.84314 [2+] 5.88235 [3+] 1.96078 [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.