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/flvmeta-1.2.1/src/amf.c
Examining data/flvmeta-1.2.1/src/amf.h
Examining data/flvmeta-1.2.1/src/avc.c
Examining data/flvmeta-1.2.1/src/avc.h
Examining data/flvmeta-1.2.1/src/check.c
Examining data/flvmeta-1.2.1/src/check.h
Examining data/flvmeta-1.2.1/src/compat/getopt.c
Examining data/flvmeta-1.2.1/src/compat/getopt.h
Examining data/flvmeta-1.2.1/src/compat/getopt1.c
Examining data/flvmeta-1.2.1/src/compat/gettext.h
Examining data/flvmeta-1.2.1/src/dump.c
Examining data/flvmeta-1.2.1/src/dump.h
Examining data/flvmeta-1.2.1/src/dump_json.c
Examining data/flvmeta-1.2.1/src/dump_json.h
Examining data/flvmeta-1.2.1/src/dump_raw.c
Examining data/flvmeta-1.2.1/src/dump_raw.h
Examining data/flvmeta-1.2.1/src/dump_xml.c
Examining data/flvmeta-1.2.1/src/dump_xml.h
Examining data/flvmeta-1.2.1/src/dump_yaml.c
Examining data/flvmeta-1.2.1/src/dump_yaml.h
Examining data/flvmeta-1.2.1/src/flv.c
Examining data/flvmeta-1.2.1/src/flv.h
Examining data/flvmeta-1.2.1/src/flvmeta.c
Examining data/flvmeta-1.2.1/src/flvmeta.h
Examining data/flvmeta-1.2.1/src/info.c
Examining data/flvmeta-1.2.1/src/info.h
Examining data/flvmeta-1.2.1/src/json.c
Examining data/flvmeta-1.2.1/src/json.h
Examining data/flvmeta-1.2.1/src/libyaml/api.c
Examining data/flvmeta-1.2.1/src/libyaml/config.h
Examining data/flvmeta-1.2.1/src/libyaml/dumper.c
Examining data/flvmeta-1.2.1/src/libyaml/emitter.c
Examining data/flvmeta-1.2.1/src/libyaml/loader.c
Examining data/flvmeta-1.2.1/src/libyaml/parser.c
Examining data/flvmeta-1.2.1/src/libyaml/reader.c
Examining data/flvmeta-1.2.1/src/libyaml/scanner.c
Examining data/flvmeta-1.2.1/src/libyaml/writer.c
Examining data/flvmeta-1.2.1/src/libyaml/yaml.h
Examining data/flvmeta-1.2.1/src/libyaml/yaml_private.h
Examining data/flvmeta-1.2.1/src/types.c
Examining data/flvmeta-1.2.1/src/types.h
Examining data/flvmeta-1.2.1/src/update.c
Examining data/flvmeta-1.2.1/src/update.h
Examining data/flvmeta-1.2.1/src/util.c
Examining data/flvmeta-1.2.1/src/util.h
Examining data/flvmeta-1.2.1/tests/check_amf.c
Examining data/flvmeta-1.2.1/tests/check_flv.c
Examining data/flvmeta-1.2.1/tests/check_flvmeta.c

FINAL RESULTS:

data/flvmeta-1.2.1/src/check.c:654:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(message, "unknown metadata event name: '%s'", (char*)amf_string_get_bytes(name));
data/flvmeta-1.2.1/src/check.c:774:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for hasMetadata: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:785:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(message, "hasVideo should be set to %s", info.have_video ? "true" : "false");
data/flvmeta-1.2.1/src/check.c:790:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for hasVideo: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:801:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(message, "hasAudio should be set to %s", info.have_audio ? "true" : "false");
data/flvmeta-1.2.1/src/check.c:806:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for hasAudio: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:825:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for duration: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:845:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for lasttimestamp: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:867:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for lastkeyframetimestamp: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:893:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for width: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:919:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for height: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:944:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for videodatarate: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:969:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for framerate: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:994:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for audiodatarate: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1026:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for audiosamplerate: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1055:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for audiosamplesize: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1071:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(message, "stereo should be %s", stereo ? "true" : "false");
data/flvmeta-1.2.1/src/check.c:1080:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for stereo: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1101:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for filesize: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1126:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for videosize: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1151:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for audiosize: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1175:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for datasize: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1200:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for audiocodecid: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1225:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for videocodecid: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1250:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for audiodelay: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1261:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(message, "canSeekToEnd should be set to %s", info.can_seek_to_end ? "true" : "false");
data/flvmeta-1.2.1/src/check.c:1266:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for canSeekToEnd: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1277:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(message, "hasKeyframes should be set to %s", info.have_keyframes ? "true" : "false");
data/flvmeta-1.2.1/src/check.c:1282:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for hasKeyframes: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1311:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(message, "invalid type for times: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1319:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(message, "invalid type for filepositions: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1353:41:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                        sprintf(message, "invalid type for time: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1378:41:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                        sprintf(message, "invalid type for file position: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1404:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(message, "invalid type for keyframes: expected %s, got %s",
data/flvmeta-1.2.1/src/check.c:1437:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message, "video codec is %s", dump_string_get_video_codec(prev_video_tag));
data/flvmeta-1.2.1/src/check.c:1444:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message, "audio format is %s (%s, %s-bit, %s kHz)",
data/flvmeta-1.2.1/src/dump_xml.c:56:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(ns_decl, " xmlns%s=\"http://schemas.flvmeta.org/AMF0/1.0/\"", ns);
data/flvmeta-1.2.1/src/dump_yaml.c:45:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(str, (data->boolean_data) ? "true" : "false");
data/flvmeta-1.2.1/src/dump_yaml.c:142:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s", flv_header_has_video(*header) ? "true" : "false");
data/flvmeta-1.2.1/src/dump_yaml.c:150:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s", flv_header_has_audio(*header) ? "true" : "false");
data/flvmeta-1.2.1/src/libyaml/dumper.c:254:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf((char *)anchor, ANCHOR_TEMPLATE, anchor_id);
data/flvmeta-1.2.1/src/compat/getopt.c:345:21:  [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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/flvmeta-1.2.1/src/compat/getopt.c:1132:1:  [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.
getopt (int argc, char *const *argv, const char *optstring)
data/flvmeta-1.2.1/src/compat/getopt.c:1157:11:  [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.
      c = getopt (argc, argv, "abc:d:0123456789");
data/flvmeta-1.2.1/src/compat/getopt.h:142:12:  [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.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/flvmeta-1.2.1/src/compat/getopt.h:144:12:  [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.
extern int getopt ();
data/flvmeta-1.2.1/src/compat/getopt.h:148:12:  [3] (buffer) getopt_long:
  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.
extern int getopt_long (int ___argc, char *const *___argv,
data/flvmeta-1.2.1/src/compat/getopt1.c:64:1:  [3] (buffer) getopt_long:
  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.
getopt_long (int argc,
data/flvmeta-1.2.1/src/compat/getopt1.c:89:18:  [3] (buffer) getopt_long:
  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.
libc_hidden_def (getopt_long)
data/flvmeta-1.2.1/src/compat/getopt1.c:120:11:  [3] (buffer) getopt_long:
  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.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/flvmeta-1.2.1/src/flvmeta.c:149:18:  [3] (buffer) getopt_long:
  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.
        option = getopt_long(argc, argv,
data/flvmeta-1.2.1/src/util.c:85:9:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
    if (GetTempFileName(path_name, TEXT("flv"), 0, file_name) == 0) {
data/flvmeta-1.2.1/src/amf.c:181: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(out_buffer, ctxt->current_address, size);
data/flvmeta-1.2.1/src/amf.c:196: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(ctxt->current_address, in_buffer, size);
data/flvmeta-1.2.1/src/amf.c:790: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 datestr[128];
data/flvmeta-1.2.1/src/amf.c:920:17:  [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(data->string_data.mbstr, str, data->string_data.size);
data/flvmeta-1.2.1/src/check.c: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 datestr[128];
data/flvmeta-1.2.1/src/check.c:210: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 message[256];
data/flvmeta-1.2.1/src/check.c:279: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(message, "header version should be 1, %u found instead", header.version);
data/flvmeta-1.2.1/src/check.c:301: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(message, "header offset should be 9, %u found instead", flv_header_get_offset(header));
data/flvmeta-1.2.1/src/check.c:313: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(message, "first previous tag size should be 0, %u found instead", prev_tag_size);
data/flvmeta-1.2.1/src/check.c:348:13:  [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(message, "unknown tag type %" PRI_BYTE "d", tag.type);
data/flvmeta-1.2.1/src/check.c:377:13:  [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(message, "tag body length (%u bytes) exceeds file size", body_length);
data/flvmeta-1.2.1/src/check.c:382:13:  [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(message, "tag body length (%u bytes) is abnormally large", body_length);
data/flvmeta-1.2.1/src/check.c:394:13:  [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(message, "first timestamp should be zero, %u found instead", timestamp);
data/flvmeta-1.2.1/src/check.c:401:17:  [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(message, "audio tag timestamps are decreasing from %u to %u", last_audio_timestamp, timestamp);
data/flvmeta-1.2.1/src/check.c:409:17:  [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(message, "video tag timestamps are decreasing from %u to %u", last_video_timestamp, timestamp);
data/flvmeta-1.2.1/src/check.c:423:13:  [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(message, "timestamps are decreasing from %u to %u", last_timestamp, timestamp);
data/flvmeta-1.2.1/src/check.c:431:13:  [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(message, "audio and video streams are desynchronized by %d ms",
data/flvmeta-1.2.1/src/check.c:439:13:  [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(message, "tag stream id must be zero, %u found instead", stream_id);
data/flvmeta-1.2.1/src/check.c:465:21:  [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(message, "unknown audio format %u", audio_format);
data/flvmeta-1.2.1/src/check.c:474:21:  [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(message, "audio format %u is reserved for internal use", audio_format);
data/flvmeta-1.2.1/src/check.c:532:21:  [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(message, "unknown video frame type %u", video_frame_type);
data/flvmeta-1.2.1/src/check.c:555:21:  [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(message, "unknown video codec id %u", video_codec);
data/flvmeta-1.2.1/src/check.c:593:21:  [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(message, "invalid metadata name type: %u, should be a string (2)", amf_data_get_type(name));
data/flvmeta-1.2.1/src/check.c:604:25:  [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(message, "%u bytes not read in tag body after metadata end", body_length - flv_in->current_tag_body_length);
data/flvmeta-1.2.1/src/check.c:608:25:  [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(message, "%u bytes missing from tag body after metadata end", flv_in->current_tag_body_overflow);
data/flvmeta-1.2.1/src/check.c:633:33:  [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(message, "invalid onMetaData data type: %u, should be an associative array (8)", amf_data_get_type(on_metadata));
data/flvmeta-1.2.1/src/check.c:672:13:  [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(message, "previous tag size should be %u, %u found instead", FLV_TAG_SIZE + body_length, prev_tag_size);
data/flvmeta-1.2.1/src/check.c:690:13:  [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(message, "video stops %u ms before audio", last_audio_timestamp - last_video_timestamp);
data/flvmeta-1.2.1/src/check.c:694:13:  [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(message, "audio stops %u ms before video", last_video_timestamp - last_audio_timestamp);
data/flvmeta-1.2.1/src/check.c:714: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(message, "onLastSecond event located %u ms before the last tag", last_timestamp - on_last_second_timestamp);
data/flvmeta-1.2.1/src/check.c:820:25:  [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(message, "duration should be %.12g, got %.12g", duration, file_duration);
data/flvmeta-1.2.1/src/check.c:840:25:  [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(message, "lasttimestamp should be %.12g, got %.12g", lasttimestamp, file_lasttimestamp);
data/flvmeta-1.2.1/src/check.c:860:25:  [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(message, "lastkeyframetimestamp should be %.12g, got %.12g",
data/flvmeta-1.2.1/src/check.c:883:29:  [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(message, "width should be %.12g, got %.12g", width, file_width);
data/flvmeta-1.2.1/src/check.c:909:29:  [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(message, "height should be %.12g, got %.12g", height, file_height);
data/flvmeta-1.2.1/src/check.c:935:29:  [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(message, "videodatarate should be %.12g, got %.12g", videodatarate, file_videodatarate);
data/flvmeta-1.2.1/src/check.c:960:29:  [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(message, "framerate should be %.12g, got %.12g", framerate, file_framerate);
data/flvmeta-1.2.1/src/check.c:985:29:  [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(message, "audiodatarate should be %.12g, got %.12g", audiodatarate, file_audiodatarate);
data/flvmeta-1.2.1/src/check.c:1017:29:  [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(message, "audiosamplerate should be %.12g, got %.12g", audiosamplerate, file_audiosamplerate);
data/flvmeta-1.2.1/src/check.c:1046:29:  [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(message, "audiosamplesize should be %.12g, got %.12g", audiosamplesize, file_audiosamplesize);
data/flvmeta-1.2.1/src/check.c:1096:25:  [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(message, "filesize should be %.12g, got %.12g", real_filesize, file_filesize);
data/flvmeta-1.2.1/src/check.c:1117:29:  [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(message, "videosize should be %.12g, got %.12g", videosize, file_videosize);
data/flvmeta-1.2.1/src/check.c:1142:29:  [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(message, "audiosize should be %.12g, got %.12g", audiosize, file_audiosize);
data/flvmeta-1.2.1/src/check.c:1170:25:  [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(message, "datasize should be %.12g, got %.12g", datasize, file_datasize);
data/flvmeta-1.2.1/src/check.c:1191:29:  [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(message, "audiocodecid should be %.12g, got %.12g", audiocodecid, file_audiocodecid);
data/flvmeta-1.2.1/src/check.c:1216:29:  [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(message, "videocodecid should be %.12g, got %.12g", videocodecid, file_videocodecid);
data/flvmeta-1.2.1/src/check.c:1241:29:  [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(message, "audiodelay should be %.12g, got %.12g", audiodelay, file_audiodelay);
data/flvmeta-1.2.1/src/check.c:1362:45:  [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(message, "invalid keyframe time: expected %.12g, got %.12g",
data/flvmeta-1.2.1/src/check.c:1369:45:  [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(message, "Duplicate keyframe time: %.12g", f_time);
data/flvmeta-1.2.1/src/check.c:1387:45:  [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(message, "invalid keyframe file position: expected %.12g, got %.12g",
data/flvmeta-1.2.1/src/dump_json.c:35: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 str[128];
data/flvmeta-1.2.1/src/dump_xml.c:45: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 datestr[128];
data/flvmeta-1.2.1/src/dump_xml.c:48: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 ns_decl[50];
data/flvmeta-1.2.1/src/dump_yaml.c:36: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 str[128];
data/flvmeta-1.2.1/src/dump_yaml.c:40:17:  [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(str, "%.12g", data->number_data);
data/flvmeta-1.2.1/src/dump_yaml.c:123: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 buffer[20];
data/flvmeta-1.2.1/src/dump_yaml.c:134:5:  [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(buffer, "%.3s", header->signature);
data/flvmeta-1.2.1/src/dump_yaml.c:158:5:  [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(buffer, "%i", header->version);
data/flvmeta-1.2.1/src/dump_yaml.c:176: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 buffer[20];
data/flvmeta-1.2.1/src/dump_yaml.c:196:5:  [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(buffer, "%i", flv_tag_get_timestamp(*tag));
data/flvmeta-1.2.1/src/dump_yaml.c:204:5:  [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(buffer, "%i", flv_tag_get_body_length(*tag));
data/flvmeta-1.2.1/src/dump_yaml.c:212:5:  [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(buffer, "%" FILE_OFFSET_PRINTF_FORMAT "u", FILE_OFFSET_PRINTF_TYPE(parser->stream->current_tag_offset));
data/flvmeta-1.2.1/src/dump_yaml.c:223: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 buffer[20];
data/flvmeta-1.2.1/src/dump_yaml.c:283:13:  [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(buffer, "%i", uint24_be_to_uint32(composition_time));
data/flvmeta-1.2.1/src/flv.c:37:21:  [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).
    stream->flvin = fopen(file, "rb");
data/flvmeta-1.2.1/src/flv.c:139: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(&stream->current_tag, tag, sizeof(flv_tag));
data/flvmeta-1.2.1/src/flv.c:350: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(out, &header->signature, sizeof(header->signature));
data/flvmeta-1.2.1/src/flv.c:353: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(out, &header->version, sizeof(header->version));
data/flvmeta-1.2.1/src/flv.c:356: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(out, &header->flags, sizeof(header->flags));
data/flvmeta-1.2.1/src/flv.c:359: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(out, &header->offset, sizeof(header->offset));
data/flvmeta-1.2.1/src/flv.c:370: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(out, &tag->type, sizeof(tag->type));
data/flvmeta-1.2.1/src/flv.c:373: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(out, &tag->body_length, sizeof(tag->body_length));
data/flvmeta-1.2.1/src/flv.c:376: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(out, &tag->timestamp, sizeof(tag->timestamp));
data/flvmeta-1.2.1/src/flv.c:379: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(out, &tag->timestamp_extended, sizeof(tag->timestamp_extended));
data/flvmeta-1.2.1/src/flv.c:382: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(out, &tag->stream_id, sizeof(tag->stream_id));
data/flvmeta-1.2.1/src/flv.c:394: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(to, &pts, sizeof(uint32_be));
data/flvmeta-1.2.1/src/libyaml/api.c:107: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(*a_pointer, *b_start, *b_pointer - *b_start);
data/flvmeta-1.2.1/src/libyaml/api.c:258: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(buffer, parser->input.string.current, size);
data/flvmeta-1.2.1/src/libyaml/api.c:420: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(emitter->output.string.buffer
data/flvmeta-1.2.1/src/libyaml/api.c:429: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(emitter->output.string.buffer
data/flvmeta-1.2.1/src/libyaml/api.c:792: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(value_copy, value, length);
data/flvmeta-1.2.1/src/libyaml/api.c:1156: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(value_copy, value, length);
data/flvmeta-1.2.1/src/libyaml/emitter.c:2074: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.
static unsigned char utf8_mask[5] = {0xFF, 0x7F, 0x1F, 0x0F, 0x07};
data/flvmeta-1.2.1/src/libyaml/emitter.c:2251: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 indent_hint[2];
data/flvmeta-1.2.1/src/libyaml/parser.c:613: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(tag, tag_directive->prefix, prefix_len);
data/flvmeta-1.2.1/src/libyaml/parser.c:614: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(tag+prefix_len, tag_suffix, suffix_len);
data/flvmeta-1.2.1/src/libyaml/scanner.c:2604: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(string.start, head+1, length-1);
data/flvmeta-1.2.1/src/libyaml/yaml_private.h:391:4:  [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(string_a.pointer, string_b.pointer, n),                               \
data/flvmeta-1.2.1/src/update.c:291:19:  [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).
        flv_out = fopen(opts->output_file, "wb");
data/flvmeta-1.2.1/src/update.c:321:24:  [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).
        flv_out_real = fopen(opts->output_file, "wb");
data/flvmeta-1.2.1/src/util.c:74:5:  [2] (buffer) TCHAR:
  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.
    TCHAR path_name[MAX_PATH + 1];
data/flvmeta-1.2.1/src/util.c:75:5:  [2] (buffer) TCHAR:
  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.
    TCHAR file_name[MAX_PATH + 1];
data/flvmeta-1.2.1/src/util.h:45:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
# define flvmeta_tmpfile tmpfile
data/flvmeta-1.2.1/src/amf.c:932:63:  [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).
    return amf_string_new((byte *)str, (uint16)(str != NULL ? strlen(str) : 0));
data/flvmeta-1.2.1/src/compat/getopt.c:376:44:  [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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/flvmeta-1.2.1/src/compat/getopt.c:601: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).
		== (unsigned int) strlen (p->name))
data/flvmeta-1.2.1/src/compat/getopt.c:646:16:  [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).
	  nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:712:17:  [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).
		  nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:746:17:  [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).
		  nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:751:16:  [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).
	  nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:938:51:  [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).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/flvmeta-1.2.1/src/compat/getopt.c:978: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).
	    nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:1016:19:  [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).
		    nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:1048:19:  [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).
		    nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/compat/getopt.c:1052: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).
	    nextchar += strlen (nextchar);
data/flvmeta-1.2.1/src/dump_json.c:91:43:  [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).
                json_emit_string(je, str, strlen(str));
data/flvmeta-1.2.1/src/dump_xml.c:59:13:  [1] (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 character.
            strcpy(ns_decl, "");
data/flvmeta-1.2.1/src/dump_yaml.c:41:90:  [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).
                yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:46:90:  [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).
                yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:108:90:  [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).
                yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:135:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:143:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:151:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:159:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:189:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:197:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:205:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:213:81:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:238:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:246:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:269:82:  [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).
        yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:284:89:  [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).
            yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)buffer, (int)strlen(buffer), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:316:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:324:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:332:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:340:78:  [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).
    yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/dump_yaml.c:363:82:  [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).
        yaml_scalar_event_initialize(&event, NULL, NULL, (yaml_char_t*)str, (int)strlen(str), 1, 1, YAML_ANY_SCALAR_STYLE);
data/flvmeta-1.2.1/src/json.c:87:28:  [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).
    json_print_string(str, strlen(str));
data/flvmeta-1.2.1/src/json.c:154:28:  [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).
    json_print_string(str, strlen(str));
data/flvmeta-1.2.1/src/libyaml/api.c:787: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).
        length = strlen((char *)value);
data/flvmeta-1.2.1/src/libyaml/api.c:1151: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).
        length = strlen((char *)value);
data/flvmeta-1.2.1/src/libyaml/emitter.c:626: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).
                            strlen((char *)tag_directive->handle)))
data/flvmeta-1.2.1/src/libyaml/emitter.c:629: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).
                            strlen((char *)tag_directive->prefix), 1))
data/flvmeta-1.2.1/src/libyaml/emitter.c:1363: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).
    handle_length = strlen((char *)tag_directive.handle);
data/flvmeta-1.2.1/src/libyaml/emitter.c:1364: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).
    prefix_length = strlen((char *)tag_directive.prefix);
data/flvmeta-1.2.1/src/libyaml/emitter.c:1412: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).
    anchor_length = strlen((char *)anchor);
data/flvmeta-1.2.1/src/libyaml/emitter.c:1449: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).
    tag_length = strlen((char *)tag);
data/flvmeta-1.2.1/src/libyaml/emitter.c:1459: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).
        size_t prefix_length = strlen((char *)tag_directive->prefix);
data/flvmeta-1.2.1/src/libyaml/emitter.c:1466:17:  [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).
                strlen((char *)tag_directive->handle);
data/flvmeta-1.2.1/src/libyaml/emitter.c:1850:24:  [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).
    indicator_length = strlen(indicator);
data/flvmeta-1.2.1/src/libyaml/parser.c:606:45:  [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).
                        size_t prefix_len = strlen((char *)tag_directive->prefix);
data/flvmeta-1.2.1/src/libyaml/parser.c:607:45:  [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).
                        size_t suffix_len = strlen((char *)tag_suffix);
data/flvmeta-1.2.1/src/libyaml/scanner.c:2449:61:  [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).
        if (handle[0] == '!' && handle[1] != '\0' && handle[strlen((char *)handle)-1] == '!')
data/flvmeta-1.2.1/src/libyaml/scanner.c:2583:28:  [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).
    size_t length = head ? strlen((char *)head) : 0;
data/flvmeta-1.2.1/tests/check_amf.c:117: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).
    int length = strlen(str);

ANALYSIS SUMMARY:

Hits = 197
Lines analyzed = 22964 in approximately 0.58 seconds (39433 lines/second)
Physical Source Lines of Code (SLOC) = 14444
Hits@level = [0] 210 [1]  52 [2]  93 [3]  11 [4]  41 [5]   0
Hits@level+ = [0+] 407 [1+] 197 [2+] 145 [3+]  52 [4+]  41 [5+]   0
Hits/KSLOC@level+ = [0+] 28.1778 [1+] 13.6389 [2+] 10.0388 [3+] 3.60011 [4+] 2.83855 [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.