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/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_xtrxdsp_sc32i_iq16.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp.h
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_config.h
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_fft.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_fft.h
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.h
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters_data.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_no.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_templates.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_x86_avx.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_x86_avx_fma.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_x86_sse2.c
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxll_port.h
Examining data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp.c

FINAL RESULTS:

data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp.c:42:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define INFORM(x, ...) fprintf(stderr, x, ##__VA_ARGS__)
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:42:16:  [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, "m:i:o:d:I:b:F:f:")) != -1) {
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxll_port.h:72:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(__mutex);
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxll_port.h:82:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(__mutex);
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:48: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).
			filter_scale = atoi(optarg);
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:51: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).
			integer_mode = atoi(optarg);
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:54:10:  [2] (misc) fopen:
  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).
			fin = fopen(optarg, "rb+");
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:57:11:  [2] (misc) fopen:
  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).
			fout = fopen(optarg, "wb+");
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:60:12:  [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).
			decim = atoi(optarg);
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:63:12:  [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).
			inter = atoi(optarg);
data/libxtrxdsp-0.0.1+git20190830.eec2864/tests/test_filter.c:66: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).
			blocksize = atoi(optarg);
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:69: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(mem, taps, count * tsz);
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:118: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(state->history_data_float + state->history_size,
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:135: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(state->history_data_float,
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:151: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(state->history_data_float,
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:173: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(state->history_data_int + state->history_size,
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:190: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(state->history_data_int,
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxdsp_filters.c:206: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(state->history_data_int,
data/libxtrxdsp-0.0.1+git20190830.eec2864/xtrxll_port.h:127:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
int usleep(unsigned usec);

ANALYSIS SUMMARY:

Hits = 19
Lines analyzed = 3514 in approximately 0.09 seconds (37107 lines/second)
Physical Source Lines of Code (SLOC) = 2538
Hits@level = [0]  10 [1]   1 [2]  14 [3]   3 [4]   1 [5]   0
Hits@level+ = [0+]  29 [1+]  19 [2+]  18 [3+]   4 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 11.4263 [1+] 7.48621 [2+] 7.0922 [3+] 1.57604 [4+] 0.394011 [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.