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/libyami-1.3.2/capi/VideoDecoderCapi.cpp
Examining data/libyami-1.3.2/capi/VideoEncoderCapi.cpp
Examining data/libyami-1.3.2/capi/unittest_main.cpp
Examining data/libyami-1.3.2/codecparsers/bitReader.cpp
Examining data/libyami-1.3.2/codecparsers/bitReader.h
Examining data/libyami-1.3.2/codecparsers/bitReader_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/bitWriter.cpp
Examining data/libyami-1.3.2/codecparsers/bitWriter.h
Examining data/libyami-1.3.2/codecparsers/bitWriter_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/dboolhuff.c
Examining data/libyami-1.3.2/codecparsers/dboolhuff.h
Examining data/libyami-1.3.2/codecparsers/h264Parser.cpp
Examining data/libyami-1.3.2/codecparsers/h264Parser.h
Examining data/libyami-1.3.2/codecparsers/h264Parser_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/h265Parser.cpp
Examining data/libyami-1.3.2/codecparsers/h265Parser.h
Examining data/libyami-1.3.2/codecparsers/h265Parser_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/jpegParser.cpp
Examining data/libyami-1.3.2/codecparsers/jpegParser.h
Examining data/libyami-1.3.2/codecparsers/jpegParser_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/mpeg2_parser.cpp
Examining data/libyami-1.3.2/codecparsers/mpeg2_parser.h
Examining data/libyami-1.3.2/codecparsers/mpeg2_parser_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/nalReader.cpp
Examining data/libyami-1.3.2/codecparsers/nalReader.h
Examining data/libyami-1.3.2/codecparsers/nalReader_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/unittest_main.cpp
Examining data/libyami-1.3.2/codecparsers/vc1Parser.cpp
Examining data/libyami-1.3.2/codecparsers/vc1Parser.h
Examining data/libyami-1.3.2/codecparsers/vc1Parser_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/vp8_bool_decoder.cpp
Examining data/libyami-1.3.2/codecparsers/vp8_bool_decoder.h
Examining data/libyami-1.3.2/codecparsers/vp8_bool_decoder_unittest.cpp
Examining data/libyami-1.3.2/codecparsers/vp8_parser.cpp
Examining data/libyami-1.3.2/codecparsers/vp8_parser.h
Examining data/libyami-1.3.2/codecparsers/vp9parser.cpp
Examining data/libyami-1.3.2/codecparsers/vp9parser.h
Examining data/libyami-1.3.2/codecparsers/vp9quant.c
Examining data/libyami-1.3.2/codecparsers/vp9quant.h
Examining data/libyami-1.3.2/common/Array.h
Examining data/libyami-1.3.2/common/Functional.h
Examining data/libyami-1.3.2/common/NonCopyable.h
Examining data/libyami-1.3.2/common/PooledFrameAllocator.cpp
Examining data/libyami-1.3.2/common/PooledFrameAllocator.h
Examining data/libyami-1.3.2/common/Thread.cpp
Examining data/libyami-1.3.2/common/Thread.h
Examining data/libyami-1.3.2/common/Thread_unittest.cpp
Examining data/libyami-1.3.2/common/YamiVersion.cpp
Examining data/libyami-1.3.2/common/basesurfaceallocator.h
Examining data/libyami-1.3.2/common/common_def.h
Examining data/libyami-1.3.2/common/condition.h
Examining data/libyami-1.3.2/common/factory.h
Examining data/libyami-1.3.2/common/factory_unittest.cpp
Examining data/libyami-1.3.2/common/factory_unittest.h
Examining data/libyami-1.3.2/common/lock.h
Examining data/libyami-1.3.2/common/log.cpp
Examining data/libyami-1.3.2/common/log.h
Examining data/libyami-1.3.2/common/nalreader.cpp
Examining data/libyami-1.3.2/common/nalreader.h
Examining data/libyami-1.3.2/common/nalreader_unittest.cpp
Examining data/libyami-1.3.2/common/scopedlogger.h
Examining data/libyami-1.3.2/common/surfacepool.cpp
Examining data/libyami-1.3.2/common/surfacepool.h
Examining data/libyami-1.3.2/common/unittest.h
Examining data/libyami-1.3.2/common/unittest_main.cpp
Examining data/libyami-1.3.2/common/utils.cpp
Examining data/libyami-1.3.2/common/utils.h
Examining data/libyami-1.3.2/common/utils_unittest.cpp
Examining data/libyami-1.3.2/common/videopool.h
Examining data/libyami-1.3.2/decoder/DecoderApi_unittest.cpp
Examining data/libyami-1.3.2/decoder/FrameData.h
Examining data/libyami-1.3.2/decoder/unittest_main.cpp
Examining data/libyami-1.3.2/decoder/vaapiDecoderJPEG.cpp
Examining data/libyami-1.3.2/decoder/vaapiDecoderJPEG.h
Examining data/libyami-1.3.2/decoder/vaapiDecoderJPEG_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_base.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_base.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_factory.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_fake.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_fake.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_h264.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_h264.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_h264_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_h265.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_h265.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_h265_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_host.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_host_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_mpeg2.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_mpeg2.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_mpeg2_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_vc1.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_vc1.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_vc1_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_vp8.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_vp8.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_vp8_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_vp9.cpp
Examining data/libyami-1.3.2/decoder/vaapidecoder_vp9.h
Examining data/libyami-1.3.2/decoder/vaapidecoder_vp9_unittest.cpp
Examining data/libyami-1.3.2/decoder/vaapidecpicture.cpp
Examining data/libyami-1.3.2/decoder/vaapidecpicture.h
Examining data/libyami-1.3.2/decoder/vaapidecsurfacepool.cpp
Examining data/libyami-1.3.2/decoder/vaapidecsurfacepool.h
Examining data/libyami-1.3.2/egl/egl_util.c
Examining data/libyami-1.3.2/egl/egl_util.h
Examining data/libyami-1.3.2/egl/egl_vaapi_image.cpp
Examining data/libyami-1.3.2/egl/egl_vaapi_image.h
Examining data/libyami-1.3.2/encoder/unittest_main.cpp
Examining data/libyami-1.3.2/encoder/vaapicodedbuffer.cpp
Examining data/libyami-1.3.2/encoder/vaapicodedbuffer.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_base.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_base.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_factory.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_h264.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_h264.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_h264_unittest.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_hevc.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_hevc.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_hevc_unittest.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_host.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_host_unittest.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_jpeg.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_jpeg.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_jpeg_unittest.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_vp8.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_vp8.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_vp8_unittest.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_vp9.cpp
Examining data/libyami-1.3.2/encoder/vaapiencoder_vp9.h
Examining data/libyami-1.3.2/encoder/vaapiencoder_vp9_unittest.cpp
Examining data/libyami-1.3.2/encoder/vaapiencpicture.cpp
Examining data/libyami-1.3.2/encoder/vaapiencpicture.h
Examining data/libyami-1.3.2/encoder/vaapilayerid.cpp
Examining data/libyami-1.3.2/encoder/vaapilayerid.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-death-test.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-message.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-param-test.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-printers.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-spi.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-test-part.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest-typed-test.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest_pred_impl.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest_prod.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/custom/gtest-port.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/custom/gtest-printers.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/custom/gtest.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-death-test-internal.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-filepath.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-internal.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-linked_ptr.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-param-util-generated.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-param-util.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port-arch.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-string.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-tuple.h
Examining data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-type-util.h
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-all.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-death-test.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-filepath.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-internal-inl.h
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-printers.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-test-part.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest-typed-test.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc
Examining data/libyami-1.3.2/gtestsrc/gtest/src/gtest_main.cc
Examining data/libyami-1.3.2/interface/VideoCommonDefs.h
Examining data/libyami-1.3.2/interface/VideoDecoderCapi.h
Examining data/libyami-1.3.2/interface/VideoDecoderDefs.h
Examining data/libyami-1.3.2/interface/VideoDecoderHost.h
Examining data/libyami-1.3.2/interface/VideoDecoderInterface.h
Examining data/libyami-1.3.2/interface/VideoEncoderCapi.h
Examining data/libyami-1.3.2/interface/VideoEncoderDefs.h
Examining data/libyami-1.3.2/interface/VideoEncoderHost.h
Examining data/libyami-1.3.2/interface/VideoEncoderInterface.h
Examining data/libyami-1.3.2/interface/VideoPostProcessDefs.h
Examining data/libyami-1.3.2/interface/VideoPostProcessHost.h
Examining data/libyami-1.3.2/interface/VideoPostProcessInterface.h
Examining data/libyami-1.3.2/interface/Yami.h
Examining data/libyami-1.3.2/interface/YamiC.h
Examining data/libyami-1.3.2/interface/v4l2_wrapper.h
Examining data/libyami-1.3.2/interface/v4l2codec_device_ops.h
Examining data/libyami-1.3.2/ocl/oclcontext.cpp
Examining data/libyami-1.3.2/ocl/oclcontext.h
Examining data/libyami-1.3.2/v4l2/BufferPipe.h
Examining data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp
Examining data/libyami-1.3.2/v4l2/v4l2_codecbase.h
Examining data/libyami-1.3.2/v4l2/v4l2_decode.cpp
Examining data/libyami-1.3.2/v4l2/v4l2_decode.h
Examining data/libyami-1.3.2/v4l2/v4l2_encode.cpp
Examining data/libyami-1.3.2/v4l2/v4l2_encode.h
Examining data/libyami-1.3.2/v4l2/v4l2_wrapper.cpp
Examining data/libyami-1.3.2/vaapi/VaapiBuffer.cpp
Examining data/libyami-1.3.2/vaapi/VaapiBuffer.h
Examining data/libyami-1.3.2/vaapi/VaapiSurface.cpp
Examining data/libyami-1.3.2/vaapi/VaapiSurface.h
Examining data/libyami-1.3.2/vaapi/VaapiUtils.cpp
Examining data/libyami-1.3.2/vaapi/VaapiUtils.h
Examining data/libyami-1.3.2/vaapi/unittest_main.cpp
Examining data/libyami-1.3.2/vaapi/vaapicontext.cpp
Examining data/libyami-1.3.2/vaapi/vaapicontext.h
Examining data/libyami-1.3.2/vaapi/vaapidisplay.cpp
Examining data/libyami-1.3.2/vaapi/vaapidisplay.h
Examining data/libyami-1.3.2/vaapi/vaapidisplay_unittest.cpp
Examining data/libyami-1.3.2/vaapi/vaapipicture.cpp
Examining data/libyami-1.3.2/vaapi/vaapipicture.h
Examining data/libyami-1.3.2/vaapi/vaapiptrs.h
Examining data/libyami-1.3.2/vaapi/vaapistreamable.h
Examining data/libyami-1.3.2/vaapi/vaapisurfaceallocator.cpp
Examining data/libyami-1.3.2/vaapi/vaapisurfaceallocator.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_base.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_base.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_blender.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_blender.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_blender_unittest.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_mosaic.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_mosaic.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_mosaic_unittest.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_osd.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_osd.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_osd_unittest.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_transform.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_transform.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_transform_unittest.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_wireframe.cpp
Examining data/libyami-1.3.2/vpp/oclpostprocess_wireframe.h
Examining data/libyami-1.3.2/vpp/oclpostprocess_wireframe_unittest.cpp
Examining data/libyami-1.3.2/vpp/oclvppimage.cpp
Examining data/libyami-1.3.2/vpp/oclvppimage.h
Examining data/libyami-1.3.2/vpp/unittest_main.cpp
Examining data/libyami-1.3.2/vpp/vaapipostprocess_base.cpp
Examining data/libyami-1.3.2/vpp/vaapipostprocess_base.h
Examining data/libyami-1.3.2/vpp/vaapipostprocess_factory.h
Examining data/libyami-1.3.2/vpp/vaapipostprocess_host.cpp
Examining data/libyami-1.3.2/vpp/vaapipostprocess_host_unittest.cpp
Examining data/libyami-1.3.2/vpp/vaapipostprocess_scaler.cpp
Examining data/libyami-1.3.2/vpp/vaapipostprocess_scaler.h
Examining data/libyami-1.3.2/vpp/vaapipostprocess_scaler_unittest.cpp
Examining data/libyami-1.3.2/vpp/vaapivpppicture.cpp
Examining data/libyami-1.3.2/vpp/vaapivpppicture.h

FINAL RESULTS:

data/libyami-1.3.2/common/log.h:47:3:  [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.
  fprintf(stream, format, ##__VA_ARGS__); \
data/libyami-1.3.2/decoder/vaapidecoder_base.cpp:120:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access("/tmp/yami", F_OK) == 0) {
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-death-test-internal.h:165:5:  [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.
    fprintf(\
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2356:20:  [4] (buffer) StrNCpy:
  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).
inline const char* StrNCpy(char* dest, const char* src, size_t n) {
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2427:26:  [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 GTEST_SNPRINTF_ _snprintf
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2429:26:  [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 GTEST_SNPRINTF_ snprintf
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:146:10:  [4] (format) vsnprintf:
  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 vsnprintf _vsnprintf
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:2971:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:2991:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:2998:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/libyami-1.3.2/vaapi/VaapiUtils.cpp:114:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(fileName, "%s/%c%c%c%c_%dx%d", "/tmp/yami", ptrC[0], ptrC[1], ptrC[2], ptrC[3], image.width, image.height);
data/libyami-1.3.2/vaapi/VaapiUtils.cpp:117:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(fileName, "%s/%04d_%c%c%c%c_%dx%d", "/tmp/yami", _frameCount, ptrC[0], ptrC[1], ptrC[2], ptrC[3], image.width, image.height);
data/libyami-1.3.2/common/log.cpp:50:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
        char* libyamiLogLevel = getenv("LIBYAMI_LOG_LEVEL");
data/libyami-1.3.2/common/log.cpp:51:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
        char* libyamLog = getenv("LIBYAMI_LOG");
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/gtest.h:925:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  void ShuffleTests(internal::Random* random);
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2395:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
  const char* const env = getenv(name);
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2398:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
  return getenv(name);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-internal-inl.h:312:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void ShuffleRange(internal::Random* random, int begin, int end,
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-internal-inl.h:333:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline void Shuffle(internal::Random* random, std::vector<E>* v) {
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-internal-inl.h:334:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random, 0, static_cast<int>(v->size()), v);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-internal-inl.h:792:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  internal::Random* random() { return &random_; }
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:243:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  ::InitializeCriticalSection(critical_section_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:261:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  ::EnterCriticalSection(critical_section_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:293:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        ::InitializeCriticalSection(critical_section_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:194:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
  const char* const testbridge_test_only = getenv(GTEST_TEST_FILTER_ENV_VAR_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:2793:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void TestCase::ShuffleTests(internal::Random* random) {
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:2794:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  Shuffle(random, &test_indices_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:4627:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      random()->Reseed(random_seed_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:4941:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:4944:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random(), last_death_test_case_ + 1,
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:4949:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    test_cases_[i]->ShuffleTests(random());
data/libyami-1.3.2/vaapi/vaapidisplay.cpp:136:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
        const char* device_env = getenv("VA_DRM_DEVICE");
data/libyami-1.3.2/codecparsers/dboolhuff.c:47:12:  [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.
  unsigned char decrypted[sizeof (VP8_BD_VALUE) + 1];
data/libyami-1.3.2/codecparsers/dboolhuff.h:45:23:  [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.
extern const unsigned char vp8_norm[256];
data/libyami-1.3.2/codecparsers/h264Parser.cpp:129:13:  [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(sl, Default_Scaling_List[index], size);
data/libyami-1.3.2/codecparsers/h264Parser.cpp:407:25:  [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(sps->scaling_lists_4x4[i], Fall_Back_Scaling_List[i], 16);
data/libyami-1.3.2/codecparsers/h264Parser.cpp:409:25:  [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(sps->scaling_lists_8x8[i - 6], Fall_Back_Scaling_List[i], 64);
data/libyami-1.3.2/codecparsers/h264Parser.cpp:539: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(&pps->scaling_lists_4x4, &sps->scaling_lists_4x4,
data/libyami-1.3.2/codecparsers/h264Parser.cpp:541: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(&pps->scaling_lists_8x8, &sps->scaling_lists_8x8,
data/libyami-1.3.2/codecparsers/h264Parser.cpp:638:25:  [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(pps->scaling_lists_4x4[i], Fall_Back_A_Scaling_List[i], 16);
data/libyami-1.3.2/codecparsers/h264Parser.cpp:640:25:  [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(pps->scaling_lists_8x8[i - 6], Fall_Back_A_Scaling_List[i], 64);
data/libyami-1.3.2/codecparsers/h264Parser.cpp:644:25:  [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(pps->scaling_lists_4x4[i], Fall_Back_B_Scaling_List[i], 16);
data/libyami-1.3.2/codecparsers/h264Parser.cpp:646:25:  [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(pps->scaling_lists_8x8[i - 6], Fall_Back_B_Scaling_List[i], 64);
data/libyami-1.3.2/codecparsers/h265Parser.cpp:593: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(dstList, DefaultScalingList0, 16);
data/libyami-1.3.2/codecparsers/h265Parser.cpp:598:13:  [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(dstList, DefaultScalingList1, 64);
data/libyami-1.3.2/codecparsers/h265Parser.cpp:600:13:  [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(dstList, DefaultScalingList2, 64);
data/libyami-1.3.2/codecparsers/h265Parser.cpp:604:13:  [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(dstList, DefaultScalingList1, 64);
data/libyami-1.3.2/codecparsers/h265Parser.cpp:606:13:  [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(dstList, DefaultScalingList2, 64);
data/libyami-1.3.2/codecparsers/jpegParser.cpp:787:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&huffTable->codes[0], &codes[0],
data/libyami-1.3.2/codecparsers/jpegParser.cpp:789:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&huffTable->values[0], &huffval[0],
data/libyami-1.3.2/codecparsers/mpeg2_parser.cpp:149: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(intra_quantiser_matrix, kDefaultIntraBlockMatrix, 64);
data/libyami-1.3.2/codecparsers/mpeg2_parser.cpp:152: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(non_intra_quantiser_matrix, kDefaultNonIntraBlockMatrix, 64);
data/libyami-1.3.2/codecparsers/vp8_bool_decoder.cpp:95:23:  [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.
static const unsigned char kVp8Norm[256] = {
data/libyami-1.3.2/codecparsers/vp9parser.cpp:417: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(parser->mb_segment_tree_probs, info->tree_probs, sizeof(info->tree_probs));
data/libyami-1.3.2/codecparsers/vp9parser.cpp:418: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(parser->segment_pred_probs, info->pred_probs, sizeof(info->pred_probs));
data/libyami-1.3.2/codecparsers/vp9parser.cpp:424: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(priv->segmentation, info->data, sizeof(info->data));
data/libyami-1.3.2/common/common_def.h:89:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define PARAMETER_ASSIGN(a, b)  memcpy(&(a), &(b), sizeof(b))
data/libyami-1.3.2/common/log.cpp:56:27:  [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).
            yamiLogFlag = atoi(libyamiLogLevel);
data/libyami-1.3.2/common/log.cpp:60:17:  [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 filename[80];
data/libyami-1.3.2/common/log.cpp:72:25:  [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).
            	if ((tmp = fopen(filename, "w"))){
data/libyami-1.3.2/decoder/vaapidecoder_mpeg2.cpp:323:13:  [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(iqMatrix->m, matrices->m, 64); \
data/libyami-1.3.2/decoder/vaapidecoder_vp8.cpp:197: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 (picParam->y_mode_probs, m_frameHdr.entropy_hdr.y_mode_probs,
data/libyami-1.3.2/decoder/vaapidecoder_vp8.cpp:199: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 (picParam->uv_mode_probs, m_frameHdr.entropy_hdr.uv_mode_probs,
data/libyami-1.3.2/decoder/vaapidecoder_vp8.cpp:201: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 (picParam->mv_probs, m_frameHdr.entropy_hdr.mv_probs,
data/libyami-1.3.2/decoder/vaapidecoder_vp8.cpp:279: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(probTable->dct_coeff_probs,
data/libyami-1.3.2/decoder/vaapidecoder_vp9.cpp:219: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(param->mb_segment_tree_probs, m_parser->mb_segment_tree_probs, sizeof(m_parser->mb_segment_tree_probs));
data/libyami-1.3.2/decoder/vaapidecoder_vp9.cpp:220: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(param->segment_pred_probs, m_parser->segment_pred_probs, sizeof(m_parser->segment_pred_probs));
data/libyami-1.3.2/decoder/vaapidecoder_vp9.cpp:235: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(vaseg.filter_level, seg.filter_level, sizeof(seg.filter_level));
data/libyami-1.3.2/encoder/vaapicodedbuffer.cpp:65: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, segment->buf, segment->size);
data/libyami-1.3.2/encoder/vaapiencoder_base.cpp:388:13:  [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, src, w);
data/libyami-1.3.2/encoder/vaapiencoder_base.cpp:722: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(MVBuffer->data, data, mappedSize);
data/libyami-1.3.2/encoder/vaapiencoder_hevc.h:39:14:  [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.
    unsigned char    delta_poc_s0_minus1[8];
data/libyami-1.3.2/encoder/vaapiencoder_hevc.h:40:14:  [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.
    unsigned char    used_by_curr_pic_s0_flag[8];
data/libyami-1.3.2/encoder/vaapiencoder_hevc.h:41:14:  [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.
    unsigned char    delta_poc_s1_minus1[8];
data/libyami-1.3.2/encoder/vaapiencoder_hevc.h:42:14:  [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.
    unsigned char    used_by_curr_pic_s1_flag[8];
data/libyami-1.3.2/encoder/vaapiencoder_jpeg.cpp:468: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(&picture->picParam, picParam, sizeof(*picParam));
data/libyami-1.3.2/encoder/vaapiencoder_jpeg.cpp:480: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(&picture->qMatrix, qMatrix, sizeof(*qMatrix));
data/libyami-1.3.2/encoder/vaapiencoder_jpeg.cpp:492: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(&picture->sliceParam, sliceParam, sizeof(*sliceParam));
data/libyami-1.3.2/encoder/vaapiencoder_jpeg.cpp:504: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(&picture->huffTableParam, huffTableParam, sizeof(*huffTableParam));
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2368: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).
  return fopen(path, mode);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-death-test.cc:325: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 buffer[256];
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-death-test.cc:741: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 executable_path[_MAX_PATH + 1];  // NOLINT
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-death-test.cc:1027:22:  [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).
  const int cwd_fd = open(".", O_RDONLY);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-filepath.cc:105: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-filepath.cc:108: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:139:18:  [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).
  const int fd = open("/proc/self/as", O_RDONLY);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:865: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(buffer, regex, len);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:938:5:  [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 temp_dir_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:939:5:  [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 temp_file_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:976:29:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    const int captured_fd = mkstemp(name_template);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-printers.cc:65: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 text[5] = "";
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:862:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:865:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:1680: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 error_text[kBufSize] = { '\0' };
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:1764: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[5];  // Big enough for the largest valid code point.
data/libyami-1.3.2/interface/v4l2codec_device_ops.h:68:5:  [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 mVendorString[V4L2CODEC_VENDOR_STRING_SIZE];   // for example yami-0.4.0
data/libyami-1.3.2/ocl/oclcontext.cpp:183:16:  [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).
    FILE* fp = fopen(path, "rb");
data/libyami-1.3.2/ocl/oclcontext.cpp:220:9:  [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 log[1024];
data/libyami-1.3.2/ocl/oclcontext.cpp:229:9:  [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 name[128];
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:46:5:  [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 buf[256];                                              \
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:51:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(&buf[i], "<%02d>", *it++);                      \
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:68:12:  [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).
    codec->open(name, flags);
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:126:21:  [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).
bool V4l2CodecBase::open(const char* name, int32_t flags)
data/libyami-1.3.2/v4l2/v4l2_codecbase.h:178:10:  [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).
    bool open(const char* name, int32_t flags);
data/libyami-1.3.2/v4l2/v4l2_decode.cpp:1102: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(&size, format->fmt.raw_data, sizeof(uint32_t));
data/libyami-1.3.2/v4l2/v4l2_decode.cpp:1115: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(&m_inputFormat, format, sizeof(*format));
data/libyami-1.3.2/vaapi/VaapiUtils.cpp:93:5:  [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 fileName[256];
data/libyami-1.3.2/vaapi/VaapiUtils.cpp:120:14:  [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).
        fp = fopen(fileName, "w+");
data/libyami-1.3.2/vaapi/vaapidisplay.cpp:138:24:  [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).
            m_handle = open(device_env, O_RDWR);
data/libyami-1.3.2/vaapi/vaapidisplay.cpp:140:24:  [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).
            m_handle = open("/dev/dri/renderD128", O_RDWR);
data/libyami-1.3.2/vaapi/vaapidisplay.cpp:142:24:  [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).
            m_handle = open("/dev/dri/card0", O_RDWR);
data/libyami-1.3.2/vaapi/vaapidisplay_unittest.cpp:57:18:  [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).
        handle = open("/dev/dri/renderD128", O_RDWR);
data/libyami-1.3.2/vaapi/vaapidisplay_unittest.cpp:59:22:  [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).
            handle = open("/dev/dri/card0", O_RDWR);
data/libyami-1.3.2/codecparsers/bitReader.cpp:88:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool BitReader::read(uint32_t& v, uint32_t nbits)
data/libyami-1.3.2/codecparsers/bitReader.cpp:107:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint32_t BitReader::read(uint32_t nbits)
data/libyami-1.3.2/codecparsers/bitReader.cpp:110:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(res, nbits))
data/libyami-1.3.2/codecparsers/bitReader.cpp:124:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read(tmp, nbits))
data/libyami-1.3.2/codecparsers/bitReader.cpp:133:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return tmp.read(nbits);
data/libyami-1.3.2/codecparsers/bitReader.h:33:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(uint32_t& v, uint32_t nbits);
data/libyami-1.3.2/codecparsers/bitReader.h:36:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint32_t read(uint32_t nbits);
data/libyami-1.3.2/codecparsers/bitReader.h:91:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read(tmp, nbits))
data/libyami-1.3.2/codecparsers/bitReader_unittest.cpp:68:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader.read(bitsPerRead);
data/libyami-1.3.2/codecparsers/bitReader_unittest.cpp:69:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(rem << 3);
data/libyami-1.3.2/codecparsers/h264Parser_unittest.cpp:197:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/h264Parser_unittest.cpp:201:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/h264Parser_unittest.cpp:205:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/h265Parser_unittest.cpp:192:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/h265Parser_unittest.cpp:196:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/h265Parser_unittest.cpp:200:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/h265Parser_unittest.cpp:204:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_TRUE(nr.read(nal, size));
data/libyami-1.3.2/codecparsers/jpegParser.cpp:57:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        var = m_input.read(8); \
data/libyami-1.3.2/codecparsers/jpegParser.cpp:333:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_current.marker = static_cast<Marker>(m_input.read(8));
data/libyami-1.3.2/codecparsers/mpeg2_parser.cpp:62:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!br.read(var, bits))       \
data/libyami-1.3.2/codecparsers/mpeg2_parser_unittest.cpp:134:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!br.read(id, 4))
data/libyami-1.3.2/codecparsers/nalReader.cpp:71:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!read(b, 1))
data/libyami-1.3.2/codecparsers/nalReader.cpp:74:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read(v, leadingZeroBits))
data/libyami-1.3.2/codecparsers/nalReader.cpp:119:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint8_t nextBit = tmp.read(1);
data/libyami-1.3.2/codecparsers/nalReader.cpp:124:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nextBit = tmp.read(1);
data/libyami-1.3.2/codecparsers/nalReader_unittest.cpp:42:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_EQ(0u, reader.read(1));
data/libyami-1.3.2/codecparsers/nalReader_unittest.cpp:43:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_EQ(1u, reader.read(1));
data/libyami-1.3.2/codecparsers/nalReader_unittest.cpp:50:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FALSE(reader.read(u, 8));
data/libyami-1.3.2/codecparsers/vc1Parser.cpp:707:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (br->read(1) == val)
data/libyami-1.3.2/codecparsers/vp9parser.cpp:103:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define vp9_read_bit(br) br->read(1)
data/libyami-1.3.2/codecparsers/vp9parser.cpp:104:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define vp9_read_bits(br, bits) br->read(bits)
data/libyami-1.3.2/common/nalreader.cpp:39:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool NalReader::read(const uint8_t*& nal, int32_t& nalSize)
data/libyami-1.3.2/common/nalreader.h:26:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(const uint8_t*& nal, int32_t& nalSize);
data/libyami-1.3.2/common/nalreader_unittest.cpp:71:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        EXPECT_TRUE(reader.read(nal, size));
data/libyami-1.3.2/common/nalreader_unittest.cpp:78:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FALSE(reader.read(nal, size));
data/libyami-1.3.2/common/nalreader_unittest.cpp:90:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_TRUE(reader.read(nal, size));
data/libyami-1.3.2/common/nalreader_unittest.cpp:96:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FALSE(reader.read(nal, size));
data/libyami-1.3.2/common/nalreader_unittest.cpp:105:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FALSE(reader.read(nal, size));
data/libyami-1.3.2/common/nalreader_unittest.cpp:108:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FALSE(reader.read(nal, size));
data/libyami-1.3.2/common/nalreader_unittest.cpp:121:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FALSE(reader.read(nal, size));
data/libyami-1.3.2/decoder/vaapidecoder_h264.cpp:1169:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!nr.read(nalBuf, nalBufSize))
data/libyami-1.3.2/decoder/vaapidecoder_h264.cpp:1184:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!nr.read(nalBuf, nalBufSize))
data/libyami-1.3.2/decoder/vaapidecoder_h264.cpp:1823:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (nr.read(nal, size)) {
data/libyami-1.3.2/decoder/vaapidecoder_h265.cpp:1177:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (nr.read(nal, size)) {
data/libyami-1.3.2/decoder/vaapidecoder_h265.cpp:1238:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (!nr.read(nalBuf, nalBufSize))
data/libyami-1.3.2/decoder/vaapidecoder_mpeg2.cpp:413:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!br.read(id, 4)) {
data/libyami-1.3.2/decoder/vaapidecoder_mpeg2.cpp:499:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (nalReader.read(nalData, nalSize)) {
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2357:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(dest, src, n);
data/libyami-1.3.2/gtestsrc/gtest/include/gtest/internal/gtest-port.h:2379:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return static_cast<int>(read(fd, buf, count));
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:599:33:  [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).
  const size_t full_regex_len = strlen(regex) + 10;
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:853:22:  [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).
  const size_t len = strlen(regex);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-port.cc:1065:21:  [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).
  else if (temp_dir[strlen(temp_dir) - 1] == '\\')
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-printers.cc:325:29:  [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).
    PrintCharsAsStringTo(s, strlen(s), os);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest-printers.cc:342:34:  [1] (buffer) wcslen:
  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).
    PrintCharsAsStringTo(s, std::wcslen(s), os);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:860:22:  [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).
  const int length = strlen(ansi);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:1825:34:  [1] (buffer) wcslen:
  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).
    num_chars = static_cast<int>(wcslen(str));
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:3598:32:  [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).
      segment = next_segment + strlen("]]>");
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:3763:18:  [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).
  result.reserve(strlen(str) + 1);
data/libyami-1.3.2/gtestsrc/gtest/src/gtest.cc:5002:29:  [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).
  const size_t prefix_len = strlen(prefix);
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:142:9:  [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(10000);
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:359:17:  [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(5000);
data/libyami-1.3.2/v4l2/v4l2_codecbase.cpp:520:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(m_fd[index], &buf, sizeof(buf));
data/libyami-1.3.2/v4l2/v4l2_wrapper.cpp:293:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(opFuncs->mVendorString, "yami", V4L2CODEC_VENDOR_STRING_SIZE-1);

ANALYSIS SUMMARY:

Hits = 176
Lines analyzed = 78028 in approximately 1.98 seconds (39488 lines/second)
Physical Source Lines of Code (SLOC) = 54937
Hits@level = [0]  68 [1]  63 [2]  81 [3]  20 [4]  12 [5]   0
Hits@level+ = [0+] 244 [1+] 176 [2+] 113 [3+]  32 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 4.44145 [1+] 3.20367 [2+] 2.0569 [3+] 0.582485 [4+] 0.218432 [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.