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/ogmrip-1.0.1/libogmrip-gtk/ogmrip-x264-options.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-source-chooser.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gtk.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-chapter-list.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-chooser-list.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-helper.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-options-plugin.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-helper.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-chooser-list.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-lavc-options.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-options-plugin.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-source-chooser-widget.h
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-chapter-list.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-xvid-options.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-source-chooser.c
Examining data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-source-chooser-widget.c
Examining data/ogmrip-1.0.1/subrip/vobsub.c
Examining data/ogmrip-1.0.1/subrip/subp2pgm.c
Examining data/ogmrip-1.0.1/subrip/vobsub.h
Examining data/ogmrip-1.0.1/subrip/spudec.h
Examining data/ogmrip-1.0.1/subrip/spudec.c
Examining data/ogmrip-1.0.1/subrip/subptools.c
Examining data/ogmrip-1.0.1/src/ogmrip-profiles-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-main.c
Examining data/ogmrip-1.0.1/src/ogmrip-marshal.h
Examining data/ogmrip-1.0.1/src/ogmrip-subp-options.c
Examining data/ogmrip-1.0.1/src/ogmrip-profiles-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-update-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-marshal.c
Examining data/ogmrip-1.0.1/src/ogmrip-subp-options.h
Examining data/ogmrip-1.0.1/src/ogmrip-progress-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-audio-options.h
Examining data/ogmrip-1.0.1/src/ogmrip-progress-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-pref-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-crop-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-spell-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-profile-editor.c
Examining data/ogmrip-1.0.1/src/ogmrip-profiles.c
Examining data/ogmrip-1.0.1/src/ogmrip-queue-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-queue-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-profile-editor.h
Examining data/ogmrip-1.0.1/src/ogmrip-pref-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-crop-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-gconf.c
Examining data/ogmrip-1.0.1/src/ogmrip-options-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-options-dialog.h
Examining data/ogmrip-1.0.1/src/ogmrip-gconf.h
Examining data/ogmrip-1.0.1/src/ogmrip-audio-options.c
Examining data/ogmrip-1.0.1/src/ogmrip-profiles.h
Examining data/ogmrip-1.0.1/src/ogmrip-update-dialog.c
Examining data/ogmrip-1.0.1/src/ogmrip-spell-dialog.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-player.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-theora.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-player.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-lavc.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-settings.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-wav.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-audio-codec.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-plugin.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-chapters.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-vorbis.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-edl.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-novideo.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-mp3.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-x264.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-ogg.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-keyfile-settings.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-aac.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-lavc-mpeg4.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-codec.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-container.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-file.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-hardsub.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-acopy.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-mp4.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-enums.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-encoding.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-hardsub.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-edl.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-dvdcpy.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-settings.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-srt.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-video-codec.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-audio-codec.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-subp-codec.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-version.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-lavc-mpeg4.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-container.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-encoding.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-xvid.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-options.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-options.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-codec.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-avi.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-chapters.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-mkv.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-encoding-manager.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-lavc.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-dvdcpy.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-version.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-vobsub.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-xvid.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-subp-codec.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-fs.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-novideo.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-mov.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-x264.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-fs.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-plugin.c
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-file.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-encoding-manager.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-keyfile-settings.h
Examining data/ogmrip-1.0.1/libogmrip/ogmrip-video-codec.c
Examining data/ogmrip-1.0.1/dvdcpy/dvdcpy.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-subp.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-parser.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-monitor.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-audio.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-title.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-types.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-labels.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-reader.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-monitor.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-drive.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-priv.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-enums.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-reader.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-priv.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-labels.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-parser.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-title.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-drive.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-stream.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-stream.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-contrib.h
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-audio.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-contrib.c
Examining data/ogmrip-1.0.1/libogmdvd/ogmdvd-subp.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-exec.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-container.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-pipeline.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-log.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-marshal.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-list.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-log.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-queue.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-list.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-queue.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-spawn.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-spawn.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-bin.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-exec.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-bin.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-container.h
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-pipeline.c
Examining data/ogmrip-1.0.1/libogmjob/ogmjob-marshal.c
Examining data/ogmrip-1.0.1/avibox/aud_scan.h
Examining data/ogmrip-1.0.1/avibox/aud_scan.c
Examining data/ogmrip-1.0.1/avibox/platform.h
Examining data/ogmrip-1.0.1/avibox/avimisc.c
Examining data/ogmrip-1.0.1/avibox/avibox.c
Examining data/ogmrip-1.0.1/avibox/avilib.h
Examining data/ogmrip-1.0.1/avibox/platform.c
Examining data/ogmrip-1.0.1/avibox/avilib.c
Examining data/ogmrip-1.0.1/theoraenc/theoraenc.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-marshal.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-marshal.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-cell-renderer-language.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-chapter-list.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-drive-chooser-widget.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-drive-chooser.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-cell-renderer-language.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-drive-chooser-dialog.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-drive-chooser-widget.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-title-chooser.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-title-chooser-widget.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-chapter-list.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-title-chooser.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-drive-chooser-dialog.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-title-chooser-widget.c
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-drive-chooser.h
Examining data/ogmrip-1.0.1/libogmdvd-gtk/ogmdvd-gtk.h

FINAL RESULTS:

data/ogmrip-1.0.1/avibox/platform.c:138:5:  [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.
    vsnprintf(buffer, 1024, fmt, ap);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:116:11:  [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 (device, R_OK) < 0)
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:64:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (retval, dir);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:72:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (retval + dirlen, key);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:85:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (dest, key);
data/ogmrip-1.0.1/libogmrip/ogmrip-fs.c:263:10:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
  path = mktemp (template);
data/ogmrip-1.0.1/libogmrip/ogmrip-fs.c:680:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (name, extension + 1);
data/ogmrip-1.0.1/libogmrip/ogmrip-fs.c:682:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (name, extension);
data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c:471:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf (buffer, "Pos:%s %df (%d%%)", pos, &frames, &progress) == 3)
data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c:497:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf (buffer, "Pos:%s %df (%d%%)", pos, &frames, &progress) == 3)
data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c:658:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  else if (sscanf (buffer, "A: %s V: %s", a, v) == 2)
data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c:798:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf (buffer, "V:%s %d/%d", v, &frame, &decoded) == 3)
data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c:886:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf (buffer, "Pos:%s %df (%d%%)", pos, &frames, &progress) == 3)
data/ogmrip-1.0.1/subrip/subp2pgm.c:364:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "%s%04d.png", output, subno);
data/ogmrip-1.0.1/subrip/subp2pgm.c:370:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "%s%04d.tif", output, subno);
data/ogmrip-1.0.1/subrip/subp2pgm.c:375:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "%s%04d.pgm", output, subno);
data/ogmrip-1.0.1/subrip/subp2pgm.c:551:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (filename, "%s.xml", output);
data/ogmrip-1.0.1/subrip/vobsub.c:104:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(rar_filename, filename);
data/ogmrip-1.0.1/subrip/vobsub.c:972:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(buf, name);
data/ogmrip-1.0.1/subrip/vobsub.c:978:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf, name);
data/ogmrip-1.0.1/subrip/vobsub.c:1000:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf, name);
data/ogmrip-1.0.1/subrip/vobsub.c:1302:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(filename, basename);
data/ogmrip-1.0.1/subrip/vobsub.c:1307:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(filename, basename);
data/ogmrip-1.0.1/avibox/avibox.c:45: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, char * const *argv, const char *shortopts, const struct option *longopts, int *longind)
data/ogmrip-1.0.1/avibox/avibox.c:47:10:  [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.
  return getopt (argc, argv, shortopts);
data/ogmrip-1.0.1/avibox/avibox.c:584:20:  [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.
  while ((optelt = getopt_long (argc, argv, shortopts, longopts, &optidx)) != EOF)
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:801:15:  [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.
  while ((c = getopt_long (argc, argv, shortopts, longopts, &optidx)) != EOF)
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-helper.c:1108:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_filename (g_get_home_dir (), ".ogmrip", "profiles", NULL);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-options-plugin.c:283:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_filename (g_get_home_dir (), ".ogmrip", "options-plugins", NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-fs.c:77:11:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_get_tmp_dir ();
data/ogmrip-1.0.1/libogmrip/ogmrip-mplayer.c:1063:32:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        s2 = g_build_filename (g_get_tmp_dir (), s1, NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-plugin.c:206:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_filename (g_get_home_dir (), ".ogmrip", "video-plugins", NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-plugin.c:219:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_filename (g_get_home_dir (), ".ogmrip", "audio-plugins", NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-plugin.c:230:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_filename (g_get_home_dir (), ".ogmrip", "subp-plugins", NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-plugin.c:243:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_filename (g_get_home_dir (), ".ogmrip", "container-plugins", NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-xvid.c:747:38:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        log_file = g_build_filename (g_get_tmp_dir (), "xvid-twopass.stats", NULL);
data/ogmrip-1.0.1/libogmrip/ogmrip-xvid.c:769:14:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    g_chdir (g_get_tmp_dir ());
data/ogmrip-1.0.1/src/ogmrip-crop-dialog.c:378:11:  [3] (random) g_random_int_range:
  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.
  frame = g_random_int_range (1, dialog->priv->length);
data/ogmrip-1.0.1/src/ogmrip-crop-dialog.c:408:13:  [3] (random) g_random_int_range:
  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.
    frame = g_random_int_range (1, dialog->priv->length);
data/ogmrip-1.0.1/src/ogmrip-gconf.h:115:46:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
#define OGMRIP_DEFAULT_OUTPUT_DIR            g_get_home_dir ()
data/ogmrip-1.0.1/src/ogmrip-main.c:738:24:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    outdir = g_strdup (g_get_home_dir ());
data/ogmrip-1.0.1/src/ogmrip-pref-dialog.c:238:22:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    path = g_strdup (g_get_home_dir ());
data/ogmrip-1.0.1/src/ogmrip-pref-dialog.c:304:22:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    path = g_strdup (g_get_home_dir ());
data/ogmrip-1.0.1/subrip/subp2pgm.c:500:20:  [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.
  while ((option = getopt_long (argc, argv, shortopts, longopts, NULL)) != EOF)
data/ogmrip-1.0.1/subrip/subptools.c:737:15:  [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.
  while ((c = getopt_long (argc, argv, shortopts, longopts, &optidx)) != EOF)
data/ogmrip-1.0.1/theoraenc/theoraenc.c:418:15:  [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.
  while ((c = getopt_long (argc, argv, optstring, options, &long_option_index)) != EOF)
data/ogmrip-1.0.1/theoraenc/theoraenc.c:489:3:  [3] (random) srand:
  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.
  srand (time (NULL));
data/ogmrip-1.0.1/avibox/avibox.c:40:8:  [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 char data[SIZE_RGB_FRAME];
data/ogmrip-1.0.1/avibox/avibox.c:146:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file->f = fopen (file->name, "r");
data/ogmrip-1.0.1/avibox/avibox.c:149: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 *c, head[1024];
data/ogmrip-1.0.1/avibox/avibox.c:264: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 head[8];
data/ogmrip-1.0.1/avibox/avibox.c:317: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/avibox/avibox.c:466: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 codec[5];
data/ogmrip-1.0.1/avibox/avibox.c:577: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 basename[FILENAME_MAX];
data/ogmrip-1.0.1/avibox/avibox.c:605:17:  [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).
        chunk = atoi (optarg);
data/ogmrip-1.0.1/avibox/avilib.c:146:13:  [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 c[8];
data/ogmrip-1.0.1/avibox/avilib.c:152: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(c,tag,4);
data/ogmrip-1.0.1/avibox/avilib.c:179: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.
#define OUTS(s) memcpy(ix00+bl,s,4); bl+=4
data/ogmrip-1.0.1/avibox/avilib.c:188: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 dfcc[5];
data/ogmrip-1.0.1/avibox/avilib.c:189: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 (dfcc, ch->fcc, 4);
data/ogmrip-1.0.1/avibox/avilib.c:242: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 (sil->fcc, "indx", 4);
data/ogmrip-1.0.1/avibox/avilib.c:248: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 (sil->dwChunkId, idxtag, 4);
data/ogmrip-1.0.1/avibox/avilib.c:280: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 (stdil->fcc, idxtag, 4);
data/ogmrip-1.0.1/avibox/avilib.c:288: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(stdil->dwChunkId, strtag, 4);
data/ogmrip-1.0.1/avibox/avilib.c:335: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 fcc[5];
data/ogmrip-1.0.1/avibox/avilib.c:425:13:  [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 aud[5];
data/ogmrip-1.0.1/avibox/avilib.c:531: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(AVI->idx[AVI->n_idx],tag,4);
data/ogmrip-1.0.1/avibox/avilib.c:575:13:  [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 AVI_header[HEADERBYTES];
data/ogmrip-1.0.1/avibox/avilib.c:633:6:  [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(AVI->compressor,compressor,4);
data/ogmrip-1.0.1/avibox/avilib.c:668:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   if(nhb<=HEADERBYTES-4) memcpy(AVI_header+nhb,s,4); nhb += 4
data/ogmrip-1.0.1/avibox/avilib.c:690: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(AVI_header+nhb, (d), s_); \
data/ogmrip-1.0.1/avibox/avilib.c:700:13:  [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 AVI_header[HEADERBYTES];
data/ogmrip-1.0.1/avibox/avilib.c:1041: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(buf+len,c,4);
data/ogmrip-1.0.1/avibox/avilib.c:1048: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 (buf+len, d, k);
data/ogmrip-1.0.1/avibox/avilib.c:1103:4:  [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 id_str[MAX_INFO_STRLEN];
data/ogmrip-1.0.1/avibox/avilib.c:1107:13:  [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 AVI_header[HEADERBYTES];
data/ogmrip-1.0.1/avibox/avilib.c:1559: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(AVI_header+nhb, id_str, id_len);
data/ogmrip-1.0.1/avibox/avilib.c:1624:8:  [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 f[4];
data/ogmrip-1.0.1/avibox/avilib.c:1664:13:  [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 astr[5];
data/ogmrip-1.0.1/avibox/avilib.c:1914: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 data[100]; // line buffer
data/ogmrip-1.0.1/avibox/avilib.c:1940: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).
    if (!(fd = fopen(filename, "r"))) { perror ("avi_parse_index_from_file: fopen"); return -1; }
data/ogmrip-1.0.1/avibox/avilib.c:2048: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 data[256];
data/ogmrip-1.0.1/avibox/avilib.c:2145: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(AVI->compressor,hdrl_data+i+4,4);
data/ogmrip-1.0.1/avibox/avilib.c:2209: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(&bih, hdrl_data + i, sizeof(alBITMAPINFOHEADER));
data/ogmrip-1.0.1/avibox/avilib.c:2212:15:  [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(AVI->bitmap_info_header, hdrl_data + i,
data/ogmrip-1.0.1/avibox/avilib.c:2221: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(AVI->compressor2, hdrl_data+i+16, 4);
data/ogmrip-1.0.1/avibox/avilib.c:2237:15:  [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(wfe, hdrl_data + i, wfes);
data/ogmrip-1.0.1/avibox/avilib.c:2279: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 (AVI->video_superindex->fcc, a, 4);             a += 4;
data/ogmrip-1.0.1/avibox/avilib.c:2285: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 (AVI->video_superindex->dwChunkId, a, 4);       a += 4;
data/ogmrip-1.0.1/avibox/avilib.c:2334: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 (AVI->track[AVI->aptr].audio_superindex->fcc, a, 4);             a += 4;
data/ogmrip-1.0.1/avibox/avilib.c:2340: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 (AVI->track[AVI->aptr].audio_superindex->dwChunkId, a, 4);       a += 4;
data/ogmrip-1.0.1/avibox/avilib.c:3224: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.
    static char error_string[4096];
data/ogmrip-1.0.1/avibox/avilib.h:95: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           fcc[4];                 // ix##
data/ogmrip-1.0.1/avibox/avilib.h:101: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           dwChunkId[4];           // '##dc' or '##db' or '##wb' etc..
data/ogmrip-1.0.1/avibox/avilib.h:110: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           fcc[4];
data/ogmrip-1.0.1/avibox/avilib.h:116: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           dwChunkId[4];           // fcc of what is indexed
data/ogmrip-1.0.1/avibox/avilib.h:140: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   audio_tag[4];      /* Tag of audio data */
data/ogmrip-1.0.1/avibox/avilib.h:200: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     sz_name[64];
data/ogmrip-1.0.1/avibox/avilib.h:212: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   compressor[8];     /* Type of compressor, 4 bytes + padding for 0 byte */
data/ogmrip-1.0.1/avibox/avilib.h:213: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   compressor2[8];     /* Type of compressor, 4 bytes + padding for 0 byte */
data/ogmrip-1.0.1/avibox/avilib.h:216: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   video_tag[4];      /* Tag of video data */
data/ogmrip-1.0.1/avibox/platform.c:35: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).
    return open(pathname, flags, mode);
data/ogmrip-1.0.1/avibox/platform.c:134: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[1024];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:232: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 path[FILENAME_MAX];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:328: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 buffer[512 * DVD_VIDEO_LB_LEN];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:438: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:458: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).
    fd = open (filename, O_WRONLY | O_CREAT, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:466: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).
    fd = open (filename, O_WRONLY | O_TRUNC, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:505: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:521: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).
    fd = open (filename, O_WRONLY | O_CREAT, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:529: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).
    fd = open (filename, O_WRONLY | O_TRUNC, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:566: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:582: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).
    fd = open (filename, O_WRONLY | O_CREAT, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:590: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).
    fd = open (filename, O_WRONLY | O_TRUNC, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:627: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:654: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).
      fd = open (filename, O_WRONLY | O_CREAT, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:664: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).
      fd = open (filename, O_WRONLY | O_TRUNC, 0644);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:829:17:  [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).
        title = atoi (optarg);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c:59:13:  [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).
  if ((fd = open (device, flags | O_RDWR, 0)) < 0 &&
data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c:60:13:  [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).
      (fd = open (device, flags | O_RDONLY, 0)) < 0)
data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c:74:8:  [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).
  fd = open (rdevnode, flags);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c:88: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).
    fd = open (rawdisk, O_RDONLY | O_NONBLOCK);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c:92: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).
    fd = open (device, O_RDONLY | O_NONBLOCK);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:148: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 (str + 2 * i, "%02X", id[i]);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:410: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 (title->palette, pgc->palette, 16 * sizeof (uint32_t));
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:507:7:  [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).
  f = fopen (disc->device, "r");
data/ogmrip-1.0.1/libogmdvd/ogmdvd-parser.c:215:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (parser->data, buffer, len);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-parser.c:225:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (parser->data + parser->size_got, buffer, len);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:117: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 u[18];
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:218: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).
#define open64   open
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:326: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 cdb[16];
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:327: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 _sense[18];
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:438: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).
#define open64   open
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:459: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 pass[32]; /* periph_name is 16 chars long */
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:474:3:  [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 (pass, "/dev/%.15s%u", cmd->ccb.cgdl.periph_name,
data/ogmrip-1.0.1/libogmdvd/ogmdvd-transport.c:576: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 (sense, _sense, sizeof (_sense));
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-helper.c:381:10:  [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).
  return atoi (text);
data/ogmrip-1.0.1/libogmrip/ogmrip-edl.c:193: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).
    stream = fopen (edl->filename, "w");
data/ogmrip-1.0.1/libogmrip/ogmrip-encoding.c:2536:14:  [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).
    retval = atoi ((char *) str);
data/ogmrip-1.0.1/libogmrip/ogmrip-encoding.c:2550:14:  [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).
    retval = atoi ((char *) str);
data/ogmrip-1.0.1/libogmrip/ogmrip-encoding.c:3431:7:  [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).
  f = fopen (filename, "w");
data/ogmrip-1.0.1/libogmrip/ogmrip-file.c:197: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[0x10000];
data/ogmrip-1.0.1/libogmrip/ogmrip-file.c:202:12:  [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 = fopen (filename, "rb");
data/ogmrip-1.0.1/libogmrip/ogmrip-mp4.c:534:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat (filename, "_video.h264");
data/ogmrip-1.0.1/libogmrip/ogmrip-settings.c:210:32:  [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).
  g_value_set_int (dest_value, atoi (str));
data/ogmrip-1.0.1/libogmrip/ogmrip-settings.c:228:33:  [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).
  g_value_set_uint (dest_value, atoi (str));
data/ogmrip-1.0.1/libogmrip/ogmrip-settings.c:1458:12:  [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).
  data.f = fopen (filename, "w");
data/ogmrip-1.0.1/libogmrip/ogmrip-version.c:91:29:  [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).
            mplayer_major = atoi (vstr[1]);
data/ogmrip-1.0.1/libogmrip/ogmrip-version.c:92:29:  [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).
            mplayer_minor = atoi (vstr[2]);
data/ogmrip-1.0.1/libogmrip/ogmrip-version.c:96:30:  [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).
                mplayer_rc = atoi (vstr[5]);
data/ogmrip-1.0.1/libogmrip/ogmrip-version.c:98:31:  [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).
                mplayer_pre = atoi (vstr[5]);
data/ogmrip-1.0.1/src/ogmrip-main.c:118:7:  [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).
  f = fopen (filename, "r");
data/ogmrip-1.0.1/src/ogmrip-main.c:1519: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).
  file = fopen (filename, "r");
data/ogmrip-1.0.1/subrip/spudec.c:221: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(image, this->image + this->stride * first_y, this->image_size);
data/ogmrip-1.0.1/subrip/spudec.c:222: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(aimage, this->aimage + this->stride * first_y, this->image_size);
data/ogmrip-1.0.1/subrip/spudec.c:546:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(packet->packet, this->packet, this->packet_size);
data/ogmrip-1.0.1/subrip/spudec.c:598:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(spu->packet, packet, len);
data/ogmrip-1.0.1/subrip/spudec.c:609:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(spu->packet + spu->packet_offset, packet, len);
data/ogmrip-1.0.1/subrip/spudec.c:1212: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, extradata, extradata_len);
data/ogmrip-1.0.1/subrip/subp2pgm.c:94:7:  [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).
  f = fopen (file_name, "w");
data/ogmrip-1.0.1/subrip/subp2pgm.c:133:8:  [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 (file_name, "wb");
data/ogmrip-1.0.1/subrip/subp2pgm.c:352: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 buf[256];
data/ogmrip-1.0.1/subrip/subp2pgm.c:401: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).
  file = fopen (palet_file, "r");
data/ogmrip-1.0.1/subrip/subp2pgm.c:489: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/subrip/subp2pgm.c:505:21:  [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).
        vobsub_id = atoi (optarg);
data/ogmrip-1.0.1/subrip/subp2pgm.c:552: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).
  xml_file = fopen (filename, "w+");
data/ogmrip-1.0.1/subrip/subptools.c:86:8:  [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 char input_file[FILENAME_MAX];
data/ogmrip-1.0.1/subrip/subptools.c:87:8:  [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 char output_file[FILENAME_MAX];
data/ogmrip-1.0.1/subrip/subptools.c:638: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 filename[FILENAME_MAX];
data/ogmrip-1.0.1/subrip/subptools.c:646:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat (filename, ".txt");
data/ogmrip-1.0.1/subrip/subptools.c:651:8:  [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).
  fd = open (filename, O_RDONLY);
data/ogmrip-1.0.1/subrip/subptools.c:802: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).
    fd = open (input_file, O_RDONLY);
data/ogmrip-1.0.1/subrip/vobsub.c:81:20:  [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->file = fopen(filename, mode);
data/ogmrip-1.0.1/subrip/vobsub.c:97:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(rar_filename + l, ".rar");
data/ogmrip-1.0.1/subrip/vobsub.c:105:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(rar_filename, ".rar");
data/ogmrip-1.0.1/subrip/vobsub.c:228: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(ptr, stream->data + stream->pos, res);
data/ogmrip-1.0.1/subrip/vobsub.c:236: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).
#define rar_open        fopen
data/ogmrip-1.0.1/subrip/vobsub.c:347: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 buf[5];
data/ogmrip-1.0.1/subrip/vobsub.c:655: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(vob->spu_streams[index].id, id, idlen);
data/ogmrip-1.0.1/subrip/vobsub.c:708:41:  [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).
    return vobsub_add_id(vob, p, idlen, atoi(q));
data/ogmrip-1.0.1/subrip/vobsub.c:724:9:  [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).
    h = atoi(line);
data/ogmrip-1.0.1/subrip/vobsub.c:732:9:  [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).
    m = atoi(line);
data/ogmrip-1.0.1/subrip/vobsub.c:740:9:  [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).
    s = atoi(line);
data/ogmrip-1.0.1/subrip/vobsub.c:748:10:  [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).
    ms = atoi(line);
data/ogmrip-1.0.1/subrip/vobsub.c:820:9:  [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).
    h = atoi(line + 7);
data/ogmrip-1.0.1/subrip/vobsub.c:822:9:  [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).
    m = atoi(line + 10);
data/ogmrip-1.0.1/subrip/vobsub.c:824:9:  [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).
    s = atoi(line + 13);
data/ogmrip-1.0.1/subrip/vobsub.c:826:10:  [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).
    ms = atoi(line + 16);
data/ogmrip-1.0.1/subrip/vobsub.c:835:21:  [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).
        vobsub_id = atoi(line + 8);
data/ogmrip-1.0.1/subrip/vobsub.c:855: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(*extradata+*extradata_len, line, line_size);
data/ogmrip-1.0.1/subrip/vobsub.c:896:18:  [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 block[0x800];
data/ogmrip-1.0.1/subrip/vobsub.c:973:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, ".ifo");
data/ogmrip-1.0.1/subrip/vobsub.c:979:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(buf, ".idx");
data/ogmrip-1.0.1/subrip/vobsub.c:1001:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(buf, ".sub");
data/ogmrip-1.0.1/subrip/vobsub.c:1303:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(filename, ".sub");
data/ogmrip-1.0.1/subrip/vobsub.c:1304:28:  [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).
            result->fsub = fopen(filename, "ab");
data/ogmrip-1.0.1/subrip/vobsub.c:1308:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(filename, ".idx");
data/ogmrip-1.0.1/subrip/vobsub.c:1309:28:  [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).
            result->fidx = fopen(filename, "ab");
data/ogmrip-1.0.1/subrip/vobsub.c:1345:18:  [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 buffer[2048];
data/ogmrip-1.0.1/subrip/vobsub.c:1384:29:  [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 last_pts[5] = { 0, 0, 0, 0, 0};
data/ogmrip-1.0.1/subrip/vobsub.c:1385:22:  [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 now_pts[5];
data/ogmrip-1.0.1/subrip/vobsub.c:1394: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(last_pts, now_pts, sizeof(now_pts));
data/ogmrip-1.0.1/subrip/vobsub.c:1425: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(p, now_pts, pts_len);
data/ogmrip-1.0.1/theoraenc/theoraenc.c:89: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[80];
data/ogmrip-1.0.1/theoraenc/theoraenc.c:105:12:  [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).
    test = fopen (f, "rb");
data/ogmrip-1.0.1/theoraenc/theoraenc.c:220:19:  [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 *yuvframe[2];
data/ogmrip-1.0.1/theoraenc/theoraenc.c:279: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 c, frame[6];
data/ogmrip-1.0.1/theoraenc/theoraenc.c:423: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).
        outfile = fopen (optarg, "wb");
data/ogmrip-1.0.1/avibox/avibox.c:599:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (basename, optarg, FILENAME_MAX);
data/ogmrip-1.0.1/avibox/avibox.c:640:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (basename, input->name, FILENAME_MAX);
data/ogmrip-1.0.1/avibox/avibox.c:645:9:  [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).
    i = strlen (basename);
data/ogmrip-1.0.1/avibox/avilib.c:1553:27:  [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).
   real_id_len = id_len = strlen(id_str)+1;
data/ogmrip-1.0.1/avibox/avimisc.c:56:23:  [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).
               fps, ((strlen(codec)==0)? "RGB": codec), frames,
data/ogmrip-1.0.1/avibox/platform.c:51:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, buf + r, count - r);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:100:9:  [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 (filename, "/VIDEO_TS/VIDEO_TS.IFO", FILENAME_MAX);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:106:9:  [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 (filename, "/VIDEO_TS/VIDEO_TS.BUP", FILENAME_MAX);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:112:9:  [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 (filename, "/VIDEO_TS/VIDEO_TS.VOB", FILENAME_MAX);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:193:9:  [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).
  len = strlen (dir);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:235:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (path, path1, FILENAME_MAX);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:236:9:  [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).
  len = strlen(path);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:250:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat (path, "/", FILENAME_MAX - len - 1);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:251:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat (path, path1, FILENAME_MAX - len - 2);
data/ogmrip-1.0.1/dvdcpy/dvdcpy.c:252:14:  [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).
      len += strlen (path1) + 1;
data/ogmrip-1.0.1/libogmdvd/ogmdvd-device.c:73:52:  [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).
  rdevnode = g_strdup_printf ("/dev/r%s", device + strlen ("/dev/"));
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:171: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 (filename, "/VIDEO_TS/VIDEO_TS.IFO", FILENAME_MAX);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:202: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 (filename, "/VIDEO_TS/VIDEO_TS.BUP", FILENAME_MAX);
data/ogmrip-1.0.1/libogmdvd/ogmdvd-disc.c:233: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 (filename, "/VIDEO_TS/VIDEO_TS.VOB", FILENAME_MAX);
data/ogmrip-1.0.1/libogmjob/ogmjob-exec.c:239:13:  [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 (strlen (vline[i]) > 0)
data/ogmrip-1.0.1/libogmjob/ogmjob-log.c:117:11:  [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).
    len = strlen (str);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:59:12:  [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).
  dirlen = strlen (dir);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:60:12:  [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).
  keylen = strlen (key);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:269:9:  [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).
  len = strlen (base_section);
data/ogmrip-1.0.1/libogmrip-gtk/ogmrip-gconf-settings.c:407: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).
        entry->key + strlen (notification->section) + 1, &value, notification->data);
data/ogmrip-1.0.1/libogmrip/ogmrip-file.c:563:11:  [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 (strlen (lines[i] + 16) == 4)
data/ogmrip-1.0.1/libogmrip/ogmrip-file.c:962:37:  [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).
    basename = g_strndup (filename, strlen (filename) - 4);
data/ogmrip-1.0.1/libogmrip/ogmrip-fs.c:677:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (name, filename, dot - filename + 1);
data/ogmrip-1.0.1/libogmrip/ogmrip-mp4.c:533:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (filename, name, dot - name);
data/ogmrip-1.0.1/libogmrip/ogmrip-srt.c:435:37:  [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 (g_pattern_match (pspec, strlen (name), name, NULL))
data/ogmrip-1.0.1/libogmrip/ogmrip-srt.c:515:35:  [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 (g_pattern_match (pspec, strlen (name), name, NULL))
data/ogmrip-1.0.1/libogmrip/ogmrip-vobsub.c:184:15:  [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).
        len = strlen (FORCED_SUBS_LINE);
data/ogmrip-1.0.1/libogmrip/ogmrip-vobsub.c:189:15:  [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).
        len = strlen (vline[i]);
data/ogmrip-1.0.1/src/ogmrip-audio-options.c:247: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).
  if (!label || strlen (label) == 0)
data/ogmrip-1.0.1/src/ogmrip-main.c:688:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (basename, label, FILENAME_MAX);
data/ogmrip-1.0.1/src/ogmrip-main.c:707:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (basename, OGMRIP_DEFAULT_FILE_NAME, FILENAME_MAX);
data/ogmrip-1.0.1/src/ogmrip-options-dialog.c:1019:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  gboolean equal;
data/ogmrip-1.0.1/src/ogmrip-options-dialog.c:1025:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (equal && encoding && dialog->priv->encoding)
data/ogmrip-1.0.1/src/ogmrip-options-dialog.c:1046:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (!equal || force)
data/ogmrip-1.0.1/src/ogmrip-pref-dialog.c:85: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).
    if (locale && strlen (locale) > 2)
data/ogmrip-1.0.1/src/ogmrip-spell-dialog.c:296:9:  [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).
  len = strlen (word);
data/ogmrip-1.0.1/src/ogmrip-subp-options.c:249: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).
  if (!label || strlen (label) == 0)
data/ogmrip-1.0.1/subrip/subp2pgm.c:545:7:  [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 (strlen (output) > FILENAME_MAX)
data/ogmrip-1.0.1/subrip/subptools.c:609:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read (fd, buf + bytes_read, stat_buf.st_size - bytes_read);
data/ogmrip-1.0.1/subrip/subptools.c:781:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (input_file, optarg, FILENAME_MAX);
data/ogmrip-1.0.1/subrip/subptools.c:784:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (output_file, optarg, FILENAME_MAX);
data/ogmrip-1.0.1/subrip/subptools.c:798:7:  [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 (strlen (input_file) > 0)
data/ogmrip-1.0.1/subrip/subptools.c:819:7:  [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 (strlen (output_file) > 0)
data/ogmrip-1.0.1/subrip/subptools.c:910:7:  [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 (strlen (output_file) > 0)
data/ogmrip-1.0.1/subrip/vobsub.c:96:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(rar_filename, filename, l);
data/ogmrip-1.0.1/subrip/vobsub.c:99:35:  [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).
            rar_filename = malloc(strlen(filename) + 5);
data/ogmrip-1.0.1/subrip/vobsub.c:125: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 demanded_ext_len = strlen (demanded_ext);
data/ogmrip-1.0.1/subrip/vobsub.c:127:36:  [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).
                        name_len = strlen (lp->item.Name);
data/ogmrip-1.0.1/subrip/vobsub.c:209:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return getc(stream->file);
data/ogmrip-1.0.1/subrip/vobsub.c:241:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define rar_getc        getc
data/ogmrip-1.0.1/subrip/vobsub.c:901: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).
        } else if (memcmp(block, ifo_magic, strlen(ifo_magic) + 1))
data/ogmrip-1.0.1/subrip/vobsub.c:966: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).
        buf = malloc(strlen(name) + 5);
data/ogmrip-1.0.1/subrip/vobsub.c:1134:20:  [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).
    while (lang && strlen((char *) lang) >= 2) {
data/ogmrip-1.0.1/subrip/vobsub.c:1297:23:  [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).
    filename = malloc(strlen(basename) + 5);

ANALYSIS SUMMARY:

Hits = 268
Lines analyzed = 71675 in approximately 1.52 seconds (47102 lines/second)
Physical Source Lines of Code (SLOC) = 47420
Hits@level = [0] 433 [1]  59 [2] 162 [3]  24 [4]  23 [5]   0
Hits@level+ = [0+] 701 [1+] 268 [2+] 209 [3+]  47 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 14.7828 [1+] 5.65162 [2+] 4.40742 [3+] 0.991143 [4+] 0.485027 [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.