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/libomxvideosrc-0.1/test/omxvideocapturetest.h
Examining data/libomxvideosrc-0.1/test/omxvideocapturetest.c
Examining data/libomxvideosrc-0.1/src/library_entry_point.c
Examining data/libomxvideosrc-0.1/src/omx_videosrc_component.h
Examining data/libomxvideosrc-0.1/src/omx_videosrc_component.c

FINAL RESULTS:

data/libomxvideosrc-0.1/src/omx_videosrc_component.c:477: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, VIDEOSRC_COMP_ROLE);
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:117: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(output_file,argv[argn_dec]);
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:121: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(output_file,argv[argn_dec]);
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:166:3:  [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(full_component_name, COMPONENT_NAME);
data/libomxvideosrc-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.video_src");
data/libomxvideosrc-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]->name_specific[0], "OMX.st.video_src");
data/libomxvideosrc-0.1/src/library_entry_point.c:91: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], "video_src");
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:143:50:  [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_videosrc_component_Private->deviceHandle = open(VIDEO_DEV_NAME, O_RDWR /* required */  | O_NONBLOCK, 0);
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:345:5:  [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(pOutputBuffer->pBuffer,omx_videosrc_component_Private->buffers[buf.index].start,omx_videosrc_component_Private->iFrameSize);
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:392: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(&pPort->sVideoParam,pVideoPortFormat,sizeof(OMX_VIDEO_PARAM_PORTFORMATTYPE));
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:459:5:  [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_videosrc_component_Private->sPortTypesParam[OMX_PortDomainVideo], sizeof(OMX_PORT_PARAM_TYPE));
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:467: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(pVideoPortFormat, &pPort->sVideoParam, sizeof(OMX_VIDEO_PARAM_PORTFORMATTYPE));
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:118:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(output_file, ".rgb");
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:132:5:  [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(output_file,"default_camera_out.rgb");
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:135:13:  [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).
  outfile = fopen(output_file, "wb");
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:732:13:  [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(TUNNEL_USE_BUFFER_RETRY_USLEEP_TIME);
data/libomxvideosrc-0.1/src/omx_videosrc_component.c:808:13:  [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(TUNNEL_USE_BUFFER_RETRY_USLEEP_TIME);
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:116:34:  [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).
            output_file = malloc(strlen(argv[argn_dec]) * sizeof(char) + 5);
data/libomxvideosrc-0.1/test/omxvideocapturetest.c:120:34:  [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).
            output_file = malloc(strlen(argv[argn_dec]) * sizeof(char) + 1);

ANALYSIS SUMMARY:

Hits = 19
Lines analyzed = 1647 in approximately 0.08 seconds (19780 lines/second)
Physical Source Lines of Code (SLOC) = 1135
Hits@level = [0]   5 [1]   4 [2]  11 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  24 [1+]  19 [2+]  15 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 21.1454 [1+] 16.7401 [2+] 13.2159 [3+] 3.52423 [4+] 3.52423 [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.