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/telegnome-0.3.5/src/prefs.c
Examining data/telegnome-0.3.5/src/paths.h
Examining data/telegnome-0.3.5/src/main.c
Examining data/telegnome-0.3.5/src/pixpack.c
Examining data/telegnome-0.3.5/src/legacy-config.c
Examining data/telegnome-0.3.5/src/http.c
Examining data/telegnome-0.3.5/src/gui.c
Examining data/telegnome-0.3.5/src/app.c
Examining data/telegnome-0.3.5/src/channel.c

FINAL RESULTS:

data/telegnome-0.3.5/src/legacy-config.c:102:11:  [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.
	_tmp2_ = g_get_home_dir ();
data/telegnome-0.3.5/src/gui.c:494: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 (dup, self, sizeof (guint));
data/telegnome-0.3.5/src/gui.c:1840: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 (dup, self, sizeof (gint64));
data/telegnome-0.3.5/src/legacy-config.c:323: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).
		channel_count = atoi (_tmp4_);
data/telegnome-0.3.5/src/legacy-config.c:333: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).
		current_channel = atoi (_tmp8_);
data/telegnome-0.3.5/src/legacy-config.c:344:7:  [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).
		if (atoi (_tmp13_) == 1) {
data/telegnome-0.3.5/src/legacy-config.c:375: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).
			_tmp17_ = atoi (_tmp21_) != 0;
data/telegnome-0.3.5/src/legacy-config.c:393:52:  [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).
		g_settings_set_int (settings, "paging-interval", atoi (_tmp26_));
data/telegnome-0.3.5/src/legacy-config.c:403:56:  [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).
		g_settings_set_int (settings, "current-page-number", atoi (_tmp30_));
data/telegnome-0.3.5/src/legacy-config.c:413:59:  [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).
		g_settings_set_int (settings, "current-subpage-number", atoi (_tmp34_));
data/telegnome-0.3.5/src/gui.c:1801: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).
	_tmp3_ = strlen (str);
data/telegnome-0.3.5/src/prefs.c:820: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).
		_tmp6_ = strlen (_tmp5_);

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 6448 in approximately 0.14 seconds (44730 lines/second)
Physical Source Lines of Code (SLOC) = 5693
Hits@level = [0]   0 [1]   2 [2]   9 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  12 [1+]  12 [2+]  10 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.10785 [1+] 2.10785 [2+] 1.75654 [3+] 0.175654 [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.