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/gmerlin-1.2.0~dfsg+1/lib/transcoder.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/thumbnail.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/socket.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/chapterlist.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/streaminfo.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/recorder_audio.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/album.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_thread.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/formats.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/fileformat.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/remote.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/textview.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/treewindow.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/presetmenu.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/driveselect.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/treewidget.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_dialog.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/multiinfo.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_color.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/fileentry.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_position.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/plugininfo.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/chapterdialog.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/button.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/plugin_single.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwindow.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_time.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_checkbutton.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/textwindow.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/logwindow.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_string.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/auth.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/fileselect.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/pluginmenu.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_button.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/infowindow.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/aboutwindow.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/gtk_dialog.h
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumentry.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/gtkutils.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_font.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/urllink.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/message.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/urlselect.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/question.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_slider.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_file.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/display.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/vumeter.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_multi_list.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/plugin_multi.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/slider.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_multi_menu.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_stringlist.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_spinbutton.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/scrolltext.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_device.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/device.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/ocr.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_ov.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/chapterlist_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/playercmd.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/metadata_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/converters.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/filters.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/cfg_registry.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_audio.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/parameter.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_subtitle.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/bglv.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/utf8.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/osd.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/mediafiledevice.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/ov.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/bgladspa.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/cfg_item.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/charset.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/pluginfuncs.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/serialize.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/log.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_oa.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/transcoder_pp.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_time.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/transcoder_track_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/visualize_slave.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/threadpool.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/language_table.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/preset_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/translation.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/bggavl.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/textrenderer.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/accelerator.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/bgfrei0r.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/encoder.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/icon.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_event.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_window.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_video.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_gl.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/glvideo.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/xvideo.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/overlay.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/shm.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/grab.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/screensaver.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/x11/ximage.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/ovl2text.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/preset.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/tree_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/edl.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/edldec.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/tree.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/metadata.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/bgxml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/recorder.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/cfg_section.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/urilist.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_loop.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/subprocess.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/hexdump.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_video.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/md5.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/player_input.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/uthread_sem.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/visualize.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c
Examining data/gmerlin-1.2.0~dfsg+1/lib/transcoder_track.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/main.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/remote.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/skin.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/display.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/playerwindow.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/cfgdialog.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/mainmenu.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/display.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/playerwindow.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/player/player_remote.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/cmdlinerecorder/gmerlin-record.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/recorder/recorder_window.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/recorder/recorder_window.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/recorder/gmerlin_recorder.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/main.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_remote.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/trackdialog.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/tracklist.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/gmerlin_transcoder_remote.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/ppwidget.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/trackdialog.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/ppwidget.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/tracklist.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/visualizer/gmerlin_visualizer.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/cmdlineplayer/gmerlin_play.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/card.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/main.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/gui.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/g_card.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/alsamixer.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/mixer.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/g_control.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/g_mixer.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/thumbnailer/gmerlin-video-thumbnailer.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd_remote.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd_remote.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/keys.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/keys_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd_daemon.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd_config.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/plugincfg/gmerlin_plugincfg.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/dir.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/album.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/song.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/file.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/nmjedit.h
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/nmjedit.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/create.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/bgalbum.c
Examining data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/gmerlin-nmjedit.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/thumbnail.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/v4ltest.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_visualize.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/dump_plugins.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/fvtest.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_vpsnr.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_psnr.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/insertchannel.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/album2pls.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/ocrtest.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/album2m3u.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/cfgtest.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/audioplayer1.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/playtree.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/auth.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/imgconvert.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/message.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_ssim.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/extractchannel.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/question.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/server.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/vumeter.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_imgdiff.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/msgtest.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/ladspa.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/chapter.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/textrenderer.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/client.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/v4ldump.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/visualization.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_vanalyze.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/scrolltext.c
Examining data/gmerlin-1.2.0~dfsg+1/tests/videoplayer1.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/audiofilters/fa_sampleformat.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/audiofilters/fa_volume.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/edl/i_edl.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/esd/oa_esd.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/esd/i_esd.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/pulseaudio/pulseaudio_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/pulseaudio/i_pulse.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/pulseaudio/oa_pulse.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/pulseaudio/pulseaudio_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/oss/oss_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/oss/i_oss.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/oss/oa_oss.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/oss/oss_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/subwriters/e_subtext.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/alsa/alsa_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/alsa/alsa_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/alsa/i_alsa.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/alsa/oa_alsa.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_tga.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/iw_pnm.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/iw_bmp.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/iw_tga.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jpeg/ir_jpeg.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jpeg/exif.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jpeg/exif.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jpeg/iw_jpeg.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_tlp.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/colormatrix.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_colormatrix_rgb.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_pixelformat.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_transform.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_zoom.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/deinterlace.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_flip.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_cropscale.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/bgyadif.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/bgyadif.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_decimate.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_textlogo.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_tcdisplay.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_blur.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_deinterlace.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_swapfields.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_invert_rgb.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/colormatrix.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_bitshift.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_interlace.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_framerate.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_colorbalance.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_equalizer.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_oldcolor.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_colormatrix_yuv.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_tctweak.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_cdrdao.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_vcdimager.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/cdrdao_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/cdrdao_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/mikmod/i_mikmod.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l/pwc.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l/i_v4l.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l/pwc.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l/pwc-ioctl.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jack/jack_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jack/oa_jack.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jack/i_jack.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/jack/jack_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/lqt/lqtgavl.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/lqt/lqtgavl.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/lqt/i_lqt.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/lqt/lqt_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/lqt/lqt_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/lqt/e_lqt.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/visualization/vis_scope.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/png/pngwriter.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/png/iw_png.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/png/ir_png.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/png/pngwriter.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/png/e_spumux.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio_xml.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/i_cdaudio.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cddb.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/musicbrainz.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdparanoia.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdtext.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/x11/i_x11.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/x11/ov_x11.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/tiff/ir_tiff.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/tiff/iw_tiff.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/v4l2_common.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/convert.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/v4l2_common.h
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/i_v4l2.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/convert.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/ov_v4l2.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/gavl/iw_gavl.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/gavl/ir_gavl.c
Examining data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c
Examining data/gmerlin-1.2.0~dfsg+1/utils/cpuinfo.c
Examining data/gmerlin-1.2.0~dfsg+1/include/recorder_private.h
Examining data/gmerlin-1.2.0~dfsg+1/include/treeprivate.h
Examining data/gmerlin-1.2.0~dfsg+1/include/bgladspa.h
Examining data/gmerlin-1.2.0~dfsg+1/include/frei0r.h
Examining data/gmerlin-1.2.0~dfsg+1/include/md5.h
Examining data/gmerlin-1.2.0~dfsg+1/include/language_table.h
Examining data/gmerlin-1.2.0~dfsg+1/include/bgfreetype.h
Examining data/gmerlin-1.2.0~dfsg+1/include/pluginreg_priv.h
Examining data/gmerlin-1.2.0~dfsg+1/include/bgfrei0r.h
Examining data/gmerlin-1.2.0~dfsg+1/include/ovl2text.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/button.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/urlselect.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/display.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/auth.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/aboutwindow.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/audio.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/slider.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/gtkutils.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/plugin.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/presetmenu.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/question.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/fileentry.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/tree.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/message.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/infowindow.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/fileselect.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/scrolltext.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/textview.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/urllink.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/chapterdialog.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/logwindow.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/albumentry.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/multiinfo.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gui_gtk/driveselect.h
Examining data/gmerlin-1.2.0~dfsg+1/include/player_thread.h
Examining data/gmerlin-1.2.0~dfsg+1/include/registry_priv.h
Examining data/gmerlin-1.2.0~dfsg+1/include/x11/x11.h
Examining data/gmerlin-1.2.0~dfsg+1/include/x11/x11_window_private.h
Examining data/gmerlin-1.2.0~dfsg+1/include/ladspa.h
Examining data/gmerlin-1.2.0~dfsg+1/include/playerprivate.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/charset.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/accelerator.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/pluginfuncs.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/ov.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/xmlutils.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/subprocess.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/cmdline.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/encoder.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/player.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/transcoder_track.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/plugin.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/bg_version.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/transcoder.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/visualize.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/remote.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/streaminfo.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/fileformat.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/singlepic.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/cfg_registry.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/recorder.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/transcodermsg.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/converters.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/tree.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/textrenderer.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/translation.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/filters.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/preset.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/ocr.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/cfg_dialog.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/serialize.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/mediafiledevice.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/lcdproc.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/log.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/edl.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/bggavl.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/bgsocket.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/keycodes.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/playermsg.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/pluginregistry.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/msgqueue.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/osd.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/parameter.h
Examining data/gmerlin-1.2.0~dfsg+1/include/gmerlin/bg_sem.h
Examining data/gmerlin-1.2.0~dfsg+1/include/bglv.h
Examining data/gmerlin-1.2.0~dfsg+1/include/float_cast.h
Examining data/gmerlin-1.2.0~dfsg+1/include/visualize_priv.h

FINAL RESULTS:

data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:660:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod(filename, S_IRUSR | S_IWUSR);
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/create.c:143:7:  [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("nmj_database", R_OK | W_OK))
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/song.c:403:7:  [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(ret, R_OK | W_OK))
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c:603:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if(system("gmerlin &"))
data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:76:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dir_filename, "%s/%s", directory, entry->d_name);
data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:89:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(skin_filename, "%s/skin.xml", dir_filename);
data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:313:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if(system(command))
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/gmerlin_transcoder_remote.c:212:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if(system("gmerlin_transcoder &"))
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/log.h:76:75:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                        const char * format, ...) __attribute__ ((format (printf, 3, 4)));
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/log.h:114:73:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      const char * format, ...) __attribute__ ((format (printf, 4, 5)));
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h:265:68:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
char * bg_sprintf(const char * format,...) __attribute__ ((format (printf, 1, 2)));
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h:428:67:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void bg_dprintf(const char * format, ...) __attribute__ ((format (printf, 1, 2)));
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h:435:80:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void bg_diprintf(int indent, const char * format, ...) __attribute__ ((format (printf, 2, 3)));
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h:469:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define bg_debug(f,...) fprintf(stderr, f, __VA_ARGS__)
data/gmerlin-1.2.0~dfsg+1/lib/album.c:781:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "%s/%s", a->watch_dir, dent.d.d_name);
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:113: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 the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf(tmp_string, "%" PRId64, &ret->duration);
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:103: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 the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf(tmp_string, "%" PRId64, &item->value.val_time);
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:275:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buffer, "%" PRId64, item->value.val_time);
data/gmerlin-1.2.0~dfsg+1/lib/chapterlist_xml.c:88: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 the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf(tmp_string, "%" PRId64, &time);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:221:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(TR("Copyright (C) 2001-2007 Members of the gmerlin project\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:222:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(TR("This is free software.  You may redistribute copies of it under the terms of\n\
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:420:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(TR(".SH ENVIRONMENT VARIABLES\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:435:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(TR(".SH FILES\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:474:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(TR("@item Environment variables\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:488:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(TR("@item Files\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:701:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(out, TR("Supported options:\n\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:790:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("<number> ("));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:796:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("default: %d)"), parameters[i].val_default.val_i);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:804:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("<number> ("));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:810:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          pos += fprintf(out, tmp_string,
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:817:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, tmp_string,
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:831:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("<string>"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:844:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("<string>"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:851:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("<string>"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:861:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("Supported strings: "));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:890:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("<r>,<g>,<b> (default: %.3f,%.3f,%.3f)"),
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:901:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("<r>, <g> and <b> are in the range 0.0..1.0"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:908:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("<r>,<g>,<b>,<a> (default: %.3f,%.3f,%.3f,%.3f)"),
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:920:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("<r>, <g>, <b> and <a> are in the range 0.0..1.0"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:936:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("Supported options: "));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:958:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          pos += fprintf(out, TR("<None>"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:964:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("Default: %s"), parameters[i].val_default.val_str);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:982:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        pos += fprintf(out, TR("Supported options: "));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:1012:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("default: %s)"), time_string);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:1020:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("Seconds can be fractional (i.e. with decimal point)\n"));
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:1023:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("<x>,<y> (default: %.3f,%.3f)"),
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:1033:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(out, TR("<r>, <g> and <b> are in the range 0.0..1.0"));
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:102:11:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
          sscanf(tmp_string, "%"PRId64, &seg->src_time);
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:108:11:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
          sscanf(tmp_string, "%"PRId64, &seg->dst_time);
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:114:11:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
          sscanf(tmp_string, "%"PRId64, &seg->dst_duration);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_device.c:154:5:  [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(w->value.val_str, strings[selected]);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_device.c:167:5:  [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(w->value.val_str, strings[index]);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_dialog.c:365:9:  [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(val.val_str, s->widgets[i].value.val_str);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_file.c:66: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(w->value.val_str, filename);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_string.c:66: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(w->value.val_str, str);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/display.c:292:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(buf, "%"PRId64, time);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/plugininfo.c:225:11:  [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(ret, TR(flag_names[j].name));
data/gmerlin-1.2.0~dfsg+1/lib/log.c:128:9:  [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.
  len = vsnprintf(NULL, 0, format, argp);
data/gmerlin-1.2.0~dfsg+1/lib/log.c:130:3:  [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(msg_string, len+1, format, argp);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:428:15:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
              sscanf(tmp_string, "%" PRId64, &ret[index].val_default.val_time);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:469:15:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
              sscanf(tmp_string, "%" PRId64 " %" PRId64,
data/gmerlin-1.2.0~dfsg+1/lib/player_input.c:349:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tmp_string, "%" PRId64, p->audio_stream.samples_read);
data/gmerlin-1.2.0~dfsg+1/lib/player_input.c:354:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tmp_string, "%" PRId64, p->video_stream.frames_read);
data/gmerlin-1.2.0~dfsg+1/lib/player_oa.c:120:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(tmp_string, "%" PRId64, frame->timestamp);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:599: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(buffer, flag_name);
data/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c:710:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "%s/%s", directory, entry->d_name);
data/gmerlin-1.2.0~dfsg+1/lib/preset.c:87:8:  [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.
       access(filename, R_OK | W_OK))
data/gmerlin-1.2.0~dfsg+1/lib/preset.c:202:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(!access(directory, R_OK|W_OK|X_OK))
data/gmerlin-1.2.0~dfsg+1/lib/preset.c:212:7:  [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(directory, R_OK|W_OK|X_OK))
data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c:49:21:  [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(!overwrite && !access(filename, R_OK))
data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c:555:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(buf, mask, rec->vs.snapshot_counter);
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:57:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(testpath, "%s/.%s/%s/%s", home_dir,
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:67:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(testpath, "%s/%s/%s", DATA_DIR, directory, file);
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:126:7:  [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(dir, R_OK|W_OK|X_OK))
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:150:8:  [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(subpath, R_OK) && (errno == ENOENT))
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:184:6:  [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(filename, R_OK))
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:245:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(inp->filename_buffer, inp->template, inp->frame_end);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:246:8:  [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(inp->filename_buffer, R_OK))
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:270:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(inp->filename_buffer, inp->template, inp->current_frame);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:311:6:  [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(filename, R_OK))
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:457:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(inp->filename_buffer, inp->template, inp->current_frame);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:487:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(inp->filename_buffer, inp->template, inp->current_frame);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:924:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(e->filename_buffer, e->mask, e->frame_counter);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:1023:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(e->filename_buffer, e->mask, e->frame_counter);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:1058:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(e->filename_buffer, e->mask, i);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:74: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(ret, path);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:106: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(ret, new_string);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:146:9:  [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.
  len = vsnprintf(NULL, 0, format, argp);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:148:3:  [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(ret, len+1, format, argp);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:194:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(filename, template, count);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:204:3:  [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(old_string, tail);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:553:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, argp);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:565:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, argp);
data/gmerlin-1.2.0~dfsg+1/lib/subprocess.c:152:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execl("/bin/sh", "sh", "-c", command, NULL);
data/gmerlin-1.2.0~dfsg+1/lib/thumbnail.c:159:6:  [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(thumb_filename_normal, R_OK)) /* Thumbnail file not present */
data/gmerlin-1.2.0~dfsg+1/lib/thumbnail.c:162:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(!access(thumb_filename_fail, R_OK))
data/gmerlin-1.2.0~dfsg+1/lib/thumbnail.c:216:7:  [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(thumb_filename_normal, R_OK)) /* Thumbnail generation succeeded */
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:3391:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(tmp_string, "%" PRId64, t->video_streams[i].frames_written);
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:3402:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(tmp_string, "%" PRId64, t->audio_streams[i].samples_read);
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1363:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "%s/%s", directory, dent.d.d_name);
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1477:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(filename, "%s/%s", t->com.directory, dent.d.d_name);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/musicbrainz.c:136:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(temp, data);
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:245:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(software_string, "%s-%s", PACKAGE, VERSION);
data/gmerlin-1.2.0~dfsg+1/apps/cmdlinerecorder/gmerlin-record.c:343: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/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin.c:364:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  remote_env = getenv(PLAYER_REMOTE_ENV);
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c:586:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv(PLAYER_REMOTE_ENV);
data/gmerlin-1.2.0~dfsg+1/apps/player/main.c:85: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/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:133:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:285:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/apps/recorder/gmerlin_recorder.c:45: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/gmerlin-1.2.0~dfsg+1/apps/transcoder/gmerlin_transcoder_remote.c:196:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv(TRANSCODER_REMOTE_ENV);
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/main.c:88: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/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.c:1097:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv(TRANSCODER_REMOTE_ENV);
data/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c:980:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv("GMERLIN_PLUGIN_PATH");
data/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c:992:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv("LADSPA_PATH");
data/gmerlin-1.2.0~dfsg+1/lib/preset.c:196:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/lib/preset.c:286:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:54:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:89:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:191:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  path = getenv("PATH");
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:607:3:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  realpath(name, ret);
data/gmerlin-1.2.0~dfsg+1/lib/thumbnail.c:140:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  home_dir = getenv("HOME");
data/gmerlin-1.2.0~dfsg+1/lib/x11/screensaver.c:64:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv("GNOME_DESKTOP_SESSION_ID");
data/gmerlin-1.2.0~dfsg+1/lib/x11/screensaver.c:72:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv("KDE_FULL_SESSION");
data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_visualize.c:435: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/gmerlin-1.2.0~dfsg+1/apps/alsamixer/card.c:83: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 name[32];
data/gmerlin-1.2.0~dfsg+1/apps/alsamixer/card.c:111: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(name, "hw:%d", index);
data/gmerlin-1.2.0~dfsg+1/apps/cmdlineplayer/gmerlin_play.c:362: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).
  val = atoi((*_argv)[arg]);  
data/gmerlin-1.2.0~dfsg+1/apps/cmdlineplayer/gmerlin_play.c:487: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).
      if(current_track+1 == atoi(track_spec_ptr+1))
data/gmerlin-1.2.0~dfsg+1/apps/cmdlineplayer/gmerlin_play.c:623:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd_config.c:302: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).
    kbd->scancode = atoi(gtk_entry_get_text(GTK_ENTRY(dlg->scancode)));
data/gmerlin-1.2.0~dfsg+1/apps/kbd/keys_xml.c:89: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).
          ret[*len].scancode = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/album.c:201:7:  [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 time_string[BG_NMJ_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/bgalbum.c:103: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 time_str[BG_NMJ_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/gmerlin-nmjedit.c:110: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).
  val = atoi((*_argv)[arg]);  
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/nmjedit.c:199: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[2];
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:392:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(d->foreground_normal, d->skin->foreground_normal,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:394: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(d->foreground_error, d->skin->foreground_error,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:396: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(d->background, d->skin->background,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:402: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(d->foreground_normal, d->foreground_normal_cfg,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:404: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(d->foreground_error, d->foreground_error_cfg,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:406: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(d->background, d->background_cfg,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:414: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(d->foreground_error_cfg, v->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:416: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(d->foreground_normal_cfg, v->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:418: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(d->background_cfg, v->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:786: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).
      s->x = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:788: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).
      s->y = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:830: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(d->foreground_normal, d->skin->foreground_normal,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:832: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(d->foreground_error, d->skin->foreground_error,
data/gmerlin-1.2.0~dfsg+1/apps/player/display.c:834: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(d->background, d->skin->background,
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin.c:366:19:  [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).
    remote_port = atoi(remote_env);
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c:376:13:  [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).
    index = atoi(argv[arg]);
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c:507: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).
  port = atoi((*argv)[arg]);
data/gmerlin-1.2.0~dfsg+1/apps/player/gmerlin_remote.c:588:12:  [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).
    port = atoi(env);
data/gmerlin-1.2.0~dfsg+1/apps/player/mainmenu.c:932: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 time_string[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/apps/player/remote.c:32: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 * locations[2];
data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:62: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 dir_filename[FILENAME_MAX];
data/gmerlin-1.2.0~dfsg+1/apps/player/skinbrowser.c:63: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 skin_filename[FILENAME_MAX];
data/gmerlin-1.2.0~dfsg+1/apps/thumbnailer/gmerlin-video-thumbnailer.c:49:16:  [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).
  thumb_size = atoi((*_argv)[arg]);
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/gmerlin_transcoder_remote.c:135: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).
  port = atoi((*argv)[arg]);
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/gmerlin_transcoder_remote.c:198:12:  [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).
    port = atoi(env);
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/tracklist.c:414: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 string_buffer[GAVL_TIME_STRING_LEN + 32];
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/tracklist.c:415: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 string_buffer1[GAVL_TIME_STRING_LEN + 32];
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/tracklist.c:442: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(string_buffer, "%d.", i+1);
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.c:258:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(win->fg_color, val->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.c:262: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(win->fg_color_e, val->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.c:266: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(win->bg_color, val->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/transcoder_window.c:1099:12:  [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).
    port = atoi(env);
data/gmerlin-1.2.0~dfsg+1/apps/visualizer/gmerlin_visualizer.c:330:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!v->ra_plugin->open(v->ra_handle->priv, &v->audio_format, NULL))
data/gmerlin-1.2.0~dfsg+1/apps/visualizer/gmerlin_visualizer.c:343:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if(v->ra_plugin->open(v->ra_handle->priv, &v->audio_format, NULL))
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/plugin.h:481:9:  [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).
  int (*open)(void * priv, const char * arg);
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/plugin.h:846:9:  [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).
  int (*open)(void * priv, gavl_audio_format_t* format);
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/plugin.h:965:9:  [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).
  int (*open)(void * priv, gavl_audio_format_t * audio_format,
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/plugin.h:1206: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).
  int  (*open)(void * priv, gavl_video_format_t * format, int keep_aspect);
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/plugin.h:1430:9:  [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).
  int (*open)(void * data, const char * filename,
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h:255:33:  [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.
void bg_get_filename_hash(const char * gml, char ret[33]);
data/gmerlin-1.2.0~dfsg+1/include/gmerlin/utils.h:255:45:  [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.
void bg_get_filename_hash(const char * gml, char ret[33]);
data/gmerlin-1.2.0~dfsg+1/include/x11/x11_window_private.h:120:9:  [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).
  int (*open)(driver_data_t* data);
data/gmerlin-1.2.0~dfsg+1/lib/accelerator.c:68: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(m->accels + m->num, tail, num_append * sizeof(*m->accels));
data/gmerlin-1.2.0~dfsg+1/lib/album.c:502:9:  [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).
  out = fopen(name, "w");
data/gmerlin-1.2.0~dfsg+1/lib/album.c:548:9:  [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).
  out = fopen(name, "w");
data/gmerlin-1.2.0~dfsg+1/lib/album.c:599:15:  [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(!plugin->open(a->handle->priv, a->device))
data/gmerlin-1.2.0~dfsg+1/lib/album.c:758: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/gmerlin-1.2.0~dfsg+1/lib/album.c:766: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 b[NAME_MAX]; /* Make sure there is enough memory */
data/gmerlin-1.2.0~dfsg+1/lib/album.c:848:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!(testfile = fopen(tmp_filename,"r")))
data/gmerlin-1.2.0~dfsg+1/lib/album.c:868:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!(testfile = fopen(tmp_filename,"r")))
data/gmerlin-1.2.0~dfsg+1/lib/album.c:887:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!plugin->open(a->handle->priv, a->device))
data/gmerlin-1.2.0~dfsg+1/lib/album.c:2503: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 time_string[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/album.c:2713: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 * substrings_s[2];
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:63:8:  [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).
    if(atoi(tmp_string))
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:69:8:  [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).
    if(atoi(tmp_string))
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:75:8:  [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).
    if(atoi(tmp_string))
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:598: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(&o->buffer[o->bytes_written], buffer, len);
data/gmerlin-1.2.0~dfsg+1/lib/bgxml.c:53: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(&o->buffer[o->bytes_written], buffer, len);
data/gmerlin-1.2.0~dfsg+1/lib/cfg_section.c:309: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 cpy_str[2];
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:246: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[1024];
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:270:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%d", item->value.val_i);
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:280:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%.15e", item->value.val_f);
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:301:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%f %f %f %f",
data/gmerlin-1.2.0~dfsg+1/lib/cfg_xml.c:310:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%f %f",
data/gmerlin-1.2.0~dfsg+1/lib/chapterlist_xml.c:77:22:  [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).
    ret->timescale = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/charset.c:139: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(tmp_string, str, len);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:369:7:  [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 date_str[512];
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:686: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 time_string[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/edl.c:94: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(ret, src, len * sizeof(*ret));
data/gmerlin-1.2.0~dfsg+1/lib/edl.c:112: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(ret, src, len * sizeof(*ret));
data/gmerlin-1.2.0~dfsg+1/lib/edl.c:129: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(ret, src, len * sizeof(*ret));
data/gmerlin-1.2.0~dfsg+1/lib/edl.c:159: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(ret, e, sizeof(*ret));
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:70:26:  [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).
        seg->timescale = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:84:24:  [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).
          seg->track = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:96:25:  [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).
          seg->stream = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/edl_xml.c:157:24:  [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->timescale = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/encoder.c:397:15:  [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(!plugin->open(ret->priv, filename_base, enc->metadata, enc->chapter_list))
data/gmerlin-1.2.0~dfsg+1/lib/fileformat.c:68: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/gmerlin-1.2.0~dfsg+1/lib/fileformat.c:82: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/gmerlin-1.2.0~dfsg+1/lib/filters.c:256: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).
    i = atoi(pos);
data/gmerlin-1.2.0~dfsg+1/lib/filters.c:688: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).
    i = atoi(pos);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumentry.c:42: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 duration[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:732: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 string_buffer[GAVL_TIME_STRING_LEN + 32];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:763: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(string_buffer, "%d.", bg_album_get_index(w->album, entry) + 1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:817: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 string_buffer[32];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:825: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(string_buffer, "%d.", i + 1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:1222: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, "w");
data/gmerlin-1.2.0~dfsg+1/lib/gtk/button.c:331: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).
      s->x = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/button.c:333: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).
      s->y = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_color.c:233: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(&priv->last_color, &priv->color, sizeof(priv->color));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/chapterdialog.c:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char time_string[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/display.c:263: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(d->foreground_color, foreground, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/display.c:264: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(d->background_color, background, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/display.c:277: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[MAX_CHARS];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/driveselect.c:100: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 * drives[2];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/infowindow.c:222:13:  [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).
    index = atoi(name+4);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/infowindow.c:264:13:  [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).
    index = atoi(name+4);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/plugininfo.c:227: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(ret, ", ");
data/gmerlin-1.2.0~dfsg+1/lib/gtk/scrolltext.c:371: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(d->foreground_color, foreground_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/scrolltext.c:372: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(d->background_color, background_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/scrolltext.c:379: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(d->foreground_color, fg_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/scrolltext.c:380: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(d->background_color, bg_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/slider.c:751: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).
      s->x = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/slider.c:753: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).
      s->y = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/urlselect.c:63: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 * urls[2];
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:257:18:  [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).
      l->width = atoi(answer_args[i]);
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:262:19:  [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).
      l->height = atoi(answer_args[i]);
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:321: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[16]; /* MUST be larger than GAVL_TIME_STRING_LEN */
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:66:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:120: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 (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:135: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[BLOCKSIZE + 72];
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:224: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 (&((char *) ctx->buffer)[left_over], buffer, add);
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:233: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 (ctx->buffer,
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:251:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:269: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 (&((char *) ctx->buffer)[left_over], buffer, len);
data/gmerlin-1.2.0~dfsg+1/lib/md5.c:275: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 (ctx->buffer, &ctx->buffer[16], left_over);
data/gmerlin-1.2.0~dfsg+1/lib/metadata.c:267:12:  [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(pos1);
data/gmerlin-1.2.0~dfsg+1/lib/metadata.c:318: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 track_format[5];
data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c:159: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(dst, value, length);
data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c:332: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(*val, ret, len);
data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c:381: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(data, val, len);
data/gmerlin-1.2.0~dfsg+1/lib/ocr.c:66: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 lang[4];
data/gmerlin-1.2.0~dfsg+1/lib/osd.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 _buf[FLOAT_BAR_SIZE_TOTAL+3];
data/gmerlin-1.2.0~dfsg+1/lib/ov.c:150:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ret = ov->plugin->open(ov->priv, format, keep_aspect);
data/gmerlin-1.2.0~dfsg+1/lib/ovl2text.c:74:40:  [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(!e->enc_plugin || !e->enc_plugin->open(e->enc_handle->priv, filename,
data/gmerlin-1.2.0~dfsg+1/lib/parameter.c:58: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(dst->val_color,
data/gmerlin-1.2.0~dfsg+1/lib/parameter.c:64: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(dst->val_color,
data/gmerlin-1.2.0~dfsg+1/lib/parameter.c:69: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(dst->val_pos,
data/gmerlin-1.2.0~dfsg+1/lib/parameter.c:243: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(dst->val_default.val_color,
data/gmerlin-1.2.0~dfsg+1/lib/parameter.c:252: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(dst->val_default.val_color,
data/gmerlin-1.2.0~dfsg+1/lib/parameter.c:260: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(dst->val_default.val_pos,
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:186:20:  [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).
  num_parameters = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:266:23:  [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).
          multi_num = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:295:23:  [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).
          multi_num = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:325:23:  [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).
          multi_num = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:354:23:  [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).
          multi_num = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/parameter_xml.c:370: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).
              multi_index = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/player_input.c:335: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 tmp_string[128];
data/gmerlin-1.2.0~dfsg+1/lib/player_oa.c:113: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 tmp_string[128];
data/gmerlin-1.2.0~dfsg+1/lib/player_oa.c:249: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).
    ctx->plugin->open(ctx->priv, &ctx->output_format);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:339: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).
      ret->max_audio_streams = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:343: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).
      ret->max_video_streams = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:347:40:  [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).
      ret->max_subtitle_text_streams = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:351:43:  [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).
      ret->max_subtitle_overlay_streams = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:404: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[1024];
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:473: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(buffer, "%ld", info->module_time);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:478: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(buffer, "%d", info->priority);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:522:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "%d", info->max_audio_streams);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:527:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "%d", info->max_video_streams);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:532:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "%d", info->max_subtitle_text_streams);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:537:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "%d", info->max_subtitle_overlay_streams);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:572:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "%d", info->index);
data/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c:676: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/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c:1936:17:  [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(!plugin->open((*ret)->priv, real_location))
data/gmerlin-1.2.0~dfsg+1/lib/pluginregistry.c:1973:17:  [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(!plugin->open((*ret)->priv, real_location))
data/gmerlin-1.2.0~dfsg+1/lib/preset.c:69: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 b[NAME_MAX]; /* Make sure there is enough memory */
data/gmerlin-1.2.0~dfsg+1/lib/recorder.c:145: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 time_string[512];
data/gmerlin-1.2.0~dfsg+1/lib/recorder.c:728: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(&rec->updated_metadata, &m, sizeof(m));
data/gmerlin-1.2.0~dfsg+1/lib/recorder_audio.c:275:25:  [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(!as->input_plugin->open(as->input_handle->priv, &as->input_format, NULL))
data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c:514: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 mask[16];
data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c:515: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[BUFFER_SIZE];
data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c:815:25:  [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(!vs->input_plugin->open(vs->input_handle->priv, NULL, &vs->input_format))
data/gmerlin-1.2.0~dfsg+1/lib/recorder_video.c:843:25:  [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).
    vs->monitor_plugin->open(vs->monitor_handle->priv, &vs->monitor_format, 1);
data/gmerlin-1.2.0~dfsg+1/lib/remote.c:153: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).
  ret->do_put_msg = atoi(strings[2]);
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:59: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).
    testfile = fopen(testpath, "r");
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:68: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).
  testfile = fopen(testpath, "r");
data/gmerlin-1.2.0~dfsg+1/lib/searchpath.c:103: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).
  testfile = fopen(testpath, "a");
data/gmerlin-1.2.0~dfsg+1/lib/serialize.c:93: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(*val, ret, len);
data/gmerlin-1.2.0~dfsg+1/lib/serialize.c:174: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(data, val, len);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:497: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).
  in = fopen(inp->filename_buffer, "rb");
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:1027:9:  [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).
  out = fopen(e->filename_buffer, "wb");
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:174: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).
      file = fopen(filename, "w");
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:355: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).
        *port = atoi(pos2);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:532:33:  [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.
void bg_get_filename_hash(const char * gml, char ret[33])
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:532:45:  [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.
void bg_get_filename_hash(const char * gml, char ret[33])
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:540: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(ret,
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:618: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/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:647: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, "w");
data/gmerlin-1.2.0~dfsg+1/lib/thumbnail.c:117: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 hash[33];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:191: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 in_language[4];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:192: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 out_language[4];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:319: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 in_language[4];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:320: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 out_language[4];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:503: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 time_str[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:3361: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 tmp_string[128];
data/gmerlin-1.2.0~dfsg+1/lib/transcoder_track_xml.c:475:19:  [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->in_index = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/transcoder_track_xml.c:522:19:  [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->in_index = atoi(tmp_string);
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1307: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/gmerlin-1.2.0~dfsg+1/lib/tree.c:1312: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 b[NAME_MAX]; /* Make sure there is enough memory */
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1318: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 * urls[2];
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1450: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/gmerlin-1.2.0~dfsg+1/lib/tree.c:1456: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 b[NAME_MAX]; /* Make sure there is enough memory */
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1607: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[BUF_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/tree_xml.c:126:8:  [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).
    if(atoi(tmp_string))
data/gmerlin-1.2.0~dfsg+1/lib/tree_xml.c:134:8:  [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).
    if(atoi(tmp_string))
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:80: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(dst, "file://");
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:88:7:  [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(dst, "%%%02X", pos[i]);
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:106: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 hostname[HOSTNAME_MAX_LEN];
data/gmerlin-1.2.0~dfsg+1/lib/utf8.c:118: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(tmp_string, str, len);
data/gmerlin-1.2.0~dfsg+1/lib/utf8.c:179: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(tmp_string, str, len);
data/gmerlin-1.2.0~dfsg+1/lib/visualize_slave.c:739:23:  [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(!v->ov_plugin->open(v->ov_handle->priv, &v->video_format_out, 0))
data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_video.c:227:39:  [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(!w->drivers[min_index].driver->open)
data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_video.c:235:39:  [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(!w->drivers[min_index].driver->open(&w->drivers[min_index]))
data/gmerlin-1.2.0~dfsg+1/lib/x11/x11_window.c:1280: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(win->background_color, val->val_color, 3 * sizeof(float));
data/gmerlin-1.2.0~dfsg+1/plugins/alsa/alsa_common.c:400: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 name[32];
data/gmerlin-1.2.0~dfsg+1/plugins/alsa/alsa_common.c:401: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(name, "hw:%d", card);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:117:55:  [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.
void bg_cdaudio_get_disc_id(bg_cdaudio_index_t * idx, char disc_id[DISCID_SIZE])
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:122: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 temp[9];
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:123: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 digest[20];
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:127: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(temp, "%02X", 1);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:129: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(temp, "%02X", idx->num_tracks);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:134: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(temp, "%08X", idx->tracks[idx->num_tracks-1].last_sector + 151);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:139: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(temp, "%08X", idx->tracks[i].first_sector+150);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:142: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(temp, "%08X", 0);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:150: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(disc_id, base64, size);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.h:80:55:  [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.
void bg_cdaudio_get_disc_id(bg_cdaudio_index_t * idx, char disc_id[DISCID_SIZE]);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdparanoia.c:126: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(f->samples.s_16, samples, 588 * 4);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdparanoia.c:251: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).
      priv->speed = atoi(val->val_str);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/i_cdaudio.c:49: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 disc_id[DISCID_SIZE];
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/musicbrainz.c:42: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 disc_id[DISCID_SIZE];
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/musicbrainz.c:83: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 * args[2];
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/musicbrainz.c:84: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], temp[256], album_name[256], artist[256];
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c:220:2:  [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(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c:231:2:  [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(sha_info->data, buffer, SHA_BLOCKSIZE);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c:236: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(sha_info->data, buffer, count);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c:242:36:  [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.
void bg_cdaudio_sha_final(unsigned char digest[20], SHA_INFO *sha_info)
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c:294:37:  [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.
void bg_cdaudio_sha_stream(unsigned char digest[20], SHA_INFO *sha_info, FILE *fin)
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/sha1.c:308:36:  [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.
void bg_cdaudio_sha_print(unsigned char digest[20])
data/gmerlin-1.2.0~dfsg+1/plugins/esd/i_esd.c:121: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 hostname[128];
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:70: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       b[2];
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:81: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       b[4];
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:222: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 type[2];
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:231:17:  [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).
  p->bmp_file = fopen(filename,"rb");
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:670: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(frame_ptr, buffer_ptr, p->width * 2);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:707: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(frame_ptr, buffer_ptr, p->width * 3);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_bmp.c:735: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(frame_ptr, buffer_ptr, p->width * 4);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:104: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).
  pnm_file = fopen(filename,"rb");
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:158: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).
        p->is_pnm = atoi(ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:188:18:  [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).
      p->width = atoi(ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:201:19:  [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).
      p->height = atoi(ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:215:19:  [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).
      p->maxval = atoi(ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:322:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:394:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:421:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:498:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:506:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:514:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:541:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:549:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/ir_pnm.c:557:16:  [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).
        byte = atoi((char*)p->buffer_ptr);
data/gmerlin-1.2.0~dfsg+1/plugins/image/iw_bmp.c:124: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).
  bmp->bmp_file = fopen(real_filename,"wb");
data/gmerlin-1.2.0~dfsg+1/plugins/image/iw_pnm.c:110:15:  [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).
  p->output = fopen(real_filename,"wb");
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:153:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "rb");
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:178: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(dst, s->ptr, s->len);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:185: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(dst, s->ptr, len);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:366:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(pos, tmp, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:399:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "wb");
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:752: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(buffer, left, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:753: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(left, right, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:754: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(right, buffer, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:800: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(buffer, top, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:801: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(top, bottom, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:802: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(bottom, buffer, bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/image/targa.c:849: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(img->image_data + (pos*bpp), c_bgr, (size_t)bpp);
data/gmerlin-1.2.0~dfsg+1/plugins/jpeg/ir_jpeg.c:108:17:  [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).
  jpeg->input = fopen(filename, "rb");
data/gmerlin-1.2.0~dfsg+1/plugins/jpeg/iw_jpeg.c:110:18:  [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).
  jpeg->output = fopen(real_filename, "wb");
data/gmerlin-1.2.0~dfsg+1/plugins/lqt/e_lqt.c:102: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 language[4];
data/gmerlin-1.2.0~dfsg+1/plugins/lqt/i_lqt.c:146: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 lang[4];
data/gmerlin-1.2.0~dfsg+1/plugins/lqt/lqtgavl.c:880: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(gci->global_header, lci->global_header, gci->global_header_len);
data/gmerlin-1.2.0~dfsg+1/plugins/lqt/lqtgavl.c:921: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(gp->data, lp->data, lp->data_len);
data/gmerlin-1.2.0~dfsg+1/plugins/oss/i_oss.c:199:14:  [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).
  priv->fd = open(priv->device, O_RDONLY, 0);
data/gmerlin-1.2.0~dfsg+1/plugins/oss/oa_oss.c:140:20:  [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).
  priv->fd_front = open(priv->device_front, O_WRONLY, 0);
data/gmerlin-1.2.0~dfsg+1/plugins/oss/oa_oss.c:151:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    priv->fd_rear = open(priv->device_rear, O_WRONLY, 0);
data/gmerlin-1.2.0~dfsg+1/plugins/oss/oa_oss.c:161:27:  [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).
    priv->fd_center_lfe = open(priv->device_center_lfe, O_WRONLY, 0);
data/gmerlin-1.2.0~dfsg+1/plugins/png/e_spumux.c:92:22:  [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).
  spumux->xml_file = fopen(spumux->filename, "w");
data/gmerlin-1.2.0~dfsg+1/plugins/png/ir_png.c:85:15:  [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).
  png->file = fopen(filename, "rb");
data/gmerlin-1.2.0~dfsg+1/plugins/png/pngwriter.c:53:17:  [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).
  png->output = fopen(filename, "wb");
data/gmerlin-1.2.0~dfsg+1/plugins/png/pngwriter.c:219:23:  [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).
      png->bit_mode = atoi(val->val_str);
data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_cdrdao.c:170: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 fourcc[4];
data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_cdrdao.c:195:9:  [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).
  wav = fopen(filename, "r");
data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_cdrdao.c:365:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  outfile = fopen(filename, "w");
data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_vcdimager.c:235:16:  [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).
    position = atoi(start);
data/gmerlin-1.2.0~dfsg+1/plugins/postprocessors/e_pp_vcdimager.c:239:12:  [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).
    size = atoi(start);
data/gmerlin-1.2.0~dfsg+1/plugins/subwriters/e_subtext.c:193:15:  [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).
  e->output = fopen(e->filename, "w");
data/gmerlin-1.2.0~dfsg+1/plugins/tiff/ir_tiff.c:92: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(data, p->buffer + p->buffer_position, bytes_read);
data/gmerlin-1.2.0~dfsg+1/plugins/tiff/ir_tiff.c:152:15:  [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(!(file = fopen(filename,"r")))return 0;
data/gmerlin-1.2.0~dfsg+1/plugins/tiff/ir_tiff.c:179: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(dst, src, width * 3 * 2);
data/gmerlin-1.2.0~dfsg+1/plugins/tiff/ir_tiff.c:219: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(dst, src, width * 4 * 2);
data/gmerlin-1.2.0~dfsg+1/plugins/v4l/i_v4l.c:204:17:  [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((v4l->fd = open(v4l->device, O_RDWR, 0)) < 0)
data/gmerlin-1.2.0~dfsg+1/plugins/v4l/i_v4l.c:519: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).
     ((v4l->fd = open(v4l->device, O_RDWR, 0)) >= 0))
data/gmerlin-1.2.0~dfsg+1/plugins/v4l/pwc-ioctl.h:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/gmerlin-1.2.0~dfsg+1/plugins/v4l/pwc-ioctl.h:95:2:  [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 serial[30];	/* String with serial number. Contains terminating 0 */
data/gmerlin-1.2.0~dfsg+1/plugins/v4l/pwc-ioctl.h:191:11:  [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 command_buf[13];	/* Actual USB video command */
data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/v4l2_common.c:265: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(tmp_string, O_RDWR | O_NONBLOCK, 0);
data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/v4l2_common.c:318: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((*ret) + *num, ctrl, sizeof(**ret));
data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/v4l2_common.c:427:9:  [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).
  ret = open(device, O_RDWR /* required */ | O_NONBLOCK, 0);
data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/bgyadif.c:336: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(dst + y*dst_stride, cur0 + y*src_stride, w); // copy original
data/gmerlin-1.2.0~dfsg+1/plugins/videofilters/fv_tcdisplay.c:284:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[GAVL_TIMECODE_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:120: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 c[4];
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:234: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 date_string[BUFFER_SIZE];
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:235: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 software_string[BUFFER_SIZE];
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:394: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(format->channel_locations,
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:439: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).
    wav->bytes_per_sample = atoi(v->val_str) / 8;
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:468:17:  [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).
  wav->output = fopen(wav->filename, "wb");
data/gmerlin-1.2.0~dfsg+1/tests/album2pls.c:60:15:  [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).
      strip = atoi(argv[arg_index+1]);
data/gmerlin-1.2.0~dfsg+1/tests/audioplayer1.c:120:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!input_plugin->open(input_handle->priv, argv[1]))
data/gmerlin-1.2.0~dfsg+1/tests/audioplayer1.c:154: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).
  output_plugin->open(output_handle->priv, &audio_format);
data/gmerlin-1.2.0~dfsg+1/tests/cfgtest.c:448: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 time_buf[GAVL_TIME_STRING_LEN];
data/gmerlin-1.2.0~dfsg+1/tests/client.c:37: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[BUFFER_SIZE];
data/gmerlin-1.2.0~dfsg+1/tests/fvtest.c:50:13:  [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).
  frameno = atoi((*_argv)[arg]);  
data/gmerlin-1.2.0~dfsg+1/tests/fvtest.c:68: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).
  val = atoi((*_argv)[arg]);  
data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_visualize.c:167: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).
  if(!(*plugin)->open((*handle)->priv, file_prefix, NULL, NULL))
data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_visualize.c:227:11:  [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).
  width = atoi((*argv)[arg]);
data/gmerlin-1.2.0~dfsg+1/tests/gmerlin_visualize.c:238:12:  [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).
  height = atoi((*argv)[arg]);
data/gmerlin-1.2.0~dfsg+1/tests/msgtest.c:85: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 val_str[BUFFER_SIZE];
data/gmerlin-1.2.0~dfsg+1/tests/v4ldump.c:142: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("/dev/video0", O_RDONLY  | O_NONBLOCK);
data/gmerlin-1.2.0~dfsg+1/tests/v4ltest.c:111:14:  [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(!input->open(input_handle->priv, NULL, &input_format))
data/gmerlin-1.2.0~dfsg+1/tests/v4ltest.c:124:15:  [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(!output->open(output_handle->priv, &output_format, 1))
data/gmerlin-1.2.0~dfsg+1/tests/videoplayer1.c:138: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(&video_format, &info->video_streams[0].format,
data/gmerlin-1.2.0~dfsg+1/tests/videoplayer1.c:143:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!output_plugin->open(output_handle->priv, &video_format, 1))
data/gmerlin-1.2.0~dfsg+1/tests/visualization.c:166:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!input_plugin->open(input_handle->priv, &format, NULL))
data/gmerlin-1.2.0~dfsg+1/tests/vumeter.c:93:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!id.ra_plugin->open(id.ra_handle->priv, &id.format, NULL))
data/gmerlin-1.2.0~dfsg+1/utils/cpuinfo.c:82:2:  [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 idstr[13];
data/gmerlin-1.2.0~dfsg+1/utils/cpuinfo.c:89:2:  [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 processor_name[49];
data/gmerlin-1.2.0~dfsg+1/apps/cmdlineplayer/gmerlin_play.c:637: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(str);
data/gmerlin-1.2.0~dfsg+1/apps/cmdlineplayer/gmerlin_play.c:648: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(str);
data/gmerlin-1.2.0~dfsg+1/apps/kbd/kbd_daemon.c:272:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(0);
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/gmerlin-nmjedit.c:238: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).
    if(dir[strlen(dir)-1] == '/')
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/gmerlin-nmjedit.c:239: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).
      dir[strlen(dir)-1] = '\0';
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/gmerlin-nmjedit.c:248: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).
    if(dir[strlen(dir)-1] == '/')
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/gmerlin-nmjedit.c:249: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).
      dir[strlen(dir)-1] = '\0';
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/nmjedit.c:251:8:  [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(group) == 1)
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/nmjedit.c:256: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).
    else if(strlen(group) == 3)
data/gmerlin-1.2.0~dfsg+1/apps/nmjedit/nmjedit.c:288: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(search_string_skip[i]);
data/gmerlin-1.2.0~dfsg+1/apps/thumbnailer/gmerlin-video-thumbnailer.c:62:10:  [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(str[strlen(str)-1] == '%')
data/gmerlin-1.2.0~dfsg+1/apps/transcoder/tracklist.c:581:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         strlen(w->clipboard)+1);
data/gmerlin-1.2.0~dfsg+1/lib/album.c:1498: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).
                                   strlen(tmp_entry->name));
data/gmerlin-1.2.0~dfsg+1/lib/album.c:1599: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).
                                   strlen(tmp_child->name));
data/gmerlin-1.2.0~dfsg+1/lib/album.c:2926:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pos = a->watch_dir + strlen(a->watch_dir) - 1;
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:243: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).
  xml_doc = xmlParseMemory(string, strlen(string));
data/gmerlin-1.2.0~dfsg+1/lib/album_xml.c:256:40:  [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).
  xml_doc = xmlParseMemory(xml_string, strlen(xml_string));
data/gmerlin-1.2.0~dfsg+1/lib/cfg_registry.c:67: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/gmerlin-1.2.0~dfsg+1/lib/cfg_section.c:379: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(info[i].name) == (end - str)) &&
data/gmerlin-1.2.0~dfsg+1/lib/cfg_section.c:385: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(info[i].opt) == (end - str)) &&
data/gmerlin-1.2.0~dfsg+1/lib/charset.c:136: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/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:376:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(date_str, BUILD_DATE, 511);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:730:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(parameters[i].opt);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:735:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(parameters[i].name);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:748:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(parameters[i].opt);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:753:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(parameters[i].name);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:765:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(parameters[i].opt);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:770:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(parameters[i].name);
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:867: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).
          if(pos + strlen(parameters[i].multi_names[j]+1) > MAX_COLS)
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:945: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).
            if(pos + strlen(parameters[i].multi_names[j]) > MAX_COLS)
data/gmerlin-1.2.0~dfsg+1/lib/cmdline.c:988: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).
          if(pos + strlen(parameters[i].multi_names[j]+1) > MAX_COLS)
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:951:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         strlen(w->clipboard)+1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:1228:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fwrite(str, 1, strlen(str), file);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:2048:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gtk_selection_data_set(data, type_atom, 8, (uint8_t*)str, strlen(str)+1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:2057:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gtk_selection_data_set(data, type_atom, 8, (uint8_t*)str, strlen(str)+1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:2066:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gtk_selection_data_set(data, type_atom, 8, (uint8_t*)str, strlen(str));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwidget.c:2075:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gtk_selection_data_set(data, type_atom, 8, (uint8_t*)str, strlen(str));
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwindow.c:173: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).
  win->name_len = strlen(name);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/albumwindow.c:328: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).
  w->name_len = strlen(name);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_device.c:141: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).
    len += strlen(strings[i])+1;
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_device.c:156:7:  [1] (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 character.
      strcat(w->value.val_str, " ");
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_device.c:169:7:  [1] (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 character.
      strcat(w->value.val_str, ":");
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_dialog.c:364:30:  [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).
        val.val_str = malloc(strlen(s->widgets[i].value.val_str)+1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_file.c:65:31:  [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).
    w->value.val_str = malloc(strlen(filename)+1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/cfg_string.c:65:31:  [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).
    w->value.val_str = malloc(strlen(str)+1);
data/gmerlin-1.2.0~dfsg+1/lib/gtk/display.c:296: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).
  pos = &buf[strlen(buf)];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/gtkutils.c:310: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).
  pos = &name[strlen(name) - 1];
data/gmerlin-1.2.0~dfsg+1/lib/gtk/infowindow.c:956:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    w->clipboard[strlen(w->clipboard)-1] = '\0';
data/gmerlin-1.2.0~dfsg+1/lib/gtk/infowindow.c:957:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    w->clipboard_len = strlen(w->clipboard) + 1;
data/gmerlin-1.2.0~dfsg+1/lib/gtk/infowindow.c:984:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    w->clipboard_len = strlen(w->clipboard) + 1;
data/gmerlin-1.2.0~dfsg+1/lib/gtk/textview.c:138:25:  [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).
        end_pos = pos + strlen(pos);
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:163:54:  [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(!bg_socket_write_data(l->fd, (uint8_t*)command, strlen(command)))
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:302:6:  [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(name) > l->width)
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:428:8:  [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(format_string) > l->width)
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:474:8:  [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(format_string) > l->width)
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:580:8:  [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(desc) > l->width)
data/gmerlin-1.2.0~dfsg+1/lib/lcdproc.c:623:8:  [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(desc) > l->width)
data/gmerlin-1.2.0~dfsg+1/lib/metadata.c:454: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).
    ret[strlen(ret) - 1] = '\0';
data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c:157: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).
  length = strlen(value)+1;
data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c:367: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).
    ret += strlen(str);
data/gmerlin-1.2.0~dfsg+1/lib/msgqueue.c:375: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(val);
data/gmerlin-1.2.0~dfsg+1/lib/ocr.c:211:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ocr->lang, language, 3);
data/gmerlin-1.2.0~dfsg+1/lib/ocr.c:372: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).
  pos = (*ret) + (strlen(*ret)-1);
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:317:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          end_ptr = &start_ptr[strlen(start_ptr)];
data/gmerlin-1.2.0~dfsg+1/lib/pluginreg_xml.c:601:9:  [1] (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 character.
        strcat(buffer, "|");
data/gmerlin-1.2.0~dfsg+1/lib/recorder.c:668: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(key); \
data/gmerlin-1.2.0~dfsg+1/lib/remote.c:144: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(welcome_msg);
data/gmerlin-1.2.0~dfsg+1/lib/remote.c:434: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(answer_message);
data/gmerlin-1.2.0~dfsg+1/lib/serialize.c:159: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).
    ret += strlen(str);
data/gmerlin-1.2.0~dfsg+1/lib/serialize.c:168: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(val);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:200: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).
  pos = filename + strlen(filename) - 1;
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:241:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  inp->filename_buffer = malloc(strlen(filename)+100);
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:896:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  filename_len = strlen(e->filename_base) + e->frame_digits + strlen(ext) + 16;
data/gmerlin-1.2.0~dfsg+1/lib/singlepic.c:896:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  filename_len = strlen(e->filename_base) + e->frame_digits + strlen(ext) + 16;
data/gmerlin-1.2.0~dfsg+1/lib/socket.c:267:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (addr.sun_path, name, sizeof(addr.sun_path));
data/gmerlin-1.2.0~dfsg+1/lib/socket.c:406:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (addr.sun_path, name, sizeof(addr.sun_path));
data/gmerlin-1.2.0~dfsg+1/lib/streaminfo.c:107:26:  [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).
    end_pos = &start_pos[strlen(start_pos)];
data/gmerlin-1.2.0~dfsg+1/lib/streaminfo.c:131:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      end_pos = &start_pos[strlen(start_pos)];
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:64: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/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:103: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(new_string)+1 + 3) / 4) * 4 ;
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:131:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(ret, new_string_start, new_string_end - new_string_start);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:203: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).
  old_string = realloc(old_string, strlen(old_string) + strlen(tail) + 1);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:203:57:  [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).
  old_string = realloc(old_string, strlen(old_string) + strlen(tail) + 1);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:215: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).
  old_len = strlen(old_string);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:218:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(&old_string[old_len], start, end - start);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:368: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).
    pos2 = pos1 + strlen(pos1);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:385: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).
  newstr = malloc (strlen (str) * 2 + 2);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:411: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).
  newstr = malloc (strlen (strpos) / 2 + 1);
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:474: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).
    if((strlen(key) == (int)(end-pos)) &&
data/gmerlin-1.2.0~dfsg+1/lib/stringutils.c:539: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).
  bg_md5_buffer(uri, strlen(uri), md5sum);
data/gmerlin-1.2.0~dfsg+1/lib/subprocess.c:252:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!read(fd, &c, 1))
data/gmerlin-1.2.0~dfsg+1/lib/subprocess.c:279:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = read(fd, ret + bytes_read, len - bytes_read);
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:88:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dst, src, 3);
data/gmerlin-1.2.0~dfsg+1/lib/transcoder.c:1858:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      name_len = strlen(t->name);
data/gmerlin-1.2.0~dfsg+1/lib/transcoder_track_xml.c:893:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  xml_doc = xmlParseMemory(str, strlen(str));
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1420: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).
  if(pos && (pos - t->add_directory_path < strlen(t->add_directory_path) - 1))
data/gmerlin-1.2.0~dfsg+1/lib/tree.c:1622:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  result = read(t->com.inotify_fd, buffer, BUF_LEN);
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:64: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((char*)pos);
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:113: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(pos1);
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:125: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).
      hostname_len = strlen(hostname);
data/gmerlin-1.2.0~dfsg+1/lib/urilist.c:130:38:  [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(strncmp(&pos1[7], hostname, strlen(hostname)))
data/gmerlin-1.2.0~dfsg+1/lib/utf8.c:110: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/gmerlin-1.2.0~dfsg+1/lib/utf8.c:151:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp_string, str, len);
data/gmerlin-1.2.0~dfsg+1/lib/utf8.c:172: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/gmerlin-1.2.0~dfsg+1/lib/visualize.c:95:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(v->proc->stdout_fd, ptr, len);
data/gmerlin-1.2.0~dfsg+1/lib/visualize_slave.c:766:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(STDIN_FILENO, data, len);
data/gmerlin-1.2.0~dfsg+1/lib/x11/glvideo.c:61: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(name);
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:128:54:  [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).
  bg_cdaudio_sha_update(&sha, (unsigned char *)temp, strlen(temp));
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:130:54:  [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).
  bg_cdaudio_sha_update(&sha, (unsigned char *)temp, strlen(temp));
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:135:54:  [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).
  bg_cdaudio_sha_update(&sha, (unsigned char *)temp, strlen(temp));
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:140:56:  [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).
    bg_cdaudio_sha_update(&sha, (unsigned char *)temp, strlen(temp));
data/gmerlin-1.2.0~dfsg+1/plugins/cdaudio/cdaudio.c:145:56:  [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).
    bg_cdaudio_sha_update(&sha, (unsigned char *)temp, strlen(temp));
data/gmerlin-1.2.0~dfsg+1/plugins/esd/i_esd.c:200:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      priv->f->valid_samples = read(priv->esd_socket,
data/gmerlin-1.2.0~dfsg+1/plugins/lqt/e_lqt.c:345:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(e->subtitle_text_streams[e->num_subtitle_text_streams].language,
data/gmerlin-1.2.0~dfsg+1/plugins/oss/i_oss.c:258:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  f->valid_samples = read(priv->fd,
data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/i_v4l2.c:535:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (v4l->fd, frame->planes[0], v4l->fmt.fmt.pix.sizeimage) < v4l->fmt.fmt.pix.sizeimage)
data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/i_v4l2.c:547:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (-1 == read (v4l->fd, v4l->buffers[0].start, v4l->fmt.fmt.pix.sizeimage))
data/gmerlin-1.2.0~dfsg+1/plugins/v4l2/v4l2_common.c:494:12:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    data = memalign(16, v4l2->fmt.pix.sizeimage);
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:199: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(info.tag)+1; \
data/gmerlin-1.2.0~dfsg+1/plugins/wavwrite/e_wav.c:209: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(info.tag)+1; \
data/gmerlin-1.2.0~dfsg+1/tests/client.c:72:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    result = write(fd, buffer, strlen(buffer));
data/gmerlin-1.2.0~dfsg+1/utils/cpuinfo.c:215:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(100000);

ANALYSIS SUMMARY:

Hits = 583
Lines analyzed = 167215 in approximately 3.58 seconds (46704 lines/second)
Physical Source Lines of Code (SLOC) = 120000
Hits@level = [0] 658 [1] 122 [2] 336 [3]  22 [4] 102 [5]   1
Hits@level+ = [0+] 1241 [1+] 583 [2+] 461 [3+] 125 [4+] 103 [5+]   1
Hits/KSLOC@level+ = [0+] 10.3417 [1+] 4.85833 [2+] 3.84167 [3+] 1.04167 [4+] 0.858333 [5+] 0.00833333
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.