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/indi-1.8.7+dfsg/base64.c
Examining data/indi-1.8.7+dfsg/base64.h
Examining data/indi-1.8.7+dfsg/base64_luts.h
Examining data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp
Examining data/indi-1.8.7+dfsg/drivers/agent/agent_imager.h
Examining data/indi-1.8.7+dfsg/drivers/agent/group.cpp
Examining data/indi-1.8.7+dfsg/drivers/agent/group.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2kdriver.c
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2kdriver.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/arduino_st4.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/arduino_st4.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/gpdriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/gpdriver.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/gps_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/gps_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/gpusb.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/gpusb.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/joystick.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/joystick.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/skysafariclient.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/skysafariclient.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/sqm_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/sqm_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/watchdog.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/watchdog.h
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/watchdogclient.cpp
Examining data/indi-1.8.7+dfsg/drivers/auxiliary/watchdogclient.h
Examining data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/baader_dome.h
Examining data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/dome_script.h
Examining data/indi-1.8.7+dfsg/drivers/dome/dome_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/dome_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/domepro2.h
Examining data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.h
Examining data/indi-1.8.7+dfsg/drivers/dome/roll_off.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/roll_off.h
Examining data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.h
Examining data/indi-1.8.7+dfsg/drivers/dome/scopedome_sim.cpp
Examining data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/filter_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/filter_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/manual_filter.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/manual_filter.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.h
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp
Examining data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/aaf2.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/celestron.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/celestron.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/dmfc.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/fcusb.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/fcusb.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/focus_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/focus_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/hitecastrodcfocuser.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/hitecastrodcfocuser.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/lakeside.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/microtouch.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/moonlite.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/nfocus.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/nstep.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/onfocus.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/robofocus.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/si_efs.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/si_efs.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/tcfs.h
Examining data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp
Examining data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.h
Examining data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp
Examining data/indi-1.8.7+dfsg/drivers/rotator/gemini.h
Examining data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp
Examining data/indi-1.8.7+dfsg/drivers/rotator/integra.h
Examining data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp
Examining data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.h
Examining data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp
Examining data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.h
Examining data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp
Examining data/indi-1.8.7+dfsg/drivers/rotator/pyxis.h
Examining data/indi-1.8.7+dfsg/drivers/rotator/rotator_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/rotator/rotator_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.h
Examining data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.h
Examining data/indi-1.8.7+dfsg/drivers/spectrograph/spectrograph_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/spectrograph/spectrograph_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/dsc.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/dsc.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/eq500x.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_16.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_16.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimentaldriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimentaldriver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200autostar.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200autostar.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200basic.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200basic.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200generic.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200generic.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/magellan1.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/magellandriver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/paramount.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/pmc8.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/rainbow.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/scopesim_helper.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/scopesim_helper.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/skycommander.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/skycommander.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPI.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPI.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/synscanmount.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/synscanmountlegacy.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/telescope_simulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/telescope_simulator.h
Examining data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp
Examining data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.h
Examining data/indi-1.8.7+dfsg/drivers/video/indi_v4l2driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/video/stvdriver.h
Examining data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp
Examining data/indi-1.8.7+dfsg/drivers/video/v4l2driver.h
Examining data/indi-1.8.7+dfsg/drivers/weather/gason.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/gason.h
Examining data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/mbox.h
Examining data/indi-1.8.7+dfsg/drivers/weather/openweathermap.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/openweathermap.h
Examining data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/vantage.h
Examining data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.h
Examining data/indi-1.8.7+dfsg/drivers/weather/weathermeta.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/weathermeta.h
Examining data/indi-1.8.7+dfsg/drivers/weather/weathersimulator.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/weathersimulator.h
Examining data/indi-1.8.7+dfsg/drivers/weather/weatherwatcher.cpp
Examining data/indi-1.8.7+dfsg/drivers/weather/weatherwatcher.h
Examining data/indi-1.8.7+dfsg/eventloop.c
Examining data/indi-1.8.7+dfsg/eventloop.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_eight/simple_spectrograph.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_eight/simple_spectrograph.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_five/dome.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_five/dome.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_five/raindetector.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_five/raindetector.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_four/simpleskeleton.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_four/simpleskeleton.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_one/simpledevice.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_one/simpledevice.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_seven/simple_telescope_simulator.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_seven/simple_telescope_simulator.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_six/tutorial_client.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_six/tutorial_client.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_three/simpleccd.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_three/simpleccd.h
Examining data/indi-1.8.7+dfsg/examples/tutorial_two/simplescope.cpp
Examining data/indi-1.8.7+dfsg/examples/tutorial_two/simplescope.h
Examining data/indi-1.8.7+dfsg/fq.c
Examining data/indi-1.8.7+dfsg/fq.h
Examining data/indi-1.8.7+dfsg/indiapi.h
Examining data/indi-1.8.7+dfsg/indidevapi.h
Examining data/indi-1.8.7+dfsg/indidriver.c
Examining data/indi-1.8.7+dfsg/indidriver.h
Examining data/indi-1.8.7+dfsg/indidrivermain.c
Examining data/indi-1.8.7+dfsg/indiserver.c
Examining data/indi-1.8.7+dfsg/libs/dsp/buffer.c
Examining data/indi-1.8.7+dfsg/libs/dsp/convert.c
Examining data/indi-1.8.7+dfsg/libs/dsp/convolution.c
Examining data/indi-1.8.7+dfsg/libs/dsp/dsp.h
Examining data/indi-1.8.7+dfsg/libs/dsp/fft.c
Examining data/indi-1.8.7+dfsg/libs/dsp/filters.c
Examining data/indi-1.8.7+dfsg/libs/dsp/signals.c
Examining data/indi-1.8.7+dfsg/libs/dsp/stats.c
Examining data/indi-1.8.7+dfsg/libs/dsp/stream.c
Examining data/indi-1.8.7+dfsg/libs/fpack/fpack.c
Examining data/indi-1.8.7+dfsg/libs/fpack/fpack.h
Examining data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/AlignmentSubsystemForClients.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/AlignmentSubsystemForClients.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/AlignmentSubsystemForDrivers.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/AlignmentSubsystemForDrivers.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/AlignmentSubsystemForMathPlugins.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/BasicMathPlugin.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/BasicMathPlugin.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/BuiltInMathPlugin.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/BuiltInMathPlugin.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/ClientAPIForAlignmentDatabase.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/ClientAPIForAlignmentDatabase.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/ClientAPIForMathPluginManagement.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/ClientAPIForMathPluginManagement.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/Common.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/Common.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/ConvexHull.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/ConvexHull.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/DriverCommon.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/DriverCommon.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/DummyMathPlugin.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/DummyMathPlugin.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/LoaderClient.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/LoaderClient.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/LoaderMain.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MapPropertiesToInMemoryDatabase.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MapPropertiesToInMemoryDatabase.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPlugin.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPlugin.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagerClient.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagerClient.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagerMain.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/SVDMathPlugin.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/SVDMathPlugin.h
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/TelescopeDirectionVectorSupportFunctions.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/alignment/TelescopeDirectionVectorSupportFunctions.h
Examining data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/baseclient.h
Examining data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.h
Examining data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/basedevice.h
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectioninterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectioninterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.h
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.h
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.h
Examining data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.h
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/convolution.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/convolution.h
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/manager.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/manager.h
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/transforms.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/transforms.h
Examining data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c
Examining data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c
Examining data/indi-1.8.7+dfsg/libs/indibase/hid_win.c
Examining data/indi-1.8.7+dfsg/libs/indibase/hidapi.h
Examining data/indi-1.8.7+dfsg/libs/indibase/hidtest.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indibase.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indibasetypes.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiccd.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiccdchip.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indiccdchip.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indicontroller.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indicontroller.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indicorrelator.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indicorrelator.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indidetector.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indidome.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indidustcapinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indidustcapinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indifilterwheel.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indifilterwheel.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indifocuser.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indifocuser.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indifocuserinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indifocuserinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indigps.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indigps.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiguiderinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indiguiderinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indilightboxinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indilightboxinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indilogger.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiproperty.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indiproperty.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indirotator.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indirotator.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indirotatorinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indirotatorinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indistandardproperty.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indistandardproperty.h
Examining data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/inditelescope.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiusbdevice.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indiusbdevice.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiweather.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indiweather.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiweatherinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indiweatherinterface.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiwsserver.h
Examining data/indi-1.8.7+dfsg/libs/indibase/pid/pid.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/pid/pid.h
Examining data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indidetector.cpp
Examining data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/indicom.h
Examining data/indi-1.8.7+dfsg/libs/libastro.cpp
Examining data/indi-1.8.7+dfsg/libs/libastro.h
Examining data/indi-1.8.7+dfsg/libs/lilxml.c
Examining data/indi-1.8.7+dfsg/libs/lilxml.h
Examining data/indi-1.8.7+dfsg/libs/locale_compat.h
Examining data/indi-1.8.7+dfsg/libs/lx/Lx.cpp
Examining data/indi-1.8.7+dfsg/libs/lx/Lx.h
Examining data/indi-1.8.7+dfsg/libs/stream/ccvt.h
Examining data/indi-1.8.7+dfsg/libs/stream/ccvt_c2.c
Examining data/indi-1.8.7+dfsg/libs/stream/ccvt_misc.c
Examining data/indi-1.8.7+dfsg/libs/stream/ccvt_types.h
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/encoderinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/encoderinterface.h
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/encodermanager.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/encodermanager.h
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/mjpegencoder.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/mjpegencoder.h
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/rawencoder.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/encoder/rawencoder.h
Examining data/indi-1.8.7+dfsg/libs/stream/fpsmeter.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/fpsmeter.h
Examining data/indi-1.8.7+dfsg/libs/stream/jpegutils.c
Examining data/indi-1.8.7+dfsg/libs/stream/jpegutils.h
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/recorderinterface.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/recorderinterface.h
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/recordermanager.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/recordermanager.h
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.h
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.h
Examining data/indi-1.8.7+dfsg/libs/stream/streammanager.cpp
Examining data/indi-1.8.7+dfsg/libs/stream/streammanager.h
Examining data/indi-1.8.7+dfsg/libs/webcam/pwc-ioctl.h
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.h
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_colorspace.c
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_colorspace.h
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.h
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_decode.cpp
Examining data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_decode.h
Examining data/indi-1.8.7+dfsg/libs/webcam/vcvt.h
Examining data/indi-1.8.7+dfsg/libs/indicom.c
Examining data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c
Examining data/indi-1.8.7+dfsg/obsolete/celestronprotocol.h
Examining data/indi-1.8.7+dfsg/obsolete/fli_wheel.c
Examining data/indi-1.8.7+dfsg/obsolete/focusmaster.cpp
Examining data/indi-1.8.7+dfsg/obsolete/focusmaster.h
Examining data/indi-1.8.7+dfsg/obsolete/ieq45.cpp
Examining data/indi-1.8.7+dfsg/obsolete/ieq45.h
Examining data/indi-1.8.7+dfsg/obsolete/ieq45driver.h
Examining data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c
Examining data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c
Examining data/indi-1.8.7+dfsg/obsolete/intelliscope.c
Examining data/indi-1.8.7+dfsg/obsolete/lx200aplib.h
Examining data/indi-1.8.7+dfsg/obsolete/magellan1.cpp
Examining data/indi-1.8.7+dfsg/obsolete/magellandriver.c
Examining data/indi-1.8.7+dfsg/obsolete/skycommander.c
Examining data/indi-1.8.7+dfsg/obsolete/stv.c
Examining data/indi-1.8.7+dfsg/obsolete/stvdriver.c
Examining data/indi-1.8.7+dfsg/obsolete/trutech_wheel.c
Examining data/indi-1.8.7+dfsg/obsolete/wunderground.cpp
Examining data/indi-1.8.7+dfsg/obsolete/wunderground.h
Examining data/indi-1.8.7+dfsg/test/celestrondriver/test_celestrondriver.cpp
Examining data/indi-1.8.7+dfsg/test/core/test_base64.cpp
Examining data/indi-1.8.7+dfsg/test/core/test_property_class.cpp
Examining data/indi-1.8.7+dfsg/test/drivers/test_ccd_simulator.cpp
Examining data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.cpp
Examining data/indi-1.8.7+dfsg/test/scopesim_helper/test_scopesim_helper.cpp
Examining data/indi-1.8.7+dfsg/tools/compiler.c
Examining data/indi-1.8.7+dfsg/tools/evalINDI.c
Examining data/indi-1.8.7+dfsg/tools/getINDIproperty.c
Examining data/indi-1.8.7+dfsg/tools/setINDIproperty.c

FINAL RESULTS:

data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:668:17:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
                strncat(filterList, filterNameIFW[i], OPTEC_LEN_FLTNAME);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:213:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(name, IMAGE_NAME, ImageNameT[0].text, ImageNameT[1].text, group, image, format);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:563:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(name, IMAGE_NAME, ImageNameT[0].text, ImageNameT[1].text, group, image, format);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:660:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(name, IMAGE_NAME, ImageNameT[0].text, ImageNameT[1].text, group, image, format);
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:392:20:  [4] (shell) popen:
  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.
    FILE *handle = popen(cmd, "r");
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:409:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(line, "Field parity: %s", parity_str);
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:268:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    int rc = sscanf(productString, "%" SCNu16, &productID);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:307:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    int ok = sscanf(resp, UDP_IDENTIFY_RESPONSE, &firmware);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:325: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(cmd, UDP_CMD_LEN + 1, UDP_OUTPUT_CMD, channel, value);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:334: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(cmd, UDP_CMD_LEN + 1, UDP_CALIBRATION_CMD, ch1, ch2, ambient);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:343: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(cmd, UDP_CMD_LEN + 1, UDP_THRESHOLD_CMD, ch1, ch2);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:352: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(cmd, UDP_CMD_LEN + 1, UDP_AGGRESSIVITY_CMD, aggressivity);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:367: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(cmd, UDP_CMD_LEN + 1, UDP_AUTO_CMD, enable ? 1 : 0);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:376: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(cmd, UDP_CMD_LEN + 1, UDP_LINK_CMD, enable ? 1 : 0);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:501:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    int ok = sscanf(resp, UDP_STATUS_RESPONSE, &temp1, &temp2, &temp_ambient, &humidity, &dewpoint, &output1, &output2,
data/indi-1.8.7+dfsg/drivers/auxiliary/watchdog.cpp:768:18:  [4] (shell) execlp:
  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.
        int rc = execlp(SettingsT[EXECUTE_SCRIPT].text, SettingsT[EXECUTE_SCRIPT].text, nullptr);
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:752:18:  [4] (shell) popen:
  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.
            pp = popen(gsccmd, "r");
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:791:18:  [4] (shell) popen:
  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.
            pp = popen(gsccmd, "r");
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:337:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, "d#%s", status);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:387:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, "d#shut%s", status);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:944:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, "d#flap%s", status);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:186: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(path, F_OK | X_OK) != 0)
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:198:13:  [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(dbg, args[i]);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:213:9:  [4] (shell) execvp:
  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.
        execvp(path, args);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:763:9:  [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(cmd, tempo);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:383:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:413:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:473:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:502:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:531:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:560:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:589:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%32[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:618:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:647:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]= %s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:676:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:705:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(response, "%16[^=]=%s", key, text);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3475:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    int  rc = sscanf(version, "%[^.].%[^.].%s", sMajor, sMinor, sSub);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:201:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(MFOC_res, "%s %d", MFOC_res_type, &MFOC_pos_measd);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:261:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            sscanf (MFOC_res, "%s %d", MFOC_res_type, &MFOC_tdir_measd);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:313:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            sscanf (MFOC_res, "%s %d", MFOC_res_type, &MFOC_svstart_measd);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:374: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(MFOC_cmd, bl_char);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:382:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf (MFOC_res, "%s %d", MFOC_res_type, &MFOC_tdir_measd);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:407: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(MFOC_cmd, tc_char);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:415:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf (MFOC_res, "%s %d", MFOC_res_type, &MFOC_tc_measd);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:436: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(MFOC_cmd, pm_char);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:444:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf (MFOC_res, "%s %d", MFOC_res_type, &MFOC_pm_measd);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:462: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(MFOC_cmd, abs_pos_char);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:521:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(MFOC_res, "%s %d", MFOC_res_type, &MFOC_pos_measd);
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:932: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, response.c_str());
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:265:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, ":FV%s#", hwVer);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:318:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, ":FV%s#", hardware_string);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:365:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, ":FN%s#", firmware_string);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:435:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        rc = sscanf(resp, ":F5%s#", junk);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:658:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, ":F7%s#", tResp);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:764:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc = sscanf(resp, ":F%s#", tResp);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:340:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        int rc  = sscanf(resp, "%s\n\r", resp);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:614: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(cmd, UFOCMDLEN + 1, UFOCSETTCTHR, thr);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:634: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(cmd, UFOCMDLEN + 1, UFOCSETSTDEG, coefficient);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:691: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.
        snprintf(cmd, UFOCMDLEN + 1, UFOCMOVEIN, ticks);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:701: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.
        snprintf(cmd, UFOCMDLEN + 1, UFOCMOVEOUT, ticks);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:748: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.
        snprintf(cmd, UFOCMDLEN + 1, UFOCSETMAX, maxp);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:796: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.
        snprintf(cmd, UFOCMDLEN + 1, UFOCSETSPEED, spd);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:839: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(cmd, UFOCMDLEN + 1, UFOCSETSIGN, sign);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1946:18:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        int rc = sscanf(response, "%16[^=]= %s", key, np);
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:902: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(cmd, 16, IntegraProtocol[commandIdx].cmd, motor + 1);
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:910: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(cmd, 16, IntegraProtocol[commandIdx].cmd, motor + 1, value);
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:963:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(returnValueString, correctRes + expectStrlen);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:138:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        vsprintf(response, fmt, args);
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:416:17:  [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(CmdString, adjustment->slew_rate);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:653: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.
        snprintf(res, IOP_BUFFER, "%c%03d%c%013" PRIu64, (simData.utc_offset_minutes >= 0 ? '+' : '-'),
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:428:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(FirmwareDate1, "%s %02d %04d", mon, &dd, &yyyy);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1613:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(OldOSStat ,OSStat);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2001:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(OldOSPier, OSPier);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:1143: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 (cmdString, sizeof(cmdString), guideSpeedCommand, GuideRateS[index].name);  // GuideRateS is {25,50,100}
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:369:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(rev, versionString);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:793:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "%s%04d,%04d#", partialCmd, actualCur, actualCur);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:817:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "%s%04d,%04d#", partialCmd, actualInd, actualInd);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:3082: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(CenterSpeedIndN[0].label, nonGuideSpeedLabel);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:3095: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(FindSpeedIndN[0].label, nonGuideSpeedLabel);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:3108: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(SlewSpeedIndN[0].label, nonGuideSpeedLabel);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:3121: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(GoToSpeedIndN[0].label, nonGuideSpeedLabel);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:240:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(response, PMC8_SIMUL_VERSION_RESP);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:302:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(response, PMC8_SIMUL_VERSION_RESP);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:709: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(hex, h+2);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:1720:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(TempStr, sizeof(TempStr), format, Ap);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:181: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(path, F_OK | X_OK) != 0)
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:193:13:  [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(dbg, args[i]);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:208:9:  [4] (shell) execvp:
  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.
        execvp(path, args);
data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp:295: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(cmd, F_OK|X_OK) == -1)
data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp:303:20:  [4] (shell) popen:
  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.
    FILE *handle = popen(cmd, "r");
data/indi-1.8.7+dfsg/indidevapi.h:143:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:153:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:163:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:173:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:183:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:200:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:210:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:220:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:230:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:240:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:260:23:  [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.
__attribute__((format(printf, 2, 3)))
data/indi-1.8.7+dfsg/indidevapi.h:272:23:  [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.
__attribute__((format(printf, 3, 4)))
data/indi-1.8.7+dfsg/indidevapi.h:284:23:  [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.
__attribute__((format(printf, 1, 2)))
data/indi-1.8.7+dfsg/indidriver.c:134:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:1233:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg, "Unknown command: %s", rtag);
data/indi-1.8.7+dfsg/indidriver.c:1316: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(configDefaultFileName, F_OK))
data/indi-1.8.7+dfsg/indidriver.c:1654:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:1882:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:1908:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->propName, tvp->name);
data/indi-1.8.7+dfsg/indidriver.c:1909:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->devName, tvp->device);
data/indi-1.8.7+dfsg/indidriver.c:1947:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:1979:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->propName, n->name);
data/indi-1.8.7+dfsg/indidriver.c:1980:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->devName, n->device);
data/indi-1.8.7+dfsg/indidriver.c:2019:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2045:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->propName, s->name);
data/indi-1.8.7+dfsg/indidriver.c:2046:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->devName, s->device);
data/indi-1.8.7+dfsg/indidriver.c:2079:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2128:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2153:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->propName, b->name);
data/indi-1.8.7+dfsg/indidriver.c:2154:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(SC->devName, b->device);
data/indi-1.8.7+dfsg/indidriver.c:2187:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2229:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2271:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2311:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(message, MAXINDIMESSAGE, fmt, ap);
data/indi-1.8.7+dfsg/indidriver.c:2351:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(fmt, ap);
data/indi-1.8.7+dfsg/indiserver.c:229: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(logname, 128, LOGNAME, getlogin());
data/indi-1.8.7+dfsg/indiserver.c:229:37:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    snprintf(logname, 128, LOGNAME, getlogin());
data/indi-1.8.7+dfsg/indiserver.c:554:13:  [4] (shell) execlp:
  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.
            execlp(executable, dp->name, NULL);
data/indi-1.8.7+dfsg/indiserver.c:563:17:  [4] (shell) execlp:
  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.
                execlp(executable, dp->name, NULL);
data/indi-1.8.7+dfsg/indiserver.c:567:17:  [4] (shell) execlp:
  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.
                execlp(dp->name, dp->name, NULL);
data/indi-1.8.7+dfsg/indiserver.c:668:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "<getProperties device='%s' version='%g'/>\n", dp->dev[0], INDIV);
data/indi-1.8.7+dfsg/indiserver.c:978:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            n = sscanf(line, "%s %512[^\n]", cmd, tDriver);
data/indi-1.8.7+dfsg/indiserver.c:995:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
            n = sscanf(line, "%s %s -%1c \"%512[^\"]\" -%1c \"%512[^\"]\" -%1c \"%512[^\"]\" -%1c \"%512[^\"]\"", cmd,
data/indi-1.8.7+dfsg/indiserver.c:1898: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(mp->cp, str);
data/indi-1.8.7+dfsg/indiserver.c:2222:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(logfn, "%s/%.10s.islog", ldir, ts);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:131: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 (tmpnam, rootname);  /* start with rootname */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:132: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(tmpnam, suffix);     /* append the suffix */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:450:15:  [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(outfits,fpptr->prefix);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:457:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outfits, infits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:539:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outfits, infits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:642:15:  [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(outfits, fpvar.outfile);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:647:19:  [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(outfits,fpvar.prefix);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:655:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(outfits, output_filename);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:683:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(outfits, output_filename);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:722:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(tempfilename, outfits);  /* store temp file name, in case of abort */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:820:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(outfits, temp);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:871:9:  [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(temp,outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:872:26:  [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.
                int rc = system(temp);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:979:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(hduname, hduloc);  /* copy the first name into temporary string */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1043:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(hduname, hduloc);  /* copy the next name into temporary string */
data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.cpp:368: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.
        snprintf(MATH_PLUGINS_DIRECTORY, 2048 - 1, INDI_MATH_PLUGINS_DIRECTORY);
data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.cpp:370: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(MATH_PLUGINS_DIRECTORY, 2048 - 1, INDI_MATH_PLUGINS_DIRECTORY);
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:55:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:55: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/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:1141:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(message, MAXRBUF, fmt, ap);
data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:38: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/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:38:18:  [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/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:864:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:34: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/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:34:18:  [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/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1387:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:67: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/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:67:18:  [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/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:751:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:93:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(activatestrname, "DSP_ACTIVATE_%s", m_Name);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:94:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(activatestrlabel, "Activate %s", m_Label);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:376:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "/tmp/%s_%s_%08X.fits", m_Label, getDeviceName(), rand());
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:60:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define LOG(...) fprintf(stderr, __VA_ARGS__)
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:318:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(ret, s);
data/indi-1.8.7+dfsg/libs/indibase/hidtest.cpp:192:2:  [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("pause");
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:416:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(msg, 257, message, ap);
data/indi-1.8.7+dfsg/libs/indicom.c:86: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/indi-1.8.7+dfsg/libs/indicom.c:86:18:  [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/indi-1.8.7+dfsg/libs/indicom.c:309:17:  [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.
        return (snprintf(buf, MAXINDIFORMAT, format, value));
data/indi-1.8.7+dfsg/libs/indicom.c:322: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(stderr, fmt, ap);
data/indi-1.8.7+dfsg/libs/indicom.c:1455:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(msg, "%s requires 'device' attribute", tagXMLEle(root));
data/indi-1.8.7+dfsg/libs/indicom.c:1463:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(msg, "%s requires 'name' attribute", tagXMLEle(root));
data/indi-1.8.7+dfsg/libs/indicom.c:1584:16:  [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).
    tp->text = strcpy(realloc(tp->text, strlen(newtext) + 1), newtext);
data/indi-1.8.7+dfsg/libs/indicom.c:1782:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/indi-1.8.7+dfsg/libs/lilxml.c:40: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/indi-1.8.7+dfsg/libs/lilxml.c:40:18:  [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/indi-1.8.7+dfsg/libs/lilxml.c:741:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sl += sprintf(s + sl, "%*s<%s", indent, "", ep->tag.s);
data/indi-1.8.7+dfsg/libs/lilxml.c:743:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sl += sprintf(s + sl, " %s=\"%s\"", ep->at[i]->name.s, entityXML(ep->at[i]->valu.s));
data/indi-1.8.7+dfsg/libs/lilxml.c:755:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sl += sprintf(s + sl, "%s", entityXML(ep->pcdata.s));
data/indi-1.8.7+dfsg/libs/lilxml.c:758:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(s + sl, ep->pcdata.s);
data/indi-1.8.7+dfsg/libs/lilxml.c:765:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sl += sprintf(s + sl, "%*s</%s>\n", indent, "", ep->tag.s);
data/indi-1.8.7+dfsg/libs/lilxml.c:993:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(ynot, "Line %d: No value for attribute %s", lp->ln, lp->ce->at[lp->ce->nat - 1]->name.s);
data/indi-1.8.7+dfsg/libs/lilxml.c:1119:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(ynot, "Line %d: closing tag %s does not match %s", lp->ln, lp->endtag.s, lp->ce->tag.s);
data/indi-1.8.7+dfsg/libs/lilxml.c:1269:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&sp->s[sp->sl], str);
data/indi-1.8.7+dfsg/libs/lilxml.c:1349:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/indi-1.8.7+dfsg/obsolete/fli_wheel.c:328:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(FLIWheel->model, buff);
data/indi-1.8.7+dfsg/obsolete/magellan1.cpp:178: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(thisDevice, devName);
data/indi-1.8.7+dfsg/obsolete/stv.c:554:21:  [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(DisplayBT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:555:21:  [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(DisplayBT[1].text, DisplayCT[1].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:556:21:  [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(DisplayDT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:557:21:  [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(DisplayDT[1].text, DisplayCT[1].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:602:21:  [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(DisplayBT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:603:21:  [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(DisplayDT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:1653: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(date_obs_s, tmp);
data/indi-1.8.7+dfsg/obsolete/stv.c:1663: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(date_obs_s, tmp);
data/indi-1.8.7+dfsg/obsolete/stv.c:1673: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(date_obs_s, tmp);
data/indi-1.8.7+dfsg/obsolete/stv.c:1683: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(date_obs_s, tmp);
data/indi-1.8.7+dfsg/obsolete/stv.c:1693: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(date_obs_s, tmp);
data/indi-1.8.7+dfsg/obsolete/stv.c:1703: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(date_obs_s, tmp);
data/indi-1.8.7+dfsg/obsolete/stv.c:1957:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(DisplayBT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:1958:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(DisplayDT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:1978:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(DisplayBT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/obsolete/stv.c:1979:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(DisplayDT[0].text, DisplayCT[0].text);
data/indi-1.8.7+dfsg/test/celestrondriver/test_celestrondriver.cpp:40:13:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
            vsprintf(response, fmt, args);
data/indi-1.8.7+dfsg/tools/compiler.c:315:23:  [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).
                (void)strcpy(err_msg, badop);
data/indi-1.8.7+dfsg/tools/compiler.c:327:23:  [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).
                (void)strcpy(err_msg, badop);
data/indi-1.8.7+dfsg/tools/compiler.c:339:23:  [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).
                (void)strcpy(err_msg, badop);
data/indi-1.8.7+dfsg/tools/compiler.c:385:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            (void)sprintf(err_msg, toomc, MAX_OPX);
data/indi-1.8.7+dfsg/tools/compiler.c:407:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            (void)sprintf(err_msg, toomv, MAX_OPX);
data/indi-1.8.7+dfsg/tools/evalINDI.c:378:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(prop, "%s.%s.%s", d, n, findXMLAttValu(ep, "name"));
data/indi-1.8.7+dfsg/tools/evalINDI.c:397:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(prop, "%s.%s.%s", d, n, findXMLAttValu(ep, "name"));
data/indi-1.8.7+dfsg/tools/evalINDI.c:415:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(prop, "%s.%s.%s", d, n, findXMLAttValu(ep, "name"));
data/indi-1.8.7+dfsg/tools/evalINDI.c:431:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(prop, "%s.%s._STATE", d, n);
data/indi-1.8.7+dfsg/tools/evalINDI.c:443:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(prop, "%s.%s._TS", d, n);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:272:24:  [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).
    srchs[nsrchs].d  = strcpy(malloc(strlen(dev) + 1), dev);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:273:24:  [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).
    srchs[nsrchs].p  = strcpy(malloc(strlen(prop) + 1), prop);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:274:24:  [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).
    srchs[nsrchs].e  = strcpy(malloc(strlen(ele) + 1), ele);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:593:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    i = sprintf(fn, "%s.%s.%s%s", dev, nam, enam, format);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:303:23:  [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).
    sets[nsets].d   = strcpy(malloc(strlen(d) + 1), d);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:304:23:  [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).
    sets[nsets].p   = strcpy(malloc(strlen(p) + 1), p);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:575:29:  [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).
        sp->ev[sp->nev].e = strcpy(malloc(strlen(e0) + 1), e0);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:576:29:  [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).
        sp->ev[sp->nev].v = strcpy(malloc(strlen(v0) + 1), v0);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:615:29:  [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).
        sp->ev[sp->nev].e = strcpy(malloc(strlen(ev) + 1), ev);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:616:29:  [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).
        sp->ev[sp->nev].v = strcpy(malloc(strlen(e) + 1), e);
data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.cpp:116:48:  [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.
    std::string defaultDirectory = std::string(getenv("HOME")) + std::string("/lpm");
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:212:56:  [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.
    IUFillText(&DirectoryT[0], "LOCATION", "Location", getenv("HOME"));
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:922:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                    noise = random();
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:966:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                    noise = random();
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:2030:46:  [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.
    snprintf(dir, MAXRBUF, "%s/PEC_Data/%s", getenv("HOME"), ts_date);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_simulator.cpp:88:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(static_cast<uint32_t>(time(nullptr)));
data/indi-1.8.7+dfsg/examples/tutorial_four/simpleskeleton.cpp:111: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.
    char *skel = getenv("INDISKEL");
data/indi-1.8.7+dfsg/indidriver.c:1302: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.
        if (getenv("INDICONFIG"))
data/indi-1.8.7+dfsg/indidriver.c:1303:37:  [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.
            strncpy(configFileName, getenv("INDICONFIG"), MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1305:73:  [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.
            snprintf(configFileName, MAXRBUF, "%s/.indi/%s_config.xml", getenv("HOME"), dev);
data/indi-1.8.7+dfsg/indidriver.c:1310:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    else if (getenv("INDICONFIG"))
data/indi-1.8.7+dfsg/indidriver.c:1311:64:  [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.
        snprintf(configDefaultFileName, MAXRBUF, "%s.default", getenv("INDICONFIG"));
data/indi-1.8.7+dfsg/indidriver.c:1313:84:  [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.
        snprintf(configDefaultFileName, MAXRBUF, "%s/.indi/%s_config.xml.default", getenv("HOME"), dev);
data/indi-1.8.7+dfsg/indidriver.c:1671:47:  [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.
    snprintf(configDir, MAXRBUF, "%s/.indi/", getenv("HOME"));
data/indi-1.8.7+dfsg/indidriver.c:1677: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.
        if (getenv("INDICONFIG"))
data/indi-1.8.7+dfsg/indidriver.c:1678:37:  [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.
            strncpy(configFileName, getenv("INDICONFIG"), MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1699:47:  [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.
    snprintf(configDir, MAXRBUF, "%s/.indi/", getenv("HOME"));
data/indi-1.8.7+dfsg/indidriver.c:1705: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.
        if (getenv("INDICONFIG"))
data/indi-1.8.7+dfsg/indidriver.c:1706:37:  [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.
            strncpy(configFileName, getenv("INDICONFIG"), MAXRBUF);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:51:37:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define fp_tmpnam(suffix, rootname, tmpnam) _fp_tmpnam((char *)suffix, (char *)rootname, (char *)tmpnam)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:51:98:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define fp_tmpnam(suffix, rootname, tmpnam) _fp_tmpnam((char *)suffix, (char *)rootname, (char *)tmpnam)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:121:52:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
int _fp_tmpnam(char *suffix, char *rootname, char *tmpnam)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:131:13:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    strcpy (tmpnam, rootname);  /* start with rootname */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:132:12:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    strcat(tmpnam, suffix);     /* append the suffix */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:134:30:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    maxtry = SZ_STR - strlen(tmpnam) - 1;
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:137:23:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
        if (fp_access(tmpnam)) break;  /* good, the file does not exist */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:138:28:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
                if (strlen(tmpnam) > SZ_STR-2)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:141:20:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
           fp_msg (tmpnam);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:145:16:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
        strcat(tmpnam, "x");  /* append an x to the name, and try again */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:150:17:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
        fp_msg (tmpnam);
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:67:79:  [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.
    snprintf(DatabaseFileName, MAXRBUF, "%s/.indi/%s_alignment_database.xml", getenv("HOME"), DeviceName);
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:171:47:  [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.
    snprintf(ConfigDir, MAXRBUF, "%s/.indi/", getenv("HOME"));
data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.cpp:364:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *indiprefix = getenv("INDIPREFIX");
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:53:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("INDIDEV") != nullptr)
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:55:27:  [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.
        strncpy(deviceID, getenv("INDIDEV"), MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:435:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *indiskel = getenv("INDISKEL");
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:455:38:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            const char *indiprefix = getenv("INDIPREFIX");
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:331:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("INDICONFIG"))
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:332:64:  [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.
        snprintf(configDefaultFileName, MAXRBUF, "%s.default", getenv("INDICONFIG"));
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:334:84:  [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.
        snprintf(configDefaultFileName, MAXRBUF, "%s/.indi/%s_config.xml.default", getenv("HOME"), deviceID);
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:717:28:  [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 *envDev = getenv("INDIDEV");
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:570:54:  [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.
            IUSaveText(&UploadSettingsT[UPLOAD_DIR], getenv("HOME"));
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:80:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char * HomeDir = getenv("HOME");
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:333:55:  [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.
        snprintf(dir, MAXRBUF, "%s/.indi/logs/%s/%s", getenv("HOME"), ts_date, outputFile.c_str());
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:137:54:  [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.
            IUSaveText(&UploadSettingsT[UPLOAD_DIR], getenv("HOME"));
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2913:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *HomeDir = getenv("HOME");
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp:174:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(nullptr));
data/indi-1.8.7+dfsg/libs/stream/streammanager.cpp:132:48:  [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.
    std::string defaultDirectory = std::string(getenv("HOME")) + std::string("/indi__D_");
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:481:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                *(src++) = random() % 255;
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:207:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[128]={0};
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:214: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).
    file.open(name, std::ios::in | std::ios::binary | std::ios::ate);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:559: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[128]={0};
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:564:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(name, std::ios::out | std::ios::binary | std::ios::trunc);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:657: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[128]={0};
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.h:79: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 format[16];
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2kdriver.c:75:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    STAR2kPortFD = open(port, O_RDWR);
data/indi-1.8.7+dfsg/drivers/auxiliary/arduino_st4.cpp:294: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 res[8] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/arduino_st4.cpp:302: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/arduino_st4.cpp:318: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:305: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 imageFileName[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:340:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(imageFileName, "w");
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:386: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 cmd[MAXRBUF]={0}, line[256]={0}, parity_str[8]={0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:260: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[FLAT_RES] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:265: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 productString[3] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:312: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[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:316: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 expectedResponse[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:340: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[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:344: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 expectedResponse[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:363: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 command[FLAT_CMD];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:364: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[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:383: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 expectedResponse[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:397: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[FLAT_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:542: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[FLAT_RES] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:546: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 versionString[4] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp: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 response[FLAT_RES] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:584: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 brightnessString[4] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:615: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 command[FLAT_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:616: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[FLAT_RES] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:623: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 brightnessString[4] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:648: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:655: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[FLAT_CMD + 1] = {0}; // space for terminating null
data/indi-1.8.7+dfsg/drivers/auxiliary/gpdriver.h:55: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 guideCMD[1];
data/indi-1.8.7+dfsg/drivers/auxiliary/gps_simulator.cpp:93: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 ts[32]={0};
data/indi-1.8.7+dfsg/drivers/auxiliary/joystick.cpp:106: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 propName[16] = {0}, propLabel[16] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/joystick.cpp:185: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 buf[8];
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.cpp:73: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).
    joystick_fd = open(dev_path, O_RDONLY | O_NONBLOCK);
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.h:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[256];
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.h:117: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 dev_path[256];
data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.cpp:245:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "a");
data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.cpp:251: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 res[32] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.cpp:306: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[5]={0};
data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.h:88: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 filename[2048];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:216: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 command[PEGASUS_LEN] = {0}, response[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:226: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:246: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:272: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:290: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:377: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 command[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:405: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:415: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:427: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:442: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0}, expected[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:476: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:488: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:261: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 command[PEGASUS_LEN] = {0}, response[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:271: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:291: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:317: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:335: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:372: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:397: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:474: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 command[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:502: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:512: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:524: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:539: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0}, expected[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:575: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:589: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:675: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:706: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:146: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 portLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:432: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[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:446: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 command[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:451: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:471:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:505: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:843: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 command[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:868: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 errorMessage[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:904: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:918: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:933: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 cmd[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:943: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 cmd[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:953: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 cmd[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:963: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 cmd[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:973: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:988: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1003: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1018: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1033: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1051: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1081: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 cmd[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0}, expected[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1097: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 cmd[PEGASUS_LEN] = {0}, expected[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1113: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 cmd[PEGASUS_LEN] = {0}, expected[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1129: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 cmd[PEGASUS_LEN] = {0}, expected[PEGASUS_LEN] = {0}, res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1201: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1230: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1444: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1486: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1580: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 res[PEGASUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:172: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:482: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:511: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 switchName[MAXINDINAME] = {0}, groupLabel[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:535: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 numberName[MAXINDINAME] = {0}, groupLabel[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:576: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:603: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:632: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:647: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:662: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:711: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:718: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:738: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:752: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:765:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:288: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 buffer[64] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:344:57:  [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).
    serv_socket.sin_port        = htons((unsigned short)atoi(SettingsT[SKYSAFARI_PORT].text));
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:497: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 output[32] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:512: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 output[32] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:774: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 bufDT[32] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:775: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 bufOff[8] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:277: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:283: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[SNAP_CMD + 1]; // space for terminating null
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:323: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 command[SNAP_CMD];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:324: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:353: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 command[SNAP_CMD];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:354: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:383: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:400:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char command[SNAP_CMD];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:401: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:414: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 expectedResponse[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:428: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:590: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:595: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 versionString[4] = { 0 };
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:620: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:653: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 command[SNAP_CMD];
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:654: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[SNAP_RES];
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:219: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:277: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:290: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:306: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:314: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:336:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:211: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:246: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char resp[UDP_RES_LEN] = {};
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:299: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 resp[UDP_RES_LEN] = {};
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:322: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 cmd[UDP_CMD_LEN + 1];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:323: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:331: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 cmd[UDP_CMD_LEN + 1];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:332: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:340: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 cmd[UDP_CMD_LEN + 1];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:341: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:349: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 cmd[UDP_CMD_LEN + 1];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:350: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:358: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:364: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 cmd[UDP_CMD_LEN + 1];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:365: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:373: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 cmd[UDP_CMD_LEN + 1];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:374: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:487: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 resp[UDP_RES_LEN];
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:742: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 gsccmd[250];
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:746:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(gsccmd, "gsc -c %8.6f %+8.6f -r %4.1f -m 0 %4.2f -n 3000",
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:755:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char line[256];
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:762:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char id[20];
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:763:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char plate[6];
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:764:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char ob[6];
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1317:30:  [2] (integer) atol:
  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).
                FocuserPos = atol(pcdataXMLEle(ep));
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1535: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 comment[512] = {0}, bayer_pattern[16] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1544: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 error_status[512] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1562: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 error_status[512] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1570: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 error_status[512] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1578: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 error_status[512] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:695: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 JnRAStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:697: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 JnDecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:717: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 sidStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:719: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 JnHAStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:753: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 J2RAStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:755: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 J2DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:778: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 gsccmd[250];
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:782:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(gsccmd, "gsc -c %8.6f %+8.6f -r %4.1f -m 0 %4.2f -n 3000",
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:794:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char line[256];
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:801:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char id[20];
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:802:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char plate[6];
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:803:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char ob[6];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:304: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:305: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:306: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 status[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:351: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:352: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:353: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 status[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:432: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:433: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:670: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:671: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 cmd[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:672: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:757: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:758: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 cmd[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:759: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:850: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 cmd[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:851: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:908: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:909: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:910: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 status[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:989: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:990: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 cmd[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:991: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 resp[DOME_BUF];
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:157: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/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp: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 path[1024];
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:193: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 dbg[8 * 1024];
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:197:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(dbg, ", '");
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:201: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(dbg, ", nullptr)");
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:249:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[] = "/tmp/indi_dome_script_status_XXXXXX";
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:250:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd = mkstemp(tmpfile);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:250:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    int fd = mkstemp(tmpfile);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:253:74:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        LOGF_ERROR("Temp file %s creation for status script failed, %s", tmpfile, strerror(errno));
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:254:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:258:44:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    bool status = RunScript(SCRIPT_STATUS, tmpfile, nullptr);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:263: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).
        FILE *file = fopen(tmpfile, "r");
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:263:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        FILE *file = fopen(tmpfile, "r");
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:268:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:396: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 _az[16];
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:602: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:609: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 versionString[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:623: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:630: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 configString[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:654: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:675: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:682: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 statusString[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:706: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:725: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:747: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:766:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:784: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:803: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:824: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:843: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:864: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:884: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:903: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:915: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:934: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:1044: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:1053: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 formatted_command[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:1060: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:1076: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:1084: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/dome/domepro2.cpp:1106:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:320: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:350: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:367: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:381: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:393: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:413: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:484: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:494: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:507: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:520: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:530: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 levels[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:541: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:554: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:568: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:613: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:626: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:641: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:662: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:671: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 formatted_command[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:678: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:694: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:702: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/dome/rigel_dome.cpp:724:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:106: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).
        FILE *inertia = fopen(wexp.we_wordv[0], "r");
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:111: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 line[100];
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:74: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:108: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:136: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:182: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:219: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 cmd[OPTEC_MAXLEN_CMD];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:221: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:245: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:246: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:284: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:317: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:525: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 cmd[32]={0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp: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 response[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:605: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 filterName[MAXINDINAME];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:606: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 filterLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:607: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 filterList[OPTEC_MAXLEN_NAMES + 9]; // tempo string used fo display filtername debug information
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:608: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:659: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 filterNameIFW[OPTEC_MAX_FILTER][9];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:739: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 cmd[72]={0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:740: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 tempo[OPTEC_LEN_FLTNAME + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:741: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:761:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempo, FilterNameT[i].text, tempolen); // spaces at the end of name
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:837: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:884: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:885: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 filter[2]={0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:916:28:  [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).
    result               = atoi(response);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:930: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:984: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[OPTEC_MAXLEN_RESP + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.h:130: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 filterSim[OPTEC_MAXLEN_NAMES + 1];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.cpp:93: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 filterName[MAXINDINAME];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.cpp:94: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 filterLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.cpp:135: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 cmd[8] = {0}, res[8] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.cpp:148: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw1.cpp:160: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp:91: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 filterName[MAXINDINAME];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp:92: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 filterLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp:133: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 cmd[8] = {0}, res[8] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp:146:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp:155: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw2.cpp:165:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (atoi(res) + 1 == TargetFilter)
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:97: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 res[32] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:106: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:119: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:128: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:144: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:155: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:167: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).
        FilterSlotN[0].max = atoi(res) + 1;
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:174: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:185: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:194:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    CurrentFilter = atoi(res) + 1;
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:203: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 cmd[8] = {0}, res[8] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:216: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:225: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/qhycfw3.cpp:235:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (atoi(res) + 1 == TargetFilter)
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:112: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 cmd[10] = {"SN\r\n"};
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:113: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 resp[255]={0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp: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 targetpos[255]={0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:192: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 curpos[255]={0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:193: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 dmp[255];
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:198:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(targetpos, "G%d\r\n ", position);
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:206: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 errmsg[255];
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:216:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(targetpos, "P%d", position);
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:226: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 errmsg[255];
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:257:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf + n, "[%02X]", data[i]);
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:271: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:273: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 dmp[255];
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:143: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 filter_command[BUF_SIZE] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:152: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:157: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 filter_response[BUF_SIZE] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:161: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:182: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 filter_command[BUF_SIZE] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:193: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:215: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 filter_command[BUF_SIZE] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:224: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 error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:230: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 filter_response[BUF_SIZE] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/trutech_wheel.cpp:234:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char error_message[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:177: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:385: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 offsetName[MAXINDINAME], offsetLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:403: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:419: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:462: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:468: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 opt[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:501: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:545: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:566: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:586: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:607: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:628: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:649: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:684: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 cmd[DRIVER_LEN] = {0}, resbuf[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:757: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:806: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:842: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/filter_wheel/xagyl_wheel.cpp:861:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:147: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:148: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 resp[5] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp: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 res[DRIVER_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:212: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 res[DRIVER_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:224: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 res[DRIVER_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:245: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 res[DRIVER_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:262: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 cmd[DRIVER_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:269: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 cmd[DRIVER_RES] = {0}, res[DRIVER_RES] = {0}, expected[DRIVER_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:363: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/aaf2.cpp:374: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/celestron.cpp:506:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[20];
data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp:36: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 debugStr[301];
data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp:170: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp: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.
        char errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp:192: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 rxdata[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/celestronauxpacket.cpp:195: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:198: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:219: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:243: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:264: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:287: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:310: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:333: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:356: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:387: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:424: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:461: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:477: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:484: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:491: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:492: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:531: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:580: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:630: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:680: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:710: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:728: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:746: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:764: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:944: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:955: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af1.cpp:970: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:206: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:227: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:251: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:272: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:295: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:318: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:341: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:364: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:395: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:432: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:469: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 res[DSD_RES]= {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:490: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:506: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:513: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:520: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:521: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:560: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:609: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:659: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:709: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:739: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:757: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:775: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:793: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:987: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:998: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af2.cpp:1013: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:221: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:242: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:277: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:304: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:325: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:348: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:371: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:394: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:417: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:440: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:462: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:478: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:480: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:486: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:488: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:494: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:495: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:534: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:587: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:628: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:646: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:664: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:682: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:914: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:925: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:940: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 res[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/deepskydad_af3.cpp:956: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 cmd[DSD_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:193: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:194: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 cmd[2] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:195: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:234: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:244: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:256: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:266: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:341: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:342: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 cmd[3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:343: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 res[64];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:408:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int motorType = atoi(token);
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:452:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    currentPosition = atoi(token);
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:479:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int ledStatus = atoi(token);
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:497: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).
    int reverseStatus = atoi(token);
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:516: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).
    int encoderStatus = atoi(token);
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:534:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int backlash = atoi(token);
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:581: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:593: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:605: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:617: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:629: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:641: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:653: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:677: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:697: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:709: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:784: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 cmd[2] = { 'H', 0xA };
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:265: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 cmd[32] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:267: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp: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 response[32] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:271: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 key[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:272: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[32] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:634: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:636: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:637: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:689: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:691: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:692: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:695: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 key[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:756: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 nickname[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1053: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1055: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1056: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1059: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 key[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1428: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1430: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1431: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1434: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 key[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1914:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1916: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1917: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1976: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1978: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1979: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2037: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2039: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2040: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2096: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2098: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2099: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2165: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2167: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2168: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2232: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2234: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2235: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2292: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2294: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2295: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2353: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2355: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2356: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2413: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2415: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2416: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2473: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2475: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2476: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2534: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2536: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2537: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2593: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2595: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2596: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2651: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2653: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2654: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2710: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2712: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2713: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2774: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2776: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2777: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2838: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2840: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2841: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2900: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2902: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2903: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2963: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2964: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3017: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3019: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3020: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3092: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3094: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3095: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3291: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 cmd[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3293: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3294: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[LYNX_MAX] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3474: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 sMajor[8], sMinor[8], sSub[8];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3478:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *major = atoi(sMajor);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3479:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *minor = atoi(sMinor);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3480:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *sub = atoi(sSub);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.h:136: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 version[16];
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.h:144: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 focusTarget[8];
data/indi-1.8.7+dfsg/drivers/focuser/hitecastrodcfocuser.cpp:196:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char command[8] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/hitecastrodcfocuser.cpp:242: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 command[8] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/hitecastrodcfocuser.cpp:315: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 command[8] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char MFOC_cmd[32] = ": Q #";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:189: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 MFOC_res[32] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:190: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 MFOC_res_type[32] = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:226: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 MFOC_cmd[32]  = ": I ";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:227: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 MFOC_res[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:231: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 MFOC_res_type[32]  = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:237:21:  [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(MFOC_cmd, "0 #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:242:21:  [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(MFOC_cmd, "1 #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:247:21:  [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(MFOC_cmd, "2 #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:284: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 MFOC_cmd[32]  = ": F ";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:285: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 MFOC_res[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:289: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 MFOC_res_type[32]  = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:295:21:  [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(MFOC_cmd, "1 #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:300:21:  [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(MFOC_cmd, "0 #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:361: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 MFOC_cmd[32]  = ": B ";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:362: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 MFOC_res[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:367: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 bl_char[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:368: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 MFOC_res_type[32]  = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:372:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(bl_char, "%d", steps);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:373:5:  [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(bl_char, " #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:394: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 MFOC_cmd[32]  = ": D ";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:395: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 MFOC_res[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:400:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tc_char[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:401: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 MFOC_res_type[32]  = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:405:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tc_char, "%d", tc_int);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:406:5:  [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(tc_char, " #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:426: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 MFOC_cmd[32]  = ": G ";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:427: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 MFOC_res[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:431: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 pm_char[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:432: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 MFOC_res_type[32]  = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:434:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(pm_char, "%d", ticks);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:435:5:  [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(pm_char, " #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp: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 MFOC_cmd[32]  = ": M ";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:456: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 abs_pos_char[32]  = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:460:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(abs_pos_char, "%d", targetTicks);
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:461:5:  [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(abs_pos_char, " #");
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:508: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 MFOC_cmd[32] = ": Q #";
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:509: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 MFOC_res[32] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lacerta_mfoc.cpp:510: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 MFOC_res_type[32] = "0";
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:263: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 errorMsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:319: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:344: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:350: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:373: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:412: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:539: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:577: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:615: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:650: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:685: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 resp[LAKESIDE_LEN];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:720: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:755: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:794: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:833: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:868: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:903: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:938: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:973: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1008: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1053: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1071:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "CO%d#", abs(calc_steps));
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1079:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, "CI%d#", calc_steps);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1116: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1117: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1122:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRB%d#", backlash);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1153: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1154: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1159:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRS%d#", stepsize);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1202: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1203: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1251: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1252: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1286: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1287: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1296:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRg%d#", active_slope);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1329: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1330: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CR1%d#", slope1_inc);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1365: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1366: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1371:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CR2%d#", slope2_inc);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1401: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1402: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1407:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRa%d#", slope1_direction);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1437: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1438: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1443:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRb%d#", slope2_direction);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1473: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1474: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1479:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRc%d#", slope1_deadband);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1509: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1510: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1515:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRd%d#", slope2_deadband);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1545: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1546: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1551:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRe%d#", slope1_period);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1581: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 cmd[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1582: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1587:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "CRf%d#", slope2_period);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:2329: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:2330: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 resp[LAKESIDE_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:2440: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:2465:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:203: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 resp[7];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:230: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 read[3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:715: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:733: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:752: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 read[2];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:766:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:767: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 write_buffer[2];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:788: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:789: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 write_buffer[3];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:811: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 read[5];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:823: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:824: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 write_buffer[5];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:850: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 write_buffer[5];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:193: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:213: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:225: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:248: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:269: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:298: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:315: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:323: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:331: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:338: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:352: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:359: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:368: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:606: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite.cpp:630: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:284: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:285: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 resp[5] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:335:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:336: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 resp[3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:337: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:392: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:393: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 resp[4] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:394: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:443: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:444: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 resp[16] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:492: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:493: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 resp[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:495: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:542: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:543: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 resp[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:544: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:587: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:598: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:610: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:611: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:632: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:644: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:656: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:657: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:702: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:703: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:737: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:738: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:764: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:765: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:995: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 cmd[DRO_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:257: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:258: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 resp[5] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:335:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:367: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:402: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:430: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:451: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:483: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:504: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:525: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:548: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:572: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:596: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:623: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:646: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:674: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:706: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 res[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:737: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:744: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:752: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:759: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:770: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:777: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:784: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:791: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:798: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:806: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:814: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:821: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:832: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:840: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:847: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:1133: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 cmd[ML_RES] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:1280: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/myfocuserpro2.cpp:1291: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:131: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 cmd[NFOCUS_LEN] = {0}, res[NFOCUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:151: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 hex_cmd[NFOCUS_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:164: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp: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.
        char errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:188: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 hex_res[NFOCUS_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:205:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:213: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 res[NFOCUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:234: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 on_cmd[NFOCUS_LEN] = {0}, off_cmd[NFOCUS_LEN] = {0}, fast_cmd[NFOCUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:249: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 on_res[NFOCUS_LEN] = {0}, off_res[NFOCUS_LEN] = {0}, fast_res[NFOCUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:378: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 cmd[NFOCUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nfocus.cpp:404: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 res[NFOCUS_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:207: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 cmd[NSTEP_LEN] = {0}, res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp: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.
        char hex_cmd[NSTEP_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:240: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:256: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:264: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 hex_res[NSTEP_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:281:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:519: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:561: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:573: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:595: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:613: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:689: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:720: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:739: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 res[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:755: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:764: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:774: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:781: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:789: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:815: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/nstep.cpp:822: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 cmd[NSTEP_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:153: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:154: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 resp[16];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:187: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char resp[16];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:232: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 resp[16];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:273: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:274: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 resp[16];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:310: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:311: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 cmd[24];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:328: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:344: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:345: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 cmd[24];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:304: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 command[3];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:305: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 response[3];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:392: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 command[1];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:393: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 response[3];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:482: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 command[2];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:483: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 response[3];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:542: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 command[1];
data/indi-1.8.7+dfsg/drivers/focuser/perfectstar.cpp:543: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 response[2];
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:591: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 echo[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:613: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:620: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:643: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:657: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:873:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", data[i]);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:236: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 substr[255];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:264: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 rf_cmd_cks[32], robofocus_error[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:297: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 robofocus_error[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:298: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 robofocus_char[1];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:391: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 rf_cmd[RF_MAX_CMD];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:425: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:451: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:452: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 vl_tmp[4];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:485:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "%3d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:489:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "0%2d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:493:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "00%1d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:542: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:585: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:601:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FI0%5d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:605:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FI00%4d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:609:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FI000%3d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:613:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FI0000%2d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:617:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FI00000%1d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:628: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:645:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FO0%5d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:649:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FO00%4d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:653:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FO000%3d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:657:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FO0000%2d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:661:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FO00000%1d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:672: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:687:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FG0%5d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:691:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FG00%4d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:695:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FG000%3d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:699:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FG0000%2d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:703:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rf_cmd, "FG00000%1d", (int)value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:715: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:716: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 rf_cmd_tmp[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:787: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:788: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 vl_tmp[6];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:790: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 waste[1];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:809:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "%5d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:813:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "0%4d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:817:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "00%3d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:821:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "000%2d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:825:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(vl_tmp, "0000%1d", (int)*value);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:904: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 rf_cmd[32];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:905: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 vl_tmp[6];
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:1493: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 rf_cmd[RF_MAX_CMD] = { 0 };
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:232: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:246: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:275: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:317: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:339: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:399: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:555: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 cmd[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:679: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 hex_cmd[SESTO_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:692: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:711: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:719: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 hex_res[SESTO_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:736:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:225: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:272: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:319: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:341: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:351: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:475:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char *fn[1] =  { FastMoveS[FASTMOVE_OUT].name };
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:481:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:491:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:552: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:603: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:633: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:719: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 * names[2] = { CalibrationS[CALIBRATION_START].name, CalibrationS[CALIBRATION_NEXT].name };
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:742: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:751:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char * names[2] = { CalibrationS[CALIBRATION_START].name, CalibrationS[CALIBRATION_NEXT].name };
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:820: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 res[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:891:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char read_buf[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:961: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 cmd[SESTO_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:220: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 command[3];
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:321: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 respons[2];
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:345: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 respons[3];
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:371: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 respons[2];
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:420: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:435: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:234: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:235: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:236: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 hwVer[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:276: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:277: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:278: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 hardware_string[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:279: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 firmware_string[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:281: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 hwdate[STEELDRIVE_MAXBUF / 2];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:282: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 hwrev[STEELDRIVE_MAXBUF / 2];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:283: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 fwdate[STEELDRIVE_MAXBUF / 2];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:284: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 fwrev[STEELDRIVE_MAXBUF / 2];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:324: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 mon[3], year[3];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:371: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 mon[3], year[3];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:394: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:395: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:434: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 junk[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:457: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:458: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:523: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:524: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:575: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:576: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:626: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:627: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:629: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 selectedFocuser[1], coeff[3], enabled[1], tResp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:689: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:690: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 resp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:692: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 selectedFocuser[2], maxTrip[8], tResp[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:771: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).
        int sFocuser = atoi(selectedFocuser);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:800: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:801: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:852: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:853: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:882: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:921: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:922: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:948: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:949: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:985: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:986: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1012: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1013: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1039: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1040: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 cmd[STEELDRIVE_MAXBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1462: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1531: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:381: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:393: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:515: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:605: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:637: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:666: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:685: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:694: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 formatted_command[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:701: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:710: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 rawResponse[DRIVER_LEN * 2] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:724: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:732: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:756:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:295: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[TCFS_MAX_CMD] = { 0 };
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:323: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[TCFS_MAX_CMD] = { 0 };
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:363: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 response[TCFS_MAX_CMD] = { 0 };
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:445: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 response[TCFS_MAX_CMD] = { 0 };
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:848: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 command[TCFS_MAX_CMD] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:950: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 tcfs_error[TCFS_ERROR_BUFFER];
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:969: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[TCFS_MAX_CMD] = { 0 };
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:1212: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 err_msg[TCFS_ERROR_BUFFER];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:263: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:264: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:299: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:359: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:390: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:406: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:450: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:493: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:544: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:613: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:616: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:633: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:636: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:653: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:664: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:709: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:710: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:726: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:727: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:743: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:744: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:773: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:774: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:820: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:821: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:836: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 cmd[UFOCMDLEN + 1];
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:837: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:1227: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 resp[UFORESLEN] = {};
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:785: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:786: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:844: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:845: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[64];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:848: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 key[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:907: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 nickname[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1311: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1312:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char response[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1315: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 key[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1574: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1575: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[64];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1578: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 key[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1638: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 nickname[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1883: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1884: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[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1887: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 key[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1945: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 np[8];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2213: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2215: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2216: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2274: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2276: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2277: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2314: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2316: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2317: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2366: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2368: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2369: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2419: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2421: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2422: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2464: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2465: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2515: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2517: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2518: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2554: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2556: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2557: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2593: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2595: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2596: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2632: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2634: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2635: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2687: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2689: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2690: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2724: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2726: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2727: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2761: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2763: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2764: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2800: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2801: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2861: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2862: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[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2869:9:  [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(response, "!00");
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2915: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2917: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2918: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2964: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2966: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2967: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3186: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3187: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3259: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3261: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3262: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3300: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3301: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[16];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3315: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/gemini.h:119: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 focusTarget[8];
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:42: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 cmd[12];
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:43: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 ret[2][3];
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:264: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 resp[64] = "not available";
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:275:9:  [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(resp, "20.12.2017");
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:280:9:  [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(resp, "25.01.2017");
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:294: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 resp[64] = "Integra85"; // TODO this is an assumption until the device can report its type
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:388: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:394:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    position = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:765: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:770:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int position = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:783: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:804: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:894: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:901: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:909: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:916: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 cmdnocrlf[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:918: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:920: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:292: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:293: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 resp[64];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:323: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:324: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 resp[64];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:371: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:372: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:375: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:404: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:405: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:409: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:437:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    position = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:850: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:853: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:884: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:885: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:888: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:919: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:920: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:923: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:954: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:955: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:958: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:989: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 cmd[16] = "GT#";
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:990: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:993: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1017:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    SensorN[SENSOR_TEMPERATURE].value = atoi(res) / 10.0;
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1024: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 cmd[16] = "GV#";
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1025: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1028: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1052:37:  [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).
    SensorN[SENSOR_VOLTAGE].value = atoi(res) / 10.0;
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1059: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1062: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1082: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1083: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1086: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1113:36:  [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).
        FocusStepDelayN[0].value = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1115:38:  [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).
        RotatorStepDelayN[0].value = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1117:34:  [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).
        AuxStepDelayN[0].value = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1124: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1125: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1128: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1159: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 cmd[16] = "GS#";
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1160: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1163: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1187:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int value = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1198: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1199: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1202: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1233: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1252: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1253: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1256: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1287: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1288: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1291: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1322: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1323: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 res[16] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1326: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:207: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:222: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:236: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:251: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:269: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:300: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:315: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:380: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:389: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 formatted_command[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:396: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:412: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:420: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:442:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:222: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 res[1] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:225: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:364: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 cmd[PYRIX_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:367: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:387: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 cmd[PYRIX_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:389: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:391: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 res[1] = { 0 } ;
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:426: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:445: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 res[1] = { 0 };
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:448: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:480: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:498: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 cmd[PYRIX_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:501: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:539: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 cmd[PYRIX_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:542: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:608: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:609: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 res[PYXIS_3INCH_PER_DEG + 1] = { 0 };
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:611:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    bool pyxis3inch = atoi(FirmwareT[0].text) >= 3 ;
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:659: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:660: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 res[1] = { 0 };
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:693: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 res[4] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:696: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:730: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 res[4] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:733: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:760:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    PA = atoi(res);
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:768: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 res[1] = {0};
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:771: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:165: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:185: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:214: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:222: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:239:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:330: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:342: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:364: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:392: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:415: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp: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 cmd[DRIVER_LEN] = {0}, res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:202: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 cmd[DRIVER_LEN]={0}, res[DRIVER_LEN]={0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:210:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char RAStr[DRIVER_LEN]={0}, DecStr[DRIVER_LEN]={0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:235: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 cmd[DRIVER_LEN]={0}, res[DRIVER_LEN]={0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:248: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 RAStr[DRIVER_LEN]={0}, DecStr[DRIVER_LEN]={0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:257: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 cmd[DRIVER_LEN]={0}, res[DRIVER_LEN]={0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:471: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:487: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:495: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/skeleton/mount_driver.cpp:512:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:42: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 device_str[MAXINDIDEVICE] = "Celestron GPS";
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:94:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", data[i]);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:152: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:153: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 hexbuf[3 * MAX_RESP_SIZE];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:185:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:237: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 cmd[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:246: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(cmd + 4, payload, payload_len);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp: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 version[8], model[16], RAVersion[8], DEVersion[8];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:507: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 payload[2];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:600: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 payload[1];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:610: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 payload[1];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:634: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 RAStr[16], DecStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:642: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:644:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "r%08X,%08X", dd2pnex(ra * 15), dd2pnex(dec));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:646:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "R%04X,%04X", dd2nex(ra * 15), dd2nex(dec));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:654: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:662: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:664:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "b%08X,%08X", dd2pnex(az), dd2pnex(alt));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:666:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "B%04X,%04X", dd2nex(az), dd2nex(alt));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:674: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 RAStr[16], DecStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:683: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:685:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "s%08X,%08X", dd2pnex(ra * 15), dd2pnex(dec));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:687:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cmd, "S%04X,%04X", dd2nex(ra * 15), dd2nex(dec));
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:740: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 RAStr[16], DecStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:767: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:787: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 cmd[9];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:837: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 cmd[9];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:964: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 cmd[3];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:965:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "T%c", mode);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:1057: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 focVersion[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:1260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[1]; data[0] = start ? 0x01 : 0x00;
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:1342: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 payload[2];
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.h:371: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 response[MAX_RESP_SIZE];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:463:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char isoDateTime[32];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:464:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char utcOffset[8];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:588: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 RAStr[32], DecStr[32];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:610: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 RAStr[32], DecStr[32];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:1551: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:1625: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:1993: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[1024];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:2020: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 ts_date[32], ts_time[32];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:2029: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 dir[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:2038: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 pecFileBuf[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/dsc.cpp:292: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 CR[1] = { 0x51 };
data/indi-1.8.7+dfsg/drivers/telescope/dsc.cpp:294: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/dsc.cpp:309: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/dsc.cpp:322:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/dsc.cpp:432: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 AzStr[64], AltStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:43: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 MechanicalRAStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:44: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 MechanicalDECStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:373: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 CmdString[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:387:21:  [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(CmdString, ":Qe#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:392:21:  [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(CmdString, ":Qw#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:402:21:  [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(CmdString, ":Qn#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:407:21:  [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(CmdString, ":Qs#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:444:21:  [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(CmdString, ":Qe#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:449:21:  [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(CmdString, ":Qw#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:456:21:  [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(CmdString, ":Me#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:461:21:  [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(CmdString, ":Mw#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:481:21:  [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(CmdString, ":Qn#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:486:21:  [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(CmdString, ":Qs#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:493:21:  [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(CmdString, ":Mn#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:498:21:  [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(CmdString, ":Ms#");
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:663: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 RAStr[16] = {0}, DecStr[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:681: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 b[64/*RB_MAX_LEN*/] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:798:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64/*RB_MAX_LEN*/] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:816: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[64/*RB_MAX_LEN*/] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:854: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 bufRA[sizeof(MechanicalPoint_RA_Format)], bufDEC[sizeof(MechanicalPoint_DEC_FormatW)];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:860: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 buf[64/*RB_MAX_LEN*/] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1106: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[sizeof(MechanicalPoint_DEC_FormatR)] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1117: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 degrees[4];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1118: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 minutes[3];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1119: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 seconds[3];
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1201:17:  [2] (integer) atol:
  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).
                atol(DecValues->degrees) * 3600 +
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1202:17:  [2] (integer) atol:
  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).
                atol(DecValues->minutes) * 60 +
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1203:17:  [2] (integer) atol:
  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).
                atol(DecValues->seconds) );
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:74: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:100: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:104: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 board[8] = {0}, controller[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:120: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:124: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 ra[8] = {0}, de[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:144:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":mn#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:147:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":ms#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:157:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":me#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:160:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":mw#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:169: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:170: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:176:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":qD#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:181:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":qR#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:193: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:200: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:206: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:212: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:213: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:220: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:221: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:226:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT0#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:229:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT1#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:232:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT2#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:235:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT3#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:238:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT4#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:253: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:254: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:272: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:273: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:284: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:299: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:331: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:346: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:352: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:358: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:370: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:376: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:383: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:395: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:396: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:408: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:409: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:421: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:437: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:438: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:453: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:468: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:469: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:480: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:490: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:491: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:500: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:501: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:510: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:516: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:517: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:527: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:541: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:582: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:586: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 longitude[8] = {0}, latitude[8] = {0}, status[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:627: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:709: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:722: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:738: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:746: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:763:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp: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 str[DRIVER_LEN / 2] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:828:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int iVal = atoi(str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:282: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 isoDateTime[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:283: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 utcOffset[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:599: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:687: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:700: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:843: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 l[32] = {0}, L[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:1077: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:264: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 isoDateTime[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:265: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 utcOffset[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:534: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:603: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:616: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:734: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 l[32] = {0}, L[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:967: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ieqpro_device[MAXINDIDEVICE] = "iEQ";
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:119: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:120: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:130:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(response, "V1.00#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:173: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:174: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:252: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:253: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:261:9:  [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(response, "0045");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:331: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:332: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:340:9:  [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(response, "150324150101#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:369: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 board[8] = {0}, controller[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:391: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:392: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:400:9:  [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(response, "140324140101#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:429: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 ra[8] = {0}, dec[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:449: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:451: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:457:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":mn#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:460:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":ms#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:470:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":me#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:473:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":mw#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:497: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:499: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:500: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:508:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":qD#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:513:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":qR#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:560: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:561: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:608: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:609: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:656: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:657: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:702: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:705: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:753: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:755: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:756: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:763:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT0#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:766:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT1#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:769:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT2#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:772:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT3#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:775:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":RT4#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:821: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:824: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp: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 response[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:877: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:880: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp: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 response[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:933: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:935: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:936: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:987: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:988: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[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1023: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 raRateStr[8] = {0}, deRateStr[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1026: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).
        *raRate = atoi(raRateStr) / 100.0;
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1027: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).
        *deRate = atoi(deRateStr) / 100.0;
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1038: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1040: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1090: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1091: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1148: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1149: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1197: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1198: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1247: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1248: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1306: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1307: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1352: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1354: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1355: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1403: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1405: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1406: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1457: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1460: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1461: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1517: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1520: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1521: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1574: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1577: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1578: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1631: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1633: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1634: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1638:5:  [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(cmd, ":Gg#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1644:9:  [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(response, "+172800");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1690: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1692: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1693: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1697:5:  [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(cmd, ":Gt#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1703:9:  [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(response, "+106200");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1749: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1751: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1752: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1799: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1801: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1802: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1849: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1851: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1852: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1857:9:  [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(cmd, ":SDS1#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1859:9:  [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(cmd, ":SDS0#");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1902: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1905: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1906: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1962: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1963: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[32];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1971: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 ra_str[16], dec_str[16];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2014: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 ra_str[16] = {0}, dec_str[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2019:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int ieqDEC = atoi(dec_str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2020:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int ieqRA  = atoi(ra_str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2036: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2037: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[32];
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2077: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 utc_str[8] = {0}, yy_str[8] = {0}, mm_str[8] = {0}, dd_str[8] = {0}, hh_str[8] = {0}, minute_str[8] = {0}, ss_str[8] = {0}, dst_str[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2096:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *utc_hours = atoi(utc_str) / 60.0;
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2097:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *yy        = atoi(yy_str) + 2000;
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2099:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *mm        = atoi(mm_str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2100:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *dd        = atoi(dd_str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2101:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *hh        = atoi(hh_str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2102:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *minute    = atoi(minute_str);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2103:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *ss        = atoi(ss_str);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:194: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:195: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:376: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:436: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:516: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 slewNum[2];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp: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 read_buffer[16];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:581: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[67];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:650: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:663: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:683: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:699: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:718: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 bool_return[2];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:775: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1008: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1010: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1074: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1083: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1092: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1148: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 cdate[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1153: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 utc_offset_res[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1232: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1248:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mn%03d#", duration_now);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1251:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Ms%03d#", duration_now);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1254:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Me%03d#", duration_now);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1257:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mw%03d#", duration_now);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1266: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:302: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 ts[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:310:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char offset[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:336: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 l[32] = {0}, L[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:646: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:735: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:756: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:848: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 l[32] = {0}, L[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:1085: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:67: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 errMsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:68: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:119: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:237: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 longPart[16] = {0}, latPart[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:241:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int arcsecLongitude = atoi(longPart);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:242:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int arcsecLatitude  = atoi(latPart);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:269: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:272:9:  [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(res, "0120");
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:286: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:289:9:  [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(res, "180321171001");
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:293: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 mStr[16] = {0}, cStr[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:305: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:308:9:  [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(res, "140324140101");
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:312: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 mStr[16] = {0}, cStr[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:421: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:432: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:440: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:448: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 raStr[8] = {0}, deStr[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:452:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *RARate = atoi(raStr) / 100.0;
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:453:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *DERate = atoi(deStr) / 100.0;
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:460: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:532: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:546: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:560: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:572: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:584: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:594: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:604: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:614: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 cmd[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:624: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:634: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 deStr[16] = {0}, raStr[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:639:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *de = atoi(deStr) / (60.0 * 60.0 * 100.0);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:640:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *ra = atoi(raStr) / (15.0 * 60.0 * 60.0 * 100.0);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:650: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 res[IOP_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:660: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 offsetStr[16] = {0}, JDStr[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:665: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).
    *utcOffsetMinutes = atoi(offsetStr);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:346: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 LocalSiderealTimeS[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:382: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 RefractionModelTemperature[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:390: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 RefractionModelPressure[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:417: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 ProductName[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:419: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 ControlBox[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:421: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 FirmwareVersion[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:423: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 FirmwareDate1[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:425: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 FirmwareDate2[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:426: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 mon[4];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:430: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 FirmwareDate[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:463: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 bool_return[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:548:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:573: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 command[250];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:579: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 response[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:611: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 command[12];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:618: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 response[210];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:645: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 command[28];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:651: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 response[36];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:674: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 command[7];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:679: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 response[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:716:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:723:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:730: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 MRa_str[32], MDec_str[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:737: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 PRa_str[32], PDec_str[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:741: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 SidTime_str[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:744: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 command[80];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:748: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[6];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_16.cpp:241: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 altStr[64], azStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:294: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 port_name[30];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:295:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(port_name, "Output %d", i);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:553: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 object_name[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:582: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 cmd[5];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:608: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 cmd[9];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:710: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:766: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:793:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:818: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:837: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:856: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:921:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd[5];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1193: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1218: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1233: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1241:17:  [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(cmd, ":f+#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1245:17:  [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(cmd, ":f-#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1249:17:  [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(cmd, ":fQ#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1389: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 cmd[10];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1475: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 buffer[128];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1503: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[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1527: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[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1583: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 OSbacklashDEC[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1584: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 OSbacklashRA[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1585: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 GuideValue[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1586: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 TempValue[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1587: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 TempValue2[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2045: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).
        if (atoi(TempValue)) {
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2133: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[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2157: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2182: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[1];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2231: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 l[32] = {0}, L[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2244: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 read_buffer[RB_MAX_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2255: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 read_buffer[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2294: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 read_buffer[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2306: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 read_buffer[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2321: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 read_buffer[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2333: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2334:5:  [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(cmd, ":FQ#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2340: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[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2347:34:  [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).
        FocusAbsPosN[0].value =  atoi(value);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2350:47:  [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).
        LOGF_DEBUG("Current focuser: %d, %d", atoi(value), FocusAbsPosN[0].value);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2378:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        FocusAbsPosN[0].max   = atoi(value);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2384:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        FocusAbsPosN[0].min =  atoi(value);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2395:38:  [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).
        OSFocus2TargNP.np[0].value = atoi(value);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2412: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2414:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cmd, ":$QZ+#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2440: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2442:9:  [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(cmd, ":$QZ-#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2460: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2462:9:  [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(cmd, ":$QZ/#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2480: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2482:9:  [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(cmd, ":$QZZ#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2500: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2502:9:  [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(cmd, ":$QZ!#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2533: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 value[RB_MAX_LEN] ="  ";
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2641: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2650: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 read_buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2677: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2679:5:  [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(cmd, ":A+#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2696: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 read_buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2697: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 msg[40];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2698: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 stars[5];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2764: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 read_buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2765: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 polar_error[40], sexabuf[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2817: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2819:5:  [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(cmd, ":AW#");
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2919: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[RB_MAX_LEN] ="  ";
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2920: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 command[64] = ":$GXGm#";
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:2942: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 read_buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:3015: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.h:309: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 OSNAlignStat[RB_MAX_LEN]; 
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.h:323: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 OSStat[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.h:324: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 OldOSStat[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.h: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 OSPier[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.h:328: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 OldOSPier[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:394: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.
    static const char *errCodes[9] = {"ERR_NONE",  "ERR_MOTOR_FAULT", "ERR_ALT", "ERR_LIMIT_SENSE", 
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:423: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:497: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 syncString[256] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:530: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[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:551: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[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:640: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 buffer[128];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:908: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 cdate[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:909: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 ctime[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:918: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 utcStr[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:941: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 datetime[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:1072: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[10];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:1083:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:1141: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 cmdString[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:1348: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.h:148: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 OSStat[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.h:149: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 OldOSStat[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:294:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char versionString[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:599: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:683: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:807: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:854: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:923: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:959: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:992: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:1020: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:1029: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:1038: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:328: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 rev[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:329: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 versionString[128];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:665: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 versionString[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:920: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 buf[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:1162: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:1578: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 syncString[256] = ""; // simulation needs UTF-8
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:1715: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:1776: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2022: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2025: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 RaStr[16], DecStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2031: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 HaStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2062: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2138: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2165: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2174: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2183: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimentaldriver.cpp:48: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 lx200ap_exp_name[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimentaldriver.cpp:155: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 temp_string[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:249: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 versionString[128];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:473: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:588: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:703: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:745: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:835: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:862: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:871: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:880: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:44: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 lx200ap_name[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:57: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 temp_string[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:104: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:228: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:244: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:266: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:593: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:607: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:628: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:641: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:653: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:656: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:657: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:705: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:752: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:764:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mn%03d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:767:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Ms%03d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:770:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Me%03d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:773:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mw%03d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:791: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 temp_string[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200basic.cpp:252: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200basic.cpp:309: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 syncString[256] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.cpp:158: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 object_name[256] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.cpp:380: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.cpp:433: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.cpp:455: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200classic.cpp:473: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:50: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 lx200Name[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:178: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 ack[1] = { 0x06 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:179: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 MountAlign[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:215: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 ack[1] = { 0x06 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:216: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 MountAlign[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:241: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:278: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:352:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[33] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:402: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 mell_prefix[3]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:439: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:530:9:  [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(siteName, "unused site");
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:540: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:579: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:617: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:655: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:692: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:733: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 bool_return[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:767: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:796: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:810: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:824: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:839: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 read_buffer[22];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:877: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 read_buffer[22];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:916: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:961: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 read_buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:962: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 dummy_buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1009: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1024: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1040: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1056: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1072: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1087: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1214: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 speed_str[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1245: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1258:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1275: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 slewNum[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1346: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1350:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mgn%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1353:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mgs%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1356:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mge%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1359:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mgw%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1511: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1546: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 read_buffer[RB_MAX_LEN]={0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:1571: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 read_buffer[RB_MAX_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.cpp:182: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.cpp:206: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 RAStr[16], DEStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.cpp:331: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.cpp:355: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 RAStr[16], DEStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200fs2.cpp:394: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:147: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 value[MAX_VALUE_LENGTH] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:228: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 valueString[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:331: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[8] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:338: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 ack[1] = { 0x06 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:342: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:351: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:367: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 cmd[4]     = "bC#";
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:378: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:492: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[8] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:501: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:509: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:553: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 cmd[6] = ":hP#";
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:571: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:610: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:636: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp: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 response[2] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:710: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:718: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:758: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[2] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:767: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:775: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:817: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 prefix[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:818: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:830: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:838: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:856: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 prefix[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:857: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:869: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:883: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 prefix[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:884: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 cmd[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:896: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:55:5:  [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(SlewRateS[0].label, "16x");
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:56:5:  [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(SlewRateS[1].label, "64x");
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:57:5:  [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(SlewRateS[2].label, "256x");
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:58:5:  [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(SlewRateS[3].label, "512x");
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:122: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char response[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:220: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:221: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:279: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:340: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:424: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 slewNum[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:456: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:511: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 read_buffer[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:512: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[67];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:593: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:611: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:627: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:646: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 bool_return[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:687: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:833: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:834: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:869:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *rate = atoi(response);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:880: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:882: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:908: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:919: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:928: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:937: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:154: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 msg[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char lx200Name[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:56:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char lastCmd[40]; // used only for verbose logging
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:71: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 ackbuf[1] = { '\006' };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:74:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char response[8]; response[0] = LX200Pulsar2::Null; // oversized, just in case
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:183: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.
	            char errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:208: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.
	            char errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:275:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:330: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:444:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *DirectionName[Pulsar2Commands::NumDirections] = { "North", "East", "South", "West" };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:445:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char DirectionCode[Pulsar2Commands::NumDirections] = {'n', 'e', 's', 'w' };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:468: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp: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 response[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:491: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:507: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:528: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:578: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:589: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 cmd[16]; cmd[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:592:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "#:YSp%d,%d#", safe_ra_ramp, safe_dec_ramp);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:599: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[20]; response[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:610: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 cmd[20]; cmd[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:613:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "#:YSr%d,%d#", safe_red_ra, safe_red_dec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:621: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[20]; response[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:632: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 cmd[20]; cmd[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:635:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "#:YSm%d,%d#", safe_mg_ra, safe_mg_dec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:642: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[20]; response[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:653: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 cmd[20]; cmd[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:656:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "#:YSb%d,%02d#", safe_bl_min, safe_bl_sec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:663: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[30]; response[18] = LX200Pulsar2::Null; response[29] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:674: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 cmd[30]; cmd[29] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:681:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "#:YSX%+08.4lf,%08.4lf#", safe_hp_alt, safe_hp_az);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:689: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[30]; response[22] = LX200Pulsar2::Null; response[29] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:725: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 cmd[36]; cmd[35] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:728:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd, "#:YSZ%1c%+09.7lf,%+09.7lf#", usr_ind + '0', safe_ur_ra, safe_ur_dec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:756: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:790: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 cmd[20]; cmd[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:814: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 cmd[20]; cmd[19] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:869: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[8]; response[7] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp: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 response[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:936: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[16]; response[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:956: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[12];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:974: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[12];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:991: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 full_cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1005: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.
    static const char *commands[NumSlewRates] { "#:RS#", "#:RM#", "#:RC#", "#:RG#" };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1011: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.
    static const char *commands[NumDirections] = { "#:Mn#", "#:Me#", "#:Ms#", "#:Mw#" };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1017: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.
    static const char *commands[NumDirections] = { "#:Qn#", "#:Qe#", "#:Qs#", "#:Qw#" };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1024: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[4];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1051: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1067: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 full_cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1075:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char response1[64]; // only first character consulted
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1076:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char response2[64]; // not used
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1077: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1085: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[16] = { 0 };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1102: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 full_cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1112: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 full_cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1151:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char ZeroOneChar[2] = { '0', '1' };
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1163: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 cmd[16]; cmd[15] = LX200Pulsar2::Null;
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:1167:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "#:YSS%u,%u#", trii, 0);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:2694: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:2710: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:2844: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.
	            char RAresponse[32]; memset(RAresponse, '\0', 32); // currently just for debug
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:2845: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.
	            char DECresponse[32]; memset(DECresponse, '\0', 32); // currently just for debug
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:2956: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 versionResponse[40]; memset(versionResponse, '\0', 40);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:2962: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 versionString[20]; memset(versionString, '\0', 20);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:3379: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 cdate[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:174: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 date[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:205: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 buffer[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:244: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 temp_string[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:272: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 slat[RB_MAX_LEN], slong[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:288: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 temp_string[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:308: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 temp_string[RB_MAX_LEN];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:322: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:391: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:427: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 syncString[256];
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:460: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:330: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:407: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 syncString[256] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:655: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 l[MAXINDINAME] = {0}, L[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:1292: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 cdate[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:1293: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 ctime[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:1301: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 utcStr[8] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200telescope.cpp:1324: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 datetime[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:113: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:114: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:215: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 bool_return[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:250: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:251: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:297: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:298: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:430: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:492: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 slewNum[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:522: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 cmd[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:524: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:525: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[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:570: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:571: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[3];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:670: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 l[32], L[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:683: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp: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 temp_string[32];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:717: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 temp_string[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:735: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 command[16] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:743: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 bool_return[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:895: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 cmd[6];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:938: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:939: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[2];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:994: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1041: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1104: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1279: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1280: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1336: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 cmd[16];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1338: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1339: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1388: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 cmd[20];
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1392:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mn%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1395:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Ms%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1398:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Me%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1401:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(cmd, ":Mw%04d#", duration_msec);
data/indi-1.8.7+dfsg/drivers/telescope/magellan1.h:67: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 thisDevice[64];
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:126:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(SlewRateSP.sp[i].label, "%.fx", slewspeeds[i]);
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:267: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 pCMD[MAXRBUF] = {0}, pRES[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:298:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        isTelescopeConnected = atoi(match.str(1).c_str());
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:303:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                   atoi(match.str(2).c_str()));
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:313: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 pCMD[MAXRBUF] = {0}, pRES[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:347:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        errorCode = atoi(match.str(4).c_str());
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:404: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:419: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:434: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp: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 pCMD[MAXRBUF] = {0}, pRES[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:484:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        errorCode = atoi(match.str(3).c_str());
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:488: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).
            int isComplete = atoi(match.str(1).c_str());
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:500: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 pCMD[MAXRBUF] = {0}, pRES[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:541: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 pCMD[MAXRBUF] = {0}, pRES[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:581: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:605: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:617: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:691: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:699: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:785: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:793: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:822: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:999: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 pCMD[MAXRBUF] = {0}, pRES[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:1052: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:1065: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:1078: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:1091: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:1104: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 pCMD[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:157:5:  [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(SlewRateSP.sp[0].label, "4x");
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:158:5:  [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(SlewRateSP.sp[1].label, "16x");
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:159:5:  [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(SlewRateSP.sp[2].label, "64x");
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:160:5:  [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(SlewRateSP.sp[3].label, "256x");
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:456: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:483: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8.cpp:620: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 l[32] = {0}, L[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:92: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 pmc8_device[MAXINDIDEVICE] = "PMC8";
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:230: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp: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 response[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:291: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 board[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:293: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:294: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[24];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:372: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:374: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:375: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:416: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 num_str[16]= {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:418:5:  [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(num_str, "0X");
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:428: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:430: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:431: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:472: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 num_str[16]= {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:487: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 cmd[32], expresp[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:489: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:490: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:694: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 h[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:707:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(h, "%08X", tmp);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:756: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 cmd[24];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:758: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:759: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[24];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:837: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:839: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:840: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[8];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:894: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 cmd[24];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:896: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:897: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[24];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1477: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1478: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 expresp[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1479: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 hexpt[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1481: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1482: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1540: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1541: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 expresp[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1542: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 hexpt[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1544: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1545: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1607: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 cmd[32];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1609: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1610: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[16];
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1647: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 num_str[16]= {0};
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1649:5:  [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(num_str, "0X");
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1962: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:314: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:360: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:375: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:385: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:410: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:421: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 rate[4] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:426: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(rate, res + 5, 3);
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:498: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:694: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:707: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:721: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:722: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:741: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:742: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:766: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 RAStr[16], DEStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:782: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:795: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 res[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:808: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:824: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:845: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:956: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:962: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 RAStr[64] = {0}, DecStr[64] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1073: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 cmd[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1260: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 hex_cmd[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1269: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 formatted_command[DRIVER_LEN] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1276: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1292: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1300: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 hex_res[DRIVER_LEN * 3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/rainbow.cpp:1322:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/telescope/scopesim_helper.h:42: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 device_str[64] = "Telescope Simulator";
data/indi-1.8.7+dfsg/drivers/telescope/skycommander.cpp:87: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 CR[1] = { 0x0D };
data/indi-1.8.7+dfsg/drivers/telescope/skycommander.cpp:96: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/skycommander.cpp:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char coords[16];
data/indi-1.8.7+dfsg/drivers/telescope/skycommander.cpp:105: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 errmsg[256];
data/indi-1.8.7+dfsg/drivers/telescope/skycommander.cpp:122: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPI.cpp:113: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 input[20];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPI.cpp:760: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[257];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:189: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 RAStr[32], DecStr[32];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:327:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(SlewRateSP.sp[i].label, "%.fx", SlewSpeeds[i]);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:624:30:  [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 *FilePtr          = fopen(ScopeConfigFileName.c_str(), "r");
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:629: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 ErrMsg[512];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:56: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[60];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp: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.
        char RAStr[32], DecStr[32];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:262:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(SlewRateSP.sp[i].label, "%.fx", SlewSpeeds[i]);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:557:30:  [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 *FilePtr          = fopen(ScopeConfigFileName.c_str(), "r");
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:562: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 ErrMsg[512];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:1712: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 TempStr[512];
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:1715:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    LogFile.open(TrackLogFileName.c_str(), std::ios::out | std::ios::app);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:215: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:343: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:350: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:379: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:433: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:468: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:532: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 Axis1Coords[MAXINDINAME] = {0}, Axis2Coords[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:571: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:583: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:625: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:683: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:732: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:757: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:770: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 AzStr[16], AltStr[16];
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:914: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 test[20] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:968: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 timeString[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:978: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1005: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 utc[100];
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1006: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 ofs[10];
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1008:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(utc, "%04d-%02d-%dT%d:%02d:%02d", utcTime.years, utcTime.months, utcTime.days, utcTime.hours,
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1012:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(ofs, "%d", offset);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1028: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1081: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 LongitudeStr[32] = {0}, LatitudeStr[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1091: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1128: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1177: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1259: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 hex_cmd[SYN_RES * 3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1272: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1288: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1296: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 hex_res[SYN_RES * 3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1313:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + 3 * i, "%02X ", static_cast<uint8_t>(data[i]));
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1404: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1423: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 cmd[SYN_RES] = {0}, res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:1535: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 res[SYN_RES] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:224: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:359: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:720: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:754: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:812: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 RAStr[MAX_SYN_BUF] = {0}, DEStr[MAX_SYN_BUF] = {0}, AZStr[MAX_SYN_BUF] = {0}, ATStr[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:831: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:904: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1009: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 test[20] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1062: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 timeString[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1072: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1109: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 utc[100];
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1110: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 ofs[10];
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1112:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(utc, "%04d-%02d-%dT%d:%02d:%02d", utcTime.years, utcTime.months, utcTime.days, utcTime.hours,
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1116:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(ofs, "%d", offset);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1143: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1209: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 LongitudeStr[32] = {0}, LatitudeStr[32] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1229: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1279: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:1393: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 res[MAX_SYN_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.h:93: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 LastParkRead[20];
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:152: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/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:178: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 path[1024];
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:188: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 dbg[8 * 1024];
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:192:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(dbg, ", '");
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:196: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(dbg, ", nullptr)");
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:263:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[] = "/tmp/indi_telescope_script_status_XXXXXX";
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:264:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd = mkstemp(tmpfile);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:264:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    int fd = mkstemp(tmpfile);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:267:74:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        LOGF_ERROR("Temp file %s creation for status script failed, %s", tmpfile, strerror(errno));
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:268:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:272:44:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    bool status = RunScript(SCRIPT_STATUS, tmpfile, nullptr);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:277: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).
        FILE *file = fopen(tmpfile, "r");
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:277:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        FILE *file = fopen(tmpfile, "r");
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:282:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:310: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 _ra[16], _dec[16];
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:328: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 _ra[16], _dec[16];
data/indi-1.8.7+dfsg/drivers/telescope/telescope_simulator.cpp:359: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/telescope_simulator.cpp:416: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 RAStr[64], DecStr[64];
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:249: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:251: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 cmd_temma[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:372: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[TEMMA_BUFFER];
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:453: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 *maligns[3] = {"ZENITH", "NORTH", "SOUTH"};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:505: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 cmd[3] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:517: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 cmd[TEMMA_BUFFER] = {0}, res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:567: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 cmd[TEMMA_BUFFER] = {0}, res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:672: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 res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:685: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:731: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:784: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:809: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:835: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:858: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1082: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 res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1104: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 res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1121: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 res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1142: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 res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1159: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 cmd[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1168: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 res[TEMMA_BUFFER] = {0};
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1185: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 cmd[TEMMA_BUFFER];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:362: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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:730: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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:987: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1021: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1078: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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1110: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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1187: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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1230:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(V4LFrame->stackedFrame, src, sizeof(float) * size);
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1324:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PrimaryCCD.getFrameBuffer(), buffer, totalBytes);
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1361:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, frameBytes);
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.cpp:1550: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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/drivers/video/v4l2driver.h:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char device_name[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/drivers/weather/gason.cpp:186: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 *keys[JSON_STACK_SIZE];
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:171: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[MBOX_BUF];
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:194: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:237: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[MBOX_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:247: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:359: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[MBOX_BUF];
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:372: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 errstr[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:431: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:432: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 command[16] = {0};
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:509: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:524: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 checksum_string[MBOX_BUF] = {0};
data/indi-1.8.7+dfsg/drivers/weather/openweathermap.cpp:193: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 requestURL[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/openweathermap.cpp:214: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 srcBuffer[readBuffer.size()];
data/indi-1.8.7+dfsg/drivers/weather/openweathermap.cpp:248:34:  [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).
                            id = atoi(observationIterator->value.toString());
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:154: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:155: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 command[VANTAGE_CMD];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:156: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[VANTAGE_RES];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:320: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:321: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 command[VANTAGE_CMD];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:322: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[VANTAGE_RES];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:357: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 errstr[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:358: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 command[VANTAGE_CMD];
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:359: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[VANTAGE_RES];
data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp:310: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[BUFSIZ];
data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp:359: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[BUFSIZ];
data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp:429:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char newReasons[MAXRBUF];
data/indi-1.8.7+dfsg/drivers/weather/weatherwatcher.cpp:345: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 requestURL[MAXRBUF];
data/indi-1.8.7+dfsg/examples/tutorial_seven/simple_telescope_simulator.cpp:123: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 RAStr[32], DecStr[32];
data/indi-1.8.7+dfsg/examples/tutorial_six/tutorial_client.cpp:187: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).
    myfile.open("ccd_simulator.fits", std::ios::out | std::ios::binary);
data/indi-1.8.7+dfsg/examples/tutorial_two/simplescope.cpp:132: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 RAStr[64]={0}, DecStr[64]={0};
data/indi-1.8.7+dfsg/examples/tutorial_two/simplescope.cpp:232: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 RAStr[64]={0}, DecStr[64]={0};
data/indi-1.8.7+dfsg/indiapi.h:227: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[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:229: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char device[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiapi.h:249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:251: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:253: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 group[MAXINDIGROUP];
data/indi-1.8.7+dfsg/indiapi.h:265: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 timestamp[MAXINDITSTAMP];
data/indi-1.8.7+dfsg/indiapi.h:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:279: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:281: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 format[MAXINDIFORMAT];
data/indi-1.8.7+dfsg/indiapi.h:320: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 device[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiapi.h:322:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:324: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:326: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 group[MAXINDIGROUP];
data/indi-1.8.7+dfsg/indiapi.h:338: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 timestamp[MAXINDITSTAMP];
data/indi-1.8.7+dfsg/indiapi.h:350:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:352: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:368: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 device[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiapi.h:370:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:372: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:374: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 group[MAXINDIGROUP];
data/indi-1.8.7+dfsg/indiapi.h:388: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 timestamp[MAXINDITSTAMP];
data/indi-1.8.7+dfsg/indiapi.h:400:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:402: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:418: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 device[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiapi.h: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 name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:424: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 group[MAXINDIGROUP];
data/indi-1.8.7+dfsg/indiapi.h:432: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 timestamp[MAXINDITSTAMP];
data/indi-1.8.7+dfsg/indiapi.h:444:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:446: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:448: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 format[MAXINDIBLOBFMT];
data/indi-1.8.7+dfsg/indiapi.h:472: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 device[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiapi.h:474:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiapi.h:476: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/indiapi.h:478: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 group[MAXINDIGROUP];
data/indi-1.8.7+dfsg/indiapi.h:490: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 timestamp[MAXINDITSTAMP];
data/indi-1.8.7+dfsg/indidriver.c:132: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:238: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 sn[MAXINDINAME];
data/indi-1.8.7+dfsg/indidriver.c:851:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int enclen  = atoi(valuXMLAtt(ec));
data/indi-1.8.7+dfsg/indidriver.c:855:28:  [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).
                bp->size = atoi(valuXMLAtt(sa));
data/indi-1.8.7+dfsg/indidriver.c: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 buf[MAXRBUF], msg[MAXRBUF], *bp;
data/indi-1.8.7+dfsg/indidriver.c:1210:35:  [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).
                        bloblen = atoi(valuXMLAtt(el));
data/indi-1.8.7+dfsg/indidriver.c:1215:36:  [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).
                    sizes[n]     = atoi(valuXMLAtt(sa));
data/indi-1.8.7+dfsg/indidriver.c:1248: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 whynot[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1296: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 configFileName[MAXRBUF], configDefaultFileName[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1318: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).
        FILE *fpin = fopen(configFileName, "r");
data/indi-1.8.7+dfsg/indidriver.c:1321:27:  [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 *fpout = fopen(configDefaultFileName, "w");
data/indi-1.8.7+dfsg/indidriver.c:1348: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1409: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1467: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1526: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1584: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1652: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:1668: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 configFileName[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1669: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 configDir[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1694: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 configFileName[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1695: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 configDir[MAXRBUF];
data/indi-1.8.7+dfsg/indidriver.c:1730:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(configFileName, mode);
data/indi-1.8.7+dfsg/indidriver.c:1880: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:1945: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2017: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2077: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2126: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2185: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2227: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2269: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.c:2309: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 message[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/indidriver.h:41: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 propName[MAXINDINAME];
data/indi-1.8.7+dfsg/indidriver.h:42: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 devName[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiserver.c: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 buf[SHORTMSGSIZ];    /* local buf for most messages */
data/indi-1.8.7+dfsg/indiserver.c:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dev[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/indiserver.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME];
data/indi-1.8.7+dfsg/indiserver.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXINDINAME]; /* persistent name */
data/indi-1.8.7+dfsg/indiserver.c:141: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 envDev[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:142: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 envConfig[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:143: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 envSkel[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:144: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 envPrefix[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:145: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 host[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:228: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 logname[128];
data/indi-1.8.7+dfsg/indiserver.c:261:45:  [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).
                    maxqsiz = 1024 * 1024 * atoi(*++av);
data/indi-1.8.7+dfsg/indiserver.c:270:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    port = atoi(*++av);
data/indi-1.8.7+dfsg/indiserver.c:279:50:  [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).
                    maxstreamsiz = 1024 * 1024 * atoi(*++av);
data/indi-1.8.7+dfsg/indiserver.c:297:35:  [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).
                    maxrestarts = atoi(*++av);
data/indi-1.8.7+dfsg/indiserver.c:482: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[32];
data/indi-1.8.7+dfsg/indiserver.c:540: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 executable[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:620: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 dev[MAXINDIDEVICE]={0};
data/indi-1.8.7+dfsg/indiserver.c:621: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 host[MAXSBUF]={0};
data/indi-1.8.7+dfsg/indiserver.c:622: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[MAXSBUF]={0};
data/indi-1.8.7+dfsg/indiserver.c:673:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "<getProperties device='*' version='%g'/>\n", INDIV);
data/indi-1.8.7+dfsg/indiserver.c:778: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).
        fifo.fd = open(fifo.name, O_RDWR | O_NONBLOCK);
data/indi-1.8.7+dfsg/indiserver.c:937: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[MAXRBUF];
data/indi-1.8.7+dfsg/indiserver.c:964: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 cmd[MAXSBUF], arg[4][1], var[4][MAXSBUF], tDriver[MAXSBUF], tName[MAXSBUF], envConfig[MAXSBUF],
data/indi-1.8.7+dfsg/indiserver.c:1170: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[MAXRBUF];
data/indi-1.8.7+dfsg/indiserver.c:1189: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 err[1024];
data/indi-1.8.7+dfsg/indiserver.c:1276: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[MAXRBUF];
data/indi-1.8.7+dfsg/indiserver.c:1279: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 err[1024];
data/indi-1.8.7+dfsg/indiserver.c:1419: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 exbuf[MAXRBUF];
data/indi-1.8.7+dfsg/indiserver.c:1573: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 lastRemoteHost[MAXSBUF];
data/indi-1.8.7+dfsg/indiserver.c:2187: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 sbuf[64];
data/indi-1.8.7+dfsg/indiserver.c:2203: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 stamp[64];
data/indi-1.8.7+dfsg/indiserver.c:2204: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 logfn[1024];
data/indi-1.8.7+dfsg/indiserver.c:2223:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(logfn, "a");
data/indi-1.8.7+dfsg/libs/dsp/buffer.c:40: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(stream->buf, tmp, stream->len * sizeof(dsp_t));
data/indi-1.8.7+dfsg/libs/dsp/buffer.c:224:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (sorted, stream->buf + (k - mid), size * sizeof(dsp_t));
data/indi-1.8.7+dfsg/libs/dsp/fft.c:62: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 (sizes, stream->sizes, sizeof(int)*stream->dims);
data/indi-1.8.7+dfsg/libs/dsp/fft.c:81: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 (sizes, stream->sizes, sizeof(int)*stream->dims);
data/indi-1.8.7+dfsg/libs/dsp/filters.c:33: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(stream->buf, out, stream->len * sizeof(dsp_t));
data/indi-1.8.7+dfsg/libs/dsp/filters.c:57: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(stream->buf, out, stream->len * sizeof(double));
data/indi-1.8.7+dfsg/libs/dsp/filters.c:103: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(stream->buf, out, stream->len * sizeof(dsp_t));
data/indi-1.8.7+dfsg/libs/dsp/filters.c:133: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(stream->buf, out, stream->len * sizeof(dsp_t));
data/indi-1.8.7+dfsg/libs/dsp/signals.c:92: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(stream->buf, carrier->buf, stream->len * sizeof(double));
data/indi-1.8.7+dfsg/libs/dsp/stream.c:94: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(&dest->starttimeutc, &stream->starttimeutc, sizeof(struct timespec));
data/indi-1.8.7+dfsg/libs/dsp/stream.c:95: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(dest->ROI, stream->ROI, sizeof(dsp_region) * stream->dims);
data/indi-1.8.7+dfsg/libs/dsp/stream.c:96: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(dest->pixel_sizes, stream->pixel_sizes, sizeof(double) * stream->dims);
data/indi-1.8.7+dfsg/libs/dsp/stream.c:97: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(dest->target, stream->target, sizeof(double) * 3);
data/indi-1.8.7+dfsg/libs/dsp/stream.c:98: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(dest->location, stream->location, sizeof(double) * 3);
data/indi-1.8.7+dfsg/libs/dsp/stream.c:99: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(dest->buf, stream->buf, sizeof(dsp_t) * stream->len);
data/indi-1.8.7+dfsg/libs/dsp/stream.c:117: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(sizes, stream->sizes, sizeof(int) * stream->dims);
data/indi-1.8.7+dfsg/libs/dsp/stream.c:140: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(children, stream->children, sizeof(dsp_stream_p*) * stream->child_count);
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	tmp[SZ_STR], tile[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:151: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).
		           doffset = atoi(argv[iarg]+3);
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:167: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).
		           doffset = atoi(argv[iarg]+2);
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:303:24:  [2] (integer) atol:
  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).
		fpptr->ntile[ndim] = atol (&tile[ii]);
data/indi-1.8.7+dfsg/libs/fpack/fpack.h:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	prefix[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpack.h:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	extname[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpack.h:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	outfile[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:23: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 tempfilename[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:24: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 tempfilename2[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:25: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 tempfilename3[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c: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  msg[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:95: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 cfitsioversion[40];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:111: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).
    diskfile = fopen(filename, "r");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:210:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	infits[SZ_STR], msg[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:266: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	msg[SZ_STR], val[SZ_CARD], com[SZ_CARD];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:366: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	infits[SZ_STR], outfits[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:400:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(infits, ".fz");       /* a .fz version exsits */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:409:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(infits, ".fz");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:455:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outfits, "output.fits");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:494:21:  [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(outfits, ".gz");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:513:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(infits, ".gz");     /* a gzipped version exsits */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:537:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outfits, "input.fits");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:552:25:  [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(outfits, ".fits");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:557:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(outfits, ".fz");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:578: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	infits[SZ_STR], outfits[SZ_STR];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:579: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	temp[SZ_STR], answer[30];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:590: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).
        outreport = fopen(fpvar.outfile, "w");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:634:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(infits, ".fz");       /* a .fz version must exsit */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:652:17:  [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(outfits, "output.fits");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:681:17:  [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(outfits, "input.fits");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:696:25:  [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(outfits, ".fits");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:703:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(outfits, ".fz");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:856:9:  [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(temp, "gzip -1 ");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:874:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(outfits, ".gz");    /* only possibible with funpack */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1113: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	dtype[8], dimen[100];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1206:12:  [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(dtype, "8  ");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1210:12:  [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(dtype, "16 ");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1214:12:  [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(dtype, "32 ");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1218:12:  [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(dtype, "64 ");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1221:12:  [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(dtype, "-32");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1225:12:  [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(dtype, "-64");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1417: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	outfits[SZ_STR], fzalgor[FLEN_VALUE];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1798: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 ctype[20], lossless[4];
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1814:9:  [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(ctype, "RICE");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1816:9:  [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(ctype, "GZIP1");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1818:9:  [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(ctype, "GZIP2");/*
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1823:9:  [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(ctype, "PLIO");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1825:9:  [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(ctype, "HCOMP");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1827:9:  [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(ctype, "NONE");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1881:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(lossless, "Yes");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1883:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(lossless, "No");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1922: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 fzalgor[FLEN_VALUE];
data/indi-1.8.7+dfsg/libs/indibase/alignment/Common.h:159:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PrivateData.get(), Source.PrivateData.get(), PrivateDataSize);
data/indi-1.8.7+dfsg/libs/indibase/alignment/Common.h:174:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(PrivateData.get(), RHS.PrivateData.get(), PrivateDataSize);
data/indi-1.8.7+dfsg/libs/indibase/alignment/ConvexHull.cpp:833:11:  [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).
    Ofile.open(FileName, std::ios_base::out | std::ios_base::trunc);
data/indi-1.8.7+dfsg/libs/indibase/alignment/ConvexHull.cpp:888:11:  [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).
    Ofile.open("chull.mtl", std::ios_base::out | std::ios_base::trunc);
data/indi-1.8.7+dfsg/libs/indibase/alignment/ConvexHull.cpp:901:11:  [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).
    Ofile.open(FileName, std::ios_base::out | std::ios_base::trunc);
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:56: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 DatabaseFileName[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:57: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 Errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:69:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(DatabaseFileName, "r");
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:77: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 whynot[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:165: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 ConfigDir[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:166: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 DatabaseFileName[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:167: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 Errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:183:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(DatabaseFileName, "w");
data/indi-1.8.7+dfsg/libs/indibase/alignment/InMemoryDatabase.cpp:200: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 SexaString[12]; // Long enough to hold xx:xx:xx.xx
data/indi-1.8.7+dfsg/libs/indibase/alignment/LoaderClient.cpp:58:5:  [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((char *)CurrentValues.PrivateData.get(), "This is a test BLOB");
data/indi-1.8.7+dfsg/libs/indibase/alignment/MapPropertiesToInMemoryDatabase.cpp:149:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(CurrentValues.PrivateData.get(), AlignmentPointSetPrivateBinaryData.blob,
data/indi-1.8.7+dfsg/libs/indibase/alignment/MapPropertiesToInMemoryDatabase.cpp:229:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(AlignmentPointSetPrivateBinaryData.blob, AlignmentDatabase[Offset].PrivateData.get(),
data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.cpp:362: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 MATH_PLUGINS_DIRECTORY[2048];
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:388: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[MAXINDIBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:389: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 msg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:405: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 cmd[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:418:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:428:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char cmd[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:557:9:  [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(errmsg, "No device available and none was created");
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:758: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 msgBuffer[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:775: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 ts[32];
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:1057: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 blobOpenTag[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:1137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:243: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[MAXINDIBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:244: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 errorMsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:308:9:  [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(errmsg, "No device available and none was created");
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:50: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 indidev[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:429: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:433: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 pathname[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:475:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(pathname, "r");
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:529:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    timeout = atoi(findXMLAttValu(root, "timeout"));
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1113:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int blobSize = atoi(valuXMLAtt(sa));
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1201: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 msgBuffer[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1379:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(driverInterface->text);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp:37: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 defaultPort[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp:173:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    uint32_t baud = atoi(IUFindOnSwitch(&BaudRateSP)->name);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp:253: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 errorMsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp:334:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(IUFindOnSwitch(&BaudRateSP)->name);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.cpp: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 defaultHostname[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.cpp:42: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 defaultPort[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.cpp:133:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        serv_addr.sin_port        = htons(atoi(port));
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.cpp:222: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 portStr[8];
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectiontcp.h:62:44:  [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).
    virtual uint32_t port() const { return atoi(AddressT[1].text); }
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:255: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).
    t_fd = open(device, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:505: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 ((t_fd = open(device, O_RDWR | O_NOCTTY)) == -1)
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:702: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 error_string[512]={0};
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp: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 errmsg[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:150: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:164: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 errmsg[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:246:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char formatString[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:270:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char formatString[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:294:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char formatString[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp: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 configDefaultFileName[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:328: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:908: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 interfaceStr[16];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:921: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 versionStr[16];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:922: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 interfaceStr[16];
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:974: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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/dsp/convolution.cpp:100: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 strname[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/dsp/convolution.cpp:101: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 strlabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indibase/dsp/convolution.cpp:102:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(strname, "WAVELET%0d", i);
data/indi-1.8.7+dfsg/libs/indibase/dsp/convolution.cpp:103:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(strlabel, "%d pixels Gaussian Wavelet", (i+1)*3);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:55: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[PATH_MAX];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:91: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 activatestrname[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:92: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 activatestrlabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp: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 exp_start[32];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:272: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 fitsString[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:293: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 lat_str[MAXINDIFORMAT];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:294: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 lon_str[MAXINDIFORMAT];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:295: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 el_str[MAXINDIFORMAT];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:321: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 ra_str[32], de_str[32];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:373: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 error_status[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:374: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 comment[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:375: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 filename[MAXINDIMESSAGE];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:394: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 query[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:396:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(query, "NAXIS%d", d);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:501: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 error_status[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:584: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 ts[32];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:593: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 indexString[8];
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:603: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(processedFileName, "w");
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:683:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            index = atoi(file.substr(start + 1, end).c_str());
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.h:185: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 processedFileName[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:316: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 possibl