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/python-librtmp-0.3.0/src/librtmp/amf.h
Examining data/python-librtmp-0.3.0/src/librtmp/amf.c
Examining data/python-librtmp-0.3.0/src/librtmp/log.h
Examining data/python-librtmp-0.3.0/src/librtmp/bytes.h

FINAL RESULTS:

data/python-librtmp-0.3.0/src/librtmp/amf.c:35:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/python-librtmp-0.3.0/src/librtmp/amf.c:35:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/python-librtmp-0.3.0/src/librtmp/amf.c:89: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(&dVal, data, 8);
data/python-librtmp-0.3.0/src/librtmp/amf.c:194: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(output, bv->av_val, bv->av_len);
data/python-librtmp-0.3.0/src/librtmp/amf.c:210: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(output, &dVal, 8);
data/python-librtmp-0.3.0/src/librtmp/amf.c:281: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(output, strName->av_val, strName->av_len);
data/python-librtmp-0.3.0/src/librtmp/amf.c:294: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(output, strName->av_val, strName->av_len);
data/python-librtmp-0.3.0/src/librtmp/amf.c:307: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(output, strName->av_val, strName->av_len);
data/python-librtmp-0.3.0/src/librtmp/amf.c:374:7:  [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(pBuffer, prop->p_name.av_val, prop->p_name.av_len);
data/python-librtmp-0.3.0/src/librtmp/amf.c:791:3:  [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 strRes[256];
data/python-librtmp-0.3.0/src/librtmp/amf.c:792:3:  [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 str[256];
data/python-librtmp-0.3.0/src/librtmp/amf.c:1201: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(&obj->o_props[obj->o_num++], prop, sizeof(AMFObjectProperty));

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 1597 in approximately 0.07 seconds (24128 lines/second)
Physical Source Lines of Code (SLOC) = 1255
Hits@level = [0]   6 [1]   0 [2]  10 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  18 [1+]  12 [2+]  12 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 14.3426 [1+] 9.56175 [2+] 9.56175 [3+] 1.59363 [4+] 1.59363 [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.