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/libomxfbdevsink-0.1/src/library_entry_point.c
Examining data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.h
Examining data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c

FINAL RESULTS:

data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1390:11:  [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(pPort->sPortParam.format.video.cMIMEType , pPortDef->format.video.cMIMEType);
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1505:7:  [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( (char*) pComponentRole->cRole, FBDEV_SINK_COMP_ROLE);
data/libomxfbdevsink-0.1/src/library_entry_point.c:70:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy(stComponents[0]->name, "OMX.st.fbdev.fbdev_sink");
data/libomxfbdevsink-0.1/src/library_entry_point.c:89:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy(stComponents[0]->name_specific[0], "OMX.st.fbdev.fbdev_sink");
data/libomxfbdevsink-0.1/src/library_entry_point.c:90:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy(stComponents[0]->role_specific[0], "fbdev.fbdev_sink");
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:205:42:  [2] (misc) open:
  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).
  omx_fbdev_sink_component_Private->fd = open(FBDEV_FILENAME, O_RDWR);
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:734: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(dest_Y_ptr, src_Y_ptr, luma_crop_width);    //  Copy Y rows into in_buffer
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:738: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(dest_U_ptr, src_U_ptr, chroma_crop_width);  //  Copy U rows into in_buffer
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:742: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(dest_V_ptr, src_V_ptr, chroma_crop_width);  //  Copy V rows into in_buffer
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:909:9:  [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(dest_cpy_ptr, src_cpy_ptr, cpy_byte_width);  //  Copy rows
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1295:9:  [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(omxConfigCrop, &pPort->omxConfigCrop, sizeof(OMX_CONFIG_RECTTYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1305:9:  [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(omxConfigRotate, &pPort->omxConfigRotate, sizeof(OMX_CONFIG_ROTATIONTYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1315:9:  [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(omxConfigMirror, &pPort->omxConfigMirror, sizeof(OMX_CONFIG_MIRRORTYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1325:9:  [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(omxConfigScale, &pPort->omxConfigScale, sizeof(OMX_CONFIG_SCALEFACTORTYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1335:9:  [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(omxConfigOutputPosition, &pPort->omxConfigOutputPosition, sizeof(OMX_CONFIG_POINTTYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1481: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(ComponentParameterStructure, &omx_fbdev_sink_component_Private->sPortTypesParam[OMX_PortDomainVideo], sizeof(OMX_PORT_PARAM_TYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1487: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(ComponentParameterStructure, &omx_fbdev_sink_component_Private->sPortTypesParam[OMX_PortDomainOther], sizeof(OMX_PORT_PARAM_TYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1495:9:  [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(pVideoPortFormat, &pPort->sVideoParam, sizeof(OMX_VIDEO_PARAM_PORTFORMATTYPE));
data/libomxfbdevsink-0.1/src/omx_fbdev_sink_component.c:1140:7:  [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.
      usleep(timediff);

ANALYSIS SUMMARY:

Hits = 19
Lines analyzed = 1809 in approximately 0.08 seconds (23701 lines/second)
Physical Source Lines of Code (SLOC) = 1319
Hits@level = [0]   0 [1]   1 [2]  16 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  19 [1+]  19 [2+]  18 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 14.4049 [1+] 14.4049 [2+] 13.6467 [3+] 1.5163 [4+] 1.5163 [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.