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 possible length.
    char buf[512];
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:319:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t wbuf[256];
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c: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 str[64];
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:519:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                unsigned char data[256];
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:661: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(rpt->data, transfer->buffer, transfer->actual_length);
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:984: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(data, rpt->data, len);
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:1384:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char search_string[64];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c: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 transport[32];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:424:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t buf[BUF_LEN];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:425:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char cbuf[BUF_LEN];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:575: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(rpt->data, report, report_length);
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c: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 cbuf[BUF_LEN];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:722: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[32];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:735:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "HIDAPI_%p", os_dev);
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:818:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, rpt->data, len);
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:1116:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t serial[256], buf[256];
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c: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 cbuf[256];
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:327: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 driver_name[256];
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:379:13:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            wchar_t wstr[WSTR_LEN]; // TODO: Determine Size
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:628: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(buf, data, length);
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:724: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(data, dev->read_buf + 1, copy_len);
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:730: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(data, dev->read_buf, copy_len);
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:905:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[65];
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:917:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int handle = open(VendorID, ProductID, L"12345");
data/indi-1.8.7+dfsg/libs/indibase/hidtest.cpp:35:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[256];
data/indi-1.8.7+dfsg/libs/indibase/hidtest.cpp:37:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t wstr[MAX_STR];
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indiccd.cpp:744: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).
            CurrentFilterSlot = atoi(pcdataXMLEle(ep));
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:782: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/libs/indibase/indiccd.cpp:1731:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_name[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1732:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1841: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).
        fits_update_key_lng(fptr, "XBAYROFF", atoi(BayerT[0].text), "X offset of Bayer array", &status);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1842: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).
        fits_update_key_lng(fptr, "YBAYROFF", atoi(BayerT[1].text), "Y offset of Bayer array", &status);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1883:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {0}, de_str[32] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1938: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 radecsys[8] = "FK5";
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1939: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 ctype1[16]  = "RA---TAN";
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1940: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 ctype2[16]  = "DEC--TAN";
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2012: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(buf, targetChip->getFrameBuffer(), targetChip->getFrameBufferSize());
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2529: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_status[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2730:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/indibase/indiccd.cpp:2745: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/indiccd.cpp:2754: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/indiccd.cpp:2763: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(imageFileName, "w");
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2789: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 filename[MAXRBUF] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2792: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 * fp = fopen(filename, "w");
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2838:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(filename, "r");
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:3142: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/indiccdchip.cpp:184: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];
data/indi-1.8.7+dfsg/libs/indibase/indiccdchip.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 iso8601[32] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indiccdchip.h:428:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ImageExtention[MAXINDIBLOBFMT];
data/indi-1.8.7+dfsg/libs/indibase/indidetector.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 fitsString[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indibase/indidetector.cpp:182: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(fitsString, "%lf", getResolution());
data/indi-1.8.7+dfsg/libs/indibase/indidetector.cpp:185: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(fitsString, "%lf", getTriggerLevel());
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:872: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 RAStr[64] = {0}, DEStr[64] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:1689: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 errmsg[512];
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:1707:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fp = fopen(wexp.we_wordv[0], "r")))
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:1809:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pcdata[30];
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:1820:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fp = fopen(wexp.we_wordv[0], "w")))
data/indi-1.8.7+dfsg/libs/indibase/indidustcapinterface.h:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dustCapName[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.cpp:122: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/libs/indibase/indifilterinterface.cpp:123: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/libs/indibase/indifilterinterface.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 filterName[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.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 filterLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.cpp:193: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 *filterDesignation[8] = { "Red", "Green", "Blue", "H_Alpha", "SII", "OIII", "LPR", "Luminance" };
data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.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 filterName[MAXINDINAME] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indifilterinterface.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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/indilightboxinterface.cpp:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indilightboxinterface.cpp:253:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indilightboxinterface.cpp:278: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).
                currentFilterSlot = atoi(pcdataXMLEle(ep)) - 1;
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indilogger.cpp:323:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/indibase/indilogger.cpp:332:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/indibase/indilogger.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 logFileBuf[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:345: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).
        out_.open(logFile_.c_str(), std::ios::app);
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:411:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/indi-1.8.7+dfsg/libs/indibase/indilogger.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 usec[7];
data/indi-1.8.7+dfsg/libs/indibase/indilogger.h:204:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/indibase/indilogger.h: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 label[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indibase/indilogger.h:270: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 Tags[nlevels][MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indisensorinterface.cpp:608: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];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.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 iso8601[32];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:652:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_name[32];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.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 exp_start[32];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.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 timestamp[32];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.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 fitsString[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.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 lat_str[MAXINDIFORMAT];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.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 lon_str[MAXINDIFORMAT];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:712:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indisensorinterface.cpp:733:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/indisensorinterface.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 error_status[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:903: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(buf, getBuffer(), getBufferSize());
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:976:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char integrationFileName[MAXRBUF];
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:991: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/indisensorinterface.cpp:1000: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/indisensorinterface.cpp:1009: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(integrationFileName, "w");
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:1243: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/indisensorinterface.h:531:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char integrationExtention[MAXINDIBLOBFMT];
data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.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 fitsString[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.cpp:199: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(fitsString, "%d", getBPS());
data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.cpp:202: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(fitsString, "%lf", getBandwidth());
data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.cpp:205: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(fitsString, "%lf", getFrequency());
data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.cpp:208: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(fitsString, "%lf", getSampleRate());
data/indi-1.8.7+dfsg/libs/indibase/indispectrograph.cpp:211: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(fitsString, "%lf", getGain());
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:503: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 utc[MAXINDITSTAMP], offset[MAXINDITSTAMP];
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1767: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[4];
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1896: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 errmsg[512];
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1915:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fp = fopen(wexp.we_wordv[0], "r")))
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2027: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 errmsg[512];
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2041:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fp = fopen(wexp.we_wordv[0], "r")))
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2100:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fp = fopen(wexp.we_wordv[0], "w")))
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pcdata[30];
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2133:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fp = fopen(wexp.we_wordv[0], "w")))
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2244: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[1]    = { AbortS[0].name };
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2251:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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]    = { ParkS[0].name, ParkS[1].name };
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2257:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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]    = { ParkS[0].name, ParkS[1].name };
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2588: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/libs/indibase/inditelescope.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 ErrMsg[512];
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2728: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/libs/indibase/inditelescope.cpp:2733:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/indibase/inditelescope.cpp:2817: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 *FilePtr       = fopen(ScopeConfigFileName.c_str(), "r");
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2821:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/indibase/inditelescope.cpp:2903:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FilePtr = fopen(ScopeConfigFileName.c_str(), "w");
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:2954:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *FilePtr = fopen(file_name.c_str(), (writable ? "a" : "r"));
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.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 ts[32] = {0};
data/indi-1.8.7+dfsg/libs/indibase/indiusbdevice.cpp:29: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 buffer[30];
data/indi-1.8.7+dfsg/libs/indibase/indiusbdevice.cpp:30:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "error %d", errcode);
data/indi-1.8.7+dfsg/libs/indibase/indiweatherinterface.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 propName[MAXINDINAME];
data/indi-1.8.7+dfsg/libs/indibase/indiweatherinterface.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 propLabel[MAXINDILABEL];
data/indi-1.8.7+dfsg/libs/indicom.c:201:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/indi-1.8.7+dfsg/libs/indicom.c:346: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];
data/indi-1.8.7+dfsg/libs/indicom.c:427: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((char *)&geminiBuffer[2], buf, nbytes);
data/indi-1.8.7+dfsg/libs/indicom.c: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 geminiBuffer[257]={0};
data/indi-1.8.7+dfsg/libs/indicom.c:524:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buffer, buffer+1,bytesRead);
data/indi-1.8.7+dfsg/libs/indicom.c:543: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(buf, geminiBuffer+8, *nbytes_read);
data/indi-1.8.7+dfsg/libs/indicom.c:557:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char readBuffer[257]={0};
data/indi-1.8.7+dfsg/libs/indicom.c: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 msg[80];
data/indi-1.8.7+dfsg/libs/indicom.c:712: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/indicom.c: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 msg[128]={0};
data/indi-1.8.7+dfsg/libs/indicom.c:996:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        t_fd = open(device, O_RDWR | O_NOCTTY | (bt ? 0 : O_CLOEXEC));
data/indi-1.8.7+dfsg/libs/indicom.c:1250:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];
data/indi-1.8.7+dfsg/libs/lilxml.c:227: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((void *)(lp->ce->pcdata.s + lp->ce->pcdata.sl), (const void *)buf, size);
data/indi-1.8.7+dfsg/libs/lilxml.c:240: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((void *)(lp->ce->pcdata.s + lp->ce->pcdata.sl), (const void *)buf, size);
data/indi-1.8.7+dfsg/libs/lilxml.c:270:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy((void *)(lp->ce->pcdata.s + lp->ce->pcdata.sl), (const void *)buf, size);
data/indi-1.8.7+dfsg/libs/lilxml.c:283: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((void *)(lp->ce->pcdata.s + lp->ce->pcdata.sl), (const void *)buf, size);
data/indi-1.8.7+dfsg/libs/lilxml.c:300: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(ynot, "Line %d: early XML EOF", lp->ln);
data/indi-1.8.7+dfsg/libs/lilxml.c:394: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(ynot, "Line %d: early XML EOF", lp->ln);
data/indi-1.8.7+dfsg/libs/lilxml.c: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 ynot[1024];
data/indi-1.8.7+dfsg/libs/lilxml.c:746:15:  [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.
        sl += sprintf(s + sl, ">\n");
data/indi-1.8.7+dfsg/libs/lilxml.c:753:19:  [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.
            sl += sprintf(s + sl, ">\n");
data/indi-1.8.7+dfsg/libs/lilxml.c:767:15:  [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.
        sl += sprintf(s + sl, "/>\n");
data/indi-1.8.7+dfsg/libs/lilxml.c:828: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(malbuf + nmalbuf, s, nnew);
data/indi-1.8.7+dfsg/libs/lilxml.c:835:28:  [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.
                nmalbuf += sprintf(malbuf + nmalbuf, "&amp;");
data/indi-1.8.7+dfsg/libs/lilxml.c:838:28:  [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.
                nmalbuf += sprintf(malbuf + nmalbuf, "&lt;");
data/indi-1.8.7+dfsg/libs/lilxml.c:841:28:  [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.
                nmalbuf += sprintf(malbuf + nmalbuf, "&gt;");
data/indi-1.8.7+dfsg/libs/lilxml.c:844:28:  [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.
                nmalbuf += sprintf(malbuf + nmalbuf, "&apos;");
data/indi-1.8.7+dfsg/libs/lilxml.c:847:28:  [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.
                nmalbuf += sprintf(malbuf + nmalbuf, "&quot;");
data/indi-1.8.7+dfsg/libs/lilxml.c:868: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(malbuf + nmalbuf, s, nleft);
data/indi-1.8.7+dfsg/libs/lilxml.c:924:17:  [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(ynot, "Line %d: Bogus tag char %c", lp->ln, c);
data/indi-1.8.7+dfsg/libs/lilxml.c:953:17:  [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(ynot, "Line %d: Bogus leading attr name char: %c", lp->ln, c);
data/indi-1.8.7+dfsg/libs/lilxml.c:968:17:  [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(ynot, "Line %d: Bogus char %c before >", lp->ln, c);
data/indi-1.8.7+dfsg/libs/lilxml.c:980:17:  [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(ynot, "Line %d: Bogus attr name char: %c", lp->ln, c);
data/indi-1.8.7+dfsg/libs/lilxml.c:1107:17:  [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(ynot, "Line %d: Bogus preend tag char %c", lp->ln, c);
data/indi-1.8.7+dfsg/libs/lilxml.c:1132:17:  [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(ynot, "Line %d: Bogus end tag char %c", lp->ln, c);
data/indi-1.8.7+dfsg/libs/lilxml.c: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 ynot[1024];
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:372:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(devicename, O_RDWR)) == -1)
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:612:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *names[2] = { FlashStrobeSP->sp[0].name, FlashStrobeStopSP->sp[0].name };
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:624:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *names[2] = { FlashStrobeSP->sp[0].name, FlashStrobeStopSP->sp[0].name };
data/indi-1.8.7+dfsg/libs/stream/ccvt_misc.c:725: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 *yuv[3];
data/indi-1.8.7+dfsg/libs/stream/encoder/mjpegencoder.cpp:96: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(bp->format, ".stream_jpg");
data/indi-1.8.7+dfsg/libs/stream/encoder/rawencoder.cpp:76: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(bp->format, ".stream.z");
data/indi-1.8.7+dfsg/libs/stream/encoder/rawencoder.cpp:84: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(bp->format, ".stream");
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c: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.
static unsigned char buf0[16][MAX_LUMA_WIDTH];
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:295:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char buf1[8][MAX_CHROMA_WIDTH];
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:296:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char buf2[8][MAX_CHROMA_WIDTH];
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:297:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char chr1[8][MAX_CHROMA_WIDTH];
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:298:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char chr2[8][MAX_CHROMA_WIDTH];
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:311: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((*htblptr)->bits, bits, sizeof((*htblptr)->bits));
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:325: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((*htblptr)->huffval, val, nsymbols * sizeof(UINT8));
data/indi-1.8.7+dfsg/libs/stream/jpegutils.c:1346: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(destmem, ppm8, cinfo.output_width * cinfo.num_components);
data/indi-1.8.7+dfsg/libs/stream/recorder/recorderinterface.h:70:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open(const char *filename, char *errmsg)                          = 0;
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:173: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).
bool SER_Recorder::open(const char *filename, char *errmsg)
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:178: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).
    if ((f = fopen(filename, "w")) == nullptr)
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:234: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(destBuffer + i * imageWidth, srcBuffer + rawWidth * i, imageWidth);
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:251: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(destBuffer + i * imageWidth * 3, srcBuffer + rawWidth * 3 * i, imageWidth * 3);
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.h:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char FileID[14];
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.h:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Observer[40];
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.h:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Instrume[40];
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.h: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 Telescope[40];
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.h:79:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open(const char *filename, char *errmsg);
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp:136:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool TheoraRecorder::open(const char *filename, char *errmsg)
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp:167: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).
    ogg_fp = fopen(filename, "wb");
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp:424: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(ycbcr[0].data, frame, ycbcr[0].stride * ycbcr[0].height);
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp:459: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(destBuffer + i * imageWidth, srcBuffer + rawWidth * i, imageWidth);
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.cpp:479: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(destBuffer + i * imageWidth * 3, srcBuffer + rawWidth * 3 * i, imageWidth * 3);
data/indi-1.8.7+dfsg/libs/stream/recorder/theorarecorder.h:47:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open(const char *filename, char *errmsg);
data/indi-1.8.7+dfsg/libs/stream/streammanager.cpp:448: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(dstBuffer + i * dstStride, srcBuffer + srcStride * i, dstStride);
data/indi-1.8.7+dfsg/libs/stream/streammanager.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 val[20];
data/indi-1.8.7+dfsg/libs/stream/streammanager.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 errmsg[MAXRBUF];
data/indi-1.8.7+dfsg/libs/stream/streammanager.cpp:701: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).
    if (!recorder->open(filename.c_str(), errmsg))
data/indi-1.8.7+dfsg/libs/stream/streammanager.cpp:1181: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(imageB->format, ".stream_jpg");
data/indi-1.8.7+dfsg/libs/webcam/pwc-ioctl.h: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 name[32];
data/indi-1.8.7+dfsg/libs/webcam/pwc-ioctl.h: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 serial[30]; /* String with serial number. Contains terminating 0 */
data/indi-1.8.7+dfsg/libs/webcam/pwc-ioctl.h:197: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_buf[13]; /* Actual USB video command */
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.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 errmsg[ERRMSGSIZ] = {0};
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:568:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const * b   = (unsigned char const *)buffers[buf.index].start;
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:636:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                decoder->decode((unsigned char *)(buffers[buf.index].start), &buf);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:928:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/webcam/v4l2_base.cpp:1337:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/webcam/v4l2_base.cpp:1367:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(dev_name, O_RDWR /* required */ | O_NONBLOCK, 0);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.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[ERRMSGSIZ];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1981:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/webcam/v4l2_base.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 errmsg[ERRMSGSIZ];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2118: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 menuname[19];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2275: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 sname[32];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2430: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 sname[32];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libs/webcam/v4l2_base.cpp:2891: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 sname[32];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.h: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 dev_name[64];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.h:217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char deviceName[MAXINDIDEVICE];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_colorspace.c:6:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char lutrangey8[256];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_colorspace.c:10:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char lutrangecbcr8[256];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:138: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(dest, src, crop.c.width);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:145: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(YBuf, frame, bufwidth * bufheight);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:157: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(dest, src, 2 * crop.c.width);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:164: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(yuyvBuffer, frame, 2 * bufwidth * bufheight);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:178: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(dest, src, crop.c.width);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:192: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(dest, src, crop.c.width / 2);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:207: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(dest, src, crop.c.width / 2);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:214: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(YBuf, frame, bufwidth * bufheight);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:217: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(UBuf, frame + bufwidth * bufheight, (bufwidth / 2) * (bufheight / 2));
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:218: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(VBuf, frame + bufwidth * bufheight + (bufwidth / 2) * (bufheight / 2),
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:225:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(VBuf, frame + bufwidth * bufheight, (bufwidth / 2) * (bufheight / 2));
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:226:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(UBuf, frame + bufwidth * bufheight + (bufwidth / 2) * (bufheight / 2),
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:243: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(dest, src, crop.c.width);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:277: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(dest, src, bufwidth);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:310: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(dest, src, 2 * crop.c.width);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:317: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(yuyvBuffer, frame, 2 * bufwidth * bufheight);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp:393: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, 3 * bufwidth);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.h:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lut5[32];
data/indi-1.8.7+dfsg/libs/webcam/v4l2_decode/v4l2_builtin_decoder.h: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 lut6[64];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char returnStr[128];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 returnStr[128];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:141: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).
    TelPortFD = open(port, O_RDWR);
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 inputStr[2048];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 inputStr[2048];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 returnStr[128];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 returnStr[12];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 str[20];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:436: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((char *)str, "s%08X,%08X", n1, n2);
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 str[10];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 cmd[8];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:479: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((char *)str, "W%c%c%c%c%c%c%c%c", cmd[0], cmd[1], cmd[2], cmd[3], cmd[4], cmd[5], cmd[6], cmd[7]);
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 str[10];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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[8];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:521: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((char *)str, "H%c%c%c%c%c%c%c%c", cmd[0], cmd[1], cmd[2], cmd[3], cmd[4], cmd[5], cmd[6], cmd[7]);
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:547:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outputStr[32], inputStr[2048];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:677: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(outputStr, "R%c%c%c%c,%c%c%c%c", r3, r2, r1, r0, d3, d2, d1, d0);
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 inputStr[2048];
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c: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 inputStr[2048];
data/indi-1.8.7+dfsg/obsolete/fli_wheel.c: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 buff[2048];
data/indi-1.8.7+dfsg/obsolete/fli_wheel.c: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 errmsg[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/obsolete/ieq45.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 RAStr[32], DecStr[32];
data/indi-1.8.7+dfsg/obsolete/ieq45.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 syncString[256];
data/indi-1.8.7+dfsg/obsolete/ieq45.cpp:597:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[14] = ":FirmWareDate#";
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 MountAlign[64];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 mell_prefix[3];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:394: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/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[128];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:556:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c: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 coords[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 CR[1] = { (char)0x0D };
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 coords[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:612:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = { (char)0x51 }; /* "Q" */
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 bool_return[2];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:827:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:828:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dumpPlanetaryUpdateString[64];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:829:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:863:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:875:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:887:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:899:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c:911:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 speed_str[8];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 slewNum[2];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c: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 cmd[20];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:1164: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/obsolete/ieq45driver8406.c:1167: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/obsolete/ieq45driver8406.c:1170: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/obsolete/ieq45driver8406.c:1173: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/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:1345:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8406.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 response[64];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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/obsolete/ieq45driver8407.c: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 mell_prefix[3];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:416: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/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[128];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 coords[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 CR[1] = { (char)0x0D };
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 coords[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 CR[1] = { (char)0x51 }; /* "Q" */
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:681:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c:712:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:729:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:778:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[32];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 dumpPlanetaryUpdateString[64];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 bool_return[2];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[32];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[32];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:944:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c:1079:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:1126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c: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[20];
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:1189: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/obsolete/ieq45driver8407.c:1192: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/obsolete/ieq45driver8407.c:1195: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/obsolete/ieq45driver8407.c:1198: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/obsolete/ieq45driver8407.c:1340:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c:1370:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/ieq45driver8407.c:1390:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/intelliscope.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 coords[16];
data/indi-1.8.7+dfsg/obsolete/intelliscope.c: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 CR[1] = { (char)0x51 }; /* "Q" */
data/indi-1.8.7+dfsg/obsolete/magellan1.cpp:411:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char calendarDate[32];
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4] = ":S?#";
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Response[64];
data/indi-1.8.7+dfsg/obsolete/magellandriver.c: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 ack[4] = ":S?#";
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Response[64];
data/indi-1.8.7+dfsg/obsolete/magellandriver.c: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 temp_string[16];
data/indi-1.8.7+dfsg/obsolete/magellandriver.c: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 century[3];
data/indi-1.8.7+dfsg/obsolete/skycommander.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 coords[16];
data/indi-1.8.7+dfsg/obsolete/skycommander.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 CR[1] = { (char)0x0D };
data/indi-1.8.7+dfsg/obsolete/stv.c:109: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 tracking_buf[1024];
data/indi-1.8.7+dfsg/obsolete/stv.c:467:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1024];
data/indi-1.8.7+dfsg/obsolete/stv.c:601:21:  [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(DisplayCT[0].text, "Key press acknowledged");
data/indi-1.8.7+dfsg/obsolete/stv.c:1564:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_rw[TEMPFILE_LEN + 1];
data/indi-1.8.7+dfsg/obsolete/stv.c:1600:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char binning_s[32];
data/indi-1.8.7+dfsg/obsolete/stv.c:1601:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char frame_s[32];
data/indi-1.8.7+dfsg/obsolete/stv.c:1602:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_obs_s[64];
data/indi-1.8.7+dfsg/obsolete/stv.c:1603:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/indi-1.8.7+dfsg/obsolete/stv.c:1624: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(frame_s, "Light");
data/indi-1.8.7+dfsg/obsolete/stv.c:1652: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(tmp, "%4d-", image_info->year);
data/indi-1.8.7+dfsg/obsolete/stv.c:1657: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(tmp, "0%1d-", image_info->month);
data/indi-1.8.7+dfsg/obsolete/stv.c:1661: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(tmp, "%2d-", image_info->month);
data/indi-1.8.7+dfsg/obsolete/stv.c:1667: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(tmp, "0%1dT", image_info->day);
data/indi-1.8.7+dfsg/obsolete/stv.c:1671: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(tmp, "%2dT", image_info->day);
data/indi-1.8.7+dfsg/obsolete/stv.c:1677: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(tmp, "0%1d:", image_info->hours);
data/indi-1.8.7+dfsg/obsolete/stv.c:1681: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(tmp, "%2d:", image_info->hours);
data/indi-1.8.7+dfsg/obsolete/stv.c:1687: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(tmp, "0%1d:", image_info->minutes);
data/indi-1.8.7+dfsg/obsolete/stv.c:1691: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(tmp, "%2d:", image_info->minutes);
data/indi-1.8.7+dfsg/obsolete/stv.c:1697: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(tmp, "0%1d:", image_info->seconds);
data/indi-1.8.7+dfsg/obsolete/stv.c:1701: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(tmp, "%2d:", image_info->seconds);
data/indi-1.8.7+dfsg/obsolete/stv.c:1741: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).
    fitsFile = fopen(filename, "r");
data/indi-1.8.7+dfsg/obsolete/stv.c:1780: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(imageB.format, ".fits.z");
data/indi-1.8.7+dfsg/obsolete/stv.c: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 errmsg[1024];
data/indi-1.8.7+dfsg/obsolete/stv.c:1956: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(DisplayCT[0].text, "Buffer %2d line: %3d", buffer + 1, line + 1);
data/indi-1.8.7+dfsg/obsolete/stv.c:1977: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(DisplayCT[0].text, "Buffer %2d line: %3d", buffer + 1, line + 1);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:195:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1024];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:436:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[0xffff];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:526:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[0xffff];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:758:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1024];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c: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 display1[25];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c: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 display2[25];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c: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 buf[1024];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1235:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1024];
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1532:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(device_name, O_RDWR | O_NOCTTY);
data/indi-1.8.7+dfsg/obsolete/trutech_wheel.c:173:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char filter_command[CMD_SIZE];
data/indi-1.8.7+dfsg/obsolete/trutech_wheel.c:192: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/obsolete/trutech_wheel.c:257: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 filter_command[CMD_SIZE];
data/indi-1.8.7+dfsg/obsolete/trutech_wheel.c: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 errmsg[ERRMSG_SIZE];
data/indi-1.8.7+dfsg/obsolete/wunderground.cpp:181:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/obsolete/wunderground.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 srcBuffer[readBuffer.size()];
data/indi-1.8.7+dfsg/test/celestrondriver/test_celestrondriver.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 version[8];
data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.cpp:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {0};
data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.cpp:220: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 b[64] = {0}, c[64] = {0};
data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.cpp:249: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 b[64] = {0}, c[64] = {0};
data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.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 b[64]= {0};
data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.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 b[64]= {0};
data/indi-1.8.7+dfsg/test/lx200drivers/test_eq500xdriver.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 b[64]= {0};
data/indi-1.8.7+dfsg/tools/compiler.c:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAXFLDLEN]; /* name of operand */
data/indi-1.8.7+dfsg/tools/compiler.c:141:15:  [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.
        (void)sprintf(err_msg + strlen(err_msg), " near `%.10s'", lcexpr);
data/indi-1.8.7+dfsg/tools/compiler.c:146:15:  [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.
        (void)sprintf(err_msg, "Null program");
data/indi-1.8.7+dfsg/tools/compiler.c:301:23:  [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.
                (void)sprintf(err_msg, "Too many right parens");
data/indi-1.8.7+dfsg/tools/compiler.c:398:19:  [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.
            (void)sprintf(err_msg, "Bad function");
data/indi-1.8.7+dfsg/tools/compiler.c:412:19:  [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.
            (void)sprintf(err_msg, "Bad field");
data/indi-1.8.7+dfsg/tools/compiler.c:423:11:  [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.
    (void)sprintf(err_msg, "Syntax error");
data/indi-1.8.7+dfsg/tools/compiler.c:509:19:  [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.
            (void)sprintf(err_msg, "Program is too long");
data/indi-1.8.7+dfsg/tools/compiler.c:527:27:  [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.
                    (void)sprintf(err_msg, "Term expected after unary +");
data/indi-1.8.7+dfsg/tools/compiler.c:538:27:  [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.
                    (void)sprintf(err_msg, "Term expected after unary -");
data/indi-1.8.7+dfsg/tools/compiler.c:549:27:  [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.
                    (void)sprintf(err_msg, "Term expected after unary !");
data/indi-1.8.7+dfsg/tools/compiler.c:573:27:  [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.
                    (void)sprintf(err_msg, "expecting '(' after function");
data/indi-1.8.7+dfsg/tools/compiler.c:579:27:  [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.
                    (void)sprintf(err_msg, "1-arg function arglist error");
data/indi-1.8.7+dfsg/tools/compiler.c:592:27:  [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.
                    (void)sprintf(err_msg, "Saw a built-in function: expecting (");
data/indi-1.8.7+dfsg/tools/compiler.c:598:27:  [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.
                    (void)sprintf(err_msg, "1st of 2-arg function arglist error");
data/indi-1.8.7+dfsg/tools/compiler.c:604:27:  [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.
                    (void)sprintf(err_msg, "2nd of 2-arg function arglist error");
data/indi-1.8.7+dfsg/tools/compiler.c:623:27:  [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.
                    (void)sprintf(err_msg, "Unmatched left paren");
data/indi-1.8.7+dfsg/tools/compiler.c:628:27:  [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.
                    (void)sprintf(err_msg, "Null expression");
data/indi-1.8.7+dfsg/tools/compiler.c:654:23:  [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.
                (void)strcpy(err_msg, "Term or factor expected");
data/indi-1.8.7+dfsg/tools/compiler.c:798:23:  [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.
                (void)sprintf(err_msg, "Bug! bad opcode: 0x%x", instr);
data/indi-1.8.7+dfsg/tools/compiler.c:803:19:  [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.
            (void)sprintf(err_msg, "Runtime stack overflow");
data/indi-1.8.7+dfsg/tools/compiler.c:808:19:  [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.
            (void)sprintf(err_msg, "Bug! runtime stack underflow");
data/indi-1.8.7+dfsg/tools/compiler.c:816:15:  [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.
        (void)sprintf(err_msg, "Bug! stack has %ld items", (long int)(MAX_STACK - (sp - stack)));
data/indi-1.8.7+dfsg/tools/evalINDI.c:95: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).
                    directfd = atoi(*++av);
data/indi-1.8.7+dfsg/tools/evalINDI.c:135: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/tools/evalINDI.c:144: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).
                    timeout = atoi(*++av);
data/indi-1.8.7+dfsg/tools/evalINDI.c: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 errmsg[1024];
data/indi-1.8.7+dfsg/tools/evalINDI.c: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 prop[1024];
data/indi-1.8.7+dfsg/tools/evalINDI.c: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 errmsg[1024];
data/indi-1.8.7+dfsg/tools/evalINDI.c:536:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[1024];
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:120: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).
                    directfd = atoi(*++av);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:152: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/tools/getINDIproperty.c:161: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).
                    timeout = atoi(*++av);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c: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 d[1024], p[1024], e[1024];
data/indi-1.8.7+dfsg/tools/getINDIproperty.c: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 msg[1024];
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:500:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *s = (char *)findXMLAttValu(root, kwattr[i].indiattr);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c: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 fn[128];
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:559: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).
    ucs = atoi(findXMLAttValu(root, "size"));
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:598: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(fn, "w");
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:107: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).
                    directfd = atoi(*++av);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:137: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/tools/setINDIproperty.c:147: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).
                    timeout = atoi(*++av);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:259:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char d[128], p[128], ev[2048];
data/indi-1.8.7+dfsg/tools/setINDIproperty.c: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 msg[1024];
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:223:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        file.read(data, size);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:229:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(FitsB[0].format, format, MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:439:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(StatusL[0].label, ControlledDeviceT[0].text, sizeof(StatusL[0].label));
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:440:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(CCDImageExposureNP.device, ControlledDeviceT[0].text, sizeof(CCDImageExposureNP.device));
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:441:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(CCDImageBinNP.device, ControlledDeviceT[0].text, sizeof(CCDImageBinNP.device));
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:442:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(StatusL[1].label, ControlledDeviceT[1].text, sizeof(StatusL[1].label));
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:443:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(FilterSlotNP.device, ControlledDeviceT[1].text, sizeof(FilterSlotNP.device));
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:562:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(format, bp->format, 16);
data/indi-1.8.7+dfsg/drivers/agent/agent_imager.cpp:659:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(format, strrchr(tvp->tp[0].text, '.'), sizeof(format));
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp:273:25:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        usleep(slv);
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp:319:25:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        usleep(slv);
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp:347:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp:375:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp:403:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2000.cpp:431:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/auxiliary/STAR2kdriver.c:99:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(500000);
data/indi-1.8.7+dfsg/drivers/auxiliary/arduino_st4.cpp:311:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(res, "OK#", 8);
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:230:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(CCDDataBP.device, ActiveDeviceT[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/auxiliary/astrometrydriver.cpp:338:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(imageFileName, "/tmp/ccdsolver.fits", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:376:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">L000", FLAT_CMD);
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:378:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">D000", FLAT_CMD);
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:662:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(50000);
data/indi-1.8.7+dfsg/drivers/auxiliary/flip_flat.cpp:667:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(50000);
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.cpp:37:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dev_path, JOYSTICK_DEV, 256);
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.cpp:68:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dev_path, port, 256);
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.cpp:115:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int bytes = read(joystick_fd, joystick_ev, sizeof(*joystick_ev));
data/indi-1.8.7+dfsg/drivers/auxiliary/joystickdriver.cpp:148:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(pollMS * 1000);
data/indi-1.8.7+dfsg/drivers/auxiliary/lpm.cpp:326:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t response = read(PortFD, buffer + received, 5 - received);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppb.cpp:223:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(command, "P#\n", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_ppba.cpp:268:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(command, "P#\n", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:448:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, "P#\n", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:811:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(res, "PS:1111:12", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:815:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(res, "UPB2:12.0:0.9:10:24.8:37:9.1:1111:111111:153:153:0:0:0:0:0:70:0:0:0000000:0", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:819:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(res, "0.40:0.00:0.03:26969", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:823:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(res, "3000:0:0:10", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:827:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(res, "999", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:831:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(res, "Sim v1.0", PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:835:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(res, cmd, PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/pegasus_upb.cpp:1611:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(response, s.c_str(), PEGASUS_LEN);
data/indi-1.8.7+dfsg/drivers/auxiliary/planewave_delta.cpp:733:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000);
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:289:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int rc          = read(clientFD, buffer, 64);
data/indi-1.8.7+dfsg/drivers/auxiliary/skysafari.cpp:735:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int bytesWritten = 0, totalBytes = strlen(message);
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:327:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">c000", SNAP_CMD); // Force close command
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:329:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">C000", SNAP_CMD);
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:357:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">o000", SNAP_CMD); // Force open command
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:359:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">O000", SNAP_CMD);
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:407:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">L000", SNAP_CMD);
data/indi-1.8.7+dfsg/drivers/auxiliary/snapcap.cpp:409:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(command, ">D000", SNAP_CMD);
data/indi-1.8.7+dfsg/drivers/auxiliary/sqm.cpp:224:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(500000);
data/indi-1.8.7+dfsg/drivers/auxiliary/usb_dewpoint.cpp:215:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:775:30:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                    int rc = sscanf(line, "%10s %f %f %f %f %f %d %d %4s %2s %f %d", id, &ra, &dec, &pose, &mag, &mage,
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1238:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (DirectoryT[0].text[strlen(DirectoryT[0].text) - 1] != '/')
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1294:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(FWHMNP.device, ActiveDeviceT[ACTIVE_FOCUSER].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1509:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(fabs(ExposureRequest - elapsed.count()) * 1e6);
data/indi-1.8.7+dfsg/drivers/ccd/ccd_simulator.cpp:1585:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (channels == 1 && strlen(bayer_pattern)  == 4)
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:814:30:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                    int rc = sscanf(line, "%10s %f %f %f %f %f %d %d %4s %2s %f %d", id, &ra, &dec, &pose, &mag, &mage,
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:1266:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(FWHMNP.device, ActiveDeviceT[ACTIVE_FOCUSER].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/ccd/guide_simulator.cpp:1427:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(fabs(ExposureRequest - elapsed.count()) * 1e6);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:323:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, "d#flapclo", DOME_BUF);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:369:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(resp, "d#shutclo", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:371:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(resp, "d#shutope", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:373:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(resp, "d#shutrun", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:697:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, "d#gotmess", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:766:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, "d#opeshut", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:771:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, "d#closhut", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:788:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, "d#gotmess", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:858:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, "d#opeflap", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:863:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, "d#cloflap", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:880:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, "d#gotmess", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:926:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(resp, "d#flapclo", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:928:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(resp, "d#flapope", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:930:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(resp, "d#flaprun", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:993:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cmd, "d#encsave", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/baader_dome.cpp:1008:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, "d#gotmess", DOME_CMD + 1);
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:158:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp, ScriptsT[script].text, sizeof(tmp));
data/indi-1.8.7+dfsg/drivers/dome/dome_script.cpp:199:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(dbg, "'");
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:1186:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return interface->read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:1197:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return interface->read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:1208:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return interface->read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:1219:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return interface->read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:1230:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return interface->read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.cpp:1238:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000000); // 1s
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.h:323:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int read(ScopeDomeCommand &cmd)                                    = 0;
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.h:353:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int read(ScopeDomeCommand &cmd) override;
data/indi-1.8.7+dfsg/drivers/dome/scopedome_dome.h:384:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int read(ScopeDomeCommand &cmd) override;
data/indi-1.8.7+dfsg/drivers/dome/scopedome_sim.cpp:72:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int ScopeDomeSim::read(ScopeDomeCommand &cmd)
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:42:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:51:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read(cmd);
data/indi-1.8.7+dfsg/drivers/dome/scopedome_usb21.cpp:177:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int ScopeDomeUSB21::read(ScopeDomeCommand &cmd)
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:115:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(filterSim, filterSim5, sizeof(filterSim)); // For simulation mode
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:229:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:253:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(response, simulation, sizeof(response));
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:254:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 2; // +2 for simulation = "\n\r" see below
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:275:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(resp, response, /* sizeof(response)*/ OPTEC_MAXLEN_RESP +1);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:447:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(filterSim, filterSim5, sizeof(filterSim));
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:452:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(filterSim, filterSim6, sizeof(filterSim));
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:457:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(filterSim, filterSim8, sizeof(filterSim));
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:462:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(filterSim, filterSim9, sizeof(filterSim));
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:631:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        lenResponse = strlen(response);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:664:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(filterNameIFW[i], p, OPTEC_LEN_FLTNAME);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:669:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
                strncat(filterList, "/", 1);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:671:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            filterList[strlen(filterList) - 1] = '\0'; //Remove last "/"
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:757:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tempolen = strlen(FilterNameT[i].text);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:764:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(FilterNameT[i].text, tempo, OPTEC_LEN_FLTNAME);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:771:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    LOGF_DEBUG("Length of the command to write to IFW = %d", strlen(cmd));
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:775:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(filterSim, cmd + 7, OPTEC_MAXLEN_NAMES);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:787:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/drivers/filter_wheel/ifwoptec.cpp:1020:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (int i = 0; i < (int)strlen(response); i++)
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:221:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100 * 1000);
data/indi-1.8.7+dfsg/drivers/filter_wheel/quantum_wheel.cpp:272:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int cmd_len = strlen(cmd);
data/indi-1.8.7+dfsg/drivers/focuser/celestron.cpp:326:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(500000);
data/indi-1.8.7+dfsg/drivers/focuser/celestron.cpp:473:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500000);     // slowing things down while calibrating seems to help
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:237:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:242:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:259:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:264:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:572:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:579:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:596:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:603:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:620:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:627:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:644:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:651:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:668:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:675:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:700:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmd[strlen(cmd)] = 0xA;
data/indi-1.8.7+dfsg/drivers/focuser/dmfc.cpp:707:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/focus_simulator.cpp:281:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(duration * 1000);
data/indi-1.8.7+dfsg/drivers/focuser/focus_simulator.cpp:317:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(std::abs((int)(targetTicks - FocusAbsPosN[0].value) * FOCUS_MOTION_DELAY));
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:296:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cmd, "<FHGETHUBINFO>", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:301:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "HUB INFO\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:302:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:306:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:338:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "Hub FVer = 2.0.4\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:339:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:358:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(version, text, sizeof(version));
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:371:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "Sleeping = 0\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:372:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:401:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "Wired IP = 169.168.1.10\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:402:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:431:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "DHCPisOn = 1\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:432:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:461:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF Atchd = 1\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:462:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:490:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF Conn  = 1\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:491:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:519:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF FVer  = 1.0.0\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:520:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:548:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF FV OK = 1\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:549:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:577:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF SSID = FocusLynxConfig\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:578:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:606:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF IP = 192.168.1.11\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:607:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:635:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF SecMd = A\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:636:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:664:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF SecKy =\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:665:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:693:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "WF WepKI = 0\n", 32);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:694:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:730:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynx.cpp:731:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:649:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(response, focusName, LYNX_MAX);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:650:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:705:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "CONFIG1", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:707:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "CONFIG2", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:708:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:745:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:779:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:824:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:936:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:963:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:988:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1020:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1021:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1069:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "STATUS1", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1071:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "STATUS2", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1072:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1111:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "Temp(C) = +21.7\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1112:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1144:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1170:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1188:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1211:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1241:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1267:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1290:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1313:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1336:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1359:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1394:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1395:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1444:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "TEMP COMP1", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1446:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "TEMP COMP2", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1447:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1483:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1511:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1558:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1584:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1611:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1638:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1665:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1692:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1719:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1746:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1773:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1800:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1827:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1857:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1882:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1883:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1929:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1930:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1991:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:1992:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2052:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2053:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2110:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(response, "H", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2111:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read              = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2182:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(response, "M", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2183:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read              = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2247:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2248:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2307:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2308:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2368:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2369:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2428:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2429:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2488:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2489:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2549:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2550:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2608:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2609:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2666:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2667:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read               = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2725:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2726:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2790:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2791:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2852:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2853:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2914:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2915:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2971:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "!");
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:2972:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3039:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(response, "M", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3040:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3074:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(POLLMS * 1000);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3116:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(response, "M", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3117:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read              = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3304:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "HALTED", 16);
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3305:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read              = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/focuser/focuslynxbase.cpp:3449:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(focusTarget, target, 8);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:353:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "ERROR", LAKESIDE_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:364:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(response, resp, LAKESIDE_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1207:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cmd, enabled ? "CRD1#" : "CRD0#", LAKESIDE_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1258:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, "CTN#", LAKESIDE_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/lakeside.cpp:1260:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, "CTF#", LAKESIDE_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:230:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char read[3] = {0};
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:232:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (WriteCmdGetResponse(CMD_GET_POSITION, read, 3))
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:234:74:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        FocusAbsPosN[0].value = static_cast<double>(static_cast<uint8_t>(read[2]) << 8 | static_cast<uint8_t>(read[1]));
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:234:111:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        FocusAbsPosN[0].value = static_cast<double>(static_cast<uint8_t>(read[2]) << 8 | static_cast<uint8_t>(read[1]));
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:585:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration * 1000);
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:752:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char read[2];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:754:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (WriteCmdGetResponse(cmd, read, 2))
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:756:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        LOGF_DEBUG("WriteCmdGetByte : %02x %02x ", read[0], read[1]);
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:756:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        LOGF_DEBUG("WriteCmdGetByte : %02x %02x ", read[0], read[1]);
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:757:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read[1];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:811:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char read[5];
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:813:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (WriteCmdGetResponse(cmd, read, 5))
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:814:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return ((unsigned char)read[4] << 24 | (unsigned char)read[3] << 16 | (unsigned char)read[2] << 8 |
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:814:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return ((unsigned char)read[4] << 24 | (unsigned char)read[3] << 16 | (unsigned char)read[2] << 8 |
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:814:94:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return ((unsigned char)read[4] << 24 | (unsigned char)read[3] << 16 | (unsigned char)read[2] << 8 |
data/indi-1.8.7+dfsg/drivers/focuser/microtouch.cpp:815:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                (unsigned char)read[1]);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:341:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":GD#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:343:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":2GD#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:397:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":GH#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:399:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":2GH#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:498:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":GP#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:500:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":2GP#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:547:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":GI#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:549:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":2GI#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:682:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":FG#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:684:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":2FG#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:710:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cmd, ":SH#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:712:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cmd, ":2SH#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:717:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cmd, ":SF#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:719:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cmd, ":2SF#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:770:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":+#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:772:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":-#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/moonlite_dro.cpp:997:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cmd, (m_ID == 1) ? ":FQ#" : "#:2FQ#", DRO_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:316:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/onfocus.cpp:350:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:600:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(100000);
data/indi-1.8.7+dfsg/drivers/focuser/planewave_efa.cpp:638:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:245:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        LOGF_WARN("Checksum: Wrong (%s,%ld), %x != %x", rf_cmd, strlen(rf_cmd), val,
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:402:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(rf_cmd, "FG000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:428:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(rf_cmd, "FT000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:464:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(rf_cmd, "FB000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:525:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(rf_cmd, "FV000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:531:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(rf_cmd, "SIM", 4);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:555:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(rf_cmd, "FC000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:728:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(rf_cmd_tmp, "FP000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:799:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(rf_cmd, "FL000000", 9);
data/indi-1.8.7+dfsg/drivers/focuser/robofocus.cpp:1549:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return tty_write(PortFD, buf, strlen(buf), &nbytes_written) == TTY_OK;
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:235:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(res, "1.0 Simulation", SESTO_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:250:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(res, "23.45", SESTO_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:260:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        LOGF_WARN("Failed to process temperature response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:331:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        LOGF_WARN("Failed to process position response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso.cpp:382:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                LOGF_WARN("Failed to process motion response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:229:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(res, "23.45", SESTO_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:239:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        LOGF_WARN("Failed to process temperature response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:259:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            LOGF_DEBUG("Failed to process external temperature response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:333:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        LOGF_WARN("Failed to process position response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:384:85:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                LOGF_WARN("Failed to get motor speed response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:400:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    LOGF_WARN("Failed to process motion response: %s (%d bytes)", res, strlen(res));
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:823:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(res, "1.0 Simulation", SESTO_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/sestosenso2.cpp:892:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(read(CommandSet::PortFD, &read_buf, sizeof(read_buf)) == 0)
data/indi-1.8.7+dfsg/drivers/focuser/smartfocus.cpp:291:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(PortFD, &respons, sizeof(respons)) == sizeof(respons))
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:251:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":FV2.00812#", STEELDRIVE_CMD_LONG + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:304:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":FV2.00812#", STEELDRIVE_CMD_LONG + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:322:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(hwrev, hardware_string, 3);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:323:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(hwdate, hardware_string + 3, 4);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:327:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(mon, hwdate, 2);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:328:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(year, hwdate + 2, 2);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:351:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":FN2.21012#", STEELDRIVE_CMD_LONG + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:369:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(fwrev, firmware_string, 3);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:370:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(fwdate, firmware_string + 3, 4);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:374:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(mon, fwdate, 2);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:375:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(year, fwdate + 2, 2);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:411:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":F5+1810#", STEELDRIVE_CMD + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:540:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":FG00350#", STEELDRIVE_CMD + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:592:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":FH01800#", STEELDRIVE_CMD + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:644:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":F710004#", STEELDRIVE_CMD + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:662:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(coeff, tResp, 3);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:663:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(enabled, tResp + 3, 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:664:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(selectedFocuser, tResp + 4, 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:710:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":FE25040#", STEELDRIVE_CMD + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:750:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(resp, ":F40011577#", STEELDRIVE_CMD_LONG + 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:768:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(selectedFocuser, tResp, 1);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:769:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(maxTrip, tResp + 1, 7);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:990:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cmd, (dir == FOCUS_INWARD) ? ":F2MDOW0#" : ":F1MUP00#", STEELDRIVE_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive.cpp:1304:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(POLLMS * 1000);
data/indi-1.8.7+dfsg/drivers/focuser/steeldrive2.cpp:741:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(res, rawResponse + 4, DRIVER_LEN);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:490:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                    strncpy(response, "ZZZ", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:516:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                    strncpy(response, "WAKE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:703:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                    strncpy(response, "DONE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:753:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(response, "DONE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:854:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FMMODE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:859:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FFMODE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:863:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FAMODE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:868:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FBMODE", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:873:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FCENTR", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:892:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FPOSRO", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:897:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FTMPRO", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:902:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FSLEEP", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:906:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FWAKUP", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:910:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(command, "FHOME", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:948:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (err_code = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:1073:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(response, "CENTER", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:1130:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
                strncpy(response, "*", 2);
data/indi-1.8.7+dfsg/drivers/focuser/tcfs.cpp:1203:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SIMULATION", TCFS_MAX_CMD);
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:303:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:363:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:620:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(resp, UFORSDONE, strlen(UFORSDONE)) == 0)
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:640:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(resp, UFORSDONE, strlen(UFORSDONE)) == 0)
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:759:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(resp, UFORSDONE, strlen(UFORSDONE)) == 0)
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:807:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(resp, UFORSDONE, strlen(UFORSDONE)) == 0)
data/indi-1.8.7+dfsg/drivers/focuser/usbfocusv3.cpp:844:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(resp, UFORSDONE, strlen(UFORSDONE)) == 0)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:796:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "Castor", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:797:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:801:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:856:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "!00", sizeof(response));
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:857:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:863:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:895:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "NickName=Tommy\n", sizeof(response));
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:896:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:925:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:961:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "Dev Typ = A\n", sizeof(response));
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:962:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:980:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1008:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1032:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1056:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1080:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1104:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1131:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1167:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1194:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1219:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1248:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1275:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1276:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1323:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "!00", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1324:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1330:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1355:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1387:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1405:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1438:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1458:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1483:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1512:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1536:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1537:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1586:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "!00", sizeof(response));
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1587:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1593:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1626:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "NickName=Juli\n", sizeof(response));
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1627:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1656:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1686:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "Dev Type = B\n", sizeof(response));
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1687:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1708:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1737:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1764:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1793:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1831:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1847:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1848:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1895:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "!00", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1896:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1902:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1924:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "CurrTemp = +21.7\n", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1925:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1966:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:1994:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2014:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2039:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2071:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2099:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2124:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2149:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2175:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "END\n", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2176:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2228:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2229:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2235:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2291:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2340:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2395:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2435:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2491:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2532:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2571:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2610:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2649:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2702:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2739:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2776:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2811:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "SET", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2812:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2818:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2870:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2933:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2949:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(POLLMS * 1000);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:2982:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3197:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "!00", 16);
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3198:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read              = strlen(response) + 1;
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3206:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3277:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/gemini.cpp:3318:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:231:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(cmd);
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:926:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, (int)strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/integra.cpp:962:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t expectStrlen = strlen(expectStart);
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:383:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:417:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:861:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:896:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:931:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:966:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:999:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1034:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1070:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1094:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1136:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1169:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1210:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1264:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1299:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/nightcrawler.cpp:1334:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/pegasus_falcon.cpp:472:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(response, s.c_str(), DRIVER_LEN);
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:527:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/rotator/pyxis.cpp:550:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/skeleton/focuser_driver.cpp:347:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (sendCommand("FOOBAR", res, strlen("FOOBAR"), 4) == false)
data/indi-1.8.7+dfsg/drivers/spectrograph/spectrograph_simulator.cpp:361:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(fabs(IntegrationTime - deltas) * 1e6);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:108:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(device_str, name, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:260:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:421:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(model, models[m].c_str(), size);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:426:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(model, "Unknown", size);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:649:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return send_command(cmd, strlen(cmd), response, 1, true, true);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:669:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return send_command(cmd, strlen(cmd), response, 1, true, true);
data/indi-1.8.7+dfsg/drivers/telescope/celestrondriver.cpp:690:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return send_command(cmd, strlen(cmd), response, 1, true, true);
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:577:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500000);
data/indi-1.8.7+dfsg/drivers/telescope/celestrongps.cpp:1998:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(tmp);
data/indi-1.8.7+dfsg/drivers/telescope/eq500x.cpp:1107:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(b, buf, sizeof(b));
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:106:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(board, res, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:107:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(controller, res + 6, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:126:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ra, res, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:127:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(de, res + 6, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:588:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(longitude, res, 7);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:589:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(latitude, res + 7, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:590:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(status, res + 13, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqdriverbase.cpp:826:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(str, data, size);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:127:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[0].label, "1x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:128:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[1].label, "2x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:129:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[2].label, "8x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:130:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[3].label, "16x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:131:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[4].label, "64x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:132:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[5].label, "128x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:133:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[6].label, "256x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:134:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[7].label, "512x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqpro.cpp:135:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[8].label, "MAX", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:122:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[0].label, "1x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[1].label, "2x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:124:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[2].label, "8x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:125:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[3].label, "16x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:126:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[4].label, "64x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:127:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[5].label, "128x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:128:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[6].label, "256x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:129:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[7].label, "512x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacy.cpp:130:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[8].label, "MAX", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:66:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ieqpro_device, name, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:131:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:141:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:149:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:163:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:184:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:190:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:262:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:268:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:341:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:347:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:371:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(board, response, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:372:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(controller, response + 6, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:401:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:407:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:431:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ra, response, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:432:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dec, response + 6, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:484:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:521:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:522:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:528:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:569:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:570:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:576:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:617:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:618:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:624:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:665:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:666:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:672:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:716:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:717:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:723:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:784:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:785:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:791:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:840:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:841:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:847:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:896:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:897:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:903:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:948:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:949:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:955:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:997:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1003:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1024:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(response, raRateStr, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1025:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(response + 2, deRateStr, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1074:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1101:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1102:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1108:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1158:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1159:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1165:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1208:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1209:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1215:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1258:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1259:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1265:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1315:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1316:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1322:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1366:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1367:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1373:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1420:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1421:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1427:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1480:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1481:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1487:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1537:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1538:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1544:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1594:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1595:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1601:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1645:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1651:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1704:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1710:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1762:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1763:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1769:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1812:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1813:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1819:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1865:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1866:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1872:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1923:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1924:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1930:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1987:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:1993:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2016:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dec_str, response, 9);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2017:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ra_str, response + 9, 8);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2049:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "+1800150321173000#", 32);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2050:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2056:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2080:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(utc_str, response, 4);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2082:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dst_str, response + 4, 1);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2084:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(yy_str, response + 5, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2086:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(mm_str, response + 7, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2088:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dd_str, response + 9, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2090:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(hh_str, response + 11, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2092:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(minute_str, response + 13, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ieqprolegacydriver.cpp:2094:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ss_str, response + 15, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:611:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(response, good_result, strlen(good_result)) == 0)
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1059:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1081:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ioptronHC8406.cpp:1264:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:111:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[0].label, "1x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:112:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[1].label, "2x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:113:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[2].label, "8x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:114:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[3].label, "16x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:115:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[4].label, "64x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:116:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[5].label, "128x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:117:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[6].label, "256x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:118:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[7].label, "512x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3.cpp:119:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[8].label, "MAX", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:77:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errCode = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:109:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(response, res, IOP_BUFFER);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:133:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:238:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(longPart, res, 9);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:239:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(latPart, res + 9, 8);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:294:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mStr, res, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:295:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cStr, res + 6, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:313:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mStr, res, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:314:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cStr, res + 6, 6);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:449:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(raStr, res, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:450:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(deStr, res + 2, 2);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:636:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(deStr, res, 9);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:637:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(raStr, res + 9, 9);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:662:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(offsetStr, res, 4);
data/indi-1.8.7+dfsg/drivers/telescope/ioptronv3driver.cpp:663:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(JDStr, res + 5, 13);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_10micron.cpp:556:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(tle)>230)
data/indi-1.8.7+dfsg/drivers/telescope/lx200_OnStep.cpp:1773:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            Lasterror=(Errors)(OSStat[strlen(OSStat)-1]-'0');
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:444:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000);
data/indi-1.8.7+dfsg/drivers/telescope/lx200_TeenAstro.cpp:1366:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int rc = write(PortFD, cmd, strlen(cmd));
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap.cpp:1027:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:334:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(versionString, "VCP4-P01-01", 128);
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:352:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(rev, "V");
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:355:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strlen(versionString) == 1 || strlen(versionString) == 2)
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:355:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strlen(versionString) == 1 || strlen(versionString) == 2)
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimental.cpp:2172:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_experimentaldriver.cpp:53:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lx200ap_exp_name, deviceName, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:251:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(versionString, "E", 128);
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:259:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(versionString) != 1)
data/indi-1.8.7+dfsg/drivers/telescope/lx200ap_gtocp2.cpp:869:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:49:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lx200ap_name, deviceName, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:672:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200apdriver.cpp:721:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200basic.cpp:273:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:60:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lx200Name, deviceName, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:427:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(mell_prefix, "19", 3);
data/indi-1.8.7+dfsg/drivers/telescope/lx200driver.cpp:429:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(mell_prefix, "20", 3);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:370:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cmd, "bW#", 4);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:372:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cmd, "bR#", 4);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:558:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":hC#", 5);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:560:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(cmd, ":hZ#", 5);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gemini.cpp:923:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (size_t i = 1; i < strlen(cmd); i++)
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:229:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:463:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:541:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(response, good_result, strlen(good_result)) == 0) {
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:843:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:849:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:896:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200gotonova.cpp:926:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((rc = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:190:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "GPS system is in sleep mode.", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:195:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "GPS system is reactivated.", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:200:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "GPS system is restarting...", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:257:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "Alt/Dec Compensation Enabled.", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:262:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "Alt/Dec Compensation Disabled.", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:284:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "Ra/Az Compensation Enabled.", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200gps.cpp:289:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(msg, "Ra/Az Compensation Disabled.", 64);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:176:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    const int nbytes   = strlen(cmd);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:240:37:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		if (LX200Pulsar2::verboseLogging) strncpy(lastCmd, cmd, 39);
data/indi-1.8.7+dfsg/drivers/telescope/lx200pulsar2.cpp:335:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        unsigned long rlen = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/lx200ss2000pc.cpp:209:105:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result = (tty_write_string(PortFD, buffer, &nbytes_written) == TTY_OK && nbytes_written == (int)strlen(buffer));
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:56:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[0].label, "1x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:57:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[1].label, "2x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:58:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[2].label, "8x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:59:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[3].label, "16x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:60:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[4].label, "64x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:61:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[5].label, "128x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:62:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[6].label, "256x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:63:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[7].label, "512x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:64:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[8].label, "MAX", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:304:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:533:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:577:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:945:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1289:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1295:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1350:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(response, "1");
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1351:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/lx200zeq25.cpp:1357:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(PortFD, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:269:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD,
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:316:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD,
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:456:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD,
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:502:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD,
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:543:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD,
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:606:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD, "sky6RASCOMTele.ParkAndDoNotDisconnect();", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:618:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD, "sky6RASCOMTele.Unpark();", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:693:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD, "sky6RASCOMTele.Abort();", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:701:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD, "sky6RASCOMTele.FindHome();", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:795:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD, "sky6RASCOMTele.DoCommand(10,'');", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/telescope/paramount.cpp:824:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pCMD, "sky6RASCOMTele.SetParkPosition();", MAXRBUF);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:168:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(pmc8_device, name, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:241:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:247:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((errcode = tty_write(fd, initCMD, strlen(initCMD), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:251:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:263:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:273:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:303:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:309:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:328:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(board, response+6, nbytes_read-7);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:397:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:419:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(num_str, response+5, 6);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:453:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:474:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(num_str, response+5, 2);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:512:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:774:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:921:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1496:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1512:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(response, expresp, strlen(response)))
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1563:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1579:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(response, expresp, strlen(response)))
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1628:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((errcode = tty_write(fd, cmd, strlen(cmd), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1650:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(num_str, response+5, 6);
data/indi-1.8.7+dfsg/drivers/telescope/pmc8driver.cpp:1983:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(buf, expected,strlen(expected))!=0) {
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:330:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateSP.sp[SlewRateSP.nsp - 1].name, "SLEW_MAX", MAXINDINAME);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:699:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(configSwitch->label, ("Config #" + std::to_string(i) + " - Not used").c_str(), MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:705:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(configSwitch->label, ("Config #" + std::to_string(i) + " - Untitled").c_str(), MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAPIMount.cpp:708:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(configSwitch->label, ("Config #" + std::to_string(i) + " - " + ConfigName).c_str(), MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:265:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateSP.sp[SlewRateSP.nsp - 1].name, "SLEW_MAX", MAXINDINAME);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:632:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(configSwitch->label, ("Config #" + std::to_string(i) + " - Not used").c_str(), MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:638:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(configSwitch->label, ("Config #" + std::to_string(i) + " - Untitled").c_str(), MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/skywatcherAltAzSimple.cpp:641:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(configSwitch->label, ("Config #" + std::to_string(i) + " - " + ConfigName).c_str(), MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:66:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[0].label, "1x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[1].label, "8x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:68:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[2].label, "16x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:69:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[3].label, "32x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:70:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[4].label, "64x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:71:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[5].label, "128x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:72:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[6].label, "400x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:73:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[7].label, "600x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:74:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[8].label, "Max", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriver.cpp:75:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[9].label, "Custom", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:45:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(LastParkRead, "", 1);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:76:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[0].label, "1x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:77:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[1].label, "8x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:78:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[2].label, "16x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:79:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[3].label, "32x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:80:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[4].label, "64x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:81:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[5].label, "128x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:82:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[6].label, "400x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:83:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[7].label, "600x", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:84:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(SlewRateS[8].label, "MAX", MAXINDILABEL);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:572:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(LastParkRead, res, 20);
data/indi-1.8.7+dfsg/drivers/telescope/synscandriverlegacy.cpp:836:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(LastParkRead, "", 1);
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:153:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp, ScriptsT[script].text, sizeof(tmp));
data/indi-1.8.7+dfsg/drivers/telescope/telescope_script.cpp:194:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(dbg, "'");
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:252:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cmd_temma, cmd, TEMMA_BUFFER);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:253:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int cmd_size = strlen(cmd_temma);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:281:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(response, "vSimulation v1.0", TEMMA_BUFFER);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:321:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(response, "R0", TEMMA_BUFFER);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:327:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(response, "R0", TEMMA_BUFFER);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:341:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( (rc = tty_write(PortFD, cmd_temma, strlen(cmd_temma), &bytesWritten)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:799:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:825:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:849:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:872:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(ms * 1000);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1087:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000);
data/indi-1.8.7+dfsg/drivers/telescope/temmadriver.cpp:1220:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:186:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "$PXDR,P,96276.0,P,0,C,31.8,C,1,H,40.8,P,2,C,16.8,C,3,1.1*31\r\n", MBOX_BUF);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:187:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:242:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "MBox by Astromi.ch\r\n", 64);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:243:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:301:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(200000);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:306:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(200000);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:366:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(response, "$PCAL,P,20,T,50,H,-10*79\r\n", 64);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:367:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nbytes_read = strlen(response);
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:378:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:445:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:465:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:484:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:507:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK)
data/indi-1.8.7+dfsg/drivers/weather/mbox.cpp:525:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(checksum_string, response + 1, MBOX_BUF);
data/indi-1.8.7+dfsg/drivers/weather/openweathermap.cpp:215:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(srcBuffer, readBuffer.c_str(), readBuffer.size());
data/indi-1.8.7+dfsg/drivers/weather/vantage.cpp:161:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(command, "LOOP 1", VANTAGE_CMD);
data/indi-1.8.7+dfsg/drivers/weather/weather_safety_proxy.cpp:360:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, clean_buf, byte_count);
data/indi-1.8.7+dfsg/drivers/weather/weathermeta.cpp:142:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(StationL[i].label, ActiveDeviceT[i].text, MAXINDILABEL);
data/indi-1.8.7+dfsg/eventloop.c:482:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &c, 1) != 1)
data/indi-1.8.7+dfsg/examples/tutorial_four/simpleskeleton.cpp:286:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(blobBuffer, ((char *)bp->blob), bp->bloblen);
data/indi-1.8.7+dfsg/fq.c:192:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = fgetc(stdin)) != EOF)
data/indi-1.8.7+dfsg/indidriver.c:82:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i <= strlen(s); i++)
data/indi-1.8.7+dfsg/indidriver.c:87:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(out, "&amp;", 6);
data/indi-1.8.7+dfsg/indidriver.c:91:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(out, "&apos;", 7);
data/indi-1.8.7+dfsg/indidriver.c:95:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(out, "&quot;", 7);
data/indi-1.8.7+dfsg/indidriver.c:99:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(out, "&lt;", 5);
data/indi-1.8.7+dfsg/indidriver.c:103:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(out, "&gt;", 5);
data/indi-1.8.7+dfsg/indidriver.c:247:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(sn, sp->name, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:392:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(bp->format, format, MAXINDIFORMAT);
data/indi-1.8.7+dfsg/indidriver.c:401:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:403:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:405:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:419:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:421:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:423:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:438:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(np->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:440:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(np->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:442:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(np->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:443:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(np->format, format, MAXINDIFORMAT);
data/indi-1.8.7+dfsg/indidriver.c:462:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:465:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:467:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:477:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (initialText && strlen(initialText) > 0)
data/indi-1.8.7+dfsg/indidriver.c:490:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(bp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:493:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:495:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:497:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(bp->format, format, MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/indidriver.c:516:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(svp->device, dev, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indidriver.c:517:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(svp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:520:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(svp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:522:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(svp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:523:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(svp->group, group, MAXINDIGROUP);
data/indi-1.8.7+dfsg/indidriver.c:524:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(svp->timestamp, "");
data/indi-1.8.7+dfsg/indidriver.c:543:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lvp->device, dev, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indidriver.c:544:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lvp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:547:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lvp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:549:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lvp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:550:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(lvp->group, group, MAXINDIGROUP);
data/indi-1.8.7+dfsg/indidriver.c:551:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(lvp->timestamp, "");
data/indi-1.8.7+dfsg/indidriver.c:567:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nvp->device, dev, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indidriver.c:568:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nvp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:571:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nvp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:573:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nvp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:574:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nvp->group, group, MAXINDIGROUP);
data/indi-1.8.7+dfsg/indidriver.c:575:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(nvp->timestamp, "");
data/indi-1.8.7+dfsg/indidriver.c:593:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tvp->device, dev, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indidriver.c:594:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tvp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:597:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tvp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:599:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tvp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:600:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tvp->group, group, MAXINDIGROUP);
data/indi-1.8.7+dfsg/indidriver.c:601:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(tvp->timestamp, "");
data/indi-1.8.7+dfsg/indidriver.c:620:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(bvp->device, dev, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indidriver.c:621:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(bvp->name, escapedName, MAXINDINAME);
data/indi-1.8.7+dfsg/indidriver.c:624:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bvp->label, escapedLabel, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:626:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bvp->label, escapedName, MAXINDILABEL);
data/indi-1.8.7+dfsg/indidriver.c:628:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(bvp->group, group, MAXINDIGROUP);
data/indi-1.8.7+dfsg/indidriver.c:629:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(bvp->timestamp, "");
data/indi-1.8.7+dfsg/indidriver.c:854:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(bp->format, valuXMLAtt(fa), MAXINDIFORMAT);
data/indi-1.8.7+dfsg/indidriver.c:876:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = read(fd, buf, sizeof(buf));
data/indi-1.8.7+dfsg/indidriver.c:1299:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(configFileName, source_config, MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1303:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(configFileName, getenv("INDICONFIG"), MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1309:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(configDefaultFileName, dest_config, MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1325:30:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ((ch = getc(fpin)) != EOF)
data/indi-1.8.7+dfsg/indidriver.c:1622:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(value, pcdataXMLEle(oneText), len);
data/indi-1.8.7+dfsg/indidriver.c:1674:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(configFileName, filename, MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1678:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(configFileName, getenv("INDICONFIG"), MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1702:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(configFileName, filename, MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1706:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(configFileName, getenv("INDICONFIG"), MAXRBUF);
data/indi-1.8.7+dfsg/indidriver.c:1724:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errmsg,
data/indi-1.8.7+dfsg/indiserver.c:331:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dvrinfo[ac].name, *av++, MAXINDINAME);
data/indi-1.8.7+dfsg/indiserver.c:586:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(dp->host, "localhost", MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:642:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dp->host, host, MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:659:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dp->dev[0], dev, MAXINDIDEVICE - 1);
data/indi-1.8.7+dfsg/indiserver.c:943:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(fifo.fd, line + i, 1) <= 0)
data/indi-1.8.7+dfsg/indiserver.c:982:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int len   = strlen(tDriver);
data/indi-1.8.7+dfsg/indiserver.c:1010:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tName, var[j], MAXSBUF - 1);
data/indi-1.8.7+dfsg/indiserver.c:1018:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(envConfig, var[j], MAXSBUF - 1);
data/indi-1.8.7+dfsg/indiserver.c:1026:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(envSkel, var[j], MAXSBUF - 1);
data/indi-1.8.7+dfsg/indiserver.c:1034:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(envPrefix, var[j], MAXSBUF - 1);
data/indi-1.8.7+dfsg/indiserver.c:1052:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dp->name, tDriver, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indiserver.c:1057:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(dp->envDev, tName, MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:1058:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(dp->envConfig, envConfig, MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:1059:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(dp->envSkel, envSkel, MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:1060:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(dp->envPrefix, envPrefix, MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:1175:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = read(cp->s, buf, sizeof(buf));
data/indi-1.8.7+dfsg/indiserver.c:1285:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = read(dp->rfd, buf, sizeof(buf));
data/indi-1.8.7+dfsg/indiserver.c:1373:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dp->dev[dp->ndev], dev, MAXINDIDEVICE - 1);
data/indi-1.8.7+dfsg/indiserver.c:1424:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = read(dp->efd, exbuf + nexbuf, sizeof(exbuf) - nexbuf);
data/indi-1.8.7+dfsg/indiserver.c:1604:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(lastRemoteHost, dp->host, MAXSBUF);
data/indi-1.8.7+dfsg/indiserver.c:1675:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ip, dev, MAXINDIDEVICE - 1);
data/indi-1.8.7+dfsg/indiserver.c:1679:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ip, name, MAXINDINAME - 1);
data/indi-1.8.7+dfsg/indiserver.c:1893:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mp->cl = strlen(str);
data/indi-1.8.7+dfsg/indiserver.c:2080:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(pp->dev, dev, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/indiserver.c:2081:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(pp->name, name, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:53:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((argv[iarg][0] == '-' && strlen (argv[iarg]) == 2) ||
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:216:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tile, argv[iarg], SZ_STR); /* checked below */
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:254:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (fpptr->outfile, argv[iarg], SZ_STR);
data/indi-1.8.7+dfsg/libs/fpack/fpack.c:294:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (tile);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:127:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(suffix) + strlen(rootname) > SZ_STR-5) {
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:127:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(suffix) + strlen(rootname) > SZ_STR-5) {
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:134:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    maxtry = SZ_STR - strlen(tmpnam) - 1;
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:138:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(tmpnam) > SZ_STR-2)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:145:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(tmpnam, "x");  /* append an x to the name, and try again */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:219:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (infits, argv[iarg], SZ_STR-1);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:377:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(argv[iarg]) > SZ_STR - 4) {  /* allow for .fz or .gz suffix */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:382:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (infits, argv[iarg], SZ_STR);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:402:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        namelen = strlen(infits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:408:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    namelen = strlen(infits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:446:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen(fpptr->prefix) + strlen(infits) > SZ_STR - 1) {
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:446:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen(fpptr->prefix) + strlen(infits) > SZ_STR - 1) {
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:461:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:469:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:489:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if (strlen(outfits)+3 > SZ_STR-1)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:499:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:508:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(infits)+3 > SZ_STR-1)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:515:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        namelen = strlen(infits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:524:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              namelen = strlen(infits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:543:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:549:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:625:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (infits, argv[iarg], SZ_STR - 1);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:639:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(outfits, "-");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:659:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:666:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:676:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(outfits, "-");
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:687:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:693:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  namelen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:707:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(temp, outfits, SZ_STR-1);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:857:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                outlen = strlen(outfits);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:984:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            hduloc += strlen(hduname);  /* end of the list */
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1241:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len =strlen(dimen);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1245:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len =strlen(dimen);
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1247:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(dimen)<99)
data/indi-1.8.7+dfsg/libs/fpack/fpackutil.c:1248:12:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
           strcat(dimen, ")");
data/indi-1.8.7+dfsg/libs/indibase/alignment/ClientAPIForAlignmentDatabase.cpp:369:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(OptionalBinaryBlob->getBLOB()->bp->format, "alignmentPrivateData", MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/alignment/LoaderClient.cpp:59:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CurrentValues.PrivateDataSize = strlen((char *)CurrentValues.PrivateData.get()) + 1;
data/indi-1.8.7+dfsg/libs/indibase/alignment/MapPropertiesToInMemoryDatabase.cpp:86:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(AlignmentPointSetPrivateBinaryData.format, "alignmentPrivateData", MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/alignment/MathPluginManagement.cpp:374:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(MATH_PLUGINS_DIRECTORY, "/", 2);
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:49:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define net_read read
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:691:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errmsg, "Unable to find device attribute in XML element. Cannot add device.", MAXRBUF);
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:767:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(errmsg, "No message content found.", MAXRBUF);
data/indi-1.8.7+dfsg/libs/indibase/baseclient.cpp:1143:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ret = net_write(sockfd, message, strlen(message));
data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:255:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        qint64 readBytes = client_socket.read(buffer, MAXINDIBUF - 1);
data/indi-1.8.7+dfsg/libs/indibase/baseclientqt.cpp:440:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errmsg, "Unable to find device attribute in XML element. Cannot add device.", MAXRBUF);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:51:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(indidev, "INDIDEV=", MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:55:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(deviceID, getenv("INDIDEV"), MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:438:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pathname, indiskel, MAXRBUF - 1);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:446:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(pathname, filename, MAXRBUF - 1);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:517:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(deviceID, rdev, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:547:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nvp->device, deviceID, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:548:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nvp->name, rname, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:549:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nvp->label, findXMLAttValu(root, "label"), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:550:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nvp->group, findXMLAttValu(root, "group"), MAXINDIGROUP);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:573:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(np[n].name, valuXMLAtt(na), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:579:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(np[n].label, valuXMLAtt(na), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:582:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(np[n].format, valuXMLAtt(na), MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:629:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(svp->device, deviceID, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:630:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(svp->name, rname, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:631:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(svp->label, findXMLAttValu(root, "label"), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:632:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(svp->group, findXMLAttValu(root, "group"), MAXINDIGROUP);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:655:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(sp[n].name, valuXMLAtt(na), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:660:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(sp[n].label, valuXMLAtt(na), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:695:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tvp->device, deviceID, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:696:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tvp->name, rname, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:697:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tvp->label, findXMLAttValu(root, "label"), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:698:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tvp->group, findXMLAttValu(root, "group"), MAXINDIGROUP);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:718:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(tp[n].text, pcdataXMLEle(ep), pcdatalenXMLEle(ep));
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:722:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(tp[n].name, valuXMLAtt(na), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:726:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(tp[n].label, valuXMLAtt(na), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:761:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lvp->device, deviceID, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:762:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lvp->name, rname, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:763:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lvp->label, findXMLAttValu(root, "label"), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:764:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(lvp->group, findXMLAttValu(root, "group"), MAXINDIGROUP);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:782:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(lp[n].name, valuXMLAtt(na), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:787:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(lp[n].label, valuXMLAtt(na), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:822:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bvp->device, deviceID, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:823:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bvp->name, rname, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:824:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bvp->label, findXMLAttValu(root, "label"), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:825:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bvp->group, findXMLAttValu(root, "group"), MAXINDIGROUP);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:844:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(bp[n].name, valuXMLAtt(na), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:848:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(bp[n].label, valuXMLAtt(na), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:852:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(bp[n].label, valuXMLAtt(na), MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1130:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(blobEL->format, valuXMLAtt(fa), MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1134:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    blobEL->format[strlen(blobEL->format) - 2] = '\0';
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1140:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                        strncpy(errmsg, "Unable to allocate memory for data buffer", MAXRBUF);
data/indi-1.8.7+dfsg/libs/indibase/basedevice.cpp:1175:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(deviceID, dev, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp:42:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(defaultPort, "/dev/cu.usbserial", MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/connectionserial.cpp:44:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(defaultPort, "/dev/ttyUSB0", MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:154:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t nbytes = strlen(string);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:158:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
TTYBase::TTY_RESPONSE TTYBase::read(uint8_t *buffer, uint32_t nbytes, uint8_t timeout, uint32_t *nbytes_read)
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:182:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = ::read(m_PortFD, buffer + (*nbytes_read), numBytesToRead);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.cpp:224:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = ::read(m_PortFD, read_char, 1);
data/indi-1.8.7+dfsg/libs/indibase/connectionplugins/ttybase.h:69:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    TTY_RESPONSE read(uint8_t *buffer, uint32_t nbytes, uint8_t timeout, uint32_t *nbytes_read);
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:724:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ConnectionSP.device, getDeviceName(), MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/defaultdevice.cpp:730:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(DriverInfoTP.group, INFO_TAB, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:60:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(tmp);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:104:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy (FitsB.format, ".fits", MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:275:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, m_Device->getText("ACTIVE_DEVICES")->tp[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:279:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, m_Device->getText("FITS_HEADER")->tp[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/dsp/dspinterface.cpp:283:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, m_Device->getText("FITS_HEADER")->tp[1].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:1218:9:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        wcsncpy(string, str, maxlen);
data/indi-1.8.7+dfsg/libs/indibase/hid_libusb.c:1393:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(search_string, locale, sizeof(search_string));
data/indi-1.8.7+dfsg/libs/indibase/hid_mac.c:316:20:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len   = wcslen(s);
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:413:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len           = strlen(str);
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:415:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(cur_dev->path, str, len + 1);
data/indi-1.8.7+dfsg/libs/indibase/hid_win.c:935:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(handle, buf, 65);
data/indi-1.8.7+dfsg/libs/indibase/hidtest.cpp:176:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(500*1000);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:75:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(tmp);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:838:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(EqNP.device, ActiveDeviceT[ACTIVE_TELESCOPE].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:839:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(ActiveDeviceT[ACTIVE_TELESCOPE].text) > 0)
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:856:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(ActiveDeviceT[ACTIVE_ROTATOR].text) > 0)
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:862:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(ActiveDeviceT[ACTIVE_FOCUSER].text) > 0)
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:875:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(ActiveDeviceT[ACTIVE_FILTER].text) > 0)
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1741:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(ActiveDeviceT[ACTIVE_TELESCOPE].text) > 0)
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1781:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dev_name, getDeviceName(), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:1782:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(exp_start, targetChip->getExposureStartTime(), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2790:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(filename, "/tmp/compressedfits.fits", MAXRBUF);
data/indi-1.8.7+dfsg/libs/indibase/indiccd.cpp:2824:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(filename, ".fz", 4);
data/indi-1.8.7+dfsg/libs/indibase/indiccdchip.cpp:30:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(ImageExtention, "fits", MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/indiccdchip.cpp:227:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ImageExtention, ext, MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:1605:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(DomeMotionS[DOME_CW].label, "Open", MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/indidome.cpp:1606:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(DomeMotionS[DOME_CCW].label, "Close", MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/indidustcapinterface.cpp:30:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dustCapName, deviceName, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:80:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(tmp);
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:103:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(Tags[customLevel], loggingLevelName, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:104:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(DebugLevelSInit[customLevel].label, debugLevelName, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/indilogger.cpp:105:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(LoggingLevelSInit[customLevel].label, debugLevelName, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:57:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(tmp);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:104:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(integrationExtention, "raw", MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:219:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(EqNP.device, ActiveDeviceT[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:220:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(LocationNP.device, ActiveDeviceT[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:221:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ScopeParametersNP.device, ActiveDeviceT[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:637:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(integrationExtention, ext, MAXINDIBLOBFMT);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:662:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, getDeviceName(), MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:666:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, ActiveDeviceT[0].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:670:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, FITSHeaderT[FITS_OBSERVER].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:674:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fitsString, FITSHeaderT[FITS_OBJECT].text, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:679:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dev_name, getDeviceName(), 32);
data/indi-1.8.7+dfsg/libs/indibase/indisensorinterface.cpp:680:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(exp_start, getIntegrationStartTime(), 32);
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:510:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(utc, pcdataXMLEle(ep), MAXINDITSTAMP);
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:512:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(offset, pcdataXMLEle(ep), MAXINDITSTAMP);
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1780:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy((SlewRateS + (0))->label, "Guide", MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1781:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy((SlewRateS + (1))->label, "Centering", MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1782:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy((SlewRateS + (2))->label, "Find", MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indibase/inditelescope.cpp:1783:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy((SlewRateS + (3))->label, "Max", MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/indicom.c:207:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(str, str0, sizeof(str) - 1);
data/indi-1.8.7+dfsg/libs/indicom.c:467:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    nbytes = strlen(buf);
data/indi-1.8.7+dfsg/libs/indicom.c:506:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = read(fd, buffer + (*nbytes_read), ((uint32_t)numBytesToRead));
data/indi-1.8.7+dfsg/libs/indicom.c:573:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = read(fd, readBuffer, 255);
data/indi-1.8.7+dfsg/libs/indicom.c:591:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(buf, readBuffer+8, *nbytes_read);
data/indi-1.8.7+dfsg/libs/indicom.c:598:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = read(fd, readBuffer, 255);
data/indi-1.8.7+dfsg/libs/indicom.c:607:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(buf, readBuffer, *nbytes_read);
data/indi-1.8.7+dfsg/libs/indicom.c:620:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bytesRead = read(fd, read_char, 1);
data/indi-1.8.7+dfsg/libs/indicom.c:674:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = read(fd, read_char, 1);
data/indi-1.8.7+dfsg/libs/indicom.c:1004:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(1e6);
data/indi-1.8.7+dfsg/libs/indicom.c:1255:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(err_msg, "No Error", err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1260:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(err_msg, error_string, err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1265:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(err_msg, error_string, err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1270:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(err_msg, error_string, err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1274:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(err_msg, "Timeout error", err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1287:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(err_msg, error_string, err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1291:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(err_msg, "Parameter error", err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1296:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(err_msg, error_string, err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1300:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(err_msg, "Read overflow", err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1304:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(err_msg, "Port is busy", err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1308:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(err_msg, "Error: unrecognized error code", err_msg_len);
data/indi-1.8.7+dfsg/libs/indicom.c:1584:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tp->text = strcpy(realloc(tp->text, strlen(newtext) + 1), newtext);
data/indi-1.8.7+dfsg/libs/lilxml.c:508:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int tl = strlen(tag);
data/indi-1.8.7+dfsg/libs/lilxml.c:626:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = fgetc(fp)) != EOF)
data/indi-1.8.7+dfsg/libs/lilxml.c:762:19:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sl += sprintf(s + sl, "\n");
data/indi-1.8.7+dfsg/libs/lilxml.c:784:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        l += ep->at[i]->name.sl + 4 + strlen(entityXML(ep->at[i]->valu.s));
data/indi-1.8.7+dfsg/libs/lilxml.c:797:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            l += strlen(entityXML(ep->pcdata.s));
data/indi-1.8.7+dfsg/libs/lilxml.c:866:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int nleft = strlen(s) + 1; /* include \0 */
data/indi-1.8.7+dfsg/libs/lilxml.c:1256:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int strl = strlen(str);
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:526:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ret = write(serialfd, LxStartStopCmdT[0].text, strlen(LxStartStopCmdT[0].text));
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:527:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ret = write(serialfd, eol, strlen(eol));
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:554:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ret = write(serialfd, LxStartStopCmdT[1].text, strlen(LxStartStopCmdT[1].text));
data/indi-1.8.7+dfsg/libs/lx/Lx.cpp:556:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ret = write(serialfd, eol, strlen(eol));
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:45:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(serh.FileID, "INDI-RECORDER", 14);
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:46:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(serh.Observer, "Unknown Observer", 40);
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:47:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(serh.Instrume, "Unknown Instrument", 40);
data/indi-1.8.7+dfsg/libs/stream/recorder/serrecorder.cpp:48:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(serh.Telescope, "Unknown Telescope", 40);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:478:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (-1 == read(fd, buffers[0].start, buffers[0].length))
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:897:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errmsg, "buffers. Out of memory\n", ERRMSGSIZ);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1350:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dev_name, devpath, 64);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1408:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(inputs[input_avail.index].name, (const char *)input_avail.name, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1409:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(inputs[input_avail.index].label, (const char *)input_avail.name, MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1481:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(formats[fmt_avail.index].name, (const char *)fmt_avail.description, MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1482:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(formats[fmt_avail.index].label, (const char *)fmt_avail.description, MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1716:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errmsg, "requested crop rectangle is outside of frame", ERRMSGSIZ);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:1796:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(errmsg, "No hardware and software cropping for this format", ERRMSGSIZ);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2218:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].name, (const char *)entityXML((char *)queryctrl.name), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2219:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].label, (const char *)entityXML((char *)queryctrl.name), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2220:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(numbers[nnum].format, "%0.f", MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2372:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].name, (const char *)entityXML((char *)queryctrl.name), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2373:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].label, (const char *)entityXML((char *)queryctrl.name), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2374:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(numbers[nnum].format, "%0.f", MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2539:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].name, ((char *)queryctrl.name), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2540:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].label, ((char *)queryctrl.name), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2541:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(numbers[nnum].format, "%0.f", MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2590:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].name, ((char *)queryctrl.name), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2591:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(numbers[nnum].label, ((char *)queryctrl.name), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2592:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(numbers[nnum].format, "%0.f", MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2811:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(numbers[nnum].name, (const char *)entityXML((char *)queryctrl.name), MAXINDINAME);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2812:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(numbers[nnum].label, (const char *)entityXML((char *)queryctrl.name), MAXINDILABEL);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2813:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(numbers[nnum].format, "%0.f", MAXINDIFORMAT);
data/indi-1.8.7+dfsg/libs/webcam/v4l2_base.cpp:2980:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(deviceName, name, MAXINDIDEVICE);
data/indi-1.8.7+dfsg/obsolete/celestronprotocol.c:861:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(fd, ptr, nleft);
data/indi-1.8.7+dfsg/obsolete/focusmaster.cpp:276:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration * 1000);
data/indi-1.8.7+dfsg/obsolete/ieq45.cpp:611:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(100000);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:167:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:299:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(mell_prefix, "19", 3);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:301:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(mell_prefix, "20", 3);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8406.c:1267:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10000);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:174:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:188:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:321:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(mell_prefix, "19", 3);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:323:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(mell_prefix, "20", 3);
data/indi-1.8.7+dfsg/obsolete/ieq45driver8407.c:1292:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10000);
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:86:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50000);
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:124:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                    usleep(50000);
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:194:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(century, "19", 3);
data/indi-1.8.7+dfsg/obsolete/magellandriver.c:196:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(century, "20", 3);
data/indi-1.8.7+dfsg/obsolete/stv.c:587:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                    usleep(100000);
data/indi-1.8.7+dfsg/obsolete/stv.c:1183:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(100000);
data/indi-1.8.7+dfsg/obsolete/stv.c:1201:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(50000);
data/indi-1.8.7+dfsg/obsolete/stv.c:1256:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(100000);
data/indi-1.8.7+dfsg/obsolete/stv.c:1793:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/indi-1.8.7+dfsg/obsolete/stv.c:1827:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(500000); /* make sure that everything is discarded */
data/indi-1.8.7+dfsg/obsolete/stv.c:1841:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500000); /* STV need a little rest */
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:213:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(50000);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:449:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(50000);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:764:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(50000);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:845:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((trb = read(fd, (char *)(buf + pos), 1)) == -1)
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:915:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if ((trb = read(fd, (char *)(buf + pos), (6 + length + 2) - pos)) == -1)
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1239:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1247:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1257:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1259:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1281:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1297:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((times == NULL) || ((res = strlen(times)) == 0))
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1312:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1316:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1318:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1323:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1329:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1333:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1339:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1346:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1350:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1357:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay); /* sleep a 1/100 second */
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1367:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1371:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1377:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1383:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1387:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1393:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1399:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1407:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1431:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1435:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1439:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1451:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1453:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1459:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1471:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(delay);
data/indi-1.8.7+dfsg/obsolete/stvdriver.c:1476:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(delay);
data/indi-1.8.7+dfsg/obsolete/wunderground.cpp:203:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(srcBuffer, readBuffer.c_str(), readBuffer.size());
data/indi-1.8.7+dfsg/test/core/test_base64.cpp:70:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = from64tobits_fast(p_outbuf, convert, strlen(convert));
data/indi-1.8.7+dfsg/tools/compiler.c:141:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (void)sprintf(err_msg + strlen(err_msg), " near `%.10s'", lcexpr);
data/indi-1.8.7+dfsg/tools/compiler.c:447:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int l = strlen(symtab[i].st_name);
data/indi-1.8.7+dfsg/tools/evalINDI.c:560:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = fgetc(fp);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:272:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    srchs[nsrchs].d  = strcpy(malloc(strlen(dev) + 1), dev);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:273:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    srchs[nsrchs].p  = strcpy(malloc(strlen(prop) + 1), prop);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:274:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    srchs[nsrchs].e  = strcpy(malloc(strlen(ele) + 1), ele);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:420:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = fgetc(svrrfp);
data/indi-1.8.7+dfsg/tools/getINDIproperty.c:565:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isz    = !strncmp(&format[strlen(format) - 2], ".z", 2);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:303:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sets[nsets].d   = strcpy(malloc(strlen(d) + 1), d);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:304:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sets[nsets].p   = strcpy(malloc(strlen(p) + 1), p);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:422:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = fgetc(fp);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:575:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->ev[sp->nev].e = strcpy(malloc(strlen(e0) + 1), e0);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:576:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->ev[sp->nev].v = strcpy(malloc(strlen(v0) + 1), v0);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:602:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            s    = ev + strlen(ev);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:615:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->ev[sp->nev].e = strcpy(malloc(strlen(ev) + 1), ev);
data/indi-1.8.7+dfsg/tools/setINDIproperty.c:616:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->ev[sp->nev].v = strcpy(malloc(strlen(e) + 1), e);

ANALYSIS SUMMARY:

Hits = 4482
Lines analyzed = 238501 in approximately 6.31 seconds (37798 lines/second)
Physical Source Lines of Code (SLOC) = 165709
Hits@level = [0] 2088 [1] 1208 [2] 2996 [3]  49 [4] 228 [5]   1
Hits@level+ = [0+] 6570 [1+] 4482 [2+] 3274 [3+] 278 [4+] 229 [5+]   1
Hits/KSLOC@level+ = [0+] 39.6478 [1+] 27.0474 [2+] 19.7575 [3+] 1.67764 [4+] 1.38194 [5+] 0.00603468
Dot directories skipped = 3 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.