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/kcemu-0.5.1+git20141014+dfsg/include/fileio/loadP.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/fileio/load.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libdbg/dbg.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libgtkex/gtkledline.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libgtkex/libgtkex.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libgtkex/gtkfilebutton.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libaudio/libaudioP.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libaudio/libaudio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libdisk/libdiskP.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libdisk/teledisk.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libdisk/libdisk.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/tape.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/log.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/ui.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/window.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/errorl.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/module.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/statusl.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/commands.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/debug.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/status.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/hsv2rgb.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/font0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/tape.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_base.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_muglerpc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/module.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_vcs80.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/memaccess.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/scanline.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_c80.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_led.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_4.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_kramermc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/generic/ui_9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/tape.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk_muglerpc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/gif.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk4.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/window.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/util.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/options.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/thanks.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/main.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/screenshot.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ffmpeg.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/theora.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/module.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/disk.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/cmd.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/tapeadd.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/hedit.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/info.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/debug.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk_c80.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/video.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk_vcs80.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/vdip.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/dirac.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/vnc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk_kramermc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/selector.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/xvid.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/plotter.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/cmds.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/image.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/fbrowse.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/savemem.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/wav.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/about.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/help.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/dialog.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/ui_gtk_base.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/color.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/copying.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/keyboard.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/schro.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/videoenc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/ui/error.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/getopt/getopt.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/tape.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ports.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/socket.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/ipraw.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/udp.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/tftp.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/kcnet.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/pio_net.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/tcp.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/kcnetm.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/fdc_cmd.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_320k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_ramf.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_192k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/svg.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc_fdc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_r16.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/sound3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_boot.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb0k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_r64.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/muglerpc/ports.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/muglerpc/ctc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/muglerpc/pio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/muglerpc/memory.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/muglerpc/keyboard.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory5.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ports0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_v24.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/timer3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_js.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_rtc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_disk.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keys.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/disk_io.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory7.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_rom1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/vis.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_1m.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/module.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/basicrun.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/gdc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/disk.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb1k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_512k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/vcs80/pio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/vcs80/keydef.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/vcs80/memory.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/vcs80/keyboard.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_dio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/disass.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/fdc9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_auto.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/romdi.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_4131.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/fdc4.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc3.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_raf.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_urom.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/sound8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memoryif.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/fdc0s.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ports6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb9k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ic.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio2.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio_dio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_romb.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/gide.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_rom.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_list.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_256k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/c80/pio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/c80/display.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/c80/keydef.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/c80/memory.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/c80/keyboard.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory0.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memstream.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/prefs/prefs.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/prefs/types.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/prefs/parser.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/prefs/strlist.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/prefs/profile.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/prefs/dirlist.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory4.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_gdc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/vdip.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/sound.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/profile.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ports4.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/daisy.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/floppy.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kramermc/pio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kramermc/keydef.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kramermc/memory.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kramermc/keyboard.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio4.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc_dio.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_m052.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory2.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/memory8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_4m.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/fdc7.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/cb.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/timer1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_64k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/system.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/kc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/sh_mem.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/z80.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb8k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/fdc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio_vdip.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/wav.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio6.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_ram.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio9.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/z80_fdc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_ram1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/cb_list.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyboard.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_fdc.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/pio1.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_cpm.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_ram8.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_128k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_segm.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/poly880.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/ctc_base.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_vdip.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/keyb3k.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/timer.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/kc/plotter.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/sys/sysdep.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/cmd/cmd.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/cmd/cmdlist.h
Examining data/kcemu-0.5.1+git20141014+dfsg/include/cmd/cmdargs.h
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_HS.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_TAPE.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/kc2img.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/test_load.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_UNKNOWN.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_IMG.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_GPF.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_WAV.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_TAP.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/kc2raw.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BASIC.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/kc2tap.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BASICODE.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/kc2wav.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_SSS.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tp-type.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check-bc.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-merge.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-tool.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-rename.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-split.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/disk-tool.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/make-font.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/basic-decode.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-basicode.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-test.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg-test.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libgtkex/gtkledline.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libgtkex/gtkfilebutton.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_wav.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_mp3.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_snd.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_flc.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_als.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_aud.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_oss.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_raw.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_ogg.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_td0.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/disk.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/tdtodump.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_cdm.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/hsv2rgb.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/status.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/error.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_muglerpc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_led.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_base.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/module.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_vcs80.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/tape.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_0.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_kramermc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_c80.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_4.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/scanline.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/ui_9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/generic/memaccess.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/commands.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/log.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ffmpeg.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/image.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/help.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/thanks.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/theora.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/wav.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/main.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/screenshot.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk_base.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/module.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vnc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/savemem.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/color.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/copying.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk_vcs80.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk4.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/selector.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk_kramermc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk_muglerpc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/about.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/cmd.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk0.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/video.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/options.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/gif.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/tapeadd.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/tape.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk_c80.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/plotter.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/fbrowse.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/dialog.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/xvid.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/keyboard.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/dirac.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/window.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/hedit.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/schro.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vdip.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/disk.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/kcemu-remote.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt1.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_disk.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/pio_net.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/socket.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnetm.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tcp.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/udp.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tftp.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/ipraw.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/fdc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_m052.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/z80_fdc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_128k.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/sound8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_320k.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_dio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/timer1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/wav.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/muglerpc/ctc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/muglerpc/ports.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/muglerpc/memory.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/muglerpc/keyboard.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/muglerpc/pio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_1m.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_boot.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/module.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_vdip.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/vis.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/daisy.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_192k.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/poly880.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ram1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/cb_list.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_cpm.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/fdc9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_256k.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ic.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_r64.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rtc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/keyb0.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_gdc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/z80.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/vcs80/memory.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/vcs80/keyboard.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/vcs80/pio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_urom.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rom1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory0.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/sound3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ports.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_64k.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio4.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/sh_mem.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ports0.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_romb.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/svg.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/keyb9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc_dio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ports6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio_dio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/plotter.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc_fdc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_fdc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/c80/display.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/c80/memory.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/c80/keyboard.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/c80/pio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory4.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio0.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/strlist.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/profile.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/parser.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/dirlist.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/prefs.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/types.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/fdc4.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/floppy.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/keyb6.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rom.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/keyb8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/keyb1.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/timer3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/fdc0s.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/fdc_cmd.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/gide.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_4m.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ports4.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kramermc/memory.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kramermc/keyboard.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kramermc/pio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_4131.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_segm.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk_io.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc_base.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio2.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/timer.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/ctc3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio_vdip.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/fdc7.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcemu-send.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_r16.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_auto.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/keyb3.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/sound.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/pio9.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_512k.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ram8.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory7.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/gdc.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory2.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_raf.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ram.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kcread2tap.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/libtape/test.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_close.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_connect.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_sendto.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_create.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_mkdir.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_init.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_htonl.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_getprogrampath.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_send.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_gettimeofday.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_basename.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_htons.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_gethome.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_localtime.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_recvfrom.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_getdiskinfo.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_isabsolutepath.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_converttime.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_usleep.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_close.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_connect.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_sendto.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_create.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_mkdir.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_init.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_htonl.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_getprogrampath.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_send.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gettimeofday.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_basename.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_htons.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_localtime.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_socket_recvfrom.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_getdiskinfo.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_isabsolutepath.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_converttime.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_usleep.c
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/reset.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/image.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/cmdargs.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/quit.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/cmd.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/load.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/src/cmd/dbg.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/test/libgtkex/libgtkex-test.c
Examining data/kcemu-0.5.1+git20141014+dfsg/test/libaudio/t_load.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/test/kc/prefs/t_prefs.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/test/kc/t_memstream.cc
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/tsearch.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/printf-parse.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/vasnwprintf.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/version.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/lock.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/finddomain.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/explodename.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/printf-parse.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/dgettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/gettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/ngettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/loadinfo.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/printf-args.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/dcgettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/textdomain.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/langprefs.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/intl-exports.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/wprintf-parse.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/tsearch.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/hash-string.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/log.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/xsize.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/gettextP.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/intl-compat.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/eval-plural.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/plural-exp.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/dngettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/hash-string.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/dcngettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/gmo.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/export.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/printf-args.h
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/osdep.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c
Examining data/kcemu-0.5.1+git20141014+dfsg/intl/plural-exp.h

FINAL RESULTS:

data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:797: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 (new_localename, localename);
data/kcemu-0.5.1+git20141014+dfsg/intl/langprefs.c:107:8:  [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 (p, buf);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:197:8:  [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:198:8:  [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 (res_ptr + res_size - (l2 + 1), buf2);
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:918:4:  [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 (name, legacy_table[i1].unixy);
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:942:4:  [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 (name, langtag_table[i1].unixy);
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:962:4:  [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 (name + 3, script_table[i1].unixy);
data/kcemu-0.5.1+git20141014+dfsg/intl/log.c:86: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 (last_logfilename, logfilename);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:97: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 (libintl_nl_default_dirname, _nlos2_localedir);
data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c:752:21:  [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 YYFPRINTF fprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:98:12:  [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.
    return vfprintf (stream, format, args);
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:158:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    return vsprintf (resultbuf, format, args);
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:198:28:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define system_vsnprintf vsnprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:309:28:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define system_vswprintf vswprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:317:12:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfwprintf (stream, format, args);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:459:8:  [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 (result + curr_prefix_len, pathname_tail);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:182:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:196:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF _snprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:199:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:201:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  undef snprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:205:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3255:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				      sprintf ((char *) p, decimal_format, exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3263:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				      sprintf (expbuf, decimal_format, exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3425:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					      sprintf ((char *) p, decimal_format, exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3433:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					      sprintf (expbuf, decimal_format, exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:4095:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, arg);		    \
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:4098:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], arg);	    \
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:4101:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.h:37:22:  [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.
#  define __printf__ printf
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c:333:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(buf, ".out-%s", ptr->name);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:40: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(buf, filename);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:68: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(buf, ptr);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:236:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(filename, R_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:243:4:  [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(ptr, kcemu_datadir);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:245:4:  [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(ptr, filename);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc: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(ptr, R_OK) != 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:250:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(ptr, R_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:766: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("share/KCemu/roms/kc85/caos__c0.854", F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:769: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("../share/KCemu/roms/kc85/caos__c0.854", F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:806: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("share/locale/de/LC_MESSAGES/KCemu.mo", F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:809: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("../share/locale/de/LC_MESSAGES/KCemu.mo", F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tftp.cc:159: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(_path.c_str(), R_OK) != 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory.cc:345:43:  [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 (sys_isabsolutepath(romfile) && (access(romfile, R_OK) != 0))
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_320k.cc:150:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), fmt, _bank, _bank);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_64k.cc:88:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(buf, "%s (%d)", get_name(), a);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc:82:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(devices[a], R_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc:828: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(buffer, param);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:379: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((char *)_in_buf, buf);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:628: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(unix_addr.sun_path, _socket_name);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/prefs.cc:60:33:  [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.
    void operator()(SystemType *system) {
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/prefs.cc:62:23:  [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.
            _result = system;
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:294:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(buf, _("File `%s' saved."), filename);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:328:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(buf, _("File `%s' saved."), filename);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1863: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((char *)buf, kc_filename);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:316:26:  [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.
    else if (stat_ok && (access(filename.c_str(), W_OK) != 0))
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:640: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(filename.c_str(), W_OK) != 0)
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load.c:154: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(retval->filename, filename);
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:205: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(filename, tmp);
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:256: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(buf, 8192, format, ap);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:123: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(filename, path);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:400: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(filename, F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:460: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(filename, R_OK | W_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:465:12:  [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.
  else if (access(filename, R_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:180: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(name, (const char *)&prop->name[0]);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:330: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(name, F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:35:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buf, ptr);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:49:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(buf, ptr);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:50:6:  [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(buf, ptr2);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:419:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "Active Window: %s", get_name());
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/dialog.cc:68:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
              sprintf(textbuffer, text_val, text_arg_val);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:108:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(buf, r[a].fmt, b);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:116:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(buf, "(%s) = %04xh", r[a].name, m);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/kcemu-remote.c:83:10:  [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(ptr, argv[a]);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/options.cc:810:18:  [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.
    bool valid = system != NULL;
data/kcemu-0.5.1+git20141014+dfsg/src/util/basic-decode.c:268:6:  [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(s->text, decode_token(byte));
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-basicode.c:51:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(filename, F_OK) != 0)
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-merge.c:117: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(argv[1], F_OK) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-tool.c:54:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(filename, F_OK) != 0)
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:97: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(type, t);
data/kcemu-0.5.1+git20141014+dfsg/include/getopt/getopt.h:104:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int argc, char *const *argv, const char *shortopts);
data/kcemu-0.5.1+git20141014+dfsg/include/getopt/getopt.h:106:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/kcemu-0.5.1+git20141014+dfsg/include/getopt/getopt.h:108:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
data/kcemu-0.5.1+git20141014+dfsg/include/getopt/getopt.h:120:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/kcemu-0.5.1+git20141014+dfsg/include/getopt/getopt.h:121:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:149:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:150:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:858:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED");
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1557: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.
  language = getenv ("LANGUAGE");
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1597:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  const char *value = getenv ("OUTPUT_CHARSET");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:122:13:  [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.
      dir = getenv ("CHARSETALIASDIR");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:309: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.
      locale = getenv ("LC_ALL");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:312:13:  [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.
	  locale = getenv ("LC_CTYPE");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:314:15:  [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.
	    locale = getenv ("LANG");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:360: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.
      locale = getenv ("LC_ALL");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:363:13:  [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.
	  locale = getenv ("LC_CTYPE");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:365:15:  [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.
	    locale = getenv ("LANG");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:393:12:  [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.
  locale = getenv ("LC_ALL");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:396: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.
      locale = getenv ("LC_CTYPE");
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:398:11:  [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.
	locale = getenv ("LANG");
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:1005:12:  [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.
  retval = getenv ("LC_ALL");
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:1009:12:  [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.
  retval = getenv (categoryname);
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:1013:12:  [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.
  retval = getenv ("LANG");
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:525:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:543:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:654:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:675:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:705:8:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	      EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:728:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:757:8:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	      EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:771:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:828:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:850:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection (&lock->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:891:4:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	  InitializeCriticalSection (&once_control->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:892:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	  EnterCriticalSection (&once_control->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/lock.c:911:8:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	      EnterCriticalSection (&once_control->lock);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:51: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.
  char *root = getenv ("UNIXROOT");
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:52:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *gnulocaledir = getenv ("GNULOCALEDIR");
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.h:43: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.
#define getenv _nl_getenv
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:210:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *getenv ();
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:401:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:967:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:997:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt1.c:66:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (argc, argv, options, long_options, opt_index)
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt1.c:122:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:758:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *ptr = getenv("KCEMU_DATADIR");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:780:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *ptr = getenv("XDG_CONFIG_HOME");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:802:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *ptr = getenv("KCEMU_LOCALEDIR");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:920:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, getopt_args, long_options, &option_index);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:923:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt(argc, argv, getopt_args);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_r64.cc:49: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/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ram1.cc:40:7:  [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/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:617:18:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  _socket_name = tempnam("/tmp", "KCemu");
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:201: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.
  tmp = getenv("HOME");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/tdtodump.c:152:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((opt = getopt(argc, argv, "so:")) != -1)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:493:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long(argc, argv, "hlca1AbBvt:x:r:d:o:",
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:497:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt(argc, argv, "hlca1AbBvt:x:r:d:o:");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:32:11:  [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.
    ptr = getenv("APPDATA");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:40:11:  [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.
    ptr = getenv("USERPROFILE");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:44:11:  [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.
    ptr = getenv("HOMEDRIVE");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:46: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.
        ptr2 = getenv("HOMEPATH");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:55:11:  [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.
    ptr = getenv("HOME");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_gethome.c:33:11:  [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.
    ptr = getenv("HOME");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/theora.cc:90: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/kcemu-0.5.1+git20141014+dfsg/include/fileio/load.h:57: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  name[12];
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/ipraw.h:49:16:  [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).
  virtual bool open(void);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/socket.h:55:16:  [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).
  virtual bool open(void) = 0;
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/tcp.h:45:16:  [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).
  virtual bool open(void);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/tftp.h:69:16:  [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).
  virtual bool open(void);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/udp.h:44:16:  [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).
  virtual bool open(void);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/memstream.h:48: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(tmp, _data, _size);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/memstream.h:115: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, data, size);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/mod_list.h:67: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 *_init_mod[4 * MAX_BD + 2];
data/kcemu-0.5.1+git20141014+dfsg/include/kc/wav.h:70:16:  [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).
  virtual bool open(const char *filename);
data/kcemu-0.5.1+git20141014+dfsg/include/libaudio/libaudioP.h:32: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).
  libaudio_prop_t * (*open)(const char *filename);
data/kcemu-0.5.1+git20141014+dfsg/include/libdisk/libdiskP.h:48: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)(libdisk_prop_t *prop, const char *path);
data/kcemu-0.5.1+git20141014+dfsg/include/libdisk/teledisk.h: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 id[3];
data/kcemu-0.5.1+git20141014+dfsg/include/libdisk/teledisk.h:48: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 buf[2048];
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:104: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           id[18];
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:111:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char kct_bam_t[256];
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:124: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  unused[4];
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:125: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[KCT_NAME_LENGTH + 1];
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:143: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 data[252];
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:216: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).
  kct_error_t open(const char *filename);
data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/plotter.h:39:16:  [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).
    GtkWidget *open;
data/kcemu-0.5.1+git20141014+dfsg/include/ui/gtk/wav.h:41: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).
    GtkWidget   *open;
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:138: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 (result, dirname, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:176: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 (result, codeset, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:211: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 (new_binding->domainname, domainname, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.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 (result, dirname, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:265:8:  [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 (result, codeset, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:272: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 msgid[ZERO];
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:421: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[ZERO];
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:548: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 (search->msgid, msgid1, msgid_len);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:794: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 (new_domainname, domainname, domainname_len + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1122: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 (charset, charsetstr, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1160:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			  memcpy (tmp, outcharset, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1161:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			  memcpy (tmp + len, "//TRANSLIT", 10 + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1605: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 (value_copy, value, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1647:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (void *) ((char *) memcpy (dest, src, n) + n);
data/kcemu-0.5.1+git20141014+dfsg/intl/finddomain.c:139: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 (locale, alias_value, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/gettextP.h:217: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 domainname[ZERO];
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:215:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (cp, dirlist, dirlist_len);
data/kcemu-0.5.1+git20141014+dfsg/intl/langprefs.c:62:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[256];
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:468: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).
# define open(name, flags)	open_not_cancel_2 (name, flags)
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:828: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 (domain_file->filename, O_RDONLY | O_BINARY);
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:1180:10:  [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 (mem, static_segments, segsize);
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:1189:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy (mem, sysdep_segment_values[sysdepref], n);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:134:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (file_name, dir, dir_len);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:137:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (file_name + dir_len + add_slash, base, base_len + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:141:38:  [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_name == NULL || (fp = fopen (file_name, "r")) == NULL)
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:153:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char buf1[50+1];
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:154:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char buf2[50+1];
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:307:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char buf[2 + 10 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:333: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 (buf, dot, modifier - dot);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:341: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 (buf, "CP%u", GetACP ());
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:378:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:381: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 (buf, "CP%u", GetACP ());
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:387:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:416:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (buf, dot, modifier - dot);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:432:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf (buf, "CP%u", cp[0]);
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:230: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 (full_fname, fname, fname_len);
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:231: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:237:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (relocate (full_fname), "rc");
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:239:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (relocate (full_fname), "r");
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:260: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 buf[400];
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:353:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    (const char *) memcpy (&string_space[string_space_act],
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:358:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    (const char *) memcpy (&string_space[string_space_act],
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:723:26:  [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.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:723:51:  [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.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:861:26:  [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.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:861:51:  [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.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:891:26:  [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.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:891:50:  [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.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:1054: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 namebuf[256];
data/kcemu-0.5.1+git20141014+dfsg/intl/log.c:87: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).
      last_logfile = fopen (logfilename, "a");
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:42:1:  [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 libintl_nl_default_dirname[MAXPATHLEN+1];
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:61:11:  [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 (_nlos2_libdir, root, sl);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:62:11:  [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 (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:75:11:  [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 (_nlos2_localealiaspath, root, sl);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:76:11:  [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 (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:89:11:  [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 (_nlos2_localedir, root, sl);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:90:11:  [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 (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c:1052: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c:1069: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 yyformat[sizeof yyunexpected
data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c:1237: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 yymsgbuf[128];
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:217:8:  [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 (resultbuf, result, pruned_length);
data/kcemu-0.5.1+git20141014+dfsg/intl/printf.c:391:8:  [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 (resultbuf, result, pruned_length * sizeof (wchar_t));
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:122: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 (memory, orig_prefix_arg, orig_prefix_len + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:125: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 (memory, curr_prefix_arg, curr_prefix_len + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:206: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 (q, curr_pathname, p - curr_pathname);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.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 (curr_prefix, curr_installdir, curr_prefix_len);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:296:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char location[MAX_PATH];
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:310:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char location_as_posix_path[2 * MAX_PATH];
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:340:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen ("/proc/self/maps", "r");
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:458:8:  [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 (result, curr_prefix, curr_prefix_len);
data/kcemu-0.5.1+git20141014+dfsg/intl/textdomain.c:101: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 (new_domain, domainname, len);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:170:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define DCHAR_CPY memcpy
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.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 pointbuf[5];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:223: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 (pointbuf, "%#.0f", 1.0);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:447: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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:554: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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2302: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 ((char *) p, "%+d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2308: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 expbuf[6 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2310: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 (expbuf, "%+d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2453: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 ((char *) p, "%+d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2459: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 expbuf[6 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2461: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 (expbuf, "%+d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2526: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 (result + length, tmp, count * sizeof (DCHAR_T));
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2887: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 ((char *) p, "%+.2d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2893:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				    char expbuf[6 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2895: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 (expbuf, "%+.2d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3044:10:  [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 ((char *) p, "%+.2d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3050:10:  [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 expbuf[6 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3052:10:  [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 (expbuf, "%+.2d", exponent);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3261: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.
				      char expbuf[6 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3431: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.
					      char expbuf[6 + 1];
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3556: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 (result + length, tmp, count * sizeof (DCHAR_T));
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3937:8:  [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 (fbp, dp->width_start, n * sizeof (TCHAR_T));
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3958:8:  [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 (fbp, dp->precision_start, n * sizeof (TCHAR_T));
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:4595: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 (result + length, tmp, count * sizeof (DCHAR_T));
data/kcemu-0.5.1+git20141014+dfsg/src/cmd/cmdargs.cc:162: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[50];
data/kcemu-0.5.1+git20141014+dfsg/src/cmd/cmdargs.cc:170: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(buf, "%ld", value);
data/kcemu-0.5.1+git20141014+dfsg/src/cmd/image.cc:240:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(filename, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c:106: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c:257: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, "        COM", 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c:296: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(dptr + 1, sptr, len);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c:307: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[100];
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load.c:334: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).
          f = fopen(buf, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.c:62: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(prop->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.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(prop->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.c:76: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(prop->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.c:83: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(prop->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.c:92: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(prop->name, data + 1, 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_AF.c:185: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(prop->data, data, prop->size);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BASIC.c:77: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((*prop)->name, data + 3, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BASIC.c:92: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(dptr, sptr, len);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.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(dptr, sptr, 129);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.c:88: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((*prop)->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.c:96: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((*prop)->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.c:104: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((*prop)->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.c:112: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((*prop)->name, data + 4, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_BIN.c:126: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((*prop)->name, data + 1, 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_GPF.c:72: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((*prop)->name, ptr, 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_GPF.c:83: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((*prop)->data + 128, data + 128, size - 128);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_HS.c:122: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(p->name, &data[0x10], 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_HS.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(&dst[2], src, 32);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_HS.c:150: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[2], src, len);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_SSS.c:138: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(dptr + 3, (*prop)->name, strlen((char *)(*prop)->name));
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_SSS.c:143: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(dptr, sptr, len);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_TAPE.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((*prop)->name, data, 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_UNKNOWN.c:40: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 *endptr, buf[11];
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_UNKNOWN.c:152: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((*prop)->name, ptr, 11);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_IMG.c:34: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(filename, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:43:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(buf, "_0x");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:48:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(buf, "_0x");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:51:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buf, ".img");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:60:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(buf, "_0x");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:65:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(buf, "_0x");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:87: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, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_TAP.c:32: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(filename, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_WAV.c:181: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(tmp->buf, data + a, 129);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_WAV.c:183: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(tmp->buf, data + a, len);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_WAV.c:271: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(filename, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:329: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 (new_str, __getopt_nonoption_flags, nonoption_flags_max_len);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:441: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 (__getopt_nonoption_flags, orig_str, len);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/c80/memory.cc:102:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:65: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 buf[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:218: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).
      FILE *f = fopen(filename, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:244:4:  [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(ptr, "/disks/");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:247:6:  [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(ptr, ".gz");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/gide.cc:465: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(_hard_disk_config[_drive].filename, "rb+");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/gide.cc:467: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).
	file = fopen(_hard_disk_config[_drive].filename, "wb+");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/gide.cc:502: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(_hard_disk_config[_drive].filename, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:744: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[2048];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcemu-send.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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcemu-send.c:42:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(unix_addr.sun_path, "/tmp/KCemu-in");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/ipraw.cc:70: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).
IPRAW::open(void)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/ipraw.cc:151: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[10];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/ipraw.cc:233: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[10];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc:394:33:  [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).
                  _socket[idx]->open();
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc:419:33:  [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).
                  _socket[idx]->open();
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc:427:33:  [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).
                  _socket[idx]->open();
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tcp.cc:64:6:  [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).
TCP::open(void)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tcp.cc:126: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 buf[512];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tftp.cc:58:7:  [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).
TFTP::open(void)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/tftp.cc:115:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          FILE *f = fopen(_path.c_str(), "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/udp.cc:62:6:  [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).
UDP::open(void)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/udp.cc:95: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 buf[4096];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kramermc/memory.cc:120:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory.cc:389:6:  [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).
  is.open(filename, ios::in | ios::binary);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory.cc:436:6:  [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).
  is.open(filename, ios::in | ios::binary);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory.cc:491: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 buf[129], *ptr;
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory0.cc:131:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory1.cc:209:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory2.cc:94:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory3.cc:97:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory4.cc:187:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory6.cc:107:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory7.cc:213:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory9.cc:103:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_320k.cc:148: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[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_4m.cc:45: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 buf[100];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_64k.cc:74: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[100];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_fdc.cc:56: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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_gdc.cc:51: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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc:126: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).
  _fd = open(get_joystick_device(), O_RDONLY | O_NONBLOCK);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc:172: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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc:414: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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc:729:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(autostart.c_str(), "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc:759: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(rom_ptr, img_ptr, len);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc:772:8:  [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(&init[2], ptr->name, 12);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc:795: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(rom + a * 0x4000, init, 0x200);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc:48: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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc:104: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rom.cc:42: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(_rom, tmpl._rom, _size);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rom.cc:75: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(_rom, rom, size);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rom1.cc:43: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(_rom, tmpl._rom, _size);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_rtc.cc:48: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 buf[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_segm.cc:127: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 buf[100];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:399:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[INBUF_LEN];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:416:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[INBUF_LEN];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:456: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).
  _fd_in[dev] = open(dev_name, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:538: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[1025];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:560:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd_read = open("/tmp/KCemu-FIFO-in", O_RDONLY | O_NONBLOCK);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:570: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).
  fd_read_w = open("/tmp/KCemu-FIFO-in", O_WRONLY | O_NONBLOCK);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:572:16:  [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_write_r = open("/tmp/KCemu-FIFO-out", O_RDONLY | O_NONBLOCK);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:573: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).
  fd_write = open("/tmp/KCemu-FIFO-out", O_WRONLY | O_NONBLOCK);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:613: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[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/muglerpc/memory.cc:142:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/parser.cc:70: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).
    int fd = open(_filename.c_str(), O_RDONLY);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/parser.cc:83: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 signature_buf[signature_length];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/prefs.cc:247: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[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/profile.cc:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/sh_mem.cc:47: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("core-shmem.z80", "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/sound8.cc:86: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).
  _f = fopen("/tmp/lc80.wav", "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:69: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 buf[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:155: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 buf[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:260: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 buf[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:607:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char filename[9];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:609: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(filename, data, 8);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:690:6:  [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).
  os.open("/tmp/kcemu.output", ios::out | ios::binary);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1661: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).
      err = _kct_file.open(filename);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1786: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[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1852: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 buf[65536 + 256];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1854:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f = fopen(filename, "rb")) == NULL)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vcs80/memory.cc:95:6:  [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).
  os.open("core.z80");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip.cc:435: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.
          char buf[10];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:229: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).
    FILE *f = fopen(filename.c_str(), "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:322: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).
        FILE *f = fopen(filename.c_str(), stat_ok ? "r+b" : "w+b");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:704: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).
    FILE *f = fopen(filename.c_str(), "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:845: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[128];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/wav.cc:94:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  if (_p->open(filename))
data/kcemu-0.5.1+git20141014+dfsg/src/kc/wav.cc:236:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
WavPlayer::open(const char *filename)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/wav.cc:255: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[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/wav.cc:507: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 buf[BLEN];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/z80.cc:254: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.
          char buf[80];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/z80_fdc.cc:67: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 buf[80];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load.c:116:11:  [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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load.c:142:38:  [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).
                retval = loaders[a]->open(filename);
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_als.c:28:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_als.c:36: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 buf[ALS_BUF_SIZE];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_aud.c:34:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_flc.c:31:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_mp3.c:46: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  f_buf[FILE_BUF_SIZE];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_mp3.c:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_mp3.c:80: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_ogg.c:31:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_ogg.c:41: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 buf[BUF_SIZE];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_ogg.c:51: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_ogg.c:77: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_oss.c:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_oss.c:46: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 buf[OSS_BUF_SIZE];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_oss.c:78: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).
  data->fd = open(filename, O_RDONLY);
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_raw.c:27:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_raw.c:46: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_snd.c:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_snd.c:242: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/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_wav.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char loader_name[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_wav.c:72: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:73: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 d[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:105:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char d[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:206:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(filename, "/.debug");
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:216:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[4096];
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:218:6:  [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).
  is.open(filename);
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:249: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[8192];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/disk.c:81: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 (loaders[a]->open(*prop, path) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:124:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(filename, ".gz");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:145: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(path, "rb+");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:149:11:  [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(path, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_cdm.c:64: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[128];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_cdm.c:71: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(path, "rb+");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_cdm.c:75:11:  [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(path, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:182: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[__DRM + 1];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:185: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 dir[__DIR_SIZE];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:315: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 pwd[4096]; // FIXME: fix getcwd()!
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:394: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).
    f = fopen("/tmp/dir", "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:444: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 pwd[4096]; // FIXME: fix getcwd()!
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:454: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(data->filename[idx], "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:475: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 pwd[4096]; // FIXME: fix getcwd()!
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:485: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(data->filename[idx], "r+b");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:505:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pwd[4096]; // FIXME: fix getcwd()!
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:515: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(SYSTEM_NAME, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:536: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 pwd[4096]; // FIXME: fix getcwd()!
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:546: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(SYSTEM_NAME, "r+b");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:630: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(buf, &data->dir[block * len], len);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:674: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(&data->dir[block * len], buf, len);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:708: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(sector_data->data, buf, len);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_dir.c:727: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 buf[16];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_td0.c:105: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(buf, data->buf, len);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/tdtodump.c:50: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[2048];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/tdtodump.c:62:41:  [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 = out_name == NULL ? stdout : fopen(out_name, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/tdtodump.c:117:53:  [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 = out_name == NULL ? stdout : fopen(buf, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:280: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[2048];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:282:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char  file_id[2];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:376: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:427:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(_header.id, "KCemu tape file\032");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:456: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).
KCTFile::open(const char *filename)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:602:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(dirent, &_dirblock[b], sizeof(kct_dirent_t));
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:661: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(ptr, &data.data, 252);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:130: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 buf[16];
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:227: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:285:1:  [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).
open(KCTFile &f, char *name)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:289:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  error = f.open(name);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:293: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).
  if (f.open(name) != KCT_OK)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:333:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen(name, "wb+");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:593:7:  [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 (open(kct_file, _tape_name) != KCT_OK)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:30: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 oname[100];
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:33: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 buf[129], kcname[12];
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:56: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(kcname, &buf[1], 11);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:66:4:  [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(oname, "out.%04d.img", nr++);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:67: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).
			of = fopen(oname, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:91: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 buf[16];
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/show_tap.c:96: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(argv[a], "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/test.c:28:6:  [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("testfile.1", "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/test.c:35:6:  [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("testfile.2", "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:36:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(buf, "\\KCemu");
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_getprogrampath.c:29:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR cmd[MAX_PATH];
data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_socket_sendto.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 ip[256];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:417:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:506: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 mem_str[100];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:529: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(mem_str, "%04xh:", mem);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:532:4:  [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(strchr(mem_str, 0), " %02x", memory->memRead8(mem + b));
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:533:16:  [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.
	  if (b == 7) sprintf(strchr(mem_str, 0), " -");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:535: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(strchr(mem_str, 0), " | ");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:539:4:  [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(strchr(mem_str, 0), "%c", ((c >= 0x20) && (c < 0x80)) ? c : '.');
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:551:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:554: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(buf, "PC  = %04xh  SP  = %04xh",
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:558: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(buf, "AF  = %04xh  BC  = %04xh  DE  = %04xh  HL  = %04xh",
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:564: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(buf, "AF' = %04xh  BC' = %04xh  DE' = %04xh  HL' = %04xh",
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:570: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(buf, "IX  = %04xh  IY  = %04xh  IFF = %02xh    I   = %02xh",
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/dirac.cc:50: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).
  _f = fopen(filename, "wb+");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/disk.cc:172:16:  [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 char * attach_cmd[4] = {
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/disk.cc:178:16:  [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 char * detach_cmd[4] = {
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/disk.cc:243: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.
		       (char *)attach_cmd[a]); // FIXME:
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/disk.cc:246: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.
		       (char *)detach_cmd[a]); // FIXME:
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/gif.cc:134:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(_buf, image, _width * _height);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/gif.cc:156: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(_buf, image, _width * _height);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/hedit.cc: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 buf[10];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/help.cc:266: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).
	  int value = atoi(val);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:72: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[20];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:110: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(buf, "%d", b);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:130: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[10];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:145: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(buf, "%02xh (%d)", a, a);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:155: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(buf, "%02xh (%d)", a, a);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:163: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[20];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/info.cc:171: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(buf, "%02xh (%d)", a, a);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/keyboard.cc:401: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[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/keyboard.cc:413: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(keymap_filename.c_str(), "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/main.cc:710: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(dirty_buf, dirty, dirty_size);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/main.cc:783: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(dirty, dirty_buf, dirty_size);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/main.cc:838:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/module.cc: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 buf[10];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/module.cc:153: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(buf, "%X", 4 * b);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/module.cc:188: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[10];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/module.cc:294: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[100];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/module.cc:323:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, _("D002: Busdriver [%02X]"), 16 * a);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/options.cc:891: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 tooltip[128];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/plotter.cc:306: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).
  g_signal_connect(_w.open, "clicked", G_CALLBACK(sf_open_pdf), this);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/savemem.cc:238: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[1024];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/savemem.cc:353: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[20];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/schro.cc:58: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).
  _f = fopen(filename, "wb+");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/tape.cc:630: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_load[40];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/tape.cc:631: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_start[40];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/tape.cc:632: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_size[40];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/theora.cc:56: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).
  _f = fopen(filename, "wb+");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/ui_gtk.cc:347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vdip.cc:165:16:  [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 char * attach_cmd[2] = {
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vdip.cc:169:16:  [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 char * detach_cmd[2] = {
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vdip.cc:200: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.
		       (char *)attach_cmd[a]); // FIXME:
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vdip.cc:203: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.
		       (char *)detach_cmd[a]); // FIXME:
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vnc.cc:58:24:  [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 *framebuffer = (char *)new byte_t[width * height * 4];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/wav.cc:130:36:  [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).
  gtk_signal_connect(GTK_OBJECT(_w.open), "clicked",
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/wav.cc:134: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).
  gtk_tooltips_set_tip(_w.tooltips, _w.open, _("Open"), NULL);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/window.cc:181: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 widget_name[80];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/xvid.cc:58: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).
  _f = fopen(filename, "wb+");
data/kcemu-0.5.1+git20141014+dfsg/src/util/basic-decode.c:171:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[5];
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:80: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 buf[16];
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:80: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 buf[16];
data/kcemu-0.5.1+git20141014+dfsg/src/util/make-font.c:23:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char __font[2048];
data/kcemu-0.5.1+git20141014+dfsg/src/util/make-font.c:74: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(argv[1], "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/make-font.c:88: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(argv[3]);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-basicode.c:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filename[100];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-basicode.c:43:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _buf[130];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-basicode.c:64: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, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check-bc.c:35: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check.c:43: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 buf[130];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check.c:44: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[100], type[100];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check.c:51: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-merge.c:28: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 buf[130];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-merge.c:123: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(argv[1], "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-merge.c:133: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).
      ptr->f = fopen(argv[a], "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-rename.c:35: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 buf[130];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-rename.c:36: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[100], type[100];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-rename.c:38: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-split.c:33: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 buf[130];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-split.c:34: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 fbuf[1000];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-split.c:36: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, "rb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-split.c:68:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      f2 = fopen(fbuf, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-tool.c:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filename[100];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-tool.c:43:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _buf[130];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-tool.c:67: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, "wb");
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-tool.c:107: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[100], type[100];
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:32: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(name, &buf[4], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:38: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(name, &buf[4], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:44: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(name, &buf[4], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:50: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(name, &buf[4], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:56: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(name, &buf[1], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:62: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(name, &buf[1], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:68: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(name, &buf[1], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:74: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(name, &buf[1], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:80: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(name, &buf[1], 8);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-type.c:87: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(name, &buf[1], 8);
data/kcemu-0.5.1+git20141014+dfsg/test/kc/t_memstream.cc:91: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 buf[256];
data/kcemu-0.5.1+git20141014+dfsg/test/libaudio/t_load.cc:94:11:  [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, "wb");
data/kcemu-0.5.1+git20141014+dfsg/test/libgtkex/libgtkex-test.c:52: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[4096];
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/kcnet.h:122:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual byte_t read(void);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/kcnet/kcnet.h:322:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual byte_t read(void);
data/kcemu-0.5.1+git20141014+dfsg/include/kc/tape.h:164:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::istream * read(const char *name,
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:231:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::istream *   read(int idx,
data/kcemu-0.5.1+git20141014+dfsg/include/libtape/kct.h:233:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::istream *   read(const char *name,
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:135: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).
		      size_t len = strlen (dirname) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:173: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).
		  size_t len = strlen (codeset) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:204: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).
      size_t len = strlen (domainname) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:232: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).
		  size_t len = strlen (dirname) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/bindtextdom.c:261:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (codeset) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:542: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).
  msgid_len = strlen (msgid1) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:636: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).
	  size_t dirname_len = strlen (dirname) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:678: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).
  domainname_len = strlen (domainname);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:679:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  xdomainname = (char *) alloca (strlen (categoryname)
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:688: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).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:782: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).
		  size += strlen (localename) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:911: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).
      nls_uint32 len = strlen (msgid);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1115:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      charsetstr += strlen ("charset=");
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1158: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 (outcharset);
data/kcemu-0.5.1+git20141014+dfsg/intl/dcigettext.c:1601:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (value) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/eval-plural.h:88:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      case equal:
data/kcemu-0.5.1+git20141014+dfsg/intl/finddomain.c:94: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).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/kcemu-0.5.1+git20141014+dfsg/intl/finddomain.c:134: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).
      size_t len = strlen (alias_value) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/finddomain.c:157: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).
			       strlen (dirname) + 1, mask, language, territory,
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:98: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).
      size_t part_len = strlen (argz);
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:123: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).
      size_t part_len = strlen (argz);
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:197: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).
				  + strlen (language)
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:199: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).
				     ? strlen (territory) + 1 : 0)
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:201: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).
				     ? strlen (codeset) + 1 : 0)
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:203: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).
				     ? strlen (normalized_codeset) + 1 : 0)
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:205: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).
				     ? strlen (modifier) + 1 : 0)
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:206: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).
				  + 1 + strlen (filename) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/l10nflist.c:326:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		= _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1,
data/kcemu-0.5.1+git20141014+dfsg/intl/langprefs.c:76: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).
		    size += strlen (buf) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/langprefs.c:108: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).
			    p += strlen (buf);
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:470:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read(fd, buf, n)	read_not_cancel (fd, buf, n)
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:874:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:1053: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).
			      need += strlen (sysdep_segment_values[sysdepref]);
data/kcemu-0.5.1+git20141014+dfsg/intl/loadmsgcat.c:1188: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).
					n = strlen (sysdep_segment_values[sysdepref]);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:87:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:88:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc getc_unlocked
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:128: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).
	size_t dir_len = strlen (dir);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:129: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).
	size_t base_len = strlen (base);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:158:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = getc (fp);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:167:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    c = getc (fp);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:174:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:176: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).
	      l1 = strlen (buf1);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:177: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).
	      l2 = strlen (buf2);
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:446: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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:446:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/kcemu-0.5.1+git20141014+dfsg/intl/localcharset.c:450: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).
	codeset = aliases + strlen (aliases) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:324: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).
		  alias_len = strlen (alias) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/localealias.c:325: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).
		  value_len = strlen (value) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/localename.c:924:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (name) == 7 && name[2] == '-')
data/kcemu-0.5.1+git20141014+dfsg/intl/log.c:83:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      last_logfilename = (char *) malloc (strlen (logfilename) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:59:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:60:49:  [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).
          _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:62:47:  [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).
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:73:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:74:58:  [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).
          _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:76:67:  [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).
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:87:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:88:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:90:53:  [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).
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/os2compat.c:96:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (_nlos2_localedir) <= MAXPATHLEN)
data/kcemu-0.5.1+git20141014+dfsg/intl/plural-exp.h:53:3:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  equal,			/* Comparison for equality.  */
data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c:933:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/kcemu-0.5.1+git20141014+dfsg/intl/plural.c:1855:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	  lval->op = equal;
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:115: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).
      orig_prefix_len = strlen (orig_prefix_arg);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:116: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).
      curr_prefix_len = strlen (curr_prefix_arg);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:182:53:  [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 (orig_installprefix, orig_installdir, strlen (orig_installprefix))
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:186: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).
  rel_installdir = orig_installdir + strlen (orig_installprefix);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:191:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *p = curr_pathname + strlen (curr_pathname);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:214:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *rp = rel_installdir + strlen (rel_installdir);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:215: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).
    const char *cp = curr_installdir + strlen (curr_installdir);
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:317: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 (location_as_posix_path) >= MAX_PATH - 1)
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:354:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      while (c = getc (fp), c != EOF && c != '\n' && c != '/')
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:373:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  while (c = getc (fp), c != EOF && c != '\n')
data/kcemu-0.5.1+git20141014+dfsg/intl/relocatable.c:452:42:  [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).
	    (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
data/kcemu-0.5.1+git20141014+dfsg/intl/textdomain.c:98: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).
      size_t len = strlen (domainname) + 1;
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:128:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define local_wcslen wcslen
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2778: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).
				ndigits = strlen (digits);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2838: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).
					ndigits = strlen (digits);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:2950: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).
					ndigits = strlen (digits);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3134: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).
				ndigits = strlen (digits);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3191: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).
					ndigits = strlen (digits);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3316: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).
					ndigits = strlen (digits);
data/kcemu-0.5.1+git20141014+dfsg/intl/vasnprintf.c:3820: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).
			tmp_length = strlen (a.arg[dp->arg_index].a.a_string);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_SSS.c:56: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(filename);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_SSS.c:138: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).
	  memcpy(dptr + 3, (*prop)->name, strlen((char *)(*prop)->name));
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/load_UNKNOWN.c:42:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, str, 10);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:36: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).
  buf = (char *)malloc(strlen(filename) + 20);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:44: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).
	  snprintf(buf + strlen(buf), 5, "%04x", load);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:49: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).
	  snprintf(buf + strlen(buf), 5, "%04x", start);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:56:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, filename, a);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:61: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).
	  snprintf(buf + strlen(buf), 5, "%04x", load);
data/kcemu-0.5.1+git20141014+dfsg/src/fileio/save_RAW.c:66: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).
	  snprintf(buf + strlen(buf), 5, "%04x", start);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:234: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).
extern int strlen (const char *);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:432:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:656:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:680:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:710:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:726:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:731:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:842:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:865:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:885:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:899:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/getopt/getopt.c:903:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:242: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).
	  ptr = (char *)malloc(strlen(kcemu_datadir) + strlen(filename) + 11);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/disk.cc:242:49:  [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).
	  ptr = (char *)malloc(strlen(kcemu_datadir) + strlen(filename) + 11);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kc.cc:728: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).
  int a = strlen(ptr);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcemu-send.c:43: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(unix_addr.sun_path) + sizeof(unix_addr.sun_family);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcemu-send.c:59: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).
      ret = send(s, buf, strlen(buf), 0);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc:526:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
KCNET::read(void)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc:529:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return _command->read();
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/kcnet.cc:642:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
KCNET_CMD::read(void)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/kcnet/pio_net.cc:48:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      val = kcnet->read();
data/kcemu-0.5.1+git20141014+dfsg/src/kc/memory.cc:401:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  is.read((char *)buf, len);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_js.cc:242:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read(_fd, &event, sizeof(struct js_event)) < 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_list.cc:827:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *buffer = new char[strlen(param) + 1];
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc:110:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc:146: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(kcemu_homedir) + 21;
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc:163: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).
      len = strlen(dirname) + strlen(entry->d_name) + 2;
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_ramf.cc:163: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).
      len = strlen(dirname) + strlen(entry->d_name) + 2;
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:403:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  a = read(self->_fd_in[B], buf, INBUF_LEN - 1);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:593:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          len = read(fd_read, buf, 1024);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:603:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          len = read(fd, buf, 1024);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:629: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(unix_addr.sun_path) + sizeof(unix_addr.sun_family);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/mod_v24.cc:718: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).
  write(_fd_out[B], s, strlen(s));
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/parser.cc:82:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char signature_length = strlen(signature);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/parser.cc:85:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int len = read(fd, signature_buf, signature_length);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/prefs.cc:152:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(name) > 0)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/prefs/types.cc:1002: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).
        width += strlen(name) + 1;
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:83:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          is = _t->read(name, &props);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:584:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  _is = _kct_file.read(name, &props);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1936:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  is = tape->read(name, &props);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1963:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  is = tape->read(name, &props);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1982:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Tape::read(const char *name, kct_file_props_t *props)
data/kcemu-0.5.1+git20141014+dfsg/src/kc/tape.cc:1984:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return _kct_file.read(name, props);
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:265:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          add_char(fgetc(f)); // use EOF as padding
data/kcemu-0.5.1+git20141014+dfsg/src/kc/vdip_cmd.cc:713:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int c = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load.c:153:41:  [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).
      retval->filename = (char *)malloc(strlen(filename) + 1);
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_oss.c:159:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read(data->fd, data->buf, OSS_BUF_SIZE) != OSS_BUF_SIZE)
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_raw.c:112:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_wav.c:142:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c1 = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/libaudio/load_wav.c:151:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c2 = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:75:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(d, data, 1024);
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:107:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(d, data, 1024);
data/kcemu-0.5.1+git20141014+dfsg/src/libdbg/dbg.cc:204:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      filename = new char[strlen(tmp) + 8];
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:119:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      filename = (char *) malloc(strlen(path) + 4);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:155:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  b1 = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:156:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  b2 = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/load_22dsk.c:212:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fgetc(data->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/tdtodump.c:33: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).
  for (a = 0;a < strlen(text);a++)
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:35:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:50:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:51:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = len + 256 * fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:53:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  b1 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:54:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  b2 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:74:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      code = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:78:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  len = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:82:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:87:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  len = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:88:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  b1 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:89:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  b2 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:110:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  type = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:146:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s1 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:147:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s2 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:148:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s3 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:149:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s4 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:150:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s5 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:151:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s6 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:152:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s7 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:153:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s8 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:203:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  t1 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:204:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  t2 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:205:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  t3 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libdisk/teledisk.c:206:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  t4 = fgetc(prop->f);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kcread2tap.c:31:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(stdin);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:121:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  _f->read((char *)&header, sizeof(kct_header_t));
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:227:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  _f->read((char *)bam, sizeof(kct_bam_t));
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:276:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  _f->read((char *)dirblock, sizeof(kct_dirblock_t));
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:389:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(_dirblock[ent].name, filename, KCT_NAME_LENGTH);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:636:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
KCTFile::read(int idx, kct_file_props_t *props)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:660:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      _f->read((char *)&data, BLOCK_SIZE);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:696:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
KCTFile::read(const char *name, kct_file_props_t *props)
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:704:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read(a, props);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:840:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      _f->read((char *)&data, BLOCK_SIZE);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kct.cc:864:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(_dirblock[entry].name, to, KCT_NAME_LENGTH);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:178: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((const char *)&prop->name[0]);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:355:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s = f.read(name, &props);
data/kcemu-0.5.1+git20141014+dfsg/src/libtape/kctape.cc:401:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s = f.read(name, &props);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:34:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buf = malloc(strlen(ptr) + 7);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:48: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).
	    buf = malloc(strlen(ptr) + strlen(ptr2) + 1);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_gethome.c:48: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).
	    buf = malloc(strlen(ptr) + strlen(ptr2) + 1);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/mingw/sys_getprogrampath.c:40: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(cmd);
data/kcemu-0.5.1+git20141014+dfsg/src/sys/unix/sys_usleep.c:28:5:  [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(microseconds);
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/debug.cc:540:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	  if (b == 7) sprintf(strchr(mem_str, 0), "-");
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/dialog.cc:67:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              textbuffer = new char[strlen(text_val) + strlen(text_arg_val) + 1];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/dialog.cc:67: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).
              textbuffer = new char[strlen(text_val) + strlen(text_arg_val) + 1];
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/disk.cc:160:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(text) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/hedit.cc:94:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(_tape_filename) < 1)
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/hedit.cc:99:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(_kc_filename) < 1)
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/kcemu-remote.c:75: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).
		len += strlen(argv[a]) + 1;
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/kcemu-remote.c:84: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).
		ptr += strlen(argv[a]) + 1;
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/keyboard.cc:329:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(key) == 1)
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/main.cc:165: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).
              ptr += strlen(ptr) + 1;
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/options.cc:451: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(text) == 0) {
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/tape.cc:211:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(filename) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/ui/gtk/vdip.cc:153:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(text) == 0)
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:56:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  acyl = getchar(); if (acyl == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:57:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  asid = getchar(); if (asid == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:58:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  lcyl = getchar(); if (lcyl == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:59:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  lsid = getchar(); if (lsid == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:60:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  lsec = getchar(); if (lsec == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:61:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  llen = getchar(); if (llen == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:62:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c    = getchar(); if (c    == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:64:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c    = getchar(); if (c    == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2img.c:95:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  c = getchar();
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:56:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	acyl = getchar(); if (acyl == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:57:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	asid = getchar(); if (asid == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:58:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	lcyl = getchar(); if (lcyl == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:59:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	lsid = getchar(); if (lsid == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:60:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	lsec = getchar(); if (lsec == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:61:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	llen = getchar(); if (llen == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:62:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c    = getchar(); if (c    == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:64:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c    = getchar(); if (c    == EOF) return -1;
data/kcemu-0.5.1+git20141014+dfsg/src/util/dump2txt.c:93:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getchar();
data/kcemu-0.5.1+git20141014+dfsg/src/util/tape-check-bc.c:46:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc(f);
data/kcemu-0.5.1+git20141014+dfsg/src/util/tp-type.c:28:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(stdin);

ANALYSIS SUMMARY:

Hits = 807
Lines analyzed = 110039 in approximately 2.74 seconds (40113 lines/second)
Physical Source Lines of Code (SLOC) = 76867
Hits@level = [0] 485 [1] 231 [2] 433 [3]  64 [4]  79 [5]   0
Hits@level+ = [0+] 1292 [1+] 807 [2+] 576 [3+] 143 [4+]  79 [5+]   0
Hits/KSLOC@level+ = [0+] 16.8083 [1+] 10.4987 [2+] 7.49346 [3+] 1.86036 [4+] 1.02775 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.