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/gpsim-0.31.0/gpsim/main.cc
Examining data/gpsim-0.31.0/cli/cmd_set.cc
Examining data/gpsim-0.31.0/cli/cmd_log.cc
Examining data/gpsim-0.31.0/cli/cmd_break.h
Examining data/gpsim-0.31.0/cli/cmd_shell.cc
Examining data/gpsim-0.31.0/cli/ui_gpsim.cc
Examining data/gpsim-0.31.0/cli/cmd_version.h
Examining data/gpsim-0.31.0/cli/cmd_step.cc
Examining data/gpsim-0.31.0/cli/cmd_macro.cc
Examining data/gpsim-0.31.0/cli/cmd_stimulus.h
Examining data/gpsim-0.31.0/cli/cmd_disasm.h
Examining data/gpsim-0.31.0/cli/ui_gpsim.h
Examining data/gpsim-0.31.0/cli/parse.cc
Examining data/gpsim-0.31.0/cli/cmd_dump.cc
Examining data/gpsim-0.31.0/cli/cmd_reset.cc
Examining data/gpsim-0.31.0/cli/cmd_dump.h
Examining data/gpsim-0.31.0/cli/cmd_node.h
Examining data/gpsim-0.31.0/cli/cmd_frequency.h
Examining data/gpsim-0.31.0/cli/cmd_icd.h
Examining data/gpsim-0.31.0/cli/cmd_processor.h
Examining data/gpsim-0.31.0/cli/cmd_clear.cc
Examining data/gpsim-0.31.0/cli/cmd_macro.h
Examining data/gpsim-0.31.0/cli/cmd_load.h
Examining data/gpsim-0.31.0/cli/cmd_quit.h
Examining data/gpsim-0.31.0/cli/cmd_bus.h
Examining data/gpsim-0.31.0/cli/cmd_x.cc
Examining data/gpsim-0.31.0/cli/cmd_shell.h
Examining data/gpsim-0.31.0/cli/cmd_step.h
Examining data/gpsim-0.31.0/cli/cmd_echo.h
Examining data/gpsim-0.31.0/cli/parse.h
Examining data/gpsim-0.31.0/cli/command.cc
Examining data/gpsim-0.31.0/cli/cmd_attach.cc
Examining data/gpsim-0.31.0/cli/symbol_t.h
Examining data/gpsim-0.31.0/cli/cmd_icd.cc
Examining data/gpsim-0.31.0/cli/cmd_run.cc
Examining data/gpsim-0.31.0/cli/cmd_trace.cc
Examining data/gpsim-0.31.0/cli/cmd_clear.h
Examining data/gpsim-0.31.0/cli/cmd_processor.cc
Examining data/gpsim-0.31.0/cli/cmd_bus.cc
Examining data/gpsim-0.31.0/cli/scan.h
Examining data/gpsim-0.31.0/cli/cmd_load.cc
Examining data/gpsim-0.31.0/cli/cmd_version.cc
Examining data/gpsim-0.31.0/cli/cmd_list.cc
Examining data/gpsim-0.31.0/cli/command.h
Examining data/gpsim-0.31.0/cli/input.h
Examining data/gpsim-0.31.0/cli/cmd_frequency.cc
Examining data/gpsim-0.31.0/cli/cmd_run.h
Examining data/gpsim-0.31.0/cli/cmd_echo.cc
Examining data/gpsim-0.31.0/cli/misc.h
Examining data/gpsim-0.31.0/cli/cmd_symbol.h
Examining data/gpsim-0.31.0/cli/cmd_help.h
Examining data/gpsim-0.31.0/cli/cmd_list.h
Examining data/gpsim-0.31.0/cli/cmd_stimulus.cc
Examining data/gpsim-0.31.0/cli/cmd_help.cc
Examining data/gpsim-0.31.0/cli/cmd_reset.h
Examining data/gpsim-0.31.0/cli/cmd_disasm.cc
Examining data/gpsim-0.31.0/cli/cmd_module.h
Examining data/gpsim-0.31.0/cli/scan.cc
Examining data/gpsim-0.31.0/cli/cmd_module.cc
Examining data/gpsim-0.31.0/cli/cmd_symbol.cc
Examining data/gpsim-0.31.0/cli/cmd_quit.cc
Examining data/gpsim-0.31.0/cli/cmd_set.h
Examining data/gpsim-0.31.0/cli/input.cc
Examining data/gpsim-0.31.0/cli/cmd_log.h
Examining data/gpsim-0.31.0/cli/cmd_node.cc
Examining data/gpsim-0.31.0/cli/cmd_x.h
Examining data/gpsim-0.31.0/cli/cmd_attach.h
Examining data/gpsim-0.31.0/cli/cmd_trace.h
Examining data/gpsim-0.31.0/cli/cmd_break.cc
Examining data/gpsim-0.31.0/cli/socket.cc
Examining data/gpsim-0.31.0/plat/win32/uxsleep.cc
Examining data/gpsim-0.31.0/plat/win32/fd2raw.h
Examining data/gpsim-0.31.0/plat/win32/settings_reg.h
Examining data/gpsim-0.31.0/plat/win32/settings_reg.cpp
Examining data/gpsim-0.31.0/plat/win32/unistd.h
Examining data/gpsim-0.31.0/plat/win32/icd.cc
Examining data/gpsim-0.31.0/plat/win32/fd2raw.cpp
Examining data/gpsim-0.31.0/plat/win32/uxtime.h
Examining data/gpsim-0.31.0/plat/win32/uxtime.cc
Examining data/gpsim-0.31.0/plat/win32/glist.cpp
Examining data/gpsim-0.31.0/src/cwg.h
Examining data/gpsim-0.31.0/src/bitlog.h
Examining data/gpsim-0.31.0/src/expr.cc
Examining data/gpsim-0.31.0/src/ctmu.h
Examining data/gpsim-0.31.0/src/cmd_manager.cc
Examining data/gpsim-0.31.0/src/ValueCollections.h
Examining data/gpsim-0.31.0/src/stimuli.cc
Examining data/gpsim-0.31.0/src/a2d_v2.h
Examining data/gpsim-0.31.0/src/cmd_gpsim.h
Examining data/gpsim-0.31.0/src/pic-processor.cc
Examining data/gpsim-0.31.0/src/14bit-tmrs.cc
Examining data/gpsim-0.31.0/src/pir.cc
Examining data/gpsim-0.31.0/src/modules.cc
Examining data/gpsim-0.31.0/src/pthread-wrap.h
Examining data/gpsim-0.31.0/src/12bit-instructions.h
Examining data/gpsim-0.31.0/src/14bit-hexdecode.cc
Examining data/gpsim-0.31.0/src/p17c75x.cc
Examining data/gpsim-0.31.0/src/bytelog.cc
Examining data/gpsim-0.31.0/src/gpsim_interface.h
Examining data/gpsim-0.31.0/src/symbol.h
Examining data/gpsim-0.31.0/src/p12f6xx.h
Examining data/gpsim-0.31.0/src/p16x6x.cc
Examining data/gpsim-0.31.0/src/p16f88x.cc
Examining data/gpsim-0.31.0/src/14bit-tmrs.h
Examining data/gpsim-0.31.0/src/pps.cc
Examining data/gpsim-0.31.0/src/lxt_write.h
Examining data/gpsim-0.31.0/src/tmr0.h
Examining data/gpsim-0.31.0/src/ui.h
Examining data/gpsim-0.31.0/src/clc.h
Examining data/gpsim-0.31.0/src/16bit-tmrs.h
Examining data/gpsim-0.31.0/src/tmr0.cc
Examining data/gpsim-0.31.0/src/sim_context.h
Examining data/gpsim-0.31.0/src/icd.h
Examining data/gpsim-0.31.0/src/gpsim_object.h
Examining data/gpsim-0.31.0/src/op_amp.cc
Examining data/gpsim-0.31.0/src/14bit-processors.h
Examining data/gpsim-0.31.0/src/pie.h
Examining data/gpsim-0.31.0/src/fopen-path.h
Examining data/gpsim-0.31.0/src/bit.h
Examining data/gpsim-0.31.0/src/14bit-processors.cc
Examining data/gpsim-0.31.0/src/processor.cc
Examining data/gpsim-0.31.0/src/p16f62x.h
Examining data/gpsim-0.31.0/src/protocol.cc
Examining data/gpsim-0.31.0/src/zcd.h
Examining data/gpsim-0.31.0/src/psp.cc
Examining data/gpsim-0.31.0/src/os_dependent.cc
Examining data/gpsim-0.31.0/src/14bit-instructions.cc
Examining data/gpsim-0.31.0/src/clc.cc
Examining data/gpsim-0.31.0/src/lcd_module.h
Examining data/gpsim-0.31.0/src/init.cc
Examining data/gpsim-0.31.0/src/pic-instructions.cc
Examining data/gpsim-0.31.0/src/attributes.h
Examining data/gpsim-0.31.0/src/p16f62x.cc
Examining data/gpsim-0.31.0/src/trace.cc
Examining data/gpsim-0.31.0/src/stimuli.h
Examining data/gpsim-0.31.0/src/12bit-hexdecode.cc
Examining data/gpsim-0.31.0/src/16bit-instructions.cc
Examining data/gpsim-0.31.0/src/gpsim_classes.h
Examining data/gpsim-0.31.0/src/dsm_module.cc
Examining data/gpsim-0.31.0/src/pic-ioports.h
Examining data/gpsim-0.31.0/src/sim_context.cc
Examining data/gpsim-0.31.0/src/p12f6xx.cc
Examining data/gpsim-0.31.0/src/uart.h
Examining data/gpsim-0.31.0/src/bit.cc
Examining data/gpsim-0.31.0/src/ssp.h
Examining data/gpsim-0.31.0/src/p16x8x.h
Examining data/gpsim-0.31.0/src/registers.cc
Examining data/gpsim-0.31.0/src/uart.cc
Examining data/gpsim-0.31.0/src/dspic/dspic-registers.cc
Examining data/gpsim-0.31.0/src/dspic/dspic-processors.cc
Examining data/gpsim-0.31.0/src/dspic/dspic-registers.h
Examining data/gpsim-0.31.0/src/dspic/dspic-instructions.h
Examining data/gpsim-0.31.0/src/dspic/dspic-processors.h
Examining data/gpsim-0.31.0/src/dspic/dspic-instructions.cc
Examining data/gpsim-0.31.0/src/dspic/gpsim_modules.cc
Examining data/gpsim-0.31.0/src/p16x6x.h
Examining data/gpsim-0.31.0/src/comparator.h
Examining data/gpsim-0.31.0/src/xref.h
Examining data/gpsim-0.31.0/src/a2d_v2.cc
Examining data/gpsim-0.31.0/src/operator.h
Examining data/gpsim-0.31.0/src/symbol.cc
Examining data/gpsim-0.31.0/src/interface.cc
Examining data/gpsim-0.31.0/src/lxt_write.c
Examining data/gpsim-0.31.0/src/pic-ioports.cc
Examining data/gpsim-0.31.0/src/p16f87x.h
Examining data/gpsim-0.31.0/src/gpsim_object.cc
Examining data/gpsim-0.31.0/src/ValueCollections.cc
Examining data/gpsim-0.31.0/src/eeprom.h
Examining data/gpsim-0.31.0/src/lcd_module.cc
Examining data/gpsim-0.31.0/src/interface.h
Examining data/gpsim-0.31.0/src/ttoken.h
Examining data/gpsim-0.31.0/src/pic-registers.cc
Examining data/gpsim-0.31.0/src/14bit-instructions.h
Examining data/gpsim-0.31.0/src/pic-registers.h
Examining data/gpsim-0.31.0/src/protocol.h
Examining data/gpsim-0.31.0/src/dsm_module.h
Examining data/gpsim-0.31.0/src/spp.cc
Examining data/gpsim-0.31.0/src/16bit-processors.h
Examining data/gpsim-0.31.0/src/12bit-processors.cc
Examining data/gpsim-0.31.0/src/errors.cc
Examining data/gpsim-0.31.0/src/pic-processor.h
Examining data/gpsim-0.31.0/src/p18x.h
Examining data/gpsim-0.31.0/src/ssp.cc
Examining data/gpsim-0.31.0/src/16bit-registers.cc
Examining data/gpsim-0.31.0/src/ui.cc
Examining data/gpsim-0.31.0/src/p12x.cc
Examining data/gpsim-0.31.0/src/xref.cc
Examining data/gpsim-0.31.0/src/p16x5x.h
Examining data/gpsim-0.31.0/src/program_files.h
Examining data/gpsim-0.31.0/src/nco.cc
Examining data/gpsim-0.31.0/src/cmd_manager.h
Examining data/gpsim-0.31.0/src/p16x7x.h
Examining data/gpsim-0.31.0/src/value.h
Examining data/gpsim-0.31.0/src/gpsim_def.h
Examining data/gpsim-0.31.0/src/hexutils.cc
Examining data/gpsim-0.31.0/src/p16f91x.cc
Examining data/gpsim-0.31.0/src/psp.h
Examining data/gpsim-0.31.0/src/cod.cc
Examining data/gpsim-0.31.0/src/p17c75x.h
Examining data/gpsim-0.31.0/src/expr.h
Examining data/gpsim-0.31.0/src/ttoken.cc
Examining data/gpsim-0.31.0/src/comparator.cc
Examining data/gpsim-0.31.0/src/16bit-instructions.h
Examining data/gpsim-0.31.0/src/icd.cc
Examining data/gpsim-0.31.0/src/trigger.h
Examining data/gpsim-0.31.0/src/errors.h
Examining data/gpsim-0.31.0/src/processor.h
Examining data/gpsim-0.31.0/src/16bit-tmrs.cc
Examining data/gpsim-0.31.0/src/spp.h
Examining data/gpsim-0.31.0/src/bitlog.cc
Examining data/gpsim-0.31.0/src/16bit-registers.h
Examining data/gpsim-0.31.0/src/p12x.h
Examining data/gpsim-0.31.0/src/12bit-processors.h
Examining data/gpsim-0.31.0/src/p18fk.cc
Examining data/gpsim-0.31.0/src/modules.h
Examining data/gpsim-0.31.0/src/p1xf1xxx.cc
Examining data/gpsim-0.31.0/src/pm_rd.cc
Examining data/gpsim-0.31.0/src/hexutils.h
Examining data/gpsim-0.31.0/src/eeprom.cc
Examining data/gpsim-0.31.0/src/pir.h
Examining data/gpsim-0.31.0/src/breakpoints.cc
Examining data/gpsim-0.31.0/src/zcd.cc
Examining data/gpsim-0.31.0/src/attributes.cc
Examining data/gpsim-0.31.0/src/clock_phase.h
Examining data/gpsim-0.31.0/src/rcon.h
Examining data/gpsim-0.31.0/src/p18fk.h
Examining data/gpsim-0.31.0/src/op_amp.h
Examining data/gpsim-0.31.0/src/fopen-path.cc
Examining data/gpsim-0.31.0/src/pie.cc
Examining data/gpsim-0.31.0/src/trace_orb.h
Examining data/gpsim-0.31.0/src/p1xf1xxx.h
Examining data/gpsim-0.31.0/src/i2c-ee.cc
Examining data/gpsim-0.31.0/src/p16x5x.cc
Examining data/gpsim-0.31.0/src/operator.cc
Examining data/gpsim-0.31.0/src/packages.cc
Examining data/gpsim-0.31.0/src/16bit-processors.cc
Examining data/gpsim-0.31.0/src/16bit-hexdecode.cc
Examining data/gpsim-0.31.0/src/intcon.h
Examining data/gpsim-0.31.0/src/pm_rd.h
Examining data/gpsim-0.31.0/src/program_files.cc
Examining data/gpsim-0.31.0/src/a2dconverter.h
Examining data/gpsim-0.31.0/src/registers.h
Examining data/gpsim-0.31.0/src/p16f8x.cc
Examining data/gpsim-0.31.0/src/cwg.cc
Examining data/gpsim-0.31.0/src/packages.h
Examining data/gpsim-0.31.0/src/pps.h
Examining data/gpsim-0.31.0/src/ioports.h
Examining data/gpsim-0.31.0/src/a2dconverter.cc
Examining data/gpsim-0.31.0/src/pic-packages.h
Examining data/gpsim-0.31.0/src/pic-instructions.h
Examining data/gpsim-0.31.0/src/i2c-ee.h
Examining data/gpsim-0.31.0/src/bytelog.h
Examining data/gpsim-0.31.0/src/p16f8x.h
Examining data/gpsim-0.31.0/src/value.cc
Examining data/gpsim-0.31.0/src/nco.h
Examining data/gpsim-0.31.0/src/clock_phase.cc
Examining data/gpsim-0.31.0/src/p16x8x.cc
Examining data/gpsim-0.31.0/src/gpsim_time.h
Examining data/gpsim-0.31.0/src/trace.h
Examining data/gpsim-0.31.0/src/p18x.cc
Examining data/gpsim-0.31.0/src/ctmu.cc
Examining data/gpsim-0.31.0/src/p16f87x.cc
Examining data/gpsim-0.31.0/src/p16x7x.cc
Examining data/gpsim-0.31.0/src/p16f88x.h
Examining data/gpsim-0.31.0/src/cod.h
Examining data/gpsim-0.31.0/src/ioports.cc
Examining data/gpsim-0.31.0/src/p16f91x.h
Examining data/gpsim-0.31.0/src/gpsim_time.cc
Examining data/gpsim-0.31.0/src/intcon.cc
Examining data/gpsim-0.31.0/src/14bit-registers.h
Examining data/gpsim-0.31.0/src/exports.h
Examining data/gpsim-0.31.0/src/14bit-registers.cc
Examining data/gpsim-0.31.0/src/breakpoints.h
Examining data/gpsim-0.31.0/src/trigger.cc
Examining data/gpsim-0.31.0/eXdbm/test2.c
Examining data/gpsim-0.31.0/eXdbm/eXdbmTypes.h
Examining data/gpsim-0.31.0/eXdbm/eXdbm.c
Examining data/gpsim-0.31.0/eXdbm/parse.h
Examining data/gpsim-0.31.0/eXdbm/eXdbm.h
Examining data/gpsim-0.31.0/eXdbm/eXdbmErrors.h
Examining data/gpsim-0.31.0/eXdbm/hash.h
Examining data/gpsim-0.31.0/eXdbm/hash.c
Examining data/gpsim-0.31.0/eXdbm/test3.c
Examining data/gpsim-0.31.0/eXdbm/misc.h
Examining data/gpsim-0.31.0/eXdbm/misc.c
Examining data/gpsim-0.31.0/eXdbm/test1.c
Examining data/gpsim-0.31.0/eXdbm/parse.c
Examining data/gpsim-0.31.0/examples/scripts/client2.cc
Examining data/gpsim-0.31.0/examples/scripts/client3.cc
Examining data/gpsim-0.31.0/examples/scripts/client_interface.h
Examining data/gpsim-0.31.0/examples/scripts/client.cc
Examining data/gpsim-0.31.0/examples/scripts/client_interface.cc
Examining data/gpsim-0.31.0/gui/gui_symbols.h
Examining data/gpsim-0.31.0/gui/gui_statusbar.cc
Examining data/gpsim-0.31.0/gui/gui_src_opcode.cc
Examining data/gpsim-0.31.0/gui/gui_statusbar.h
Examining data/gpsim-0.31.0/gui/gui_regwin.h
Examining data/gpsim-0.31.0/gui/gui_main.cc
Examining data/gpsim-0.31.0/gui/gui_stack.cc
Examining data/gpsim-0.31.0/gui/gui_scope.cc
Examining data/gpsim-0.31.0/gui/gui_processor.h
Examining data/gpsim-0.31.0/gui/gui_menu.cc
Examining data/gpsim-0.31.0/gui/gui_src_asm.cc
Examining data/gpsim-0.31.0/gui/settings.h
Examining data/gpsim-0.31.0/gui/gui_profile.cc
Examining data/gpsim-0.31.0/gui/gui_breadboard.cc
Examining data/gpsim-0.31.0/gui/gui_scope.h
Examining data/gpsim-0.31.0/gui/gui_breadboard.h
Examining data/gpsim-0.31.0/gui/gui_trace.cc
Examining data/gpsim-0.31.0/gui/gui_regwin.cc
Examining data/gpsim-0.31.0/gui/gtkextra/gtkitementry.h
Examining data/gpsim-0.31.0/gui/gtkextra/gtkextrafeatures.h
Examining data/gpsim-0.31.0/gui/gtkextra/gtkextra.c
Examining data/gpsim-0.31.0/gui/gtkextra/gtksheet.c
Examining data/gpsim-0.31.0/gui/gtkextra/gtksheet.h
Examining data/gpsim-0.31.0/gui/gtkextra/gtkextra-marshal.h
Examining data/gpsim-0.31.0/gui/gtkextra/gtkextra-marshal.c
Examining data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c
Examining data/gpsim-0.31.0/gui/gui_stopwatch.h
Examining data/gpsim-0.31.0/gui/gui_symbols.cc
Examining data/gpsim-0.31.0/gui/gui_object.cc
Examining data/gpsim-0.31.0/gui/gui.h
Examining data/gpsim-0.31.0/gui/settings_exdbm.cc
Examining data/gpsim-0.31.0/gui/gui_break.cc
Examining data/gpsim-0.31.0/gui/gui_watch.cc
Examining data/gpsim-0.31.0/gui/gui_processor.cc
Examining data/gpsim-0.31.0/gui/gui_src.cc
Examining data/gpsim-0.31.0/gui/gui_stopwatch.cc
Examining data/gpsim-0.31.0/gui/gui_interface.h
Examining data/gpsim-0.31.0/gui/gui_object.h
Examining data/gpsim-0.31.0/gui/gui_register.h
Examining data/gpsim-0.31.0/gui/gui_watch.h
Examining data/gpsim-0.31.0/gui/gui_profile.h
Examining data/gpsim-0.31.0/gui/gui_trace.h
Examining data/gpsim-0.31.0/gui/settings_exdbm.h
Examining data/gpsim-0.31.0/gui/gui_stack.h
Examining data/gpsim-0.31.0/gui/preferences.h
Examining data/gpsim-0.31.0/gui/preferences.cc
Examining data/gpsim-0.31.0/gui/gui_src.h
Examining data/gpsim-0.31.0/extras/solar/solar.cc
Examining data/gpsim-0.31.0/extras/solar/solar.h
Examining data/gpsim-0.31.0/extras/lcd/lcd.cc
Examining data/gpsim-0.31.0/extras/lcd/raw_lcd.h
Examining data/gpsim-0.31.0/extras/lcd/hd44780.cc
Examining data/gpsim-0.31.0/extras/lcd/raw_lcd.cc
Examining data/gpsim-0.31.0/extras/lcd/lcd.h
Examining data/gpsim-0.31.0/extras/lcd/lcdfont.h
Examining data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c
Examining data/gpsim-0.31.0/extras/lcd/lcdgui.cc
Examining data/gpsim-0.31.0/extras/lcd/hd44780.h
Examining data/gpsim-0.31.0/extras/dht11/dht11.h
Examining data/gpsim-0.31.0/extras/dht11/dht11.cc
Examining data/gpsim-0.31.0/extras/module_manager.cc
Examining data/gpsim-0.31.0/extras/graphic_lcd/utils/pngtopic.c
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/glcd.h
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/ssd0323.h
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/glcd.cc
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/glcd_100X32_sed1520.h
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/osram.h
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/glcd_100X32_sed1520.cc
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/ssd0323.cc
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/sed1520.cc
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/sed1520.h
Examining data/gpsim-0.31.0/extras/graphic_lcd/src/osram.cc
Examining data/gpsim-0.31.0/extras/ds1820/ds1820.cc
Examining data/gpsim-0.31.0/extras/ds1820/rom1w.cc
Examining data/gpsim-0.31.0/extras/ds1820/bit1w.h
Examining data/gpsim-0.31.0/extras/ds1820/ds1820.h
Examining data/gpsim-0.31.0/extras/ds1820/rom1w.h
Examining data/gpsim-0.31.0/extras/ds1820/bit1w.cc
Examining data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c
Examining data/gpsim-0.31.0/extras/ds1307/ds1307.h
Examining data/gpsim-0.31.0/extras/ds1307/ds1307.cc
Examining data/gpsim-0.31.0/modules/usart.h
Examining data/gpsim-0.31.0/modules/ttl.h
Examining data/gpsim-0.31.0/modules/m_stimuli.cc
Examining data/gpsim-0.31.0/modules/usart.cc
Examining data/gpsim-0.31.0/modules/i2c-eeprom.cc
Examining data/gpsim-0.31.0/modules/video.cc
Examining data/gpsim-0.31.0/modules/m_stimuli.h
Examining data/gpsim-0.31.0/modules/switch.cc
Examining data/gpsim-0.31.0/modules/i2c2par.h
Examining data/gpsim-0.31.0/modules/logic.h
Examining data/gpsim-0.31.0/modules/ttl.cc
Examining data/gpsim-0.31.0/modules/switch.h
Examining data/gpsim-0.31.0/modules/encoder.cc
Examining data/gpsim-0.31.0/modules/logic.cc
Examining data/gpsim-0.31.0/modules/i2c.h
Examining data/gpsim-0.31.0/modules/i2c-eeprom.h
Examining data/gpsim-0.31.0/modules/led.h
Examining data/gpsim-0.31.0/modules/video.h
Examining data/gpsim-0.31.0/modules/resistor.cc
Examining data/gpsim-0.31.0/modules/module_attribute.h
Examining data/gpsim-0.31.0/modules/led.cc
Examining data/gpsim-0.31.0/modules/resistor.h
Examining data/gpsim-0.31.0/modules/gpsim_modules.cc
Examining data/gpsim-0.31.0/modules/encoder.h
Examining data/gpsim-0.31.0/modules/i2c.cc
Examining data/gpsim-0.31.0/modules/push_button.h
Examining data/gpsim-0.31.0/modules/push_button.cc
Examining data/gpsim-0.31.0/modules/i2c2par.cc

FINAL RESULTS:

data/gpsim-0.31.0/eXdbm/test3.c:650:5:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    gets(comval);
data/gpsim-0.31.0/eXdbm/test3.c:807:5:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    gets(comval);
data/gpsim-0.31.0/eXdbm/test3.c:864:5:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    gets(sval);
data/gpsim-0.31.0/eXdbm/test3.c:877:5:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    gets(sval);
data/gpsim-0.31.0/gui/gui_src_asm.cc:2266:14:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
  while(pFC->gets(text_buffer, sizeof(text_buffer))) {
data/gpsim-0.31.0/src/cod.cc:736:38:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
      while (cpu->files[file_index]->gets(text_buffer, sizeof(text_buffer)) != 0) {
data/gpsim-0.31.0/src/processor.cc:884:16:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    while (fc->gets(buf, sizeof(buf))) {
data/gpsim-0.31.0/src/processor.cc:2707:20:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
char *FileContext::gets(char *buf, unsigned int nBytes)
data/gpsim-0.31.0/src/processor.cc:2889:24:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
char *FileContextList::gets(int file_id, char *buf, int nBytes)
data/gpsim-0.31.0/src/processor.cc:2894:16:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    return fc->gets(buf, nBytes);
data/gpsim-0.31.0/src/processor.h:286:11:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    char *gets(char *buf, unsigned int nBytes);
data/gpsim-0.31.0/src/processor.h:350:11:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    char *gets(int file_id, char *buf, int nBytes);
data/gpsim-0.31.0/cli/parse.cc:1201: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/gpsim-0.31.0/cli/socket.cc:102:9:  [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/gpsim-0.31.0/cli/socket.cc:102:19:  [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/gpsim-0.31.0/cli/ui_gpsim.cc:18:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(m_pfOut, fmt, ap);
data/gpsim-0.31.0/cli/ui_gpsim.cc:25:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(m_pfOut, fmt, argptr);
data/gpsim-0.31.0/eXdbm/eXdbm.c:233: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(DbmDbList->dblist[temp_id].filename, filename);
data/gpsim-0.31.0/eXdbm/eXdbm.c:353: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(DbmDbList->dblist[temp_id].filename, filename);
data/gpsim-0.31.0/eXdbm/eXdbm.c:560: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(filename, DbmDbList->dblist[*dbid].filename);
data/gpsim-0.31.0/eXdbm/eXdbm.c:823: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(*value,search->value.str_val);
data/gpsim-0.31.0/eXdbm/eXdbm.c:875: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(*value,search->value.str_val);
data/gpsim-0.31.0/eXdbm/eXdbm.c:1112: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(search->comment, comment);
data/gpsim-0.31.0/eXdbm/eXdbm.c:1262: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(search->value.str_val, newvalue);
data/gpsim-0.31.0/eXdbm/eXdbm.c:1324: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(search->value.str_val, newvalue);
data/gpsim-0.31.0/eXdbm/eXdbm.c:1596: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(node->value.str_val, value);
data/gpsim-0.31.0/eXdbm/eXdbm.c:1647: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(node->value.str_val, value);
data/gpsim-0.31.0/eXdbm/misc.c:400: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(node->key, entryname);
data/gpsim-0.31.0/eXdbm/misc.c:409: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(node->comment, comment);
data/gpsim-0.31.0/eXdbm/parse.c:388: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(value->str_val,value_string);
data/gpsim-0.31.0/eXdbm/parse.c:425: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(value->str_val,value_string);
data/gpsim-0.31.0/eXdbm/parse.c:538: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(newnode->key, current_token);
data/gpsim-0.31.0/eXdbm/parse.c:550: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(newnode->comment, last_comment);
data/gpsim-0.31.0/eXdbm/parse.c:639: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(newnode->key, current_token);
data/gpsim-0.31.0/eXdbm/parse.c:651: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(newnode->comment, last_comment);
data/gpsim-0.31.0/eXdbm/test3.c:86:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", fname);
data/gpsim-0.31.0/eXdbm/test3.c:121:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", fname);
data/gpsim-0.31.0/eXdbm/test3.c:287:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", fname);
data/gpsim-0.31.0/eXdbm/test3.c:386:3:  [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.
  system("less test.database.tmp");
data/gpsim-0.31.0/eXdbm/test3.c:390:3:  [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.
  system("rm test.database.tmp");
data/gpsim-0.31.0/eXdbm/test3.c:465:7:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      scanf("%s", name);
data/gpsim-0.31.0/eXdbm/test3.c:471:2:  [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(path,name);
data/gpsim-0.31.0/eXdbm/test3.c:478:7:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      scanf("%s", name);
data/gpsim-0.31.0/eXdbm/test3.c:485:2:  [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(path, name);
data/gpsim-0.31.0/eXdbm/test3.c:492:7:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      scanf("%s", searchpath);
data/gpsim-0.31.0/eXdbm/test3.c:499:2:  [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(path, searchpath);
data/gpsim-0.31.0/eXdbm/test3.c:537:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", name);
data/gpsim-0.31.0/eXdbm/test3.c:629:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", name);
data/gpsim-0.31.0/eXdbm/test3.c:644:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", choice);
data/gpsim-0.31.0/eXdbm/test3.c:668:18:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if(etype==0) scanf("%s", choice);
data/gpsim-0.31.0/eXdbm/test3.c:711:5:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    scanf("%s", sval);
data/gpsim-0.31.0/eXdbm/test3.c:728:5:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    scanf("%s", sval);
data/gpsim-0.31.0/eXdbm/test3.c:741:5:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    scanf("%s", sval);
data/gpsim-0.31.0/eXdbm/test3.c:781:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", name);
data/gpsim-0.31.0/eXdbm/test3.c:801:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", choice);
data/gpsim-0.31.0/eXdbm/test3.c:847:5:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    scanf("%s", sval);
data/gpsim-0.31.0/eXdbm/test3.c:913:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", name);
data/gpsim-0.31.0/eXdbm/test3.c:962:3:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanf("%s", choice);
data/gpsim-0.31.0/extras/dht11/dht11.cc:58:84:  [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 Dprintf(arg) {printf("module-%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/extras/ds1307/ds1307.cc:28:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/extras/graphic_lcd/src/ssd0323.cc:34:63:  [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 Dprintf(arg) {printf("%s:%d ",__FUNCTION__,__LINE__); printf arg; }
data/gpsim-0.31.0/extras/lcd/hd44780.cc:42:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/extras/lcd/lcd.cc:71:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/extras/lcd/raw_lcd.cc:72:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:86: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(out_file, DEF_FILE);
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:87: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, DEF_NAME);
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:143: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((char *)data[i].data, ptr);
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:161:18:  [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).
      case 'o':  strcpy(out_file, optarg);   break;
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:164:18:  [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).
      case 'n':  strcpy(name, optarg);       break;
data/gpsim-0.31.0/gui/gui.h:37:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/gui/gui_stack.cc:127: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(name,closest_symbol->name().data());
data/gpsim-0.31.0/modules/i2c.cc:206:64:  [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 Dprintf(arg) {printf("%5d:%s ",__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/modules/i2c.cc:212:74:  [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 Vprintf(arg) { if (verbose) {printf("%s:%d ",__FILE__,__LINE__); printf arg;} }
data/gpsim-0.31.0/modules/i2c2par.cc:34:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/modules/ttl.cc:44:75:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Dprintf(arg) {printf("%s:%d %s ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/modules/usart.cc:67:84:  [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 Dprintf(arg) {printf("module-%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/14bit-instructions.cc:33:73:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Dprintf(arg) {printf("0x%06X %s() ",cycles.get(),__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/14bit-processors.cc:37:99:  [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 Dprintf(arg) {printf("0x%06" PRINTF_GINT64_MODIFIER "X %s() ",cycles.get(),__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/14bit-registers.cc:48:101:  [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 Dprintf(arg) {printf("0x%06" PRINTF_GINT64_MODIFIER "X %s() ", cycles.get(), __FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/14bit-registers.cc:56:102:  [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 CDprintf(arg) {printf("0x%06" PRINTF_GINT64_MODIFIER "X %s() ", cycles.get(), __FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/14bit-tmrs.cc:52:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/16bit-instructions.cc:386: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:419: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:465: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:672: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:690: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:708: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:732: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:765: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:851: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:889: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:920: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:951: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:972: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1027: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1059: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1101: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1156: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1188: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1230: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1276: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1416: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1649: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1722: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1755: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1930: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:1968: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2007: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2046: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2083: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2132: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2163: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2192: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2223: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2404: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) {
data/gpsim-0.31.0/src/16bit-instructions.cc:2441: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) {
data/gpsim-0.31.0/src/a2d_v2.cc:42:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/a2dconverter.cc:45:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/breakpoints.cc:2182: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(command, _command);
data/gpsim-0.31.0/src/clc.cc:26:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/clock_phase.cc:126:73:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Rprintf(arg) {printf("0x%06X %s() ",cycles.get(),__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/comparator.cc:48:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/ctmu.cc:32:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/cwg.cc:26:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/dspic/dspic-instructions.cc:374:7:  [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(buff,len,m_cPformat,m_cpu->registers[m_addr]->name().c_str());
data/gpsim-0.31.0/src/eeprom.cc:55:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/expr.cc:328:5:  [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(sBuffer, sizeof(sBuffer), sFormat, m_uAddress);
data/gpsim-0.31.0/src/i2c-ee.cc:39:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/i2c-ee.cc:44:74:  [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 Vprintf(arg) { if (verbose) {printf("%s:%d ",__FILE__,__LINE__); printf arg;} }
data/gpsim-0.31.0/src/icd.cc:368:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  (void) vsnprintf(command, MAX_CMD_LEN, cmd, ap);
data/gpsim-0.31.0/src/intcon.cc:37:58:  [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 Dprintf(arg) {printf("%s:%d",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/ioports.cc:40:75:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Dprintf(arg) {printf("%s:%d-%s ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/ioports.cc:46:85:  [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 D2printf(arg) {fprintf(stderr, "%s:%d-%s ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/lcd_module.cc:31:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/lxt_write.c:146: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(s->name = (char *)malloc((s->namlen = strlen(name)) + 1), name);
data/gpsim-0.31.0/src/lxt_write.c:209: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(lt->compress_fac_str, str);
data/gpsim-0.31.0/src/nco.cc:26:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/op_amp.cc:27:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/operator.cc:777:7:  [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(sMsg, sizeof(sMsg), sFormat, (int)iOp->getVal());
data/gpsim-0.31.0/src/p12f6xx.cc:50:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/p16f88x.cc:48:78:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__, __FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/p1xf1xxx.cc:55:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/pic-instructions.cc:431: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) && (register_address >= cpu_pic->access_gprs())) { // some 18f devices split at 0x60
data/gpsim-0.31.0/src/pic-instructions.cc:473:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
             access ? '1' : '0');
data/gpsim-0.31.0/src/pic-instructions.cc:479: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:524: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:544:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
             access ? '1' : '0');
data/gpsim-0.31.0/src/pic-instructions.cc:573: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) && (register_address >= cpu_pic->access_gprs())) { // some 18f devices split at 0x60
data/gpsim-0.31.0/src/pic-instructions.cc:614: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:650:15:  [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.
  source = ((!access) ?
data/gpsim-0.31.0/src/pic-instructions.cc:705: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:739:15:  [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.
  source = ((!access) ?
data/gpsim-0.31.0/src/pic-instructions.cc:775: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:859: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:883: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:913: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1007: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1023: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1085: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1120: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1155: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1230: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1267: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1326: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1360:15:  [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.
  source = ((!access) ?
data/gpsim-0.31.0/src/pic-instructions.cc:1395:15:  [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.
  source = ((!access) ?
data/gpsim-0.31.0/src/pic-instructions.cc:1480: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1520: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1535: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1637: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1672: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1724: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1760:15:  [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.
  source = ((!access) ?
data/gpsim-0.31.0/src/pic-instructions.cc:1793: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) {
data/gpsim-0.31.0/src/pic-instructions.cc:1902: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) {
data/gpsim-0.31.0/src/pic-ioports.cc:35:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/pic-registers.cc:44:99:  [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 Dprintf(arg) {printf("0x%06" PRINTF_GINT64_MODIFIER "X %s() ",cycles.get(),__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/pps.cc:26:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/src/processor.cc:76:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/psp.cc:30:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/spp.cc:33:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/ssp.cc:36:100:  [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 Dprintf(arg) {printf("%s:%d-%s() %s ",__FILE__,__LINE__,__FUNCTION__,cpu->name().c_str()); printf arg; }
data/gpsim-0.31.0/src/ssp.cc:43:76:  [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 I2Cproto(arg) {printf("I2C %s %d ",cpu->name().c_str(), __LINE__); printf arg;}
data/gpsim-0.31.0/src/ssp.cc:50:77:  [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 SPIproto(arg) {printf("SPI %s %d ", cpu->name().c_str(), __LINE__); printf arg;}
data/gpsim-0.31.0/src/stimuli.cc:48:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/tmr0.cc:42:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/trace.cc:43:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/uart.cc:41:77:  [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 Dprintf(arg) {printf("%s:%d-%s() ",__FILE__,__LINE__,__FUNCTION__); printf arg; }
data/gpsim-0.31.0/src/ui.cc:252:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(pOut, m_paStrings[uStringID], ap);
data/gpsim-0.31.0/src/ui.cc:275:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(pOut, fmt, ap);
data/gpsim-0.31.0/src/value.cc:447: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(cvtBuf, sizeof(cvtBuf), format, left, right);
data/gpsim-0.31.0/src/value.cc:584: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(cvtBuf, sizeof(cvtBuf), format, b);
data/gpsim-0.31.0/src/value.cc:651:5:  [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(buffer, buf_size, (b ? "true" : "false"));
data/gpsim-0.31.0/src/value.cc:826:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(szHex, pValue + 1);
data/gpsim-0.31.0/src/value.cc:911: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(cvtBuf, sizeof(cvtBuf), format, i);
data/gpsim-0.31.0/src/value.cc:919: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(cvtBuf, sizeof(cvtBuf), format, value);
data/gpsim-0.31.0/src/value.cc:1183: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(cvtBuf, sizeof(cvtBuf), format, d);
data/gpsim-0.31.0/src/zcd.cc:26:59:  [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 Dprintf(arg) {printf("%s:%d ",__FILE__,__LINE__); printf arg; }
data/gpsim-0.31.0/extras/lcd/lcd.cc:398: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.
  if (getenv("GPSIM_LCD_DEBUG")) {
data/gpsim-0.31.0/extras/lcd/lcd.cc:399:18:  [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.
    debug = atoi(getenv("GPSIM_LCD_DEBUG"));
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:159:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt_long(argc, argv, OPT_STR, longopts, &longindex)) != -1) {
data/gpsim-0.31.0/gui/settings_exdbm.cc:39: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.
  homedir = getenv("HOME");
data/gpsim-0.31.0/plat/win32/fd2raw.cpp:42:11:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  hinst = LoadLibrary("MSVCRT.DLL");
data/gpsim-0.31.0/src/os_dependent.cc:160:31:  [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 * pszGpsimModulePath = getenv("GPSIM_MODULE_PATH");
data/gpsim-0.31.0/src/os_dependent.cc:273:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  handle = (void *)LoadLibrary((LPCSTR)library_name);
data/gpsim-0.31.0/cli/cmd_clear.cc:66: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 szParam[20];
data/gpsim-0.31.0/cli/cmd_dump.cc:155: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 s1[256];
data/gpsim-0.31.0/cli/cmd_dump.cc:176:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (filename && (fd = fopen(filename, "w")) == nullptr) {
data/gpsim-0.31.0/cli/cmd_load.cc:136: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).
	else if ((file = fopen(filename, "r")) == NULL)
data/gpsim-0.31.0/cli/cmd_load.cc:192:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s1[256];
data/gpsim-0.31.0/cli/cmd_load.cc:211: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).
  if ((fd = fopen(filename, "r")) == NULL)
data/gpsim-0.31.0/cli/cmd_load.cc:264: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 s1[256];
data/gpsim-0.31.0/cli/cmd_load.cc:268: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 s2[256];
data/gpsim-0.31.0/cli/cmd_trace.cc:148:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen(cos->str,"w");
data/gpsim-0.31.0/cli/cmd_x.cc:96: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 str[33];
data/gpsim-0.31.0/cli/cmd_x.cc:114:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[33];
data/gpsim-0.31.0/cli/input.cc:526: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 directory[256];
data/gpsim-0.31.0/cli/input.cc:540: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).
  cmd_file = fopen(file_name, "r");
data/gpsim-0.31.0/cli/input.cc:550: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 str[256];
data/gpsim-0.31.0/cli/input.cc:580: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 cw[_MAX_PATH];
data/gpsim-0.31.0/cli/input.cc:703: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 line[256];
data/gpsim-0.31.0/cli/input.cc:712: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 line[256];
data/gpsim-0.31.0/cli/input.cc:832: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 last_line[256] = {0};
data/gpsim-0.31.0/cli/parse.cc:1447: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/gpsim-0.31.0/cli/parse.cc:1639: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/gpsim-0.31.0/cli/scan.cc:683: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 macroBody[65536], *macroBodyPtr=0;
data/gpsim-0.31.0/cli/scan.cc:3210: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 s[256];
data/gpsim-0.31.0/cli/socket.cc:704: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 tmp[256];
data/gpsim-0.31.0/cli/socket.cc:728: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 tmp[256];
data/gpsim-0.31.0/cli/socket.cc:986:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char st[5];
data/gpsim-0.31.0/cli/socket.cc:1023:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[256];
data/gpsim-0.31.0/eXdbm/eXdbm.c:195: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, "rt");
data/gpsim-0.31.0/eXdbm/eXdbm.c:426: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(DbmDbList->dblist[dbid].filename, "wt");
data/gpsim-0.31.0/eXdbm/eXdbm.c:468: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, "wt");
data/gpsim-0.31.0/eXdbm/parse.c:176: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 value_string[MAX_ENTRY_LENGTH];
data/gpsim-0.31.0/eXdbm/parse.c:235:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	value->int_val = atoi(value_string);
data/gpsim-0.31.0/eXdbm/parse.c:279:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      value->int_val = atoi(value_string);
data/gpsim-0.31.0/eXdbm/parse.c:447: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 current_token[MAX_ENTRY_LENGTH];
data/gpsim-0.31.0/eXdbm/parse.c:449: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 last_comment[MAX_ENTRY_LENGTH];
data/gpsim-0.31.0/eXdbm/test3.c:70: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 fname[256];
data/gpsim-0.31.0/eXdbm/test3.c: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 fname[256];
data/gpsim-0.31.0/eXdbm/test3.c:258: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 fname[256];
data/gpsim-0.31.0/eXdbm/test3.c:428: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[256];
data/gpsim-0.31.0/eXdbm/test3.c:429:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[16384];
data/gpsim-0.31.0/eXdbm/test3.c:430: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 searchpath[16384];
data/gpsim-0.31.0/eXdbm/test3.c:434: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(path, "Root:");
data/gpsim-0.31.0/eXdbm/test3.c:459:7:  [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(path,"Root:");
data/gpsim-0.31.0/eXdbm/test3.c:484: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(path, "...:");
data/gpsim-0.31.0/eXdbm/test3.c:498:2:  [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(path, "Root:");
data/gpsim-0.31.0/eXdbm/test3.c:518: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[256];
data/gpsim-0.31.0/eXdbm/test3.c:608: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[256];
data/gpsim-0.31.0/eXdbm/test3.c:611: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 comval[256];
data/gpsim-0.31.0/eXdbm/test3.c:614: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 sval[256];
data/gpsim-0.31.0/eXdbm/test3.c:615: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 choice[10];
data/gpsim-0.31.0/eXdbm/test3.c:760: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[256];
data/gpsim-0.31.0/eXdbm/test3.c:763: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 comval[256];
data/gpsim-0.31.0/eXdbm/test3.c:766: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 sval[256];
data/gpsim-0.31.0/eXdbm/test3.c:767: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 choice[10];
data/gpsim-0.31.0/eXdbm/test3.c:896: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[256];
data/gpsim-0.31.0/eXdbm/test3.c:899: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 choice[10];
data/gpsim-0.31.0/examples/scripts/client_interface.cc:66: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 response[256];
data/gpsim-0.31.0/examples/scripts/client_interface.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        hname_buff[256];
data/gpsim-0.31.0/extras/ds1307/ds1307.cc:290: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 dim[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
data/gpsim-0.31.0/extras/ds1820/ds1820.h:46: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 scratchpad[9];
data/gpsim-0.31.0/extras/ds1820/rom1w.cc:163: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 myaddr[8];
data/gpsim-0.31.0/extras/ds1820/rom1w.h:48: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 octetBuffer[64];
data/gpsim-0.31.0/extras/graphic_lcd/src/ssd0323.h:96: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 cmdWords[20];
data/gpsim-0.31.0/extras/graphic_lcd/utils/pngtopic.c:102: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 header[8];
data/gpsim-0.31.0/extras/graphic_lcd/utils/pngtopic.c:141: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 *fp = fopen(file_name, "rb");
data/gpsim-0.31.0/extras/lcd/hd44780.h:138: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 m_DDRam[DDRAM_SIZE];
data/gpsim-0.31.0/extras/lcd/hd44780.h:142: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 m_CGRam[CGRAM_SIZE];
data/gpsim-0.31.0/extras/lcd/lcd.cc:399:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    debug = atoi(getenv("GPSIM_LCD_DEBUG"));
data/gpsim-0.31.0/extras/lcd/lcd.h:61: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.
typedef char _5X7 [7][6];
data/gpsim-0.31.0/extras/lcd/lcd.h:62: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.
typedef char _5X8 [8][6];
data/gpsim-0.31.0/extras/lcd/lcdgui.cc:223:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char title[128];
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:37: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[MAX_LENGTH];
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.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 out_file[MAX_LENGTH];
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:43: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 name[MAX_LENGTH];
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:143:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      strcpy((char *)data[i].data, ptr);
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:144:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      data[i].size = strlen((char *)data[i].data);
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:162:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'b':  baud = atoi(optarg);        break;
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:163:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'f':  frequency = atoi(optarg);   break;
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:189: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).
  if ((fp = fopen(out_file, "w")) == 0) {
data/gpsim-0.31.0/gpsim/main.cc: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 command_str[256];
data/gpsim-0.31.0/gpsim/main.cc:391: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[10];
data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c:775: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 (entry->text + index, new_text, new_text_length);
data/gpsim-0.31.0/gui/gui.h:116: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 pCellFormat[10];
data/gpsim-0.31.0/gui/gui_breadboard.cc:894:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:895:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char string[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:965: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 str[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1045:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[256];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1046:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char val[256];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1071: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 attribute_name[256];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1072: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 attribute_newval[256];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1108: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 attribute_value[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1109: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 attribute_string[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1144: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[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1641:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1642: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 library[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1643: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 *text[2] = {name, library};
data/gpsim-0.31.0/gui/gui_breadboard.cc:1665: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.
    const char *text[3];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1720:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char string[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1721: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 *fi = fopen(filename, "r");
data/gpsim-0.31.0/gui/gui_breadboard.cc:1942: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 attribute_value[STRING_SIZE];
data/gpsim-0.31.0/gui/gui_breadboard.cc:1965: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).
  if ((fo = fopen(filename, "w")) == nullptr) {
data/gpsim-0.31.0/gui/gui_menu.cc:1216: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[32];
data/gpsim-0.31.0/gui/gui_regwin.cc:1536: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 buffer[10];
data/gpsim-0.31.0/gui/gui_regwin.cc:1664: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 row_label[100];
data/gpsim-0.31.0/gui/gui_scope.cc:407: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[100];
data/gpsim-0.31.0/gui/gui_scope.cc:924: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 buff[100];
data/gpsim-0.31.0/gui/gui_src_asm.cc:796: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 buff[1024];
data/gpsim-0.31.0/gui/gui_src_asm.cc:872: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 buffer2[1024];
data/gpsim-0.31.0/gui/gui_src_asm.cc:1237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/gpsim-0.31.0/gui/gui_src_asm.cc:2042: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 child_name[64];
data/gpsim-0.31.0/gui/gui_src_asm.cc:2263:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text_buffer[256];
data/gpsim-0.31.0/gui/gui_src_asm.cc:2293:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(text_buffer, "; comment stripped, characters from unknown locale\n");
data/gpsim-0.31.0/gui/gui_src_asm.cc:2298: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(text_buffer, "; non-comment characters from unknow locale\n");
data/gpsim-0.31.0/gui/gui_src_opcode.cc:379: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 entrytext[128];
data/gpsim-0.31.0/gui/gui_src_opcode.cc:420: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 oc_buf[128];
data/gpsim-0.31.0/gui/gui_src_opcode.cc:422: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[128];
data/gpsim-0.31.0/gui/gui_src_opcode.cc:659: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/gpsim-0.31.0/gui/gui_src_opcode.cc:701: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 oc_buf[128];
data/gpsim-0.31.0/gui/gui_stack.cc:201: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 labelname[64];
data/gpsim-0.31.0/gui/gui_statusbar.cc:146:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/gpsim-0.31.0/gui/gui_stopwatch.cc:39: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 frequencystring[100];
data/gpsim-0.31.0/gui/gui_stopwatch.cc: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 cyclestring[100];
data/gpsim-0.31.0/gui/gui_stopwatch.cc:41: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 timestring[100];
data/gpsim-0.31.0/gui/gui_stopwatch.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 offsetstring[100];
data/gpsim-0.31.0/gui/gui_stopwatch.cc:43: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 rolloverstring[100];
data/gpsim-0.31.0/gui/gui_symbols.cc:175: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 value[SYM_LEN];
data/gpsim-0.31.0/gui/gui_watch.cc:204: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 cwv[100];
data/gpsim-0.31.0/gui/gui_watch.cc:226: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 cwv[100];
data/gpsim-0.31.0/gui/gui_watch.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 cwv[100];
data/gpsim-0.31.0/gui/gui_watch.cc:471:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[80] = "?";
data/gpsim-0.31.0/gui/gui_watch.cc:477: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 hStr[80];
data/gpsim-0.31.0/gui/gui_watch.cc:481: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 aStr[2];
data/gpsim-0.31.0/gui/gui_watch.cc:486: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 sBits[25];
data/gpsim-0.31.0/modules/led.cc:467: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 buff[20];
data/gpsim-0.31.0/modules/led.cc:569: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 buff[20];
data/gpsim-0.31.0/modules/m_stimuli.cc:539: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 fname[20] = "";
data/gpsim-0.31.0/modules/m_stimuli.cc:708: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 fname[20] = "";
data/gpsim-0.31.0/modules/m_stimuli.cc:940: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 pinNumber[3];
data/gpsim-0.31.0/modules/switch.cc:382: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 buff[20];
data/gpsim-0.31.0/modules/ttl.cc:209: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 pName[4];
data/gpsim-0.31.0/modules/ttl.cc:320:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pName[4] = "Q0";
data/gpsim-0.31.0/modules/ttl.cc: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 pName[4] = "D0";
data/gpsim-0.31.0/modules/usart.cc:1107: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 hex[5];
data/gpsim-0.31.0/modules/video.h:89: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 line[XRES];         // buffer for one line
data/gpsim-0.31.0/modules/video.h:90: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 shadow[XRES][YRES]; // pixmap mirror
data/gpsim-0.31.0/plat/win32/settings_reg.cpp:77: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[256];
data/gpsim-0.31.0/src/12bit-processors.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 sFrom[16];
data/gpsim-0.31.0/src/12bit-processors.cc:46: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 sTo[16];
data/gpsim-0.31.0/src/14bit-processors.cc:89: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 buff[256];
data/gpsim-0.31.0/src/14bit-registers.cc:2579: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 sFrom[16];
data/gpsim-0.31.0/src/14bit-registers.cc:2580: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 sTo[16];
data/gpsim-0.31.0/src/14bit-registers.cc:2603: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 sFrom[16];
data/gpsim-0.31.0/src/16bit-instructions.cc:2258: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.
  const char *index_modes[4] = {"*", "*+", "*-", "+*"};
data/gpsim-0.31.0/src/16bit-instructions.cc:2297: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.
  const char *index_modes[4] = {"*", "*+", "*-", "+*"};
data/gpsim-0.31.0/src/16bit-instructions.cc:2336: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.
  const char *index_modes[4] = {"*", "*+", "*-", "+*"};
data/gpsim-0.31.0/src/16bit-instructions.cc:2370: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.
  const char *index_modes[4] = {"*", "*+", "*-", "+*"};
data/gpsim-0.31.0/src/16bit-processors.cc:51: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 buff[256];
data/gpsim-0.31.0/src/16bit-processors.cc:52: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.
    const char *OSCdesc[8] =
data/gpsim-0.31.0/src/16bit-processors.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 buff[256];
data/gpsim-0.31.0/src/16bit-processors.cc:145: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 buff[256];
data/gpsim-0.31.0/src/16bit-processors.cc:198: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 buff[256];
data/gpsim-0.31.0/src/ValueCollections.h:153: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  m_szPrefix[3];
data/gpsim-0.31.0/src/ValueCollections.h:191: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 szIndex[12];
data/gpsim-0.31.0/src/ValueCollections.h:246: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 szIndex[10];
data/gpsim-0.31.0/src/a2d_v2.cc:391: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 newname[20];
data/gpsim-0.31.0/src/a2d_v2.cc:654: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 acq_tab[8] = { 0, 2, 4, 6, 8, 12, 16, 20};
data/gpsim-0.31.0/src/a2d_v2.cc:661: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 adcs_tab[8] = { 2, 8, 32, 0, 4, 16, 64, 0};
data/gpsim-0.31.0/src/a2d_v2.cc:821: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 newname[20];
data/gpsim-0.31.0/src/a2d_v2.cc:849: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 newname[20];
data/gpsim-0.31.0/src/a2d_v2.cc:872: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 newname[20];
data/gpsim-0.31.0/src/a2dconverter.cc:665: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 newname[20];
data/gpsim-0.31.0/src/attributes.cc:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/gpsim-0.31.0/src/breakpoints.cc:1070:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/gpsim-0.31.0/src/clc.cc:744:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[7] = "LCyINx";
data/gpsim-0.31.0/src/cod.cc:169: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 range_block[COD_BLOCK_SIZE];
data/gpsim-0.31.0/src/cod.cc:263: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 b[FILE_SIZE];
data/gpsim-0.31.0/src/cod.cc:458: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 DebugMessage[MAX_STRING_LEN];
data/gpsim-0.31.0/src/cod.cc:481:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buff[276];
data/gpsim-0.31.0/src/cod.cc:536:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char b[256];
data/gpsim-0.31.0/src/cod.cc:664:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[256];
data/gpsim-0.31.0/src/cod.cc:728: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 text_buffer[256];
data/gpsim-0.31.0/src/cod.cc:744:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          line_number = atoi(text_buffer + 8);
data/gpsim-0.31.0/src/cod.cc:761:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          line_number = atoi(linestart);
data/gpsim-0.31.0/src/cod.cc:867: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 processor_type[16];
data/gpsim-0.31.0/src/comparator.cc:473:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[20];
data/gpsim-0.31.0/src/comparator.cc:956:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[20];
data/gpsim-0.31.0/src/comparator.cc:1086:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[20];
data/gpsim-0.31.0/src/dspic/dspic-instructions.cc:638: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 cpBase[256];
data/gpsim-0.31.0/src/dspic/dspic-instructions.cc:639: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 cpSource[256];
data/gpsim-0.31.0/src/dspic/dspic-instructions.cc:640: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 cpDestination[256];
data/gpsim-0.31.0/src/dspic/dspic-processors.cc:147:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[100];
data/gpsim-0.31.0/src/dspic/dspic-processors.cc:163: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 buff[16];
data/gpsim-0.31.0/src/eeprom.cc:438:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[100];
data/gpsim-0.31.0/src/expr.cc:327: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 sBuffer[sizeof(sFormat) + 10];
data/gpsim-0.31.0/src/expr.cc:336: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 sBuffer[10];
data/gpsim-0.31.0/src/fopen-path.cc:164: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 *fp = fopen(nameBuff.c_str(), perms);		// first try absolute path
data/gpsim-0.31.0/src/fopen-path.cc:185:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(nameBuff.c_str(), perms);	// try it
data/gpsim-0.31.0/src/gpsim_object.cc:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/gpsim-0.31.0/src/gpsim_object.cc:75:9:  [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, "::");
data/gpsim-0.31.0/src/gpsim_object.cc:158: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 buff[64];
data/gpsim-0.31.0/src/hexutils.cc:274: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.
      unsigned char buff[256];
data/gpsim-0.31.0/src/i2c-ee.cc:440:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[100];
data/gpsim-0.31.0/src/icd.cc:359: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 command[MAX_CMD_LEN];
data/gpsim-0.31.0/src/icd.cc:360: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 resp[3];
data/gpsim-0.31.0/src/icd.cc:390: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[0x42];
data/gpsim-0.31.0/src/icd.cc:442: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 return_string[256];
data/gpsim-0.31.0/src/icd.cc:588:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((icd_fd = open(port, O_NOCTTY | O_RDWR | O_SYNC)) == -1) {
data/gpsim-0.31.0/src/icd.cc:740: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 ret[256];
data/gpsim-0.31.0/src/icd.cc:1080:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[8];
data/gpsim-0.31.0/src/icd.cc:1121:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[64];
data/gpsim-0.31.0/src/lcd_module.cc:41: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 lcddataX[10];
data/gpsim-0.31.0/src/lcd_module.cc:227: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[5];
data/gpsim-0.31.0/src/lcd_module.cc:321:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[6];
data/gpsim-0.31.0/src/lcd_module.h:143: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	LCDsegDirection[3];
data/gpsim-0.31.0/src/lcd_module.h:145: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	hold_data[12];
data/gpsim-0.31.0/src/lxt_write.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[1];
data/gpsim-0.31.0/src/lxt_write.c:44: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[2];
data/gpsim-0.31.0/src/lxt_write.c:56: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[3];
data/gpsim-0.31.0/src/lxt_write.c:69: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[4];
data/gpsim-0.31.0/src/lxt_write.c:326: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).
  if (!(lt->handle = fopen(name, "wb"))) {
data/gpsim-0.31.0/src/modules.cc:159: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 cw[_MAX_PATH];
data/gpsim-0.31.0/src/modules.h:227: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.
  const char *names[2];
data/gpsim-0.31.0/src/operator.cc:776: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 sMsg[sizeof(sFormat) + 10];
data/gpsim-0.31.0/src/os_dependent.cc:202: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 szLine[1024];
data/gpsim-0.31.0/src/os_dependent.cc:205: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 *pFile = fopen(sPath.c_str(), "r");
data/gpsim-0.31.0/src/p12x.cc:87: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 buff[256];
data/gpsim-0.31.0/src/p12x.cc:1525: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 buff[256];
data/gpsim-0.31.0/src/p16f88x.cc:1008: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 buff[356];
data/gpsim-0.31.0/src/p16f88x.cc:1009:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *OSCdesc[8] =
data/gpsim-0.31.0/src/p16x6x.cc:849: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 buff[356];
data/gpsim-0.31.0/src/p16x6x.cc:850:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *OSCdesc[8] =
data/gpsim-0.31.0/src/p18x.cc:111: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 buff[256];
data/gpsim-0.31.0/src/p18x.cc:162: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 buff[256];
data/gpsim-0.31.0/src/pic-instructions.cc:51: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/gpsim-0.31.0/src/pic-instructions.cc:81: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[64];
data/gpsim-0.31.0/src/pic-processor.h:574: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 osc_pin_Number[4];
data/gpsim-0.31.0/src/processor.cc:424: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 nameBuff[100];
data/gpsim-0.31.0/src/processor.cc:469:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[100];
data/gpsim-0.31.0/src/processor.cc:881:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/gpsim-0.31.0/src/processor.cc:959:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/gpsim-0.31.0/src/processor.cc:1043:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[iConsoleWidth];
data/gpsim-0.31.0/src/processor.cc:1044: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 str2[iConsoleWidth];
data/gpsim-0.31.0/src/processor.cc:1093: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[256];
data/gpsim-0.31.0/src/processor.cc:2668: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/gpsim-0.31.0/src/processor.cc:2721: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 buff[256];
data/gpsim-0.31.0/src/processor.cc:2744:19:  [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).
void FileContext::open(const char *mode)
data/gpsim-0.31.0/src/processor.cc:2841: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).
    back().open("r");
data/gpsim-0.31.0/src/processor.h:288: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).
    void open(const char *mode);
data/gpsim-0.31.0/src/processor.h:788: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.
    const char *names[nProcessorNames];
data/gpsim-0.31.0/src/program_files.cc:182: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.
  std::memcpy(m_Buffer + (4 - numPutback), gptr() - numPutback, numPutback);
data/gpsim-0.31.0/src/program_files.h: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 m_Buffer[m_iBufferSize];
data/gpsim-0.31.0/src/protocol.cc:110:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buffer[index], s, ulen);
data/gpsim-0.31.0/src/protocol.cc:317:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[256];
data/gpsim-0.31.0/src/registers.cc:180: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.
  const char *HiNames[32];
data/gpsim-0.31.0/src/registers.cc:181: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.
  const char *LoNames[32];
data/gpsim-0.31.0/src/registers.cc:182: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.
  const char *UndefNames[32];
data/gpsim-0.31.0/src/sim_context.cc:231: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 cw[_MAX_PATH];
data/gpsim-0.31.0/src/stimuli.cc:153:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name_str[100];
data/gpsim-0.31.0/src/stimuli.cc:756:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name_str[100];
data/gpsim-0.31.0/src/stimuli.cc:796:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name_str[100];
data/gpsim-0.31.0/src/stimuli.cc:1635:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name_str[100];
data/gpsim-0.31.0/src/trace.cc:245: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).
  log_file = fopen(fname, "w");
data/gpsim-0.31.0/src/trace.cc:454: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 sFrom[16];
data/gpsim-0.31.0/src/trace.cc:455: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 sTo[16];
data/gpsim-0.31.0/src/trace.cc:479: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 sFrom[16];
data/gpsim-0.31.0/src/trace.cc:501: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 a_string[200];
data/gpsim-0.31.0/src/trace.cc:1346:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFFER_SIZE];
data/gpsim-0.31.0/src/trace.cc:1477: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).
    log_file = fopen(new_fname, "w");
data/gpsim-0.31.0/src/trace.cc:1521: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/gpsim-0.31.0/src/trace.h:459:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  string_buffer[TRACE_STRING_BUFFER];
data/gpsim-0.31.0/src/trigger.cc:235:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/gpsim-0.31.0/src/uart.cc:387:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char ck[4] = "CK";
data/gpsim-0.31.0/src/uart.cc:409:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tx[4] = "TX";
data/gpsim-0.31.0/src/uart.cc:901:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char dt[4] = "DT";
data/gpsim-0.31.0/src/uart.cc:909:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char rx[4] = "RX";
data/gpsim-0.31.0/src/value.cc:436: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 buff[256];
data/gpsim-0.31.0/src/value.cc:445: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 cvtBuf[1024];
data/gpsim-0.31.0/src/value.cc:580: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 cvtBuf[1024];
data/gpsim-0.31.0/src/value.cc:825: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 szHex[10] = "0x";
data/gpsim-0.31.0/src/value.cc:906: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 cvtBuf[1024];
data/gpsim-0.31.0/src/value.cc:917: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 cvtBuf[1024];
data/gpsim-0.31.0/src/value.cc:925: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 cvtBuf[1024];
data/gpsim-0.31.0/src/value.cc:1178: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 cvtBuf[1024];
data/gpsim-0.31.0/cli/cmd_help.cc:62: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).
      int l = 16 - strlen(pCmd->name());
data/gpsim-0.31.0/cli/cmd_help.cc:65:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        l -= strlen(pCmd->abbreviation()) + 1;
data/gpsim-0.31.0/cli/cmd_processor.cc:63: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( (j=strlen(s)) > longest_name)
data/gpsim-0.31.0/cli/cmd_processor.cc:84: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).
	  put_chars(' ',longest_name - strlen(cpu->get_pin_name(i).c_str()) + 6 );
data/gpsim-0.31.0/cli/input.cc:528:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(directory, file_name, dir_path_end - file_name);
data/gpsim-0.31.0/cli/input.cc:563: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).
      int iLast = strlen(str) - 1;
data/gpsim-0.31.0/cli/input.cc:666:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, str.c_str(), count);
data/gpsim-0.31.0/cli/input.cc:834: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(s) == 0) {
data/gpsim-0.31.0/cli/input.cc:841:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(last_line, s, 255);
data/gpsim-0.31.0/cli/parse.cc:161:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     int n = strlen(last);
data/gpsim-0.31.0/cli/parse.cc:1347: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/gpsim-0.31.0/cli/scan.cc:703: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(pCmd)>1) {
data/gpsim-0.31.0/cli/scan.cc:951:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/gpsim-0.31.0/cli/scan.cc:1525: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(tok.c_str()))
data/gpsim-0.31.0/cli/scan.cc:2306: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).
	return yy_scan_bytes(yystr,(int) strlen(yystr) );
data/gpsim-0.31.0/cli/socket.cc:586: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).
  if (send(socket, b, strlen(b), 0) < 0) {
data/gpsim-0.31.0/eXdbm/eXdbm.c:226:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 DbmDbList->dblist[temp_id].filename = (char *) malloc(sizeof(char)* (strlen(filename)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:347:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  DbmDbList->dblist[temp_id].filename = (char *) malloc(sizeof(char)* (strlen(filename)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:559:46:  [1] (buffer) strlen:
  Does not handle 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(sizeof(char) * (strlen(DbmDbList->dblist[*dbid].filename)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:818: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).
    *value = (char *) malloc(sizeof(char) *(strlen(search->value.str_val)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:870: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).
    *value = (char *) malloc(sizeof(char) *(strlen(search->value.str_val)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:1106:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  search->comment = (char *) malloc( sizeof(char) * (strlen(comment)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:1256:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    search->value.str_val = (char *) malloc(sizeof(char) * (strlen(newvalue)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:1318:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    search->value.str_val = (char *) malloc(sizeof(char) * (strlen(newvalue)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:1590:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  node->value.str_val = (char *) malloc(sizeof(char) * (strlen(value)+1));
data/gpsim-0.31.0/eXdbm/eXdbm.c:1641:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  node->value.str_val = (char *) malloc(sizeof(char) * (strlen(value)+1));
data/gpsim-0.31.0/eXdbm/hash.c:21:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(name);
data/gpsim-0.31.0/eXdbm/misc.c:394: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).
  node->key = (char *) malloc(sizeof(char) * (strlen(entryname)+1));
data/gpsim-0.31.0/eXdbm/misc.c:404: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).
    node->comment = (char *) malloc(sizeof(char) * (strlen(comment)+1));
data/gpsim-0.31.0/eXdbm/parse.c:71:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:102:27:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  token[pos_in_token++] = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:107:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:120:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:131:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:135:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:141:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:152:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:182:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:208:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:221:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:228:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:258:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:267:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:274:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:294:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:299:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:303:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:312:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:320:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:342:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:349:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:384: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).
	value->str_val = (char *) malloc(sizeof(char) * (strlen(value_string)+1));
data/gpsim-0.31.0/eXdbm/parse.c:403:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:406:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      current = fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:412:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:421: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).
	value->str_val = (char *) malloc(sizeof(char) * (strlen(value_string)+1));
data/gpsim-0.31.0/eXdbm/parse.c:461:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:464:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      current=fgetc(f);
data/gpsim-0.31.0/eXdbm/parse.c:532:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	newnode->key = (char *) malloc (sizeof(char) * (strlen(current_token) + 1));
data/gpsim-0.31.0/eXdbm/parse.c:544: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).
	  newnode->comment = (char *) malloc (sizeof(char) * (strlen(last_comment) + 1));
data/gpsim-0.31.0/eXdbm/parse.c:633:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	newnode->key = (char *) malloc (sizeof(char) * (strlen(current_token) + 1));
data/gpsim-0.31.0/eXdbm/parse.c:645: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).
	  newnode->comment = (char *) malloc (sizeof(char) * (strlen(last_comment) + 1));
data/gpsim-0.31.0/eXdbm/test3.c:472:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path,":");
data/gpsim-0.31.0/eXdbm/test3.c:486:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path,":");
data/gpsim-0.31.0/eXdbm/test3.c:500:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path, ":");
data/gpsim-0.31.0/examples/scripts/client_interface.cc:68: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).
    int len = Send(cmd, strlen(cmd), response, sizeof(response));
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:28:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define usleep(n)	DelayUs(n * 4)
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:39:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:41:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:43:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:45:2:  [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(40);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:56:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:58:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:60:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:62:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:66:2:  [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(1);			// Wait for IO lines to settle
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:70:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:72:2:  [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(1);			// Wait for IO lines to settle
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:74:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:86:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:88:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:90:2:  [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(1);
data/gpsim-0.31.0/extras/lcd/examples/lcdmemtest.c:92:2:  [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(40);
data/gpsim-0.31.0/extras/lcd/hd44780.cc:632: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 l = strlen(s);
data/gpsim-0.31.0/extras/lcd/lcdgui.cc:73: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(test[i][0]) < 5) {
data/gpsim-0.31.0/extras/rs232-gen/rs232-gen.c:144: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).
      data[i].size = strlen((char *)data[i].data);
data/gpsim-0.31.0/gpsim/main.cc:227: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).
  int len = strlen(argv[argc - 1]);
data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c:623:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (text, new_text, new_text_length);
data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c:728: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).
    new_text_length = strlen (new_text);
data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c:1074: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).
  entry->preedit_length = strlen (preedit_string);
data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c:1129: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).
  gtk_editable_insert_text (editable, str, strlen (str), &tmp_pos);
data/gpsim-0.31.0/gui/gtkextra/gtkitementry.c:2243:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  gtk_editable_insert_text (GTK_EDITABLE (entry), text, strlen (text), &tmp_pos);
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:1216:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (*cell && (*cell)->text && strlen((*cell)->text) > 0){
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:3072: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).
  if (!sheet->data[row][col]->text || strlen(sheet->data[row][col]->text)==0)
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:3522: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).
   if((*cell)->text && strlen((*cell)->text) > 0) {
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:3683: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(sheet->data[row][col]->text) == 0) return NULL;
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:3899:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if(text && strlen(text)!=0){
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:3978:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if(text && strlen(text)!=0){
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:5721: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).
           if(strlen(gtk_entry_get_text(GTK_ENTRY(gtk_sheet_get_entry(sheet)))) == 0
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:5754:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(gtk_entry_get_text(GTK_ENTRY(gtk_sheet_get_entry(sheet)))) == 0
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:6117:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if(text && strlen(text) > 0){
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:6476: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).
    if(button->label && strlen(button->label)>0){
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:6486: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).
                len=strlen(line);
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:6769:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(!text || strlen(text)==0)
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:6861:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(!text || strlen(text)==0)
data/gpsim-0.31.0/gui/gtkextra/gtksheet.c:8332:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(gtk_sheet_autoresize(sheet) && button->label && strlen(button->label) > 0){
data/gpsim-0.31.0/gui/gui_breadboard.cc:1013: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(spath) > 1) {
data/gpsim-0.31.0/gui/gui_breadboard.cc:1021: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(spath) > 1) {
data/gpsim-0.31.0/gui/gui_breadboard.cc:1076:3:  [1] (buffer) sscanf:
  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.
  sscanf(entry_string, "%255s = %255s", attribute_name, attribute_newval);
data/gpsim-0.31.0/gui/gui_breadboard.cc:1755: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).
                    strlen(string));
data/gpsim-0.31.0/gui/gui_menu.cc:699: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(file);
data/gpsim-0.31.0/gui/gui_menu.cc:796: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(filename);
data/gpsim-0.31.0/gui/gui_src_asm.cc:795:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  unsigned int patternLen = strlen(pText);
data/gpsim-0.31.0/gui/gui_src_asm.cc:869: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).
    unsigned int srcLen = strlen(str);
data/gpsim-0.31.0/gui/gui_src_asm.cc:2195:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    addTagRange("Comments", offset, offset + strlen(cP));
data/gpsim-0.31.0/modules/gpsim_modules.cc:168: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).
    k = strlen(available_modules[i].names[1]);
data/gpsim-0.31.0/modules/gpsim_modules.cc:182: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).
        l = longest + 2 - strlen(available_modules[k].names[1]);
data/gpsim-0.31.0/modules/led.cc:146:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(return_str, IOPIN::getState() ? "1" : "0", len);
data/gpsim-0.31.0/modules/logic.cc:240:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(return_str, IOPIN::getState() ? "1" : "0", len);
data/gpsim-0.31.0/modules/logic.cc:248:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(return_str, IOPIN::getDrivingState() ? "1" : "0", len);
data/gpsim-0.31.0/plat/win32/glist.cpp:144: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).
  nbytes = strlen (msg);
data/gpsim-0.31.0/plat/win32/settings_reg.cpp:46:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (RegSetValueEx(key, entry, 0, REG_SZ, (LPBYTE)str, strlen(str) + 1) != ERROR_SUCCESS)
data/gpsim-0.31.0/plat/win32/unistd.h:33:14:  [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.
unsigned int usleep(unsigned int usec);
data/gpsim-0.31.0/plat/win32/uxsleep.cc:71:14:  [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.
unsigned int usleep(unsigned int useconds)
data/gpsim-0.31.0/src/16bit-instructions.cc:2272:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cpu16->tbl.read();
data/gpsim-0.31.0/src/16bit-registers.cc:1290:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void TBL_MODULE::read()
data/gpsim-0.31.0/src/16bit-registers.h:493:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read();
data/gpsim-0.31.0/src/ValueCollections.cc:48:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(m_szPrefix, "$");
data/gpsim-0.31.0/src/ValueCollections.cc:121:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(pBuffer, toString().c_str(), len);
data/gpsim-0.31.0/src/breakpoints.cc:2180: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).
  size_t len = strlen(_command);
data/gpsim-0.31.0/src/cod.cc:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest, src, n);
data/gpsim-0.31.0/src/cod.cc:461:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        j += strlen(DebugMessage) + 1;
data/gpsim-0.31.0/src/dspic/gpsim_modules.cc:78: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).
    k = strlen(available_modules[i].names[1]);
data/gpsim-0.31.0/src/dspic/gpsim_modules.cc:92: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).
        l = longest + 2 - strlen(available_modules[k].names[1]);
data/gpsim-0.31.0/src/eeprom.cc:113:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      eeprom->get_reg_eecon2()->read();
data/gpsim-0.31.0/src/eeprom.cc:120:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      eeprom->get_reg_eecon2()->read();
data/gpsim-0.31.0/src/eeprom.h:141:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline void read()
data/gpsim-0.31.0/src/fopen-path.cc:155: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) >= (unsigned int)maxpath) {
data/gpsim-0.31.0/src/gpsim_object.cc:72:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(buf, name, cnt);
data/gpsim-0.31.0/src/hexutils.cc:84:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(file);
data/gpsim-0.31.0/src/icd.cc:324: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).
  if (write(icd_fd, s,  strlen(s)) < 0) {
data/gpsim-0.31.0/src/icd.cc:336:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n_read = read(icd_fd, p, 1);
data/gpsim-0.31.0/src/icd.cc:423:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(icd_fd, &ch, 1) > 0) {
data/gpsim-0.31.0/src/interface.cc:488: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).
  const char *p = path + strlen(path);
data/gpsim-0.31.0/src/lxt_write.c:146:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strcpy(s->name = (char *)malloc((s->namlen = strlen(name)) + 1), name);
data/gpsim-0.31.0/src/lxt_write.c:184: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).
  int len = strlen(str);
data/gpsim-0.31.0/src/lxt_write.c:615:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((len = strlen(name)) > lt->longestname) {
data/gpsim-0.31.0/src/lxt_write.c:663:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((len = strlen(alias)) > lt->longestname) {
data/gpsim-0.31.0/src/operator.h:114:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  bool equal()
data/gpsim-0.31.0/src/os_dependent.cc:209: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).
          char *pChar = &szLine[strlen(szLine) - 1];
data/gpsim-0.31.0/src/pic-processor.cc:711:13:  [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((unsigned int)diff_us);
data/gpsim-0.31.0/src/processor.cc:984:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove(pBuffer, pChar, strlen(pBuffer) - iPos);
data/gpsim-0.31.0/src/processor.cc:987: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).
  iPos = strlen(pBuffer);
data/gpsim-0.31.0/src/processor.cc:1118: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).
      int iSrc = iOperandsWidth - (strlen(str) - iNumonicWidth - 1);
data/gpsim-0.31.0/src/processor.cc:2579: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).
    k = strlen(p->names[1]);
data/gpsim-0.31.0/src/processor.cc:2597: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).
        k = longest + 2 - strlen(p->names[1]);
data/gpsim-0.31.0/src/protocol.cc:243:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(retStr, b, length);
data/gpsim-0.31.0/src/protocol.cc:321: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).
  txBuffer->puts(buff, strlen(buff));
data/gpsim-0.31.0/src/protocol.cc:336:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/gpsim-0.31.0/src/registers.cc:199:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(dest, c, len);
data/gpsim-0.31.0/src/registers.cc:200: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).
      int l = strlen(c);
data/gpsim-0.31.0/src/registers.cc:210:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dest, cByteSeparator, len);
data/gpsim-0.31.0/src/registers.cc:211: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).
        int l = strlen(cByteSeparator);
data/gpsim-0.31.0/src/registers.cc:593:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(return_str, "", len);
data/gpsim-0.31.0/src/stimuli.cc:1002:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(return_str, IOPIN::getDrivingState() ? "1" : "0", len);
data/gpsim-0.31.0/src/stimuli.cc:1004:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(return_str, IOPIN::getState() ? "1" : "0", len);
data/gpsim-0.31.0/src/trigger.cc:251: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).
  return strlen(pBuf);
data/gpsim-0.31.0/src/value.cc:49:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove(pBuffer, pChar, strlen(pBuffer) - iPos);
data/gpsim-0.31.0/src/value.cc:51: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).
  iPos = strlen(pBuffer);
data/gpsim-0.31.0/src/value.cc:74:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int iLen = strlen(pBuffer);
data/gpsim-0.31.0/src/value.cc:419:18:  [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.
  return compOp->equal();
data/gpsim-0.31.0/src/value.cc:937:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(return_str, TheUI.FormatValue(i), len);
data/gpsim-0.31.0/src/value.cc:1024:18:  [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.
  return compOp->equal();
data/gpsim-0.31.0/src/value.cc:1223:18:  [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.
  return compOp->equal();

ANALYSIS SUMMARY:

Hits = 661
Lines analyzed = 193460 in approximately 3.87 seconds (50001 lines/second)
Physical Source Lines of Code (SLOC) = 133363
Hits@level = [0] 1055 [1] 174 [2] 282 [3]   7 [4] 186 [5]  12
Hits@level+ = [0+] 1716 [1+] 661 [2+] 487 [3+] 205 [4+] 198 [5+]  12
Hits/KSLOC@level+ = [0+] 12.8671 [1+] 4.9564 [2+] 3.65169 [3+] 1.53716 [4+] 1.48467 [5+] 0.08998
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.