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/plplot-5.15.0+dfsg/fonts/font01.c
Examining data/plplot-5.15.0+dfsg/fonts/font05.c
Examining data/plplot-5.15.0+dfsg/fonts/font09.c
Examining data/plplot-5.15.0+dfsg/fonts/font06.c
Examining data/plplot-5.15.0+dfsg/fonts/font07.c
Examining data/plplot-5.15.0+dfsg/fonts/stndfont.c
Examining data/plplot-5.15.0+dfsg/fonts/xtndfont.c
Examining data/plplot-5.15.0+dfsg/fonts/font08.c
Examining data/plplot-5.15.0+dfsg/fonts/font04.c
Examining data/plplot-5.15.0+dfsg/fonts/font03.c
Examining data/plplot-5.15.0+dfsg/fonts/font11.c
Examining data/plplot-5.15.0+dfsg/fonts/font10.c
Examining data/plplot-5.15.0+dfsg/fonts/plhershey-unicode-gen.c
Examining data/plplot-5.15.0+dfsg/fonts/font02.c
Examining data/plplot-5.15.0+dfsg/include/dirent_msvc.h
Examining data/plplot-5.15.0+dfsg/include/plfci-type1.h
Examining data/plplot-5.15.0+dfsg/include/plfci-truetype.h
Examining data/plplot-5.15.0+dfsg/include/ltdl_win32.h
Examining data/plplot-5.15.0+dfsg/include/plunicode-type1.h
Examining data/plplot-5.15.0+dfsg/include/plxwd.h
Examining data/plplot-5.15.0+dfsg/include/plplot.h
Examining data/plplot-5.15.0+dfsg/include/pdf.h
Examining data/plplot-5.15.0+dfsg/include/disptab.h
Examining data/plplot-5.15.0+dfsg/include/plfreetype.h
Examining data/plplot-5.15.0+dfsg/include/ps.h
Examining data/plplot-5.15.0+dfsg/include/metadefs.h
Examining data/plplot-5.15.0+dfsg/include/drivers.h
Examining data/plplot-5.15.0+dfsg/include/plcore.h
Examining data/plplot-5.15.0+dfsg/include/plevent.h
Examining data/plplot-5.15.0+dfsg/include/plstrm.h
Examining data/plplot-5.15.0+dfsg/include/pldebug.h
Examining data/plplot-5.15.0+dfsg/include/plplotP.h
Examining data/plplot-5.15.0+dfsg/include/qt.h
Examining data/plplot-5.15.0+dfsg/scripts/compare.c
Examining data/plplot-5.15.0+dfsg/bindings/c++/plstream.cc
Examining data/plplot-5.15.0+dfsg/bindings/c++/plstream.h
Examining data/plplot-5.15.0+dfsg/bindings/ocaml/plplot_impl.c
Examining data/plplot-5.15.0+dfsg/bindings/ocaml/plcairo/plcairo_impl.c
Examining data/plplot-5.15.0+dfsg/bindings/qt_gui/plqt.cpp
Examining data/plplot-5.15.0+dfsg/bindings/qt_gui/smoke/plplotqt_smoke.h
Examining data/plplot-5.15.0+dfsg/bindings/tk/pltk.h
Examining data/plplot-5.15.0+dfsg/bindings/tk/Pltk_Init.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/tkMain.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/tcpip.h
Examining data/plplot-5.15.0+dfsg/bindings/tk/plframe.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/plserver.h
Examining data/plplot-5.15.0+dfsg/bindings/tk/plserver.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/tkshell.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/plr.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/stupidtk.c
Examining data/plplot-5.15.0+dfsg/bindings/tk/pltkd.h
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotwindow.cpp
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplot_nanosec.cpp
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotstream.cpp
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotwindow.h
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotwindow.h
Examining data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotstream.h
Examining data/plplot-5.15.0+dfsg/bindings/tk-x-plat/Plplotter_Init.c
Examining data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c
Examining data/plplot-5.15.0+dfsg/bindings/tk-x-plat/pltkwd.h
Examining data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c
Examining data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c
Examining data/plplot-5.15.0+dfsg/bindings/tcl/plplot_parameters.h
Examining data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c
Examining data/plplot-5.15.0+dfsg/bindings/tcl/matrixInit.c
Examining data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.h
Examining data/plplot-5.15.0+dfsg/bindings/tcl/pltcl.h
Examining data/plplot-5.15.0+dfsg/bindings/tcl/pltcl.c
Examining data/plplot-5.15.0+dfsg/lib/csa/csa.c
Examining data/plplot-5.15.0+dfsg/lib/csa/version.h
Examining data/plplot-5.15.0+dfsg/lib/csa/nan.h
Examining data/plplot-5.15.0+dfsg/lib/csa/csa.h
Examining data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_test.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/dspline.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.h
Examining data/plplot-5.15.0+dfsg/lib/qsastime/dsplint.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.h
Examining data/plplot-5.15.0+dfsg/lib/qsastime/bhunt_search_test.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/dsplint.h
Examining data/plplot-5.15.0+dfsg/lib/qsastime/deltaT_test.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/dspline.h
Examining data/plplot-5.15.0+dfsg/lib/qsastime/tai-utc-gen.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_testlib.c
Examining data/plplot-5.15.0+dfsg/lib/qsastime/deltaT-gen.c
Examining data/plplot-5.15.0+dfsg/lib/nn/istack.h
Examining data/plplot-5.15.0+dfsg/lib/nn/nncommon.c
Examining data/plplot-5.15.0+dfsg/lib/nn/lpi.c
Examining data/plplot-5.15.0+dfsg/lib/nn/delaunay.c
Examining data/plplot-5.15.0+dfsg/lib/nn/version.h
Examining data/plplot-5.15.0+dfsg/lib/nn/nan.h
Examining data/plplot-5.15.0+dfsg/lib/nn/istack.c
Examining data/plplot-5.15.0+dfsg/lib/nn/hash.c
Examining data/plplot-5.15.0+dfsg/lib/nn/nn.h
Examining data/plplot-5.15.0+dfsg/lib/nn/nnai.c
Examining data/plplot-5.15.0+dfsg/lib/nn/hash.h
Examining data/plplot-5.15.0+dfsg/lib/nn/nnpi.c
Examining data/plplot-5.15.0+dfsg/lib/nn/delaunay.h
Examining data/plplot-5.15.0+dfsg/lib/nistcd/color16.c
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cdexpert.c
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cd.h
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cdmulti.c
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cdtest.c
Examining data/plplot-5.15.0+dfsg/lib/nistcd/defines.h
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cd.c
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cdtext.c
Examining data/plplot-5.15.0+dfsg/lib/nistcd/cdsimple.c
Examining data/plplot-5.15.0+dfsg/cmake/modules/TestForNamespace.cxx
Examining data/plplot-5.15.0+dfsg/cmake/modules/TestSignalType.c
Examining data/plplot-5.15.0+dfsg/cmake/modules/TestForHighBitCharacters.c
Examining data/plplot-5.15.0+dfsg/cmake/modules/TestForStdintCXX.cxx
Examining data/plplot-5.15.0+dfsg/cmake/modules/TestNaNAware.c
Examining data/plplot-5.15.0+dfsg/cmake/modules/TestBrokenIsnanCXX.cxx
Examining data/plplot-5.15.0+dfsg/cmake/test_linux_ipc/pshm_write.c
Examining data/plplot-5.15.0+dfsg/cmake/test_linux_ipc/pshm_read.c
Examining data/plplot-5.15.0+dfsg/cmake/test_linux_ipc/pshm_unlink.c
Examining data/plplot-5.15.0+dfsg/cmake/test_linux_ipc/pshm.h
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/include/test_q_object.h
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_same_include/test_q_object.h
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_same_include/helloworld.cpp
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_same_noinclude/helloworld.cpp
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_same_noinclude/helloworld.h
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_same_include_alt/test_q_object.h
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_same_include_alt/helloworld.cpp
Examining data/plplot-5.15.0+dfsg/cmake/test_automoc/src_noinclude/helloworld.cpp
Examining data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/mem.h
Examining data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/unix.c
Examining data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h
Examining data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_app.cpp
Examining data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp
Examining data/plplot-5.15.0+dfsg/drivers/test-drv-info.c
Examining data/plplot-5.15.0+dfsg/drivers/psttf.cc
Examining data/plplot-5.15.0+dfsg/drivers/ps.c
Examining data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h
Examining data/plplot-5.15.0+dfsg/drivers/wxwidgets.h
Examining data/plplot-5.15.0+dfsg/drivers/tkwin.c
Examining data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_gc.cpp
Examining data/plplot-5.15.0+dfsg/drivers/xfig.c
Examining data/plplot-5.15.0+dfsg/drivers/svg.c
Examining data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_agg.cpp
Examining data/plplot-5.15.0+dfsg/drivers/cairo.c
Examining data/plplot-5.15.0+dfsg/drivers/pdf.c
Examining data/plplot-5.15.0+dfsg/drivers/ntk.c
Examining data/plplot-5.15.0+dfsg/drivers/wingcc.c
Examining data/plplot-5.15.0+dfsg/drivers/gd.c
Examining data/plplot-5.15.0+dfsg/drivers/plmeta.c
Examining data/plplot-5.15.0+dfsg/drivers/mem.c
Examining data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp
Examining data/plplot-5.15.0+dfsg/drivers/wingdi.c
Examining data/plplot-5.15.0+dfsg/drivers/null.c
Examining data/plplot-5.15.0+dfsg/drivers/wxwidgets.cpp
Examining data/plplot-5.15.0+dfsg/drivers/tk.c
Examining data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.h
Examining data/plplot-5.15.0+dfsg/drivers/xwin.c
Examining data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_dc.cpp
Examining data/plplot-5.15.0+dfsg/drivers/pstex.c
Examining data/plplot-5.15.0+dfsg/drivers/aqt.c
Examining data/plplot-5.15.0+dfsg/drivers/cgm.c
Examining data/plplot-5.15.0+dfsg/drivers/qt.cpp
Examining data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp
Examining data/plplot-5.15.0+dfsg/src/plvpor.c
Examining data/plplot-5.15.0+dfsg/src/mt19937ar.c
Examining data/plplot-5.15.0+dfsg/src/plgradient.c
Examining data/plplot-5.15.0+dfsg/src/plimage.c
Examining data/plplot-5.15.0+dfsg/src/plstdio.c
Examining data/plplot-5.15.0+dfsg/src/plf2ops.c
Examining data/plplot-5.15.0+dfsg/src/plbox.c
Examining data/plplot-5.15.0+dfsg/src/plcont.c
Examining data/plplot-5.15.0+dfsg/src/plsdef.c
Examining data/plplot-5.15.0+dfsg/src/plsym.c
Examining data/plplot-5.15.0+dfsg/src/plshade.c
Examining data/plplot-5.15.0+dfsg/src/plot3d.c
Examining data/plplot-5.15.0+dfsg/src/plctrl.c
Examining data/plplot-5.15.0+dfsg/src/plvect.c
Examining data/plplot-5.15.0+dfsg/src/pldeprecated.c
Examining data/plplot-5.15.0+dfsg/src/mt19937ar.h
Examining data/plplot-5.15.0+dfsg/src/plaffine.c
Examining data/plplot-5.15.0+dfsg/src/plmap.c
Examining data/plplot-5.15.0+dfsg/src/plfill.c
Examining data/plplot-5.15.0+dfsg/src/plgridd.c
Examining data/plplot-5.15.0+dfsg/src/plarc.c
Examining data/plplot-5.15.0+dfsg/src/plhist.c
Examining data/plplot-5.15.0+dfsg/src/ltdl_win32.c
Examining data/plplot-5.15.0+dfsg/src/plargs.c
Examining data/plplot-5.15.0+dfsg/src/pldtik.c
Examining data/plplot-5.15.0+dfsg/src/plmetafile.c
Examining data/plplot-5.15.0+dfsg/src/plline.c
Examining data/plplot-5.15.0+dfsg/src/plcvt.c
Examining data/plplot-5.15.0+dfsg/src/plbuf.c
Examining data/plplot-5.15.0+dfsg/src/pllegend.c
Examining data/plplot-5.15.0+dfsg/src/plpage.c
Examining data/plplot-5.15.0+dfsg/src/plfreetype.c
Examining data/plplot-5.15.0+dfsg/src/pltime.c
Examining data/plplot-5.15.0+dfsg/src/plwind.c
Examining data/plplot-5.15.0+dfsg/src/plmem.c
Examining data/plplot-5.15.0+dfsg/src/pdfutils.c
Examining data/plplot-5.15.0+dfsg/src/plstripc.c
Examining data/plplot-5.15.0+dfsg/src/pltick.c
Examining data/plplot-5.15.0+dfsg/src/plcore.c
Examining data/plplot-5.15.0+dfsg/utils/parity_bit_check.c
Examining data/plplot-5.15.0+dfsg/utils/plrender.c
Examining data/plplot-5.15.0+dfsg/utils/wxplviewer.cpp
Examining data/plplot-5.15.0+dfsg/utils/wxplframe.cpp
Examining data/plplot-5.15.0+dfsg/utils/tektest.c
Examining data/plplot-5.15.0+dfsg/utils/xform.c
Examining data/plplot-5.15.0+dfsg/utils/pltek.c
Examining data/plplot-5.15.0+dfsg/utils/wxplframe.h
Examining data/plplot-5.15.0+dfsg/examples/c++/x07.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/plc++demos.h
Examining data/plplot-5.15.0+dfsg/examples/c++/x03.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/deprecated_wxPLplotDemo.cpp
Examining data/plplot-5.15.0+dfsg/examples/c++/x04.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x05.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x12.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x13.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x11.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x26.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x22.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x31.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x09.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x23.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x06.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x01cc.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x27.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x17.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/wxPLplotDemo.cpp
Examining data/plplot-5.15.0+dfsg/examples/c++/x28.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x16.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x24.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x21.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x00.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x08.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x10.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x29.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x30.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x25.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x19.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x01.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x02.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x20.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.h
Examining data/plplot-5.15.0+dfsg/examples/c++/x14.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x18.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.cpp
Examining data/plplot-5.15.0+dfsg/examples/c++/x33.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/x15.cc
Examining data/plplot-5.15.0+dfsg/examples/c++/qt_example.cpp
Examining data/plplot-5.15.0+dfsg/examples/tk/xtk01.c
Examining data/plplot-5.15.0+dfsg/examples/tk/xtk02.c
Examining data/plplot-5.15.0+dfsg/examples/tk/xtk04.c
Examining data/plplot-5.15.0+dfsg/examples/c/x10c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x33c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x31c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x30c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x26c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x05c.c
Examining data/plplot-5.15.0+dfsg/examples/c/test_plbuf.c
Examining data/plplot-5.15.0+dfsg/examples/c/x24c.c
Examining data/plplot-5.15.0+dfsg/examples/c/extXdrawable_demo.c
Examining data/plplot-5.15.0+dfsg/examples/c/x13c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x04c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x32c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x19c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x28c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x17c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x20c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x07c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x15c.c
Examining data/plplot-5.15.0+dfsg/examples/c/plcdemos.h
Examining data/plplot-5.15.0+dfsg/examples/c/x29c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x12c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x06c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x11c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x27c.c
Examining data/plplot-5.15.0+dfsg/examples/c/test_plend.c
Examining data/plplot-5.15.0+dfsg/examples/c/tutor.c
Examining data/plplot-5.15.0+dfsg/examples/c/x09c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x08c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x14c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x21c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x25c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x34c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x02c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x18c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x16c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x00c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x22c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x01c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x03c.c
Examining data/plplot-5.15.0+dfsg/examples/c/x23c.c
Examining data/plplot-5.15.0+dfsg/examples/c/ext-cairo-test.c

FINAL RESULTS:

data/plplot-5.15.0+dfsg/src/plctrl.c:2386:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    while ( ( n = readlink( p, buf, PLPLOT_MAX_PATH ) ) > 0 )
data/plplot-5.15.0+dfsg/bindings/ocaml/plplot_impl.c:33: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/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3742:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( cmd, "%s %d %cx %cy", transform_name, n, (char) 1, (char) 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4467:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf( tcl_xform_code, tcl_xform_template, tcl_xform_procname );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c:78:25:  [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).
extern char *           strcpy _ANSI_ARGS_( ( char *dst, CONST char *src ) );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c:234:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( usage, "\nUsage:\n        %s [filename] [options]\n", argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:213: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( matPtr->name, argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:330: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( concatenated_argv, argv[i] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:484: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( new->cmd, cmd );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1098:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( tmp, "Array index %d out of bounds: original string = \"%s\"; transformed = %d; min = 0; max = %d\n",
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1107:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf( tmp, "Array slice for index %d with original string = \"%s\" could not be parsed\n",
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1129:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf( tmp, "Array slice for index %d with original string = \"%s\" "
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1271: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( concatenated_argv, argv[i] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1387: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( name, matPtr->name );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2701:14:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if ( execl( plPlotterPtr->plpr_cmd, plPlotterPtr->plpr_cmd, sfnam,
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2061: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( tmpstring, argv[2] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2096: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( tmpstring, argv[2] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2890:14:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if ( execl( plFramePtr->plpr_cmd, plFramePtr->plpr_cmd, sfnam,
data/plplot-5.15.0+dfsg/bindings/tk/plr.c:53:19:  [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.
    if ( code ) { fprintf( stderr,                                                               \
data/plplot-5.15.0+dfsg/bindings/tk/plr.c:328:19:  [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.
    if ( code ) { fprintf( stderr,                                \
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:121:17:  [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.
  #error broken system where neither EWOULDBLOCK nor WSAEWOULDBLOCK macros are #defined
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp:64: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( drvopt, buffer );
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/unix.c:342:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stdout, qh_prompt2, qh_version);
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/unix.c:346:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stdout, qh_prompta, qh_version, qh_DEFAULTbox,
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/unix.c:351:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stdout, qh_prompt3, qh_version);
data/plplot-5.15.0+dfsg/drivers/cairo.c:2306: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( gin->string, ksname );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp:75: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, args );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp:96: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, args );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_agg.cpp:45:5:  [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.
int access( char *filename, int flag )
data/plplot-5.15.0+dfsg/drivers/ntk.c:118:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( scmd, "send %s {%s}", rem_interp, gcmd ); // mess! make it more efficient
data/plplot-5.15.0+dfsg/drivers/ntk.c:241: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( rem_interp, pls->server_name );
data/plplot-5.15.0+dfsg/drivers/ntk.c:269:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( cmd, "send %s \"set client [tk appname]; wm deiconify .\"", rem_interp );
data/plplot-5.15.0+dfsg/drivers/ntk.c:277:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( cmd, "set scroll_use 0; set plf %s; set vs $plf.f2.vscroll; set hs $plf.f2.hscroll; set xmax %d; set ymax %d; set ocanvas .;", base, xmax, ymax );
data/plplot-5.15.0+dfsg/drivers/ntk.c:364:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    j += sprintf( &cmd[j], " -fill %s", curcolor );
data/plplot-5.15.0+dfsg/drivers/ntk.c:366:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        j += sprintf( &cmd[j], " %s", dash );
data/plplot-5.15.0+dfsg/drivers/ntk.c:550:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            j += sprintf( &cmd[j], " -fill %s", curcolor );
data/plplot-5.15.0+dfsg/drivers/ntk.c:565:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            j += sprintf( &cmd[j], " -fill %s", curcolor );
data/plplot-5.15.0+dfsg/drivers/pstex.c:375: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( tp, mathgreek[n] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1293:18:  [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.
            if ( execvp( "rsh", (char * const *) argv ) )
data/plplot-5.15.0+dfsg/drivers/tk.c:1324:18:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            if ( execv( plserver_exec, (char * const *) argv ) )
data/plplot-5.15.0+dfsg/drivers/tk.c:1389:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( tmp, ".%s", pls->plwindow );
data/plplot-5.15.0+dfsg/drivers/tk.c:2288: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( dev->cmdbuf, cmd );
data/plplot-5.15.0+dfsg/drivers/wingcc.c:179:57:  [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 Debug( a )           do { if ( pls->debug ) { fprintf( stderr, ( a ) ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:180:57:  [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 Debug2( a, b )       do { if ( pls->debug ) { fprintf( stderr, ( a ), ( b ) ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:181:57:  [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 Debug3( a, b, c )    do { if ( pls->debug ) { fprintf( stderr, ( a ), ( b ), ( c ) ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:183:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  #define Debug     if ( pls->debug ) printf
data/plplot-5.15.0+dfsg/drivers/wingcc.c:184:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  #define Debug2    if ( pls->debug ) printf
data/plplot-5.15.0+dfsg/drivers/wingcc.c:185:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  #define Debug3    if ( pls->debug ) printf
data/plplot-5.15.0+dfsg/drivers/wingcc.c:187:57:  [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 Verbose( ... )     do { if ( pls->verbose ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:188:55:  [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 Debug( ... )       do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:189:55:  [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 Debug2( ... )      do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:190:55:  [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 Debug3( ... )      do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:566:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( pls->program );
data/plplot-5.15.0+dfsg/drivers/wxwidgets.cpp:62: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, args );
data/plplot-5.15.0+dfsg/drivers/wxwidgets.cpp:83: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, args );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:410: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( m_name, name );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:819: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( m_mfo, mfo );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1720: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( mutexName, mapName );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1773:9:  [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( command.mb_str() );
data/plplot-5.15.0+dfsg/examples/c++/plc++demos.h:35:13:  [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/plplot-5.15.0+dfsg/examples/c++/plc++demos.h:35:25:  [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/plplot-5.15.0+dfsg/examples/c++/plc++demos.h:43:11:  [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    plsnprintf
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:290:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( cmdString, "#%s", Greek[slice] );
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:372:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:382:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:391:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:402:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:415:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:240:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( label, "%s, %s",
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:272:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( title, "%s - %s",
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:604:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[0], "%s", "None" );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:608:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[1], "%s", "Box" );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:616:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[2], "%s", "Line" );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:623:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[3], "%s", "Symbol" );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:631:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[4], "%s", "L & S" );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:657:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s%s", "Symbol ", special_symbols[i] );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:682:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Symbol Number", i + 2 );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:707:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Box Color", i + 1 );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:735:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Box Pattern", i );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:760:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Box Line Width", i + 1 );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:785:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Line Color", i + 1 );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:812:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Line Style", i + 1 );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:836:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Line Width", i + 1 );
data/plplot-5.15.0+dfsg/examples/c/plcdemos.h:46:13:  [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/plplot-5.15.0+dfsg/examples/c/plcdemos.h:46:25:  [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/plplot-5.15.0+dfsg/examples/c/plcdemos.h:54:11:  [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    plsnprintf
data/plplot-5.15.0+dfsg/examples/c/tutor.c:89:5:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    scanf( "%s", filename );
data/plplot-5.15.0+dfsg/examples/c/tutor.c:249: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( string, legend[i] );
data/plplot-5.15.0+dfsg/examples/c/x20c.c:325:10:  [4] (buffer) fscanf:
  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 ( fscanf( fp, "%s\n", ver ) != 1 ) // version
data/plplot-5.15.0+dfsg/examples/c/x23c.c:267:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( cmdString, "#%s", Greek[slice] );
data/plplot-5.15.0+dfsg/examples/c/x23c.c:346:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c/x23c.c:356:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c/x23c.c:365:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c/x23c.c:376:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c/x23c.c:389:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( string,
data/plplot-5.15.0+dfsg/examples/c/x33c.c:236:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( label, "%s, %s",
data/plplot-5.15.0+dfsg/examples/c/x33c.c:268:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( title, "%s - %s",
data/plplot-5.15.0+dfsg/examples/c/x33c.c:599:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[0], "%s", "None" );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:603:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[1], "%s", "Box" );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:611:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[2], "%s", "Line" );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:618:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[3], "%s", "Symbol" );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:626:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( text[4], "%s", "L & S" );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:652:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s%s", "Symbol ", special_symbols[i] );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:677:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Symbol Number", i + 2 );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:702:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Box Color", i + 1 );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:730:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Box Pattern", i );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:755:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Box Line Width", i + 1 );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:780:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Line Color", i + 1 );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:807:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Line Style", i + 1 );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:831:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( text[i], "%s %d", "Line Width", i + 1 );
data/plplot-5.15.0+dfsg/include/pldebug.h:80:9:  [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, args );
data/plplot-5.15.0+dfsg/include/plplotP.h:227:13:  [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/plplot-5.15.0+dfsg/include/plplotP.h:227:25:  [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/plplot-5.15.0+dfsg/include/plplotP.h:235:11:  [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    plsnprintf
data/plplot-5.15.0+dfsg/lib/csa/csa.c:146: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, format, args );
data/plplot-5.15.0+dfsg/lib/csa/csa.c:2101: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( prmstr, argv[i] );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3185:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( (char *) im->fontlist, "%s%s%s", (char *) oldfonts, ",", fontname );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3189:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( (char *) im->fontlist, "%s", fontname );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3286: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( (char *) im->fontlist, tmps );
data/plplot-5.15.0+dfsg/lib/nn/nncommon.c:62: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, format, args );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:507:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( DateTime, "%s %s %02d %02d:%02d:%02d %04d", dayText, monthText, day, hour, min, second, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:509:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( DateTime, "%s %s %02d %02d:%02d:%02d -%04d", dayText, monthText, day, hour, min, second, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:741:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    sprintf( DateTime, dynamic_format, sec );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:823:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( DateTime, " %01d-%s-%04d", day, monthText, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:825:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( DateTime, "%02d-%s-%04d", day, monthText, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:830:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( DateTime, " %01d-%s-(-)%04d", day, monthText, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:832:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( DateTime, "%02d-%s-(-)%04d", day, monthText, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:893:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( DateTime, "%s %s %02d, %04d", dayText, monthText, day, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:895:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( DateTime, "%s %s %02d, -%04d", dayText, monthText, day, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:966:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( DateTime, "%s %s %02d %02d:%02d:%02d UTC %04d", dayText, monthText, day, hour, min, second, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:968:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( DateTime, "%s %s %02d %02d:%02d:%02d UTC -%04d", dayText, monthText, day, hour, min, second, year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:988:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf( DateTime, dynamic_format, sec_fraction );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_test.c:110: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( &( copy[0] ), getISOString( &MJD1, 0, 0 ) ); // copy because getISOString() returns a pointer to a static string
data/plplot-5.15.0+dfsg/src/plargs.c:1147: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( copy, opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:1386:26:  [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.
        pager = (FILE *) popen( "$PAGER", "w" );
data/plplot-5.15.0+dfsg/src/plargs.c:1388:26:  [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.
        pager = (FILE *) popen( "more", "w" );
data/plplot-5.15.0+dfsg/src/plargs.c:2597: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( plsc->plwindow, opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2696: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( plsc->geometry, opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2783: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( plsc->tk_file, opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2986: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( plsc->mf_outfile, opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:3011: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( plsc->mf_infile, opt_arg );
data/plplot-5.15.0+dfsg/src/plbox.c:2519: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( string, (size_t) len, form, value );
data/plplot-5.15.0+dfsg/src/plbox.c:2551: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( temp, TEMP_LEN, form, value );
data/plplot-5.15.0+dfsg/src/plcont.c:365: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( string, (size_t) len, form, mant );
data/plplot-5.15.0+dfsg/src/plcont.c:382: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( string, (size_t) len, form, value );
data/plplot-5.15.0+dfsg/src/plcore.c:2355: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( plsc->plwindow, plsc->program );
data/plplot-5.15.0+dfsg/src/plcore.c:3363: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( plsc->DevName, dispatch_table[dev - 1]->pl_DevName );
data/plplot-5.15.0+dfsg/src/plcore.c:3657: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( p_dev, plsc->DevName );
data/plplot-5.15.0+dfsg/src/plcore.c:3969: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( p_ver, PLPLOT_VERSION );
data/plplot-5.15.0+dfsg/src/plcore.c:4308: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( names, pls[i]->DevName );
data/plplot-5.15.0+dfsg/src/plcore.c:4312: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( names, pls[i]->DevName );
data/plplot-5.15.0+dfsg/src/plctrl.c:1906:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf( plsc->errmsg, "%s, aborting operation\n", errormsg );
data/plplot-5.15.0+dfsg/src/plctrl.c:2172:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PLPLOT_BIN_ENV "=\"%s\"\n", dn ); // what IS set?
data/plplot-5.15.0+dfsg/src/plctrl.c:2190:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PLPLOT_HOME_ENV "=\"%s\"\n", dn ); // what IS set?
data/plplot-5.15.0+dfsg/src/plctrl.c:2287:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PLPLOT_LIB_ENV "=\"%s\"\n", dn ); // what IS set?
data/plplot-5.15.0+dfsg/src/plctrl.c:2309:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PLPLOT_HOME_ENV "=\"%s\"\n", dn ); // what IS set?
data/plplot-5.15.0+dfsg/src/plctrl.c:2423:22:  [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.
            return ( access( p, X_OK ) );
data/plplot-5.15.0+dfsg/src/plctrl.c:2468: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( *filespec, dir );
data/plplot-5.15.0+dfsg/src/plctrl.c:2473: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( *filespec, subdir );
data/plplot-5.15.0+dfsg/src/plctrl.c:2478: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( *filespec, filename );
data/plplot-5.15.0+dfsg/src/plctrl.c:2677: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( num, BUFFER_SIZE, tmp, pls->member );
data/plplot-5.15.0+dfsg/src/plctrl.c:2989: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( dest, src );
data/plplot-5.15.0+dfsg/src/plctrl.c:3019:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    ret = vsprintf( buffer, format, args );
data/plplot-5.15.0+dfsg/src/plctrl.c:3051:11:  [4] (buffer) vsscanf:
  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.
    ret = vsscanf( buffer, format, args );
data/plplot-5.15.0+dfsg/src/plfreetype.c:70:5:  [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.
int access( char *filename, int flag )
data/plplot-5.15.0+dfsg/src/plfreetype.c:122:64:  [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 Debug6( a, b, c, d, e, f )    do { if ( pls->debug ) { fprintf( stderr, a, b, c, d, e, f ); } } while ( 0 )
data/plplot-5.15.0+dfsg/src/plfreetype.c:695:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if ( access( "c:\\windows\\fonts\\arial.ttf", F_OK ) == 0 )
data/plplot-5.15.0+dfsg/src/plfreetype.c:699:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        else if ( access( "c:\\windows\\system\\arial.ttf", F_OK ) == 0 )
data/plplot-5.15.0+dfsg/src/plfreetype.c:710:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if ( access( WINDIR_PATH, F_OK ) == 0 )
data/plplot-5.15.0+dfsg/src/plfreetype.c:716: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( font_dir, WINDIR_PATH );
data/plplot-5.15.0+dfsg/src/pllegend.c:1076: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( local_axis_opts, axis_opts );
data/plplot-5.15.0+dfsg/src/plmap.c:317: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( warning, filename );
data/plplot-5.15.0+dfsg/src/plmap.c:838:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PLPLOT_LIB_ENV "=\"%s\"\n", dn ); // what IS set?
data/plplot-5.15.0+dfsg/src/plmap.c:860:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PLPLOT_HOME_ENV "=\"%s\"\n", dn ); // what IS set?
data/plplot-5.15.0+dfsg/src/plstdio.c:42:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
#define mktemp    _mktemp
data/plplot-5.15.0+dfsg/src/plstdio.c:265: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( template, tmpdir );
data/plplot-5.15.0+dfsg/src/plstdio.c:271: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( template, tmpname );
data/plplot-5.15.0+dfsg/src/plstdio.c:294:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        mktemp( template );
data/plplot-5.15.0+dfsg/src/plstdio.c:373: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( dirname, tmpdir );
data/plplot-5.15.0+dfsg/src/plstdio.c:379: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( dirname, tmpname );
data/plplot-5.15.0+dfsg/src/plstdio.c:393: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( template, dirname );
data/plplot-5.15.0+dfsg/src/plstdio.c:399: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( template, fifoname );
data/plplot-5.15.0+dfsg/src/pltime.c:72: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( plsc->timefmt, fmt );
data/plplot-5.15.0+dfsg/utils/plrender.c:548:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void) sprintf( FileName, "%s.%i", name, (int) member );
data/plplot-5.15.0+dfsg/utils/plrender.c:551:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void) sprintf( BaseName, "%s", name );
data/plplot-5.15.0+dfsg/utils/plrender.c:556:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void) sprintf( FileName, "%s.plm", name );
data/plplot-5.15.0+dfsg/utils/plrender.c:562:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void) sprintf( FileName, "%s.plm.%i", name, (int) member );
data/plplot-5.15.0+dfsg/utils/plrender.c:565:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void) sprintf( BaseName, "%s.plm", name );
data/plplot-5.15.0+dfsg/utils/plrender.c:830:19:  [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.
    if ( code ) { fprintf( stderr,          \
data/plplot-5.15.0+dfsg/utils/plrender.c:1221:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf( FileName, "%s.%i", BaseName, (int) member );
data/plplot-5.15.0+dfsg/utils/plrender.c:1284:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf( FileName, "%s.%i", BaseName, (int) member );
data/plplot-5.15.0+dfsg/utils/plrender.c:1803:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( buffer, "plrender: page advance expected; found command code %d\n \
data/plplot-5.15.0+dfsg/utils/tektest.c:110:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stdout, VECTOR_MODE );       // Enter vector mode
data/plplot-5.15.0+dfsg/utils/tektest.c:111:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stdout, CLEAR_VIEW );        // erase and home
data/plplot-5.15.0+dfsg/utils/tektest.c:123:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stdout, VECTOR_MODE );
data/plplot-5.15.0+dfsg/utils/tektest.c:138:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stdout, CLEAR_VIEW );                // erase and home
data/plplot-5.15.0+dfsg/utils/tektest.c:259:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( ALPHA_MODE );         // Switch to alpha mode (necessary)
data/plplot-5.15.0+dfsg/utils/tektest.c:260:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( RING_BELL );          // and ring bell
data/plplot-5.15.0+dfsg/utils/tektest.c:261:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( VECTOR_MODE );        // Switch out of alpha mode
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:746:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( "HOME" ) ) != NULL )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:765:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PL_TCL_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:785:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PL_HOME_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/drivers/aqt.c:778: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.
        if ( ( new_font = getenv( aqt_font_env_names[i] ) ) != NULL )
data/plplot-5.15.0+dfsg/drivers/cairo.c:1343:20:  [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 ( ( a = getenv( envFamilyLookup[i] ) ) != NULL )
data/plplot-5.15.0+dfsg/drivers/psttf.cc:306:20:  [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 ( ( a = getenv( EnvFamilyLookup[i] ) ) != NULL )
data/plplot-5.15.0+dfsg/drivers/qt.cpp:115: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.
        if ( getenv( "DISPLAY" ) == NULL )
data/plplot-5.15.0+dfsg/drivers/tk.c:788:19:  [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( "DISPLAY" ) != NULL )
data/plplot-5.15.0+dfsg/drivers/tk.c:789:57:  [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.
            Tcl_SetVar2( dev->interp, "env", "DISPLAY", getenv( "DISPLAY" ), TCL_GLOBAL_ONLY ); // tk_init need this
data/plplot-5.15.0+dfsg/drivers/tk.c:1259:22:  [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 ( ( ptr = getenv( "DISPLAY" ) ) != NULL )
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:285:27:  [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.
        p->x   = (double) random() / RAND_MAX;
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:286:27:  [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.
        p->y   = (double) random() / RAND_MAX;
data/plplot-5.15.0+dfsg/lib/nn/nnpi.c:739:25:  [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.
        p->x = (double) random() / RAND_MAX;
data/plplot-5.15.0+dfsg/lib/nn/nnpi.c:740:25:  [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.
        p->y = (double) random() / RAND_MAX;
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_testlib.c:54:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tz = getenv( "TZ" );
data/plplot-5.15.0+dfsg/src/plargs.c:1385:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( getenv( "PAGER" ) != NULL )
data/plplot-5.15.0+dfsg/src/plcore.c:2988: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.
        drvdir = getenv( "PLPLOT_DRV_DIR" );
data/plplot-5.15.0+dfsg/src/plcore.c:3277:23:  [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.
        devname_env = getenv( "PLPLOT_DEV" );
data/plplot-5.15.0+dfsg/src/plctrl.c:2167:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PLPLOT_BIN_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plctrl.c:2185:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PLPLOT_HOME_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plctrl.c:2281:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PLPLOT_LIB_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plctrl.c:2303:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PLPLOT_HOME_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plfreetype.c:655: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.
    b = getenv( "WINDIR" );
data/plplot-5.15.0+dfsg/src/plfreetype.c:688:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( a = getenv( "PLPLOT_FREETYPE_FONT_DIR" ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plfreetype.c:735:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( a = getenv( "PLPLOT_FREETYPE_FONT_DIR" ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plfreetype.c:751:20:  [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 ( ( a = getenv( env_font_names[i] ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plmap.c:832:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PLPLOT_LIB_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plmap.c:854:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( dn = getenv( PLPLOT_HOME_ENV ) ) != NULL )
data/plplot-5.15.0+dfsg/src/plstdio.c:183:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmpdir_list[ntmpdir_list] = getenv( "TMP" );
data/plplot-5.15.0+dfsg/src/plstdio.c:187:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmpdir_list[ntmpdir_list] = getenv( "TEMP" );
data/plplot-5.15.0+dfsg/src/plstdio.c:191:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmpdir_list[ntmpdir_list] = getenv( "TMPDIR" );
data/plplot-5.15.0+dfsg/utils/pltek.c:50:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( ( t = getenv( "TERM" ) ) != NULL )
data/plplot-5.15.0+dfsg/bindings/ocaml/plplot_impl.c: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 exception_message[MAX_EXCEPTION_MESSAGE_LENGTH];
data/plplot-5.15.0+dfsg/bindings/ocaml/plplot_impl.c:693: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( exception_message, "Error, return code %d", result );
data/plplot-5.15.0+dfsg/bindings/ocaml/plplot_impl.c:783:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char exception_message[MAX_EXCEPTION_MESSAGE_LENGTH];
data/plplot-5.15.0+dfsg/bindings/ocaml/plplot_impl.c:784: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( exception_message, "Invalid arguments in plparseopts, error %d", result );
data/plplot-5.15.0+dfsg/bindings/qt_gui/plqt.cpp:994: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( text, txt->unicode_array, txt->unicode_array_len * sizeof ( PLUNICODE ) );
data/plplot-5.15.0+dfsg/bindings/qt_gui/plqt.cpp:1033: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( el.Data.TextStruct->text, txt->unicode_array, txt->unicode_array_len * sizeof ( PLUNICODE ) );
data/plplot-5.15.0+dfsg/bindings/tcl/pltcl.c: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     prompt[80];
data/plplot-5.15.0+dfsg/bindings/tcl/pltcl.c:105: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( prompt, "pltext; puts -nonewline \"pltcl> \"; flush stdout" );
data/plplot-5.15.0+dfsg/bindings/tcl/pltcl.c:107: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( prompt, "pltext; puts -nonewline \"pltcl_%d> \"; flush stdout", pls->ipls );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:158: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  errmsg[160];
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:873: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 buf[200];
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:989: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).
        kx = atoi( argv[3] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:990: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).
        lx = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:991: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).
        ky = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:992: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).
        ly = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1036: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).
        wrap = atoi( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1297: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).
    fill = (PLBOOL) atoi( argv[3] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1414: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).
        wrap = atoi( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1656: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).
        nx  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1657: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).
        ny  = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1658: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).
        opt = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1693: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).
        opt = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1789: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).
        nlev = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1790: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1791: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1792: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1830: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).
        nx  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1831: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).
        ny  = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1832: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).
        opt = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1870: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1871: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1872: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1909: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).
        opt = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:1950: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).
        opt  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2041: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2042: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2043: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2044: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).
        side = atoi( argv[7] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2079: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).
        opt  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2080: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).
        side = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2176: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).
        nlev = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2177: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2178: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2179: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2217: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).
        nx  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2218: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).
        ny  = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2219: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).
        opt = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2257: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2258: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2259: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2296: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).
        opt = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2337: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).
        opt  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2434: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).
        nlev = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2435: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2436: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2437: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2475: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).
        nx  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2476: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).
        ny  = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2477: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).
        opt = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2515: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2516: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2517: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2554: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).
        opt = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2595: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).
        opt  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2696: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).
        nlev = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2697: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2698: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2699: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2701: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).
        indexxmin = atoi( argv[9] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2702: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).
        indexxmax = atoi( argv[10] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2753: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).
        nx  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2754: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).
        ny  = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2755: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).
        opt = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2757: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).
        indexxmin = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2758: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).
        indexxmax = atoi( argv[9] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2809: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).
        nx   = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2810: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).
        ny   = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2811: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).
        opt  = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2814: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).
        indexxmin = atoi( argv[7] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2815: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).
        indexxmax = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2864: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).
        indexxmin = atoi( argv[6] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2883: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).
        opt = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2920: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).
        opt  = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:2923: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).
        indexxmin = atoi( argv[5] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3129: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).
    sh_cmap = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3132: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).
    min_col = atoi( argv[11] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3133: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).
    min_wid = atoi( argv[12] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3134: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).
    max_col = atoi( argv[13] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3136: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).
    rect    = atoi( argv[15] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3156: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).
        wrap = atoi( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3452:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cont_color = atoi( argv[8] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3454:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    rect       = atoi( argv[10] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3474: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).
        wrap = atoi( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3702: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, "matrix %cx f %d", (char) 1, n );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3709: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, "matrix %cy f %d", (char) 1, n );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3717: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, "%cx", (char) 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3726: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, "%cy", (char) 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3761: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, "rename %cx {}; rename %cy {}", (char) 1, (char) 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3860: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).
                entries[i] = atoi( argv[i] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4285: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).
        plotentry = atoi( argv[idxname + 9] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4789:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       idvalue[20];
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4860: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( idvalue, "%d", id );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c:51:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
#define TclFormatInt( buf, n )    sprintf( ( buf ), "%ld", (long) ( n ) )
data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c: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        buffer[1000], *args;
data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        usage[500];
data/plplot-5.15.0+dfsg/bindings/tcl/tclMain.c:478: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, "exit %d", exitCode );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:212: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.
    matPtr->name = (char *) malloc( strlen( argv[0] ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:273: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).
        matPtr->n[index] = MAX( 0, atoi( argv[0] ) );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c: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       c, tmp[200];
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c: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   c1[2], c2[2];
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:690:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        nfilt  = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:748: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( tmp, "%d", matPtr->n[i] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:773: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).
            len = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:806: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( tmp, "%d", max );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:829: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).
            len = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:862: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( tmp, "%d", min );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:893:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        newlen = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1347: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).
        matPtr->idata[index] = atoi( string );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1355:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( string, "%d", matPtr->idata[index] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:544: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 *) plPlotterPtr, argv[2], 0 );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:556: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.
                (char *) plPlotterPtr, argv[2], 0 );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1702: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).
    reverse = atoi( rev );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1778:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1780: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( str, "%d", (int) pls->ncol0 );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1788: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( str, "#%06lx", ( plcolor & 0xFFFFFF ) );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1802:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1806: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( str, "%d", (int) pls->ncp1 );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1822: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( str, "#%06lx", ( plcolor & 0xFFFFFF ) );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1825: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( str, "%02d", (int) ( 100 * pls->cmap1cp[i].p ) );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1828: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( str, "%01d", (int) ( pls->cmap1cp[i].alt_hue_path ) );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1839: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).
        int  i, changed = 1, ncol0 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1871: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).
        int  i, changed = 1, ncp1 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1914: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 i = atoi( argv[1] ), changed = 1;
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1935: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 i = atoi( argv[1] ), changed = 1;
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2249:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            x0 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2250:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            y0 = atoi( argv[2] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2251:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            x1 = atoi( argv[3] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2252:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            y1 = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2378:28:  [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 ( ( iodev->fd = open( argv[1], O_RDONLY ) ) == -1 )
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2402:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        iodev->fileHandle = (char *) argv[1];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2597:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2599: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( result_str, "%f", rot );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2757:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2760: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( result_str, "%g %g %g %g", mar, aspect, jx, jy );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2882:24:  [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 ( ( sfile = fopen( argv[2], "wb+" ) ) == NULL )
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2958:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2960: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( result_str, "%g %g %g %g", xl, yl, xr, yr );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2973:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2977: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( result_str, "%g %g %g %g", xl, yl, xr, yr );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:3100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  res[40];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:3156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[60];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:3162:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( string, " %f %f", 1. - plPlotterPtr->yr, 1. - plPlotterPtr->yl );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:3182:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[60];
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:3188:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( string, " %f %f", plPlotterPtr->xl, plPlotterPtr->xr );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.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 res[20];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:595: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.
                (char *) plFramePtr, argv[2], 0 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:1191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           string[11];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:1906: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).
    reverse = atoi( rev );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:1988:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/plplot-5.15.0+dfsg/bindings/tk/plframe.c:1990: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( str, "%d", (int) pls->ncol0 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:1998: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( str, "#%06lx", ( plcolor & 0xFFFFFF ) );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2012:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2016: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( str, "%d", (int) pls->ncp1 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2032: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( str, "#%06lx", ( plcolor & 0xFFFFFF ) );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2035: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( str, "%02d", (int) ( 100 * pls->cmap1cp[i].p ) );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2038: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( str, "%01d", (int) ( pls->cmap1cp[i].alt_hue_path ) );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2049: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).
        int  i, changed = 1, ncol0 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2060:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        tmpstring  = (char *) malloc( strlen( argv[2] ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2084: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).
        int  i, changed = 1, ncp1 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2095: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.
        tmpstring = (char *) malloc( strlen( argv[2] ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2127: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 i = atoi( argv[1] ), changed = 1;
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2148: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 i = atoi( argv[1] ), changed = 1;
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2421:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            x0 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2422:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            y0 = atoi( argv[2] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2423:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            x1 = atoi( argv[3] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2424:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            y1 = atoi( argv[4] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2550:28:  [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 ( ( iodev->fd = open( argv[1], O_RDONLY ) ) == -1 )
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2782:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2784: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( result_str, "%f", rot );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2926:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2929: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( result_str, "%g %g %g %g", mar, aspect, jx, jy );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3052:24:  [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 ( ( sfile = fopen( argv[2], "wb+" ) ) == NULL )
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3130:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3132: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( result_str, "%g %g %g %g", xl, yl, xr, yr );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3145:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char result_str[128];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3149: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( result_str, "%g %g %g %g", xl, yl, xr, yr );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3242: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).
    x0   = atoi( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3276: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).
    y0   = atoi( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3305:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  tmpstring[50];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3392:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[60];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3402:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( string, " %d %d %d %d",
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3424:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[60];
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3434:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( string, " %d %d %d %d",
data/plplot-5.15.0+dfsg/bindings/tk/plr.c: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 tk_magic[80], tk_version[80], tag[80];
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:231:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( new->buffer, buffer, (size_t) numBytes );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:306: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( buffer + numRead, readList->buffer + readList->offset, (size_t) numToCopy );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c: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 hostname[100];
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:426: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 hbuf[8];
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:640: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 hbuf[8];
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:643:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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, tmp[256];
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:683:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer, (char *) hbuf, 8 );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:684:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer + 8, (char *) pdfs->buffer, pdfs->bp );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:706: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( tmp, "%d", numSent - 8 );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:737: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, "%d", numSent - 8 );
data/plplot-5.15.0+dfsg/bindings/tk/tkMain.c: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       buf[20];
data/plplot-5.15.0+dfsg/bindings/tk/tkMain.c:321: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( buf, "%d", argc - 1 );
data/plplot-5.15.0+dfsg/bindings/tk/tkMain.c:419: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).
                f = fopen( fullName, "r" );
data/plplot-5.15.0+dfsg/bindings/tk/tkMain.c: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       input[BUFFER_SIZE + 1];
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char drvopt[bufferSize], buffer[bufferSize];
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp:61: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, "freetype=%d,smooth=%d,",
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp:75: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, "hrshsym=%d,text=%d,backend=%d",
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotwindow.cpp:159:20:  [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 ( ( sfile = fopen( filename.mb_str(), "wb+" ) ) == NULL )
data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotstream.cpp:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char drvopt[bufferSize], buffer[bufferSize];
data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotstream.cpp:68: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, "hrshsym=%d,text=%d",
data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotwindow.h:407:20:  [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 ( ( sfile = fopen( filename.mb_str(), "wb+" ) ) == NULL )
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h:587: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  qhull_command[256];/* command line that invoked this program */
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h:589: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  rbox_command[256]; /* command line that produced the input points */
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h:590: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  qhull_options[512];/* descriptive list of options */
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h:644: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 qhull[sizeof("qhull")]; /* "qhull" for checking ownership while debugging */
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h:646: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 jmpXtra[40];       /* extra bytes in case jmp_buf is defined wrong by compiler */
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/libqhull.h:648: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 jmpXtra2[40];      /* extra bytes in case jmp_buf is defined wrong by compiler*/
data/plplot-5.15.0+dfsg/cmake/epa_build/libqhull/src/unix.c:330: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 inBuf[BUFSIZ], outBuf[BUFSIZ], errBuf[BUFSIZ];
data/plplot-5.15.0+dfsg/cmake/test_linux_ipc/pshm.h:12:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BUF_SIZE]; // Data being transferred
data/plplot-5.15.0+dfsg/drivers/aqt.c:132:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *aqt_font_env_names[AQT_N_FontLookup] = {
data/plplot-5.15.0+dfsg/drivers/aqt.c: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      dummy[MAX_STRING_LEN + 1];
data/plplot-5.15.0+dfsg/drivers/aqt.c:643:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      utf8[5];
data/plplot-5.15.0+dfsg/drivers/cairo.c:198:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *defaultFamilyLookup[NPANGOLOOKUP] = {
data/plplot-5.15.0+dfsg/drivers/cairo.c:206:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *envFamilyLookup[NPANGOLOOKUP] = {
data/plplot-5.15.0+dfsg/drivers/cairo.c:215: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 familyLookup[NPANGOLOOKUP][FAMILY_LOOKUP_LEN];
data/plplot-5.15.0+dfsg/drivers/cairo.c:219:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *weightLookup[2] = {
data/plplot-5.15.0+dfsg/drivers/cairo.c:224:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *styleLookup[3] = {
data/plplot-5.15.0+dfsg/drivers/cairo.c: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    utf8[5];
data/plplot-5.15.0+dfsg/drivers/cairo.c:998:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      utf8[5];
data/plplot-5.15.0+dfsg/drivers/cairo.c:1140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          openTag[TAG_LEN];
data/plplot-5.15.0+dfsg/drivers/cairo.c:1242: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 tag[100];
data/plplot-5.15.0+dfsg/drivers/cairo.c:1258: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( tag, "<span rise=\"%d\" size=\"%d\">",
data/plplot-5.15.0+dfsg/drivers/cairo.c:1263: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( tag, "<span rise=\"%d\" size=\"%d\">",
data/plplot-5.15.0+dfsg/drivers/cairo.c:2135:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           event_string[10];
data/plplot-5.15.0+dfsg/drivers/cairo.c:2268:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/plplot-5.15.0+dfsg/drivers/cairo.c:2324: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( gin->string, "button %u", gin->button );
data/plplot-5.15.0+dfsg/drivers/cairo.c:2884:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char testByte[sizeof ( int )];
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp: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 utf8_string[max_string_length];
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.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 utf8[5];
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_agg.cpp:48: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).
    infile = fopen( filename, "r" );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_app.cpp:419: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 buf[512];
data/plplot-5.15.0+dfsg/drivers/ntk.c:77: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       curcolor[80];   // current color in #rrggbb notation
data/plplot-5.15.0+dfsg/drivers/ntk.c:82: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 cmd[PLPLOT_NTK_CMD_SIZE]; // buffer to build command to interp
data/plplot-5.15.0+dfsg/drivers/ntk.c:84: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 base[80];                 // name of frame that contains the canvas
data/plplot-5.15.0+dfsg/drivers/ntk.c:85: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 dash[80];                 // dash string, as <mark space>*
data/plplot-5.15.0+dfsg/drivers/ntk.c:94: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  rem_interp[80];       // name of remote interp
data/plplot-5.15.0+dfsg/drivers/ntk.c:108: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 scmd[PLPLOT_NTK_CMD_SIZE];
data/plplot-5.15.0+dfsg/drivers/ntk.c:133: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, "set ccanv %d; canvas $plf.f2.c$ccanv -width $xmax -height $ymax -background #%02x%02x%02x -xscrollcommand \"$hs set\" -yscrollcommand \"$vs set\" -scrollregion \"0 0 $xmax $ymax\"", ccanv, pls->cmap0[0].r, pls->cmap0[0].g, pls->cmap0[0].b );
data/plplot-5.15.0+dfsg/drivers/ntk.c:137: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, "$plf.f1.mb.menu add command -label \"Page $ccanv\" -columnbreak %d -command {\n"
data/plplot-5.15.0+dfsg/drivers/ntk.c:152: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, "set item(%d) 0", ccanv );
data/plplot-5.15.0+dfsg/drivers/ntk.c:158: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, "bind $plf.f2.c$ccanv <Shift-Button-1> {\n"
data/plplot-5.15.0+dfsg/drivers/ntk.c:175: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, "bind $plf.f2.c$ccanv <Shift-Button-3> {\n"
data/plplot-5.15.0+dfsg/drivers/ntk.c:189: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, "bind $plf.f2.c$ccanv <Shift-Button-2> {\n"
data/plplot-5.15.0+dfsg/drivers/ntk.c: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( cmd, "bind $plf.f2.c$ccanv <Control-Button-1> \"$plf.f2.c%d scan mark %%x %%y\"", ccanv );
data/plplot-5.15.0+dfsg/drivers/ntk.c: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( cmd, "bind $plf.f2.c$ccanv <Control-Button1-Motion> \"$plf.f2.c%d scan dragto %%x %%y\"", ccanv );
data/plplot-5.15.0+dfsg/drivers/ntk.c:217: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, "$plf.f1.mb.menu invoke %d", ccanv - 1 );
data/plplot-5.15.0+dfsg/drivers/ntk.c:236: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( curcolor, "black" ); // default color by name, not #rrggbb
data/plplot-5.15.0+dfsg/drivers/ntk.c:250: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( base, ".plf" );     // default frame containing the canvas
data/plplot-5.15.0+dfsg/drivers/ntk.c:282: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, "frame $plf.f1;\n"
data/plplot-5.15.0+dfsg/drivers/ntk.c:354: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.
    j = sprintf( cmd, "$plf.f2.c%d create line ", ccanv );
data/plplot-5.15.0+dfsg/drivers/ntk.c:362:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        j += sprintf( &cmd[j], "%.1f %.1f ", xa[i] / scale, ymax - ya[i] / scale );
data/plplot-5.15.0+dfsg/drivers/ntk.c:430: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( curcolor, "#%02x%02x%02x",
data/plplot-5.15.0+dfsg/drivers/ntk.c:515: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.
        j = sprintf( dash, "-dash {" );
data/plplot-5.15.0+dfsg/drivers/ntk.c:517:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            j += sprintf( &dash[j], " %d %d",
data/plplot-5.15.0+dfsg/drivers/ntk.c:546: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.
            j = sprintf( cmd, "$plf.f2.c%d create polygon ", ccanv );
data/plplot-5.15.0+dfsg/drivers/ntk.c:548:22:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                j += sprintf( &cmd[j], "%.1f %.1f ", pls->dev_x[i] / scale,
data/plplot-5.15.0+dfsg/drivers/ntk.c:561: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.
            j = sprintf( cmd, "$plf.f2.c%d create polygon ", ccanv );
data/plplot-5.15.0+dfsg/drivers/ntk.c:563:22:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                j += sprintf( &cmd[j], "%.1f %.1f ", pls->dev_x[i] / scale,
data/plplot-5.15.0+dfsg/drivers/ntk.c:567: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( &cmd[j], " -stipple patt -outline black" );
data/plplot-5.15.0+dfsg/drivers/pdf.c:604: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 type1_string[MAX_STRING_LEN];
data/plplot-5.15.0+dfsg/drivers/plmeta.c: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 buffer[BUFFER_LEN];
data/plplot-5.15.0+dfsg/drivers/ps.c:76: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   outbuf[OUTBUF_LEN];
data/plplot-5.15.0+dfsg/drivers/ps.c:783: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 *strp, str[PROC_STR_STRING_LENGTH], *cur_strp,
data/plplot-5.15.0+dfsg/drivers/ps.c:797: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 *fonts[PROC_STR_STRING_LENGTH];
data/plplot-5.15.0+dfsg/drivers/pstex.c:72: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( ofile, "w" );
data/plplot-5.15.0+dfsg/drivers/pstex.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  cptr[256], jst, ref;
data/plplot-5.15.0+dfsg/drivers/pstex.c:297: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.
                n   = sprintf( tp, "\\raisebox{%.2fex}{", 0.6 );
data/plplot-5.15.0+dfsg/drivers/pstex.c:311: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.
                n   = sprintf( tp, "\\raisebox{%.2fex}{", -0.6 );
data/plplot-5.15.0+dfsg/drivers/pstex.c:318: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.
            n   = sprintf( tp, "\\hspace{-1em}" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:329: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.
                    n   = sprintf( tp, "}$" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:339: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.
                n   = sprintf( tp, "\\overline{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:351: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.
                    n   = sprintf( tp, "}$" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:361: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.
                n   = sprintf( tp, "\\underline{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:410: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.
                n   = sprintf( tp, "\\normalfont " );
data/plplot-5.15.0+dfsg/drivers/pstex.c:416:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    n = sprintf( tp, "\\mathrm{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:418:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    n = sprintf( tp, "\\textrm{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:425:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    n = sprintf( tp, "\\mathit{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:427:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    n = sprintf( tp, "\\textit{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:434:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    n = sprintf( tp, "\\mathsf{" );
data/plplot-5.15.0+dfsg/drivers/pstex.c:436:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    n = sprintf( tp, "\\textsf{" );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:82: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 outbuf[OUTBUF_LEN];
data/plplot-5.15.0+dfsg/drivers/psttf.cc:91:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * DefaultFamilyLookup[N_Pango_Lookup] = {
data/plplot-5.15.0+dfsg/drivers/psttf.cc:99:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * EnvFamilyLookup[N_Pango_Lookup] = {
data/plplot-5.15.0+dfsg/drivers/psttf.cc:108: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             FamilyLookup[N_Pango_Lookup][FAMILY_LOOKUP_LEN];
data/plplot-5.15.0+dfsg/drivers/psttf.cc:661: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).
        out.open( pls->FileName );
data/plplot-5.15.0+dfsg/drivers/psttf.cc: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   *strp, str[PROC_STR_STRING_LENGTH], *cur_strp,
data/plplot-5.15.0+dfsg/drivers/psttf.cc:877:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char            *fonts[PROC_STR_STRING_LENGTH];
data/plplot-5.15.0+dfsg/drivers/psttf.cc:897:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        font   = (char *) FamilyLookup[fontfamily];
data/plplot-5.15.0+dfsg/drivers/psttf.cc:923:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    fonts[f]   = (char *) FamilyLookup[fontfamily];
data/plplot-5.15.0+dfsg/drivers/svg.c: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 buffer[50];
data/plplot-5.15.0+dfsg/drivers/svg.c:486: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, "MyGradient%010d", aStream->gradient_index );
data/plplot-5.15.0+dfsg/drivers/svg.c:489: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, "%.2f", pls->xgradient[0] / aStream->scale );
data/plplot-5.15.0+dfsg/drivers/svg.c:491: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, "%.2f", pls->ygradient[0] / aStream->scale );
data/plplot-5.15.0+dfsg/drivers/svg.c:493: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, "%.2f", pls->xgradient[1] / aStream->scale );
data/plplot-5.15.0+dfsg/drivers/svg.c:495: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, "%.2f", pls->ygradient[1] / aStream->scale );
data/plplot-5.15.0+dfsg/drivers/svg.c:515: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, "url(#MyGradient%010d)", aStream->gradient_index++ );
data/plplot-5.15.0+dfsg/drivers/test-drv-info.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        sym[SYM_LEN];
data/plplot-5.15.0+dfsg/drivers/test-drv-info.c: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        drvspec[ DRVSPEC_LEN ];
data/plplot-5.15.0+dfsg/drivers/tk.c: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  str[STR_LEN];
data/plplot-5.15.0+dfsg/drivers/tk.c:1137: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 *argv[20];
data/plplot-5.15.0+dfsg/drivers/tk.c:1376:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CMD_LEN];
data/plplot-5.15.0+dfsg/drivers/tk.c:1545:28:  [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 ( ( iodev->fd = open( iodev->fileName, O_WRONLY ) ) == -1 )
data/plplot-5.15.0+dfsg/drivers/tk.c:1732: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).
        dev->width  = (unsigned int) atoi( argv[1] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1733: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).
        dev->height = (unsigned int) atoi( argv[2] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1836:34:  [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).
    gin->keysym = (unsigned int) atol( argv[1] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1837:34:  [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).
    gin->state  = (unsigned int) atol( argv[2] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1838: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).
    gin->pX     = atoi( argv[3] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1839: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).
    gin->pY     = atoi( argv[4] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1903:34:  [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).
    gin->button = (unsigned int) atol( argv[1] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1904:34:  [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).
    gin->state  = (unsigned int) atol( argv[2] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1905: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).
    gin->pX     = atoi( argv[3] );
data/plplot-5.15.0+dfsg/drivers/tk.c:1906: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).
    gin->pY     = atoi( argv[4] );
data/plplot-5.15.0+dfsg/drivers/tkwin.c:1943:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/plplot-5.15.0+dfsg/drivers/wingcc.c:569:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_UTF8, 0, pls->program, programlength, program, programlength );
data/plplot-5.15.0+dfsg/drivers/wingcc.c:1132: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( &dev->oldrect, &dev->rect, sizeof ( RECT ) );
data/plplot-5.15.0+dfsg/drivers/wingcc.c:1164: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( &dev->rect, &dev->oldrect, sizeof ( RECT ) ); // restore the old size to current size since the window is minimised
data/plplot-5.15.0+dfsg/drivers/wingcc.c:1515: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( dev->push, dev, sizeof ( wingcc_Dev ) );
data/plplot-5.15.0+dfsg/drivers/wingcc.c:1550: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( dev, dev->push, sizeof ( wingcc_Dev ) ); // POP our "stack" now to restore the values
data/plplot-5.15.0+dfsg/drivers/wingdi.c:419: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( push, dev, sizeof ( struct wingdi_Dev ) );
data/plplot-5.15.0+dfsg/drivers/wingdi.c:431: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( dev, push, sizeof ( struct wingdi_Dev ) );
data/plplot-5.15.0+dfsg/drivers/wingdi.c:1055:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char   mesg[80];
data/plplot-5.15.0+dfsg/drivers/wingdi.c:1344:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_UTF8, 0, pls->program, programlength, program, programlength );
data/plplot-5.15.0+dfsg/drivers/wxwidgets.h: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 m_mfo[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:46: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( m_wsemName, "/wsem" );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:50: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( m_rsemName, "/rsem" );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:54: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( m_tsemName, "/tsem" );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:493: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( hdest, csrc, nbytes_chunk );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:495: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( bdest, csrc, nbytes_chunk );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:597: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( cdest, hsrc, nbytes_chunk );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:599: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( cdest, bsrc, nbytes_chunk );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h:67: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      text[TEXTSIZEINFO_MAX_LENGTH + 1];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h: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            data[PL_SHARED_ARRAY_SIZE];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_wsemName[PL_SEMAPHORE_NAME_LENGTH + 1];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char m_rsemName[PL_SEMAPHORE_NAME_LENGTH + 1];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h: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 m_tsemName[PL_SEMAPHORE_NAME_LENGTH + 1];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.h: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   m_mutexName[251];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:205: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( finalTransform, textTransform, sizeof ( PLFLT ) * 6 );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:655: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).
            fin.open( "/dev/random", std::ios::in );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:824: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( m_mfo, "plplotMemoryMap" );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:826: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( m_mfo, "plplotMemoryMap??????????" );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1547: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1559: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1576: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1588: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1601: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1612: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1634: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1637: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1641: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation + sizeof ( transmissionComplete ),
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1643: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( m_outputMemoryMap.getBuffer() + mapHeader.writeLocation + headerSize,
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1692:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char         mutexName[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1696:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char        mapName[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1721: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( mutexName, "mut" );
data/plplot-5.15.0+dfsg/drivers/xwin.c:2527:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/plplot-5.15.0+dfsg/drivers/xwin.c:3441:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.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         string[20];
data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.cpp:206: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( string, "%.0f", y0[i] );
data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.cpp:208: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( string, "%d", 1980 + i );
data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.cpp:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/plplot-5.15.0+dfsg/examples/c++/qt_PlotWindow.cpp:219: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( buf, "Selection: (%f, %f)", x, y );
data/plplot-5.15.0+dfsg/examples/c++/x01.cc: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 ver[80];
data/plplot-5.15.0+dfsg/examples/c++/x02.cc: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  text[3];
data/plplot-5.15.0+dfsg/examples/c++/x02.cc:140: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( text, "%d", i );
data/plplot-5.15.0+dfsg/examples/c++/x03.cc:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/plplot-5.15.0+dfsg/examples/c++/x03.cc:92: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( text, "%d", (int) ROUND( theta ) );
data/plplot-5.15.0+dfsg/examples/c++/x04.cc:74:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *text[2], *symbols[2];
data/plplot-5.15.0+dfsg/examples/c++/x06.cc:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/plplot-5.15.0+dfsg/examples/c++/x06.cc:86: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( text, "%d", i );
data/plplot-5.15.0+dfsg/examples/c++/x06.cc:95: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( text, "%d", 10 * i );
data/plplot-5.15.0+dfsg/examples/c++/x07.cc: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  text[10];
data/plplot-5.15.0+dfsg/examples/c++/x07.cc:84: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( text, "%d", i );
data/plplot-5.15.0+dfsg/examples/c++/x07.cc:93: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( text, "%d", base[l] + 10 * i );
data/plplot-5.15.0+dfsg/examples/c++/x12.cc:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[20];
data/plplot-5.15.0+dfsg/examples/c++/x12.cc:83: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( string, "%.0f", y0[i] );
data/plplot-5.15.0+dfsg/examples/c++/x12.cc:85: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( string, "%d", 1980 + i );
data/plplot-5.15.0+dfsg/examples/c++/x14.cc: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       driver[80] = "";
data/plplot-5.15.0+dfsg/examples/c++/x14.cc: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  text[4];
data/plplot-5.15.0+dfsg/examples/c++/x14.cc:370: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( text, "%d", (int) ROUND( theta ) );
data/plplot-5.15.0+dfsg/examples/c++/x17.cc:51: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[160];
data/plplot-5.15.0+dfsg/examples/c++/x17.cc:64: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      *legline[4];
data/plplot-5.15.0+dfsg/examples/c++/x18.cc:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  title[80];
data/plplot-5.15.0+dfsg/examples/c++/x18.cc:114: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( title, "#frPLplot Example 18 - Alt=%.0f, Az=%.0f",
data/plplot-5.15.0+dfsg/examples/c++/x20.cc: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          ver[80];
data/plplot-5.15.0+dfsg/examples/c++/x22.cc: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  title[80];
data/plplot-5.15.0+dfsg/examples/c++/x22.cc:156: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( title, "#frPLplot Example 22 - constriction (arrow style %d)", astyle );
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  cmdString[20];
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:294:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf( cmdString, "##[0x%.4x]", Type1[offset[page] + slice] );
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:298:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf( cmdString, "##[0x%.4x]", lo[page] + slice );
data/plplot-5.15.0+dfsg/examples/c++/x23.cc:327:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char string[200];
data/plplot-5.15.0+dfsg/examples/c++/x26.cc:166: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 *symbols[2];
data/plplot-5.15.0+dfsg/examples/c++/x29.cc: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  time_format[10];
data/plplot-5.15.0+dfsg/examples/c++/x29.cc: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  title_suffix[100];
data/plplot-5.15.0+dfsg/examples/c++/x29.cc: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  xtitle[100];
data/plplot-5.15.0+dfsg/examples/c++/x29.cc: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  title[100];
data/plplot-5.15.0+dfsg/examples/c++/x31.cc:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  fnam[256];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:50: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  *special_symbols[5];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:52: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  *colorbar_option_kind_labels[COLORBAR_KINDS];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:54: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  *colorbar_position_option_labels[COLORBAR_POSITIONS];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:56: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  *colorbar_label_option_labels[COLORBAR_LABELS];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:58: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  *colorbar_cap_option_labels[COLORBAR_CAPS];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:164: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 *axis_opts[1];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc: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       title[200];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc: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       *text[MAX_NLEGEND];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:326: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 *symbols[MAX_NLEGEND];
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:371: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( text[0], "%2.2d", k );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:408: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( text[k], "%2.2d", k );
data/plplot-5.15.0+dfsg/examples/c++/x33.cc:548: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( text[k], "%2.2d", k );
data/plplot-5.15.0+dfsg/examples/c/test_plbuf.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ver[80];
data/plplot-5.15.0+dfsg/examples/c/tutor.c: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 filename[80], string[80], tmpstr[80];
data/plplot-5.15.0+dfsg/examples/c/tutor.c:93: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).
    datafile = fopen( filename, "r" );
data/plplot-5.15.0+dfsg/examples/c/x01c.c:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ver[80];
data/plplot-5.15.0+dfsg/examples/c/x02c.c:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[3];
data/plplot-5.15.0+dfsg/examples/c/x02c.c:136: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( text, "%d", i );
data/plplot-5.15.0+dfsg/examples/c/x03c.c:17:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/plplot-5.15.0+dfsg/examples/c/x03c.c:59: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( text, "%d", ROUND( theta ) );
data/plplot-5.15.0+dfsg/examples/c/x06c.c:15:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/plplot-5.15.0+dfsg/examples/c/x06c.c:56: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( text, "%d", i );
data/plplot-5.15.0+dfsg/examples/c/x06c.c:65: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( text, "%d", 10 * i );
data/plplot-5.15.0+dfsg/examples/c/x07c.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/plplot-5.15.0+dfsg/examples/c/x07c.c:82: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( text, "%d", i );
data/plplot-5.15.0+dfsg/examples/c/x07c.c:91: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( text, "%d", base[l] + 10 * i );
data/plplot-5.15.0+dfsg/examples/c/x07c.c:101:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( text, "#(%1d)", base[l] + k );
data/plplot-5.15.0+dfsg/examples/c/x12c.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         string[20];
data/plplot-5.15.0+dfsg/examples/c/x12c.c:62: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( string, "%.0f", y0[i] );
data/plplot-5.15.0+dfsg/examples/c/x12c.c:64: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( string, "%d", 1980 + i );
data/plplot-5.15.0+dfsg/examples/c/x14c.c:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80] = "";
data/plplot-5.15.0+dfsg/examples/c/x14c.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  text[4];
data/plplot-5.15.0+dfsg/examples/c/x14c.c:345: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( text, "%d", ROUND( theta ) );
data/plplot-5.15.0+dfsg/examples/c/x17c.c:22: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  errmsg[160];
data/plplot-5.15.0+dfsg/examples/c/x18c.c:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  title[80];
data/plplot-5.15.0+dfsg/examples/c/x18c.c:83: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( title, "#frPLplot Example 18 - Alt=%.0f, Az=%.0f",
data/plplot-5.15.0+dfsg/examples/c/x20c.c: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          ver[80];
data/plplot-5.15.0+dfsg/examples/c/x20c.c:322:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( ( fp = fopen( fname, "rb" ) ) == NULL )
data/plplot-5.15.0+dfsg/examples/c/x22c.c: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      title[80];
data/plplot-5.15.0+dfsg/examples/c/x22c.c:160: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( title, "#frPLplot Example 22 - constriction (arrow style %d)", astyle );
data/plplot-5.15.0+dfsg/examples/c/x23c.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      cmdString[20];
data/plplot-5.15.0+dfsg/examples/c/x23c.c:271:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf( cmdString, "##[0x%.4x]", Type1[offset[page] + slice] );
data/plplot-5.15.0+dfsg/examples/c/x23c.c:275:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf( cmdString, "##[0x%.4x]", lo[page] + slice );
data/plplot-5.15.0+dfsg/examples/c/x23c.c:301:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char string[200];
data/plplot-5.15.0+dfsg/examples/c/x29c.c:239:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  time_format[10];
data/plplot-5.15.0+dfsg/examples/c/x29c.c:240:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  title_suffix[100];
data/plplot-5.15.0+dfsg/examples/c/x29c.c: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  xtitle[100];
data/plplot-5.15.0+dfsg/examples/c/x29c.c: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  title[100];
data/plplot-5.15.0+dfsg/examples/c/x31c.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  fnam[256];
data/plplot-5.15.0+dfsg/examples/c/x32c.c: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         string[20];
data/plplot-5.15.0+dfsg/examples/c/x32c.c:92: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( string, "%d", (int) x0 + i );
data/plplot-5.15.0+dfsg/examples/c/x33c.c: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          title[200];
data/plplot-5.15.0+dfsg/examples/c/x33c.c: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          *text[MAX_NLEGEND];
data/plplot-5.15.0+dfsg/examples/c/x33c.c:366: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( text[0], "%2.2d", k );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:403: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( text[k], "%2.2d", k );
data/plplot-5.15.0+dfsg/examples/c/x33c.c:543: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( text[k], "%2.2d", k );
data/plplot-5.15.0+dfsg/examples/tk/xtk04.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  res[30];
data/plplot-5.15.0+dfsg/examples/tk/xtk04.c:40: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( res, "%f", max );
data/plplot-5.15.0+dfsg/examples/tk/xtk04.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  res[30];
data/plplot-5.15.0+dfsg/examples/tk/xtk04.c:55: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( res, "%f", min );
data/plplot-5.15.0+dfsg/fonts/plhershey-unicode-gen.c: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         readbuffer[256];
data/plplot-5.15.0+dfsg/fonts/plhershey-unicode-gen.c:94:34:  [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 ( ( argc >= 2 ) && ( fr = fopen( argv[1], "r" ) ) != NULL )
data/plplot-5.15.0+dfsg/fonts/plhershey-unicode-gen.c:144:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( ( fw = fopen( argv[2], "w" ) ) != NULL )
data/plplot-5.15.0+dfsg/include/dirent_msvc.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             d_name[MAX_PATH + 1];
data/plplot-5.15.0+dfsg/include/dirent_msvc.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   patt[MAX_PATH + 3];
data/plplot-5.15.0+dfsg/include/plfreetype.h:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char font_name[30][1024];
data/plplot-5.15.0+dfsg/include/plplot.h: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         string[PL_MAXKEY]; // translated string
data/plplot-5.15.0+dfsg/include/plstrm.h:574:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80];
data/plplot-5.15.0+dfsg/include/qt.h: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    format[5];
data/plplot-5.15.0+dfsg/lib/csa/csa.c:203: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( t->vertices, vertices, sizeof ( point ) * 3 );
data/plplot-5.15.0+dfsg/lib/csa/csa.c:1855:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/csa/csa.c:1874:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            f = fopen( fname, "r" );
data/plplot-5.15.0+dfsg/lib/csa/csa.c:2091: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 prmstr[STRBUFSIZE] = "";
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:398: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( tb, "picture %d", im->picnum );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:1798:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ( im->open[i] )
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:1821: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).
        im->open[i] = 1;
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:1834:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ( im->open[i] )
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:1858:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ( im->open[i] )
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:1876:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    im->open[ct]  = (short int) 0;
data/plplot-5.15.0+dfsg/lib/nistcd/cd.h:68: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).
    int           open[cdMaxColors];
data/plplot-5.15.0+dfsg/lib/nistcd/cdexpert.c:52:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outf = fopen( "cdexp1.cgm", "wb" );
data/plplot-5.15.0+dfsg/lib/nistcd/cdmulti.c:88:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outf = fopen( "cdmulti.cgm", "wb" );
data/plplot-5.15.0+dfsg/lib/nistcd/cdsimple.c:102:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outf = fopen( "cdsimple.cgm", "wb" );
data/plplot-5.15.0+dfsg/lib/nistcd/cdtest.c:575:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outf = fopen( "cdout.cgm", "wb" );
data/plplot-5.15.0+dfsg/lib/nistcd/cdtext.c:164:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outf = fopen( "cdtext.cgm", "wb" );
data/plplot-5.15.0+dfsg/lib/nistcd/color16.c:227:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outf = fopen( "color16.cgm", "wb" );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:250: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( d->edges, tio_out->edgelist, d->nedges * 2 * sizeof ( int ) );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c: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 cmd[64] = "eznC";
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:296: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( tio_in.segmentlist, segments, ns * 2 * sizeof ( int ) );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:303: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( tio_in.holelist, holes, nh * 2 * sizeof ( double ) );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:311: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( cmd, "VV" );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c: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    flags[64] = "qhull d Qbb Qt";   // option flags for qhull
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:380: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( flags, " s" );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:382: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( flags, " Ts" );
data/plplot-5.15.0+dfsg/lib/nn/hash.c: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 key[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/nn/hash.c:634:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/nn/hash.c:637: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( key, "%d-th key", i );
data/plplot-5.15.0+dfsg/lib/nn/hash.c:638: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( str, "%d-th data", i );
data/plplot-5.15.0+dfsg/lib/nn/hash.c:651:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/nn/hash.c:654: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( key, "%d-th key", i );
data/plplot-5.15.0+dfsg/lib/nn/hash.c: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 key[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/nn/hash.c:667: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( key, "%d-th key", i );
data/plplot-5.15.0+dfsg/lib/nn/hash.c: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 key[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/nn/hash.c:682: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( key, "%d-th key", i );
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:78: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( nn->x, x, (size_t) n * sizeof ( double ) );
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:80: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( nn->y, y, (size_t) n * sizeof ( double ) );
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:101: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( w->vertices, vertices, (size_t) ( w->nvertices ) * sizeof ( int ) );
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:103: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( w->weights, weights, (size_t) ( w->nvertices ) * sizeof ( double ) );
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:244: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).
            nin = atoi( argv[i] );
data/plplot-5.15.0+dfsg/lib/nn/nnai.c:248:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            nx = atoi( argv[i] );
data/plplot-5.15.0+dfsg/lib/nn/nncommon.c: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 buf[BUFSIZE];
data/plplot-5.15.0+dfsg/lib/nn/nncommon.c:425:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            f = fopen( fname, "r" );
data/plplot-5.15.0+dfsg/lib/nn/nnpi.c:699: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).
            nin = atoi( argv[i] );
data/plplot-5.15.0+dfsg/lib/nn/nnpi.c:703:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            nx = atoi( argv[i] );
data/plplot-5.15.0+dfsg/lib/qsastime/deltaT-gen.c:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[256];
data/plplot-5.15.0+dfsg/lib/qsastime/deltaT-gen.c:78:33:  [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 ( ( argc < 2 ) || ( fr = fopen( argv[1], "r" ) ) == NULL )
data/plplot-5.15.0+dfsg/lib/qsastime/deltaT-gen.c:84:33:  [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 ( ( argc < 3 ) || ( fw = fopen( argv[2], "w" ) ) == NULL )
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c: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       DateTime[80];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.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       dynamic_format[10];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:521:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", century );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:523:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "-%02d", century + 1 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:533: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( DateTime, "%02d", day );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:545:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d/%02d/%02d", month + 1, day, y );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:547:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d/%02d/-%02d", month + 1, day, y );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:558:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, " %01d", day );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:560:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", day );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:571:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%04d-%02d-%02d", year, month + 1, day );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:573:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "-%04d-%02d-%02d", year, month + 1, day );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:583: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( DateTime, "%02d", hour );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:594:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour + 12 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:596:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour - 12 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:598:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:609: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( DateTime, "%03d", doy );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:620:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, " %01d", hour );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:622:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:633:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour + 12 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:635:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, " %01d", hour );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:637:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:639:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, " %01d", hour - 12 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:641:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", hour - 12 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:651: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( DateTime, "%02d", month + 1 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:661: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( DateTime, "%02d", min );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:680:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "AM" );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:682:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "PM" );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:693:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d:%02d:%02d AM", hour + 12, min, second );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:695:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d:%02d:%02d PM", hour - 12, min, second );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:697:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d:%02d:%02d PM", hour, min, second );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:699:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d:%02d:%02d AM", hour, min, second );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:709: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( DateTime, "%02d:%02d", hour, min );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:736:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", (int) ( sec + 0.5 ) );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:740:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( dynamic_format, "%%0%d.%df", nplaces + 3, nplaces );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:762: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( DateTime, "%d", secsSince1970 );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:780: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( DateTime, "%02d:%02d:%02d", hour, min, second );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:795: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( DateTime, "%02d", w );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:807: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( DateTime, "%01d", d );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:853: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( DateTime, "%02d", w );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:865: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( DateTime, "%01d", d );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:880: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( DateTime, "%02d", w );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:905: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( DateTime, "%02d:%02d:%02d", hour, min, second );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:918:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%02d", y );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:920:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "-%02d", y );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:931:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "%04d", year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:933:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( DateTime, "-%04d", year );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:986: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( dynamic_format, "%%-%d.%df", nplaces + 2, nplaces );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:232: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 DateTime[50];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:255: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( DateTime, "%04d-%02d-%02dT%02d:%02d:%01d%-11.10f", y, m + 1, d, hour, min, sec1, sec );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c: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( DateTime, "-%04d-%02d-%02dT%02d:%02d:%01d%-11.10f", y, m + 1, d, hour, min, sec1, sec );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:267: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( DateTime, "%04d-%02d-%02d %02d:%02d:%01d%-11.10f", y, m + 1, d, hour, min, sec1, sec );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:269: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( DateTime, "-%04d-%02d-%02d %02d:%02d:%01d%-11.10f", y, m + 1, d, hour, min, sec1, sec );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_test.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[360];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_test.c:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       copy[360];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_testlib.c: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      buf[360];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_testlib.c: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      buf[360];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_testlib.c: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      buf[360];
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_testlib.c: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      buf1[360];
data/plplot-5.15.0+dfsg/lib/qsastime/tai-utc-gen.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[256];
data/plplot-5.15.0+dfsg/lib/qsastime/tai-utc-gen.c:88:33:  [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 ( ( argc < 2 ) || ( fr = fopen( argv[1], "r" ) ) == NULL )
data/plplot-5.15.0+dfsg/lib/qsastime/tai-utc-gen.c:94:33:  [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 ( ( argc < 3 ) || ( fw = fopen( argv[2], "w" ) ) == NULL )
data/plplot-5.15.0+dfsg/scripts/compare.c: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 refname[100];
data/plplot-5.15.0+dfsg/scripts/compare.c:65: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).
    infile1 = fopen( argv[1], "r" );
data/plplot-5.15.0+dfsg/scripts/compare.c:72: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( refname, "..\\c\\%3.3sc.ps", argv[1] );
data/plplot-5.15.0+dfsg/scripts/compare.c:73: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).
    infile2 = fopen( refname, "r" );
data/plplot-5.15.0+dfsg/src/ltdl_win32.c:38: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 errortext[512];
data/plplot-5.15.0+dfsg/src/pdfutils.c: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 new_mode[3];
data/plplot-5.15.0+dfsg/src/pdfutils.c:126: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).
        pdfs->file = fopen( filename, mode );
data/plplot-5.15.0+dfsg/src/pdfutils.c: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   bitrep[33];
data/plplot-5.15.0+dfsg/src/plargs.c:192: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 opttmp[OPTMAX];
data/plplot-5.15.0+dfsg/src/plargs.c: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 *argv[3];
data/plplot-5.15.0+dfsg/src/plargs.c:1182:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *(int *) tab->var = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:1466:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/plplot-5.15.0+dfsg/src/plargs.c:2134: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).
    plsc->ncol0 = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2155: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).
    plsc->ncol1 = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2401: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).
    plsc->member = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2423:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    plsc->finc = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2445: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).
    plsc->fflen = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2530: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).
    plsc->bufmax = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2639: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).
    plssub( atoi( opt_arg ), -1 );
data/plplot-5.15.0+dfsg/src/plargs.c:2660: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).
    plssub( -1, atoi( opt_arg ) );
data/plplot-5.15.0+dfsg/src/plargs.c:2858: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).
    comp = atoi( opt_arg );
data/plplot-5.15.0+dfsg/src/plbox.c:789: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 string[STRING_LEN];
data/plplot-5.15.0+dfsg/src/plbox.c:1039: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   string[STRING_LEN];
data/plplot-5.15.0+dfsg/src/plbox.c:1434: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   string[STRING_LEN];
data/plplot-5.15.0+dfsg/src/plbox.c:1927: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   string[STRING_LEN];
data/plplot-5.15.0+dfsg/src/plbox.c:2517:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char form[FORMAT_LEN];
data/plplot-5.15.0+dfsg/src/plbox.c:2531:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   form[FORMAT_LEN], temp[TEMP_LEN];
data/plplot-5.15.0+dfsg/src/plbuf.c:539: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( pls->plbuf_buffer, buffer->buffer, buffer->size );
data/plplot-5.15.0+dfsg/src/plbuf.c:547: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 *) ( pls->plbuf_buffer ) + pls->plbuf_top, buffer->buffer, buffer->size );
data/plplot-5.15.0+dfsg/src/plbuf.c:924: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 buffer[256];
data/plplot-5.15.0+dfsg/src/plbuf.c:1604:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buf, (uint8_t *) pls->plbuf_buffer + pls->plbuf_readpos, buf_size );
data/plplot-5.15.0+dfsg/src/plbuf.c:1697: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( (uint8_t *) pls->plbuf_buffer + pls->plbuf_top, buf, buf_size );
data/plplot-5.15.0+dfsg/src/plbuf.c:1814:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if ( memcpy( plot_state->plbuf_buffer, pls->plbuf_buffer, pls->plbuf_top ) == NULL )
data/plplot-5.15.0+dfsg/src/plcont.c: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  form[FORM_LEN], tmpstring[TMPSTRING_LEN];
data/plplot-5.15.0+dfsg/src/plcont.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  flabel[30];
data/plplot-5.15.0+dfsg/src/plcore.c: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 msgbuf[BUFFER2_SIZE];
data/plplot-5.15.0+dfsg/src/plcore.c:892: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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plcore.c:893: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 tmpstring[31];
data/plplot-5.15.0+dfsg/src/plcore.c:1153: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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plcore.c:1154: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 tmpstring[31];
data/plplot-5.15.0+dfsg/src/plcore.c:2363: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( plsc->plwindow, "PLplot" );
data/plplot-5.15.0+dfsg/src/plcore.c:2609: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.
        memset( (char *) pls[ipls], 0, sizeof ( PLStream ) );
data/plplot-5.15.0+dfsg/src/plcore.c:2638: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.
            memset( (char *) pls[ipls], 0, sizeof ( PLStream ) );
data/plplot-5.15.0+dfsg/src/plcore.c:2785: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( plsc->plbuf_buffer, plsr->plbuf_buffer, plsr->plbuf_top );
data/plplot-5.15.0+dfsg/src/plcore.c:2896:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char currdir[PLPLOT_MAX_PATH], *pcurrdir = currdir;
data/plplot-5.15.0+dfsg/src/plcore.c:2897:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char builddir[PLPLOT_MAX_PATH], *pbuilddir = builddir;
data/plplot-5.15.0+dfsg/src/plcore.c:3024:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER2_SIZE];
data/plplot-5.15.0+dfsg/src/plcore.c:3072: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 path[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/src/plcore.c:3077: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).
            fd = fopen( path, "r" );
data/plplot-5.15.0+dfsg/src/plcore.c:3186: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).
        seq = atoi( seqstr );
data/plplot-5.15.0+dfsg/src/plcore.c:3204: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).
        dispatch_table[n]->pl_type    = atoi( devtype );
data/plplot-5.15.0+dfsg/src/plcore.c:3270:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   response[80];
data/plplot-5.15.0+dfsg/src/plcore.c:3353:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ( ( dev = atoi( response ) ) < 1 )
data/plplot-5.15.0+dfsg/src/plcore.c: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 sym[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plcore.c:3422:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char drvspec[ DRVSPEC_SIZE ];
data/plplot-5.15.0+dfsg/src/plctrl.c:163:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c: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 buffer[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c: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 buffer[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:370:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:403:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:1413:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char color_info[COLLEN];
data/plplot-5.15.0+dfsg/src/plctrl.c:1414:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msgbuf[MSGLEN];
data/plplot-5.15.0+dfsg/src/plctrl.c:1620:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         color_info[PALLEN];
data/plplot-5.15.0+dfsg/src/plctrl.c:1628:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         msgbuf[MSGLEN];
data/plplot-5.15.0+dfsg/src/plctrl.c:1904: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( plsc->errmsg, "\n*** PLPLOT ERROR, ABORTING OPERATION ***\n" );
data/plplot-5.15.0+dfsg/src/plctrl.c:2382:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PLPLOT_MAX_PATH], *cp;
data/plplot-5.15.0+dfsg/src/plctrl.c:2575:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:2619:31:  [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 ( ( pls->OutFile = fopen( pls->FileName, "wb+" ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plctrl.c:2659:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:2660:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:2662:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:2702:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:2914:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:2922: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).
        m = atoi( line );
data/plplot-5.15.0+dfsg/src/plctrl.c:2950:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/plplot-5.15.0+dfsg/src/plctrl.c:3157:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msgbuf[1024];
data/plplot-5.15.0+dfsg/src/plfreetype.c:73: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).
    infile = fopen( filename, "r" );
data/plplot-5.15.0+dfsg/src/plfreetype.c: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          font_dir[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/src/plfreetype.c: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        WINDIR_PATH[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/src/plfreetype.c:697: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( font_dir, "c:/windows/fonts/" );
data/plplot-5.15.0+dfsg/src/plfreetype.c:701: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( font_dir, "c:/windows/system/" );
data/plplot-5.15.0+dfsg/src/plfreetype.c:784:29:  [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 ( ( infile = fopen( FT->font_name[i], "r" ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plfreetype.c:786: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 msgbuf[1024];
data/plplot-5.15.0+dfsg/src/plgridd.c: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    flags[250];       // option flags for qhull
data/plplot-5.15.0+dfsg/src/plgridd.c:842: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( flags, "qhull d Qbb Qt", 250 );
data/plplot-5.15.0+dfsg/src/pllegend.c: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 opt_label[max_opts];
data/plplot-5.15.0+dfsg/src/plmap.c:121: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( newX, x, n * sizeof ( double ) );
data/plplot-5.15.0+dfsg/src/plmap.c:122: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( newY, y, n * sizeof ( double ) );
data/plplot-5.15.0+dfsg/src/plmap.c:270:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   warning[1024];                                  //string used for constructing a sensible warning message
data/plplot-5.15.0+dfsg/src/plmap.c:316: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( warning, "Could not find " );
data/plplot-5.15.0+dfsg/src/plmap.c:318: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( warning, " file." );
data/plplot-5.15.0+dfsg/src/plmap.c:339: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( prjfilename, ".prj" );
data/plplot-5.15.0+dfsg/src/plmetafile.c:378:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_BUFFER];
data/plplot-5.15.0+dfsg/src/plmetafile.c: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             buffer[MAX_BUFFER];
data/plplot-5.15.0+dfsg/src/plstdio.c:43:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open      _open
data/plplot-5.15.0+dfsg/src/plstdio.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          * tmpdir_list[PL_MAXNTMPDIR_LIST];
data/plplot-5.15.0+dfsg/src/plstdio.c: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          currdir[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/src/plstdio.c:274:22:  [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).
        fd = fdopen( mkstemp( template ), "wb+" );
data/plplot-5.15.0+dfsg/src/plstdio.c:295: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).
        fd = fdopen( open( template, flags, _S_IREAD | _S_IWRITE ), "wb+" );
data/plplot-5.15.0+dfsg/src/plstdio.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          * tmpdir_list[PL_MAXNTMPDIR_LIST];
data/plplot-5.15.0+dfsg/src/plstdio.c: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          currdir[PLPLOT_MAX_PATH];
data/plplot-5.15.0+dfsg/src/plstripc.c: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  *legline[PEN];
data/plplot-5.15.0+dfsg/src/plstripc.c:303: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( &stripc->x[j][0], &stripc->x[j][istart], (size_t) ( stripc->npts[j] ) * sizeof ( PLFLT ) );
data/plplot-5.15.0+dfsg/src/plstripc.c:304: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( &stripc->y[j][0], &stripc->y[j][istart], (size_t) ( stripc->npts[j] ) * sizeof ( PLFLT ) );
data/plplot-5.15.0+dfsg/src/plsym.c:70: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.
static signed char xygrid[STLEN];
data/plplot-5.15.0+dfsg/utils/plrender.c:132: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    BaseName[80] = "", FileName[90] = "";
data/plplot-5.15.0+dfsg/utils/plrender.c:134: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    mf_magic[40], mf_version[40];
data/plplot-5.15.0+dfsg/utils/plrender.c:167: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    num_buffer[20];
data/plplot-5.15.0+dfsg/utils/plrender.c:169: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    buffer[256];
data/plplot-5.15.0+dfsg/utils/plrender.c:170: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    * cmdstring[256];
data/plplot-5.15.0+dfsg/utils/plrender.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   devname[80];
data/plplot-5.15.0+dfsg/utils/plrender.c:503:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[70];
data/plplot-5.15.0+dfsg/utils/plrender.c:543: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).
        if ( ( MetaFile = fopen( FileName, "rb" ) ) != NULL )
data/plplot-5.15.0+dfsg/utils/plrender.c:549: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).
        if ( ( MetaFile = fopen( FileName, "rb" ) ) != NULL )
data/plplot-5.15.0+dfsg/utils/plrender.c:557: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).
        if ( ( MetaFile = fopen( FileName, "rb" ) ) != NULL )
data/plplot-5.15.0+dfsg/utils/plrender.c:563: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).
        if ( ( MetaFile = fopen( FileName, "rb" ) ) != NULL )
data/plplot-5.15.0+dfsg/utils/plrender.c:662:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf( buffer, "process_next: Unrecognized command code %d", (int) c );
data/plplot-5.15.0+dfsg/utils/plrender.c:1196:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80];
data/plplot-5.15.0+dfsg/utils/plrender.c:1223:23:  [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 ( ( MetaFile = fopen( FileName, "rb" ) ) == NULL )
data/plplot-5.15.0+dfsg/utils/plrender.c:1286:23:  [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 ( ( MetaFile = fopen( FileName, "rb" ) ) == NULL )
data/plplot-5.15.0+dfsg/utils/plrender.c:1454: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).
            input_num = atoi( num_buffer );
data/plplot-5.15.0+dfsg/utils/plrender.c:1846:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tag[80];
data/plplot-5.15.0+dfsg/utils/plrender.c:2071: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).
    disp_beg = atoi( optarg );
data/plplot-5.15.0+dfsg/utils/plrender.c:2092: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).
    disp_end = atoi( optarg );
data/plplot-5.15.0+dfsg/utils/plrender.c:2114: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).
    disp_beg = atoi( optarg );
data/plplot-5.15.0+dfsg/utils/pltek.c:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSZ], xtra, lastchar = '\0';
data/plplot-5.15.0+dfsg/utils/pltek.c: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   c, ibuf[128], *t;
data/plplot-5.15.0+dfsg/utils/pltek.c:44:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( ( fd = fopen( argv[1], "r" ) ) == NULL )
data/plplot-5.15.0+dfsg/utils/pltek.c:114: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).
            ipage += atoi( ibuf + 1 );
data/plplot-5.15.0+dfsg/utils/pltek.c:118: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).
            ipage -= atoi( ibuf + 1 );
data/plplot-5.15.0+dfsg/utils/pltek.c:122: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).
            ipage = atoi( ibuf );
data/plplot-5.15.0+dfsg/utils/tektest.c:74: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).
        x0 = atoi( argv[1] );
data/plplot-5.15.0+dfsg/utils/tektest.c:77: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).
        y0 = atoi( argv[2] );
data/plplot-5.15.0+dfsg/utils/tektest.c:239:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c[5];
data/plplot-5.15.0+dfsg/bindings/qt_gui/plqt.cpp:543:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( this->format, format, 4 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:975: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 ( i = 0; i < (int) strlen( argv[2] ) && arg3_is_kx; i++ )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3699: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).
    cmd = (char *) malloc( strlen( transform_name ) + 40 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3796:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3925:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:3945:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4038:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4058:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4159:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4179:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4260:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4351:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( transform_name ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4465: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).
        len            = strlen( tcl_xform_template ) + strlen( tcl_xform_procname );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4465:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len            = strlen( tcl_xform_template ) + strlen( tcl_xform_procname );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4899: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( string, "ERROR", (size_t) string_length );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4903:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( string, Tcl_GetStringResult( tcl_interp ), (size_t) string_length );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4942:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( argv[1] ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4950:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        label_objs[0] = Tcl_NewStringObj( argv[1], (int) strlen( argv[1] ) );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:4956:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        label_objs[3] = Tcl_NewStringObj( argv[2], (int) strlen( argv[2] ) ); // Should change with Tcl_Obj interface
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:5053:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        array[0] = (char *) malloc( sizeof ( char ) * ( strlen( list_strings ) + 1 ) );
data/plplot-5.15.0+dfsg/bindings/tcl/tclAPI.c:5061:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( array[i], string, (size_t) length );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:158: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).
        argv0_length = strlen( argv[i] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:212: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).
    matPtr->name = (char *) malloc( strlen( argv[0] ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:219: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).
    argv0_length = strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:322: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).
            concatenated_argv_len += strlen( argv[i] ) + 1;
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:327: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( concatenated_argv, "{" );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:331: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( concatenated_argv, " " );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:333: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( concatenated_argv, "}" );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:483: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).
    new->cmd = malloc( strlen( cmd ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:545: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).
        if ( numnewargs == 1 && strlen( args[i] ) == strlen( newargs[0] ) && strcmp( args[i], newargs[0] ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:545:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( numnewargs == 1 && strlen( args[i] ) == strlen( newargs[0] ) && strcmp( args[i], newargs[0] ) == 0 )
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:630: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).
    argv0_length = strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1016: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).
        argv0_length = strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1263:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                concatenated_argv_len += strlen( argv[i] ) + 1;
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1268: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( concatenated_argv, "{" );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1272:17:  [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( concatenated_argv, " " );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1274: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( concatenated_argv, "}" );
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1342:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( ( strlen( string ) > 2 ) && ( strncmp( string, "0x", 2 ) == 0 ) )
data/plplot-5.15.0+dfsg/bindings/tcl/tclMatrix.c:1386: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).
        name            = (char *) malloc( strlen( matPtr->name ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:521: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).
    length = (int) strlen( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:1769: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2200: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  length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2309: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2363:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length         = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2848: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk-x-plat/plplotter.c:2966: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:552: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).
    length = (int) strlen( argv[1] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:1979: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2060: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).
        tmpstring  = (char *) malloc( strlen( argv[2] ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2095: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).
        tmpstring = (char *) malloc( strlen( argv[2] ) + 1 );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2372: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  length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2481: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:2534:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length         = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3018: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/plframe.c:3138: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).
    length = (int) strlen( argv[0] );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:126:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read( a, b, c )     0
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:280:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        numRead = (int) read( fd, buffer, (size_t) numReq );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:329:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        numRead  += (int) read( fd, buffer + numRead, (size_t) numToCopy );
data/plplot-5.15.0+dfsg/bindings/tk/tcpip.c:720:13:  [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.
            sprintf( tmp, "0" );
data/plplot-5.15.0+dfsg/bindings/tk/tkMain.c:504:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = (int) read( fileno( stdin ), input, BUFFER_SIZE );
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp:79: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( drvopt, buffer, bufferSize - strlen( drvopt ) );
data/plplot-5.15.0+dfsg/bindings/wxwidgets/deprecated_wxPLplotstream.cpp:79: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).
    strncat( drvopt, buffer, bufferSize - strlen( drvopt ) );
data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotstream.cpp:71: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( drvopt, buffer, bufferSize - strlen( drvopt ) );
data/plplot-5.15.0+dfsg/bindings/wxwidgets/wxPLplotstream.cpp:71: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).
    strncat( drvopt, buffer, bufferSize - strlen( drvopt ) );
data/plplot-5.15.0+dfsg/cmake/test_linux_ipc/pshm_write.c:91:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      shmp->cnt = read(STDIN_FILENO, shmp->buf, BUF_SIZE);
data/plplot-5.15.0+dfsg/drivers/cairo.c:677:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( aStream->pangoMarkupString ) < ( MAX_MARKUP_LEN - 50 ) )
data/plplot-5.15.0+dfsg/drivers/cairo.c:682: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( aStream->pangoMarkupString, "&#38;", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:682:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "&#38;", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:685: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( aStream->pangoMarkupString, "&#60;", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:685:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "&#60;", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:688: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( aStream->pangoMarkupString, "&#62;", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:688:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "&#62;", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:692: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.
            strncat( aStream->pangoMarkupString, utf8, MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:692:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, utf8, MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:718: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( aStream->pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:718:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:725: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.
            strncat( aStream->pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:727: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).
                MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:734: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( aStream->pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:734:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:741: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.
            strncat( aStream->pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:743: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).
                MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:750: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( aStream->pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:750:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:755: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( aStream->pangoMarkupString, "<span underline=\"single\">", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:755:102:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( aStream->pangoMarkupString, "<span underline=\"single\">", MAX_MARKUP_LEN - 1 - strlen( aStream->pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1023:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen( pangoMarkupString ) > ( MAX_MARKUP_LEN - 50 ) )
data/plplot-5.15.0+dfsg/drivers/cairo.c:1034:21:  [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( pangoMarkupString, "&#38;", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1034:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strncat( pangoMarkupString, "&#38;", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1037:21:  [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( pangoMarkupString, "&#60;", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1037:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strncat( pangoMarkupString, "&#60;", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1040:21:  [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( pangoMarkupString, "&#62;", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1040:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strncat( pangoMarkupString, "&#62;", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1044:21:  [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( pangoMarkupString, utf8, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1044:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strncat( pangoMarkupString, utf8, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1054: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.
                strncat( pangoMarkupString, utf8, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1054:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strncat( pangoMarkupString, utf8, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1064:25:  [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( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1064: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).
                        strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1071:25:  [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( pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:1073: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).
                            MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1081:25:  [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( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1081: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).
                        strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1088:25:  [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( pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:1090: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).
                            MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1098:25:  [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( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1098: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).
                        strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1103:25:  [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( pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:1105: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).
                            MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1166: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( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1166:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1169: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( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1169:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1172: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( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1172:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1179:9:  [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( pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:1181: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).
            MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1187:9:  [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( pangoMarkupString,
data/plplot-5.15.0+dfsg/drivers/cairo.c:1189: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).
            MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1205: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( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1205:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1213: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( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1213:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1218: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 string.
    strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1218: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).
    strncat( pangoMarkupString, "</span>", MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1345:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( familyLookup[i], a, FAMILY_LOOKUP_LEN - 1 );
data/plplot-5.15.0+dfsg/drivers/cairo.c:1350:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( familyLookup[i], defaultFamilyLookup[i], FAMILY_LOOKUP_LEN - 1 );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp:250: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.
                strncat( utf8_string, utf8,
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp:251: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).
                    sizeof ( utf8_string ) - strlen( utf8_string ) - 1 );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp:259: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.
                strncat( utf8_string, utf8,
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets.cpp:260: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).
                    sizeof ( utf8_string ) - strlen( utf8_string ) - 1 );
data/plplot-5.15.0+dfsg/drivers/deprecated_wxwidgets_agg.cpp:492:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len   = strlen( utf8_string );
data/plplot-5.15.0+dfsg/drivers/ntk.c:520:9:  [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.
        sprintf( &dash[j], "}" );
data/plplot-5.15.0+dfsg/drivers/plmeta.c:572:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen( args->string );
data/plplot-5.15.0+dfsg/drivers/ps.c:467: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).
    pls->bytecnt += 1 + (PLINT) strlen( outbuf );
data/plplot-5.15.0+dfsg/drivers/ps.c:704: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).
            pls->bytecnt += (PLINT) strlen( outbuf );
data/plplot-5.15.0+dfsg/drivers/ps.c:725: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).
        pls->bytecnt += (PLINT) strlen( outbuf );
data/plplot-5.15.0+dfsg/drivers/ps.c:748: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).
    len = (int) strlen( p );
data/plplot-5.15.0+dfsg/drivers/pstex.c:69:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len   = strlen( pls->FileName ) + 3;
data/plplot-5.15.0+dfsg/drivers/pstex.c:378: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).
                tp += strlen( mathgreek[n] );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:308:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( FamilyLookup[i], a, FAMILY_LOOKUP_LEN - 1 );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:313:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( FamilyLookup[i], DefaultFamilyLookup[i], FAMILY_LOOKUP_LEN );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:530: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).
    pls->bytecnt += 1 + strlen( outbuf );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:782: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).
            pls->bytecnt += strlen( outbuf );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:803: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).
        pls->bytecnt += strlen( outbuf );
data/plplot-5.15.0+dfsg/drivers/psttf.cc:826: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( p );
data/plplot-5.15.0+dfsg/drivers/svg.c:1015:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( tag ) > 0 )
data/plplot-5.15.0+dfsg/drivers/tk.c:1387: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).
    n   = (int) strlen( pls->plwindow ) + 1;
data/plplot-5.15.0+dfsg/drivers/tk.c:1483: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).
        maxlen        = strlen( pname ) + 10;
data/plplot-5.15.0+dfsg/drivers/tk.c:1496:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for ( i = 0; i < (int) strlen( pls->plwindow ); i++ )
data/plplot-5.15.0+dfsg/drivers/tk.c:2281:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( cmd ) >= dev->cmdbuf_len )
data/plplot-5.15.0+dfsg/drivers/tk.c:2284: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).
        dev->cmdbuf_len = strlen( cmd ) + 20;
data/plplot-5.15.0+dfsg/drivers/wingcc.c:167:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define SetRegStringValue( a, b, c )       SetRegValue( a, b, c, REG_SZ, strlen( c ) + 1 )
data/plplot-5.15.0+dfsg/drivers/wingcc.c:567: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).
    programlength = strlen( pls->program ) + 1;
data/plplot-5.15.0+dfsg/drivers/wingdi.c:1342: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).
    programlength = strlen( pls->program ) + 1;
data/plplot-5.15.0+dfsg/drivers/wingdi.c:2006: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( args->string );
data/plplot-5.15.0+dfsg/drivers/wingdi.c:2161: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).
            args->string, strlen( args->string ) );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:47:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( m_wsemName + 5, baseName, PL_SEMAPHORE_NAME_LENGTH - 5 );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:51:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( m_rsemName + 5, baseName, PL_SEMAPHORE_NAME_LENGTH - 5 );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:55:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( m_tsemName + 5, baseName, PL_SEMAPHORE_NAME_LENGTH - 5 );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:409: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).
        m_name   = new char[strlen( name ) + 1];
data/plplot-5.15.0+dfsg/drivers/wxwidgets_comms.cpp:677:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( m_mutexName + 1, name, 250 );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:651:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            fin.read( (char *) ( &m_seed ), sizeof ( m_seed ) );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:657:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fin.read( (char *) ( &m_seed ), sizeof ( m_seed ) );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:842: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).
    pls->termin      = ( strlen( m_mfo ) ) > 0 ? 0 : 1; // interactive device unless we are writing to memory - pretty sure this is an unused option though
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1112: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( m_mfo, "" );
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1686:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( m_mfo ) > 0 )
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1701: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).
            for ( int i = 0; i < strlen( m_mfo ); ++i )
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1709: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).
            mapName[strlen( m_mfo )] = '\0';
data/plplot-5.15.0+dfsg/drivers/wxwidgets_dev.cpp:1711: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).
            if ( strlen( m_mfo ) > PLPLOT_MAX_PATH - 4 )
data/plplot-5.15.0+dfsg/examples/c++/qt_example.cpp:41: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 len = strlen( argv[i] ) + 1;
data/plplot-5.15.0+dfsg/examples/c++/qt_example.cpp:43:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( Argv[i], argv[i], len );
data/plplot-5.15.0+dfsg/examples/c++/x20.cc:359:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ifs.read( &c, 1 );
data/plplot-5.15.0+dfsg/examples/c++/x20.cc:364:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ifs.read( &c, 1 );
data/plplot-5.15.0+dfsg/examples/c++/x20.cc:375:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ifs.read( (char *) img, w * h );
data/plplot-5.15.0+dfsg/examples/c++/x28.cc:361: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).
    domega = 2. * M_PI / strlen( pstring );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:309: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( time_format, "%Y%", 10 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:311: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( title_suffix, "from 1950 to 2020", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:312: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( xtitle, "Year", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:330: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( time_format, "%S%2%", 10 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:331: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( title_suffix, "near 1961-08-01 (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:336: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( xtitle, "Seconds (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:341: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( xtitle, "Seconds (TAI) labelled with corresponding UTC", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:359: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( time_format, "%S%2%", 10 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:360: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( title_suffix, "near 1963-11-01 (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:365: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( xtitle, "Seconds (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:370: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( xtitle, "Seconds (TAI) labelled with corresponding UTC", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:388: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( time_format, "%S%2%", 10 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:389: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( title_suffix, "near 2009-01-01 (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:394: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( xtitle, "Seconds (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:399: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( xtitle, "Seconds (TAI) labelled with corresponding UTC", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:434: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( title, "@frPLplot Example 29 - TAI-UTC ", 100 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:435:9:  [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( title, title_suffix, 100 - strlen( title ) - 1 );
data/plplot-5.15.0+dfsg/examples/c++/x29.cc:435: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).
        strncat( title, title_suffix, 100 - strlen( title ) - 1 );
data/plplot-5.15.0+dfsg/examples/c/tutor.c:234:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        j = strlen( legend[i] );
data/plplot-5.15.0+dfsg/examples/c/tutor.c:250:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        j = strlen( string );
data/plplot-5.15.0+dfsg/examples/c/tutor.c:260: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( string, " " );
data/plplot-5.15.0+dfsg/examples/c/tutor.c:261:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        j = strlen( string );
data/plplot-5.15.0+dfsg/examples/c/x20c.c:338:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( ( i = fgetc( fp ) ) == '#' )
data/plplot-5.15.0+dfsg/examples/c/x28c.c:340: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).
    domega = 2. * M_PI / (PLFLT) strlen( pstring );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:297: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( time_format, "%Y%", 10 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:299: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( title_suffix, "from 1950 to 2020", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:300: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( xtitle, "Year", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:318: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( time_format, "%S%2%", 10 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:319: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( title_suffix, "near 1961-08-01 (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:324: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( xtitle, "Seconds (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:329: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( xtitle, "Seconds (TAI) labelled with corresponding UTC", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:347: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( time_format, "%S%2%", 10 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:348: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( title_suffix, "near 1963-11-01 (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:353: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( xtitle, "Seconds (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:358: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( xtitle, "Seconds (TAI) labelled with corresponding UTC", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:376: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( time_format, "%S%2%", 10 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:377: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( title_suffix, "near 2009-01-01 (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:382: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( xtitle, "Seconds (TAI)", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:387: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( xtitle, "Seconds (TAI) labelled with corresponding UTC", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:422: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( title, "@frPLplot Example 29 - TAI-UTC ", 100 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:423:9:  [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( title, title_suffix, 100 - strlen( title ) - 1 );
data/plplot-5.15.0+dfsg/examples/c/x29c.c:423: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).
        strncat( title, title_suffix, 100 - strlen( title ) - 1 );
data/plplot-5.15.0+dfsg/include/dirent_msvc.h:99:40:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
# define STRNCPY( dest, src, size )    strncpy( ( dest ), ( src ), ( size ) )
data/plplot-5.15.0+dfsg/include/dirent_msvc.h:114:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert( strlen( dirname ) < MAX_PATH );
data/plplot-5.15.0+dfsg/lib/csa/csa.c:2098: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).
            if ( strlen( argv[i] ) >= STRBUFSIZE )
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:241: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).
    blen = strlen( (const char *) buf );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:265: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).
    blen = strlen( (char *) im->desc );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:319: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).
        fontlistlen = strlen( (const char *) buf ) + 1;
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:401: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).
    blen = strlen( (char *) buf );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:2972:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tslen = strlen( ts );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3174: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).
        listsize = strlen( (char *) oldfonts ) + 1 + strlen( fontname ) + 1;
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3174:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        listsize = strlen( (char *) oldfonts ) + 1 + strlen( fontname ) + 1;
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3178: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).
        listsize = strlen( fontname ) + 1;
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3275:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tmpsl = strlen( tmps );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3279:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( (char *) im->desc, tmps, tmpsl );
data/plplot-5.15.0+dfsg/lib/nistcd/cd.c:3284: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).
    tmpsl        = strlen( tmps );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:309: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( cmd, "Q" );
data/plplot-5.15.0+dfsg/lib/nn/delaunay.c:313: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( cmd, "p" );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:396: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).
    fmtlen     = (int) strlen( format );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:469: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.
                strncat( &( buf[posn] ), dayText, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:470: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:478: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.
                strncat( &( buf[posn] ), dayText, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:479: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:487: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.
                strncat( &( buf[posn] ), monthText, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:488: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:496: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.
                strncat( &( buf[posn] ), monthText, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:497: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:511: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:512: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:525: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:526: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:535: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:536: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:549: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:550: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:562: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:563: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:575: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:576: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:585: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:586: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:600: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:601: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:611: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:612: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:624: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:625: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:643: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:644: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:653: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:654: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:663: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:664: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:684: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:685: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:701: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:702: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:711: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:712: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:744: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).
                        slen = (int) strlen( DateTime ) - 1;
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:753: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:754: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:764: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:765: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:782: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:783: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:797: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:798: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:809: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:810: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:835: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:836: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:855: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:856: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:867: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:868: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:882: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:883: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:897: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:898: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:907: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:908: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:922: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:923: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:935: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:936: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:944:21:  [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( &( buf[posn] ), "UTC Julian", last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:946:21:  [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( &( buf[posn] ), "UTC Gregorian", last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:948: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:955: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 string.
                strncat( &( buf[posn] ), "+0000", last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:956: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:970: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.
                strncat( &( buf[posn] ), DateTime, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:971: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:994: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).
                    slen = (int) strlen( DateTime ) - 1;
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:1006:21:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                    strncat( &( buf[posn] ), ptr, last - posn );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime.c:1007: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).
                posn = strlen( buf );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:51: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).
    int    len     = strlen( ISOstring );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:262: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( &( DateTime[0] ), "Z" );
data/plplot-5.15.0+dfsg/lib/qsastime/qsastime_extra.c:272: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).
        slen = strlen( DateTime ) - 1;
data/plplot-5.15.0+dfsg/src/ltdl_win32.c:99: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( errortext, "No error information", 512 );
data/plplot-5.15.0+dfsg/src/ltdl_win32.c:117: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).
        unsigned int bufferLength = strlen( symbol ) + 2;
data/plplot-5.15.0+dfsg/src/ltdl_win32.c:122:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( &buffer[1], symbol, bufferLength - 2 );
data/plplot-5.15.0+dfsg/src/pdfutils.c:331:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result = getc( pdfs->file );
data/plplot-5.15.0+dfsg/src/pdfutils.c:580: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).
    for ( i = 0; i <= (int) strlen( string ); i++ )
data/plplot-5.15.0+dfsg/src/plargs.c:1141: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).
                (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) );
data/plplot-5.15.0+dfsg/src/plargs.c:1355: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).
            len = 3 + (int) strlen( tab->syntax );              // space [ string ]
data/plplot-5.15.0+dfsg/src/plargs.c:1972:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( opttmp, rgb, OPTMAX - 1 );
data/plplot-5.15.0+dfsg/src/plargs.c:2048: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).
    switch ( strlen( color_field_wp ) )
data/plplot-5.15.0+dfsg/src/plargs.c:2179:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( opttmp, opt_arg, OPTMAX - 1 );
data/plplot-5.15.0+dfsg/src/plargs.c:2227: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).
    option = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) );
data/plplot-5.15.0+dfsg/src/plargs.c:2231:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    value = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) );
data/plplot-5.15.0+dfsg/src/plargs.c:2344:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len        = strlen( opt_arg );
data/plplot-5.15.0+dfsg/src/plargs.c:2369:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( spec, opt_arg, len );
data/plplot-5.15.0+dfsg/src/plargs.c:2593:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( ( plsc->plwindow = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plargs.c:2691:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( ( plsc->geometry = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plargs.c:2778: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).
    if ( ( plsc->tk_file = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plargs.c:2812:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( opttmp, opt_arg, OPTMAX - 1 );
data/plplot-5.15.0+dfsg/src/plargs.c:2981:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( ( plsc->mf_outfile = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plargs.c:3006: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).
    if ( ( plsc->mf_infile = (char *) malloc( (size_t) ( 1 + strlen( opt_arg ) ) * sizeof ( char ) ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plbox.c:1203: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).
            lstring = (PLINT) strlen( string );
data/plplot-5.15.0+dfsg/src/plbox.c:1812: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).
            ydigits = MAX( ydigits, (PLINT) strlen( string ) );
data/plplot-5.15.0+dfsg/src/plbox.c:2376: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).
                ydigits = MAX( ydigits, (PLINT) strlen( string ) );
data/plplot-5.15.0+dfsg/src/plbox.c:2552:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( string, temp, (size_t) ( len - 1 ) );
data/plplot-5.15.0+dfsg/src/plbuf.c:454:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen( text->string ) + 1;
data/plplot-5.15.0+dfsg/src/plcont.c:367: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( string, tmpstring, (size_t) len - strlen( string ) - 1 );
data/plplot-5.15.0+dfsg/src/plcont.c:367: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).
    strncat( string, tmpstring, (size_t) len - strlen( string ) - 1 );
data/plplot-5.15.0+dfsg/src/plcore.c:63: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).
# define NAMLEN( dirent )    strlen( ( dirent )->d_name )
data/plplot-5.15.0+dfsg/src/plcore.c:633: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).
        length = (int) strlen( lookup[i].ptext );
data/plplot-5.15.0+dfsg/src/plcore.c:662: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( string );
data/plplot-5.15.0+dfsg/src/plcore.c:894:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( tmpstring, string, 30 );
data/plplot-5.15.0+dfsg/src/plcore.c:897:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    tmpstring, strlen( string ) > 30 ? "[...]" : "" );
data/plplot-5.15.0+dfsg/src/plcore.c:942: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( string );
data/plplot-5.15.0+dfsg/src/plcore.c:1155:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( tmpstring, string, 30 );
data/plplot-5.15.0+dfsg/src/plcore.c:1158:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    tmpstring, strlen( string ) > 30 ? "[...]" : "" );
data/plplot-5.15.0+dfsg/src/plcore.c:1242: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).
            len = strlen( string );
data/plplot-5.15.0+dfsg/src/plcore.c:2351:69:  [1] (buffer) strlen:
  Does not handle 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 ( ( plsc->plwindow = (char *) malloc( (size_t) ( 1 + strlen( plsc->program ) ) * sizeof ( char ) ) ) == NULL )
data/plplot-5.15.0+dfsg/src/plcore.c:2919: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).
                    len_currdir  = strlen( currdir );
data/plplot-5.15.0+dfsg/src/plcore.c:2920: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).
                    len_builddir = strlen( builddir );
data/plplot-5.15.0+dfsg/src/plcore.c:3064:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen( name ) - 12;
data/plplot-5.15.0+dfsg/src/plcore.c:3098: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).
                if ( buf [strlen( buf ) - 1] != '\n' )
data/plplot-5.15.0+dfsg/src/plcore.c:3280:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( plsc->DevName, devname_env, sizeof ( plsc->DevName ) - 1 );
data/plplot-5.15.0+dfsg/src/plcore.c:3289: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).
        length = strlen( plsc->DevName );
data/plplot-5.15.0+dfsg/src/plcore.c:3337: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).
        length = strlen( response );
data/plplot-5.15.0+dfsg/src/plcore.c:3646:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( plsc->DevName, devname, sizeof ( plsc->DevName ) - 1 );
data/plplot-5.15.0+dfsg/src/plcore.c:3819:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( fnam, plsc->FileName, 79 );
data/plplot-5.15.0+dfsg/src/plcore.c:4311:17:  [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( names, " " );
data/plplot-5.15.0+dfsg/src/plctrl.c:1385: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).
    pchr = buffer + strlen( buffer ) - 1;
data/plplot-5.15.0+dfsg/src/plctrl.c:1418:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( filename ) == 0 )
data/plplot-5.15.0+dfsg/src/plctrl.c:1468: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).
            if ( strlen( color_info ) == 7 )
data/plplot-5.15.0+dfsg/src/plctrl.c:1479: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).
            else if ( strlen( color_info ) > 9 )
data/plplot-5.15.0+dfsg/src/plctrl.c:1634:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( strlen( filename ) == 0 )
data/plplot-5.15.0+dfsg/src/plctrl.c:2393:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( p, buf, (size_t) n );
data/plplot-5.15.0+dfsg/src/plctrl.c:2402:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( cp, buf, (size_t) n );
data/plplot-5.15.0+dfsg/src/plctrl.c:2462: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).
    lfilespec = strlen( dir ) + strlen( subdir ) + strlen( filename ) + 10;
data/plplot-5.15.0+dfsg/src/plctrl.c:2462: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).
    lfilespec = strlen( dir ) + strlen( subdir ) + strlen( filename ) + 10;
data/plplot-5.15.0+dfsg/src/plctrl.c:2462:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lfilespec = strlen( dir ) + strlen( subdir ) + strlen( filename ) + 10;
data/plplot-5.15.0+dfsg/src/plctrl.c:2503:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t ldirspec = strlen( dirspec );
data/plplot-5.15.0+dfsg/src/plctrl.c:2506: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( dirspec, "\\" );
data/plplot-5.15.0+dfsg/src/plctrl.c:2509: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( dirspec, ":" );
data/plplot-5.15.0+dfsg/src/plctrl.c:2512: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( dirspec, "/" );
data/plplot-5.15.0+dfsg/src/plctrl.c:2593: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).
                len = strlen( line );
data/plplot-5.15.0+dfsg/src/plctrl.c:2665: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).
    maxlen = strlen( pls->BaseName ) + 10;
data/plplot-5.15.0+dfsg/src/plctrl.c:2683:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( prefix, pls->BaseName, BUFFER_SIZE - 1 );
data/plplot-5.15.0+dfsg/src/plctrl.c:2710: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).
    maxlen = 10 + strlen( fnam );
data/plplot-5.15.0+dfsg/src/plctrl.c:2720:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( pls->FileName, fnam, maxlen - 1 );
data/plplot-5.15.0+dfsg/src/plctrl.c:2725:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( prefix, fnam, BUFFER_SIZE - 1 );
data/plplot-5.15.0+dfsg/src/plctrl.c:2738:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( pls->BaseName, fnam, maxlen - 1 );
data/plplot-5.15.0+dfsg/src/plctrl.c:2987: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).
    char *dest = (char *) malloc( ( strlen( src ) + 1 ) * sizeof ( char ) );
data/plplot-5.15.0+dfsg/src/plctrl.c:3116:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( saved_lc_numeric_locale, setlocale_ptr, 100 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:656:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( WINDIR_PATH, b, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:689:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( font_dir, a, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:690:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if ( strlen( PL_FREETYPE_FONT_DIR ) > 0 )
data/plplot-5.15.0+dfsg/src/plfreetype.c:691:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( font_dir, PL_FREETYPE_FONT_DIR, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:709:9:  [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( WINDIR_PATH, "\\fonts\\arial.ttf", PLPLOT_MAX_PATH - 1 - strlen( WINDIR_PATH ) );
data/plplot-5.15.0+dfsg/src/plfreetype.c:709:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncat( WINDIR_PATH, "\\fonts\\arial.ttf", PLPLOT_MAX_PATH - 1 - strlen( WINDIR_PATH ) );
data/plplot-5.15.0+dfsg/src/plfreetype.c:736:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( font_dir, a, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:738:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( font_dir, default_unix_font_dir, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:767:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( FT->font_name[i], a, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:771:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( FT->font_name[i], font_dir, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:772: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.
                strncat( FT->font_name[i], a, PLPLOT_MAX_PATH - 1 - strlen( FT->font_name[i] ) );
data/plplot-5.15.0+dfsg/src/plfreetype.c:772:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strncat( FT->font_name[i], a, PLPLOT_MAX_PATH - 1 - strlen( FT->font_name[i] ) );
data/plplot-5.15.0+dfsg/src/plfreetype.c:777:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy( FT->font_name[i], font_dir, PLPLOT_MAX_PATH - 1 );
data/plplot-5.15.0+dfsg/src/plfreetype.c:778: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.
            strncat( FT->font_name[i], (PLCHAR_VECTOR) TrueTypeLookup[i].pfont, PLPLOT_MAX_PATH - 1 - strlen( FT->font_name[i] ) );
data/plplot-5.15.0+dfsg/src/plfreetype.c:778:103:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat( FT->font_name[i], (PLCHAR_VECTOR) TrueTypeLookup[i].pfont, PLPLOT_MAX_PATH - 1 - strlen( FT->font_name[i] ) );
data/plplot-5.15.0+dfsg/src/pllegend.c:1067: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).
    size_t        length_axis_opts = strlen( axis_opts );
data/plplot-5.15.0+dfsg/src/plmap.c:301: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).
        filenamelen = ( strlen( name ) - 4 );
data/plplot-5.15.0+dfsg/src/plmap.c: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).
        filenamelen = strlen( name );
data/plplot-5.15.0+dfsg/src/plmap.c:310:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( filename, name, filenamelen );
data/plplot-5.15.0+dfsg/src/plmap.c:337:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( prjfilename, name, filenamelen );
data/plplot-5.15.0+dfsg/src/plstdio.c:264:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        template = (char *) realloc( template, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + 2 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:264:87:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        template = (char *) realloc( template, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + 2 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:267: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( template, "\\" );
data/plplot-5.15.0+dfsg/src/plstdio.c:269: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( template, "/" );
data/plplot-5.15.0+dfsg/src/plstdio.c:372:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        dirname = (char *) realloc( dirname, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + 2 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:372: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).
        dirname = (char *) realloc( dirname, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + 2 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:375: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( dirname, "\\" );
data/plplot-5.15.0+dfsg/src/plstdio.c:377: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( dirname, "/" );
data/plplot-5.15.0+dfsg/src/plstdio.c:392:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        template = (char *) realloc( template, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + strlen( fifoname ) + 4 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:392:87:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        template = (char *) realloc( template, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + strlen( fifoname ) + 4 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:392:107:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        template = (char *) realloc( template, sizeof ( char ) * ( strlen( tmpdir ) + strlen( tmpname ) + strlen( fifoname ) + 4 ) );
data/plplot-5.15.0+dfsg/src/plstdio.c:395: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( template, "\\" );
data/plplot-5.15.0+dfsg/src/plstdio.c:397: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( template, "/" );
data/plplot-5.15.0+dfsg/src/plsym.c:1108:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    PLINT     ch, ifont = plsc->cfont, ig, j = 0, lentxt = (PLINT) strlen( text );
data/plplot-5.15.0+dfsg/src/pltime.c:71: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).
    plsc->timefmt = (char *) malloc( (size_t) ( strlen( fmt ) + 1 ) );
data/plplot-5.15.0+dfsg/utils/parity_bit_check.c:14:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( ( c = getchar() ) != EOF )
data/plplot-5.15.0+dfsg/utils/plrender.c:523:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( FileName, argv[1], sizeof ( FileName ) - 1 );
data/plplot-5.15.0+dfsg/utils/plrender.c:540:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( name, FileName, sizeof ( name ) - 1 );
data/plplot-5.15.0+dfsg/utils/plrender.c:1313:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc( MetaFile );
data/plplot-5.15.0+dfsg/utils/plrender.c:1365:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c_end = getc( MetaFile );
data/plplot-5.15.0+dfsg/utils/plrender.c:1439:16:  [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.
        (void) strncat( num_buffer, gin->string, ( 20 - strlen( num_buffer ) ) );
data/plplot-5.15.0+dfsg/utils/plrender.c:1439:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (void) strncat( num_buffer, gin->string, ( 20 - strlen( num_buffer ) ) );
data/plplot-5.15.0+dfsg/utils/plrender.c:2048:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( FileName, optarg, sizeof ( FileName ) - 1 );
data/plplot-5.15.0+dfsg/utils/tektest.c:264:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( !getchar() )

ANALYSIS SUMMARY:

Hits = 1381
Lines analyzed = 158192 in approximately 4.06 seconds (38995 lines/second)
Physical Source Lines of Code (SLOC) = 99913
Hits@level = [0] 1385 [1] 429 [2] 721 [3]  32 [4] 198 [5]   1
Hits@level+ = [0+] 2766 [1+] 1381 [2+] 952 [3+] 231 [4+] 199 [5+]   1
Hits/KSLOC@level+ = [0+] 27.6841 [1+] 13.822 [2+] 9.52829 [3+] 2.31201 [4+] 1.99173 [5+] 0.0100087
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.