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/deepin-terminal-5.0.0+ds1/lib/font.c

FINAL RESULTS:

data/deepin-terminal-5.0.0+ds1/lib/font.c:132:13:  [4] (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).
            strcpy(fonts[count], font);
data/deepin-terminal-5.0.0+ds1/lib/font.c:116: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 (charset == NULL || strlen(charset) == 0) {
data/deepin-terminal-5.0.0+ds1/lib/font.c:126: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).
            fonts[count] = malloc((strlen(font) + 1) * sizeof(gchar));

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 210 in approximately 0.13 seconds (1596 lines/second)
Physical Source Lines of Code (SLOC) = 128
Hits@level = [0]   5 [1]   2 [2]   0 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   8 [1+]   3 [2+]   1 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 62.5 [1+] 23.4375 [2+] 7.8125 [3+] 7.8125 [4+] 7.8125 [5+]   0
Dot directories skipped = 2 (--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.