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/ddd-3.3.12/ddd/ArcGraphE.C
Examining data/ddd-3.3.12/ddd/tempfile.C
Examining data/ddd-3.3.12/ddd/sigName.C
Examining data/ddd-3.3.12/ddd/Swallower.C
Examining data/ddd-3.3.12/ddd/toolbar.C
Examining data/ddd-3.3.12/ddd/logo.h
Examining data/ddd-3.3.12/ddd/VSLNode.h
Examining data/ddd-3.3.12/ddd/PannedGE.C
Examining data/ddd-3.3.12/ddd/DeleteWCB.h
Examining data/ddd-3.3.12/ddd/HintGraphN.C
Examining data/ddd-3.3.12/ddd/source.C
Examining data/ddd-3.3.12/ddd/BoxD.C
Examining data/ddd-3.3.12/ddd/ThemeVSLL.h
Examining data/ddd-3.3.12/ddd/environ.C
Examining data/ddd-3.3.12/ddd/frame.h
Examining data/ddd-3.3.12/ddd/regexps.C
Examining data/ddd-3.3.12/ddd/DataDisp.C
Examining data/ddd-3.3.12/ddd/resolveP.h
Examining data/ddd-3.3.12/ddd/VSLArgList.h
Examining data/ddd-3.3.12/ddd/VSEFlags.C
Examining data/ddd-3.3.12/ddd/Tool.C
Examining data/ddd-3.3.12/ddd/LabelHP.h
Examining data/ddd-3.3.12/ddd/sashes.h
Examining data/ddd-3.3.12/ddd/BreakPoint.C
Examining data/ddd-3.3.12/ddd/PannedGEP.h
Examining data/ddd-3.3.12/ddd/TextSetS.C
Examining data/ddd-3.3.12/ddd/RefreshDI.h
Examining data/ddd-3.3.12/ddd/hash.h
Examining data/ddd-3.3.12/ddd/StringTPA.h
Examining data/ddd-3.3.12/ddd/NameNode.h
Examining data/ddd-3.3.12/ddd/BuiltinCN.h
Examining data/ddd-3.3.12/ddd/rxscan.C
Examining data/ddd-3.3.12/ddd/LiterateA.h
Examining data/ddd-3.3.12/ddd/MString.h
Examining data/ddd-3.3.12/ddd/cmdtty.C
Examining data/ddd-3.3.12/ddd/hash.C
Examining data/ddd-3.3.12/ddd/VSLErr.C
Examining data/ddd-3.3.12/ddd/logplayer.h
Examining data/ddd-3.3.12/ddd/SmartC.h
Examining data/ddd-3.3.12/ddd/StringSA.h
Examining data/ddd-3.3.12/ddd/windows.C
Examining data/ddd-3.3.12/ddd/MatchBox.h
Examining data/ddd-3.3.12/ddd/GraphNPA.h
Examining data/ddd-3.3.12/ddd/freeXmST.h
Examining data/ddd-3.3.12/ddd/StringSAA.h
Examining data/ddd-3.3.12/ddd/layout.h
Examining data/ddd-3.3.12/ddd/ScrolledGE.h
Examining data/ddd-3.3.12/ddd/GraphEdit.h
Examining data/ddd-3.3.12/ddd/ddd.info.txt.gz.C
Examining data/ddd-3.3.12/ddd/SourceO.h
Examining data/ddd-3.3.12/ddd/DeleteWCB.C
Examining data/ddd-3.3.12/ddd/DispNode.h
Examining data/ddd-3.3.12/ddd/layout.C
Examining data/ddd-3.3.12/ddd/BoxD.h
Examining data/ddd-3.3.12/ddd/StringA.h
Examining data/ddd-3.3.12/ddd/TestNode.h
Examining data/ddd-3.3.12/ddd/ChunkQueue.h
Examining data/ddd-3.3.12/ddd/glob.h
Examining data/ddd-3.3.12/ddd/ThemeP.C
Examining data/ddd-3.3.12/ddd/ddd.C
Examining data/ddd-3.3.12/ddd/fonts.h
Examining data/ddd-3.3.12/ddd/session.h
Examining data/ddd-3.3.12/ddd/VSLLib.h
Examining data/ddd-3.3.12/ddd/HatBox.C
Examining data/ddd-3.3.12/ddd/VoidArray.h
Examining data/ddd-3.3.12/ddd/xconfig.h
Examining data/ddd-3.3.12/ddd/LabelH.C
Examining data/ddd-3.3.12/ddd/BoxExtend.h
Examining data/ddd-3.3.12/ddd/HistoryD.h
Examining data/ddd-3.3.12/ddd/VSLRead.C
Examining data/ddd-3.3.12/ddd/BuiltinCN.C
Examining data/ddd-3.3.12/ddd/SpinBox.h
Examining data/ddd-3.3.12/ddd/fortranize.C
Examining data/ddd-3.3.12/ddd/BreakPM.h
Examining data/ddd-3.3.12/ddd/CodeCache.C
Examining data/ddd-3.3.12/ddd/RegionGN.h
Examining data/ddd-3.3.12/ddd/expired.C
Examining data/ddd-3.3.12/ddd/file.h
Examining data/ddd-3.3.12/ddd/annotation.h
Examining data/ddd-3.3.12/ddd/VSLDefList.h
Examining data/ddd-3.3.12/ddd/plotter.C
Examining data/ddd-3.3.12/ddd/streampos.h
Examining data/ddd-3.3.12/ddd/WhatNextCB.h
Examining data/ddd-3.3.12/ddd/ArgField.C
Examining data/ddd-3.3.12/ddd/source.h
Examining data/ddd-3.3.12/ddd/MinMaxA.h
Examining data/ddd-3.3.12/ddd/DispNode.C
Examining data/ddd-3.3.12/ddd/DataLength.h
Examining data/ddd-3.3.12/ddd/FixBox.h
Examining data/ddd-3.3.12/ddd/simpleMenu.h
Examining data/ddd-3.3.12/ddd/TTYAgent.C
Examining data/ddd-3.3.12/ddd/HelpCB.C
Examining data/ddd-3.3.12/ddd/Xpm.h
Examining data/ddd-3.3.12/ddd/ExitCB.h
Examining data/ddd-3.3.12/ddd/GraphEdge.h
Examining data/ddd-3.3.12/ddd/ReadLineA.C
Examining data/ddd-3.3.12/ddd/EdgeA.h
Examining data/ddd-3.3.12/ddd/ungrab.C
Examining data/ddd-3.3.12/ddd/LessTifH.C
Examining data/ddd-3.3.12/ddd/cook.h
Examining data/ddd-3.3.12/ddd/TagBox.h
Examining data/ddd-3.3.12/ddd/java.C
Examining data/ddd-3.3.12/ddd/post.h
Examining data/ddd-3.3.12/ddd/GraphNode.h
Examining data/ddd-3.3.12/ddd/string-fun.C
Examining data/ddd-3.3.12/ddd/DynArray.h
Examining data/ddd-3.3.12/ddd/LineGraphE.C
Examining data/ddd-3.3.12/ddd/LineBox.C
Examining data/ddd-3.3.12/ddd/exit.h
Examining data/ddd-3.3.12/ddd/annotation.C
Examining data/ddd-3.3.12/ddd/NameNode.C
Examining data/ddd-3.3.12/ddd/hypot.h
Examining data/ddd-3.3.12/ddd/AutoRaise.h
Examining data/ddd-3.3.12/ddd/AlignBox.C
Examining data/ddd-3.3.12/ddd/BoxGraphN.C
Examining data/ddd-3.3.12/ddd/disp-read.C
Examining data/ddd-3.3.12/ddd/DispValueT.h
Examining data/ddd-3.3.12/ddd/configinfo.h
Examining data/ddd-3.3.12/ddd/EdgeA.C
Examining data/ddd-3.3.12/ddd/BoxEdgeA.h
Examining data/ddd-3.3.12/ddd/LineBox.h
Examining data/ddd-3.3.12/ddd/BoxWeight.h
Examining data/ddd-3.3.12/ddd/BinBox.h
Examining data/ddd-3.3.12/ddd/resources.h
Examining data/ddd-3.3.12/ddd/BoxEdgeA.C
Examining data/ddd-3.3.12/ddd/EntryType.h
Examining data/ddd-3.3.12/ddd/HistoryF.h
Examining data/ddd-3.3.12/ddd/ListNode.h
Examining data/ddd-3.3.12/ddd/data.h
Examining data/ddd-3.3.12/ddd/resources.C
Examining data/ddd-3.3.12/ddd/UndoBE.C
Examining data/ddd-3.3.12/ddd/Logger.C
Examining data/ddd-3.3.12/ddd/PrimitiveB.C
Examining data/ddd-3.3.12/ddd/cxxtest.C
Examining data/ddd-3.3.12/ddd/getrlimit.h
Examining data/ddd-3.3.12/ddd/XErrorB.C
Examining data/ddd-3.3.12/ddd/StringBox.h
Examining data/ddd-3.3.12/ddd/MakeMenu.C
Examining data/ddd-3.3.12/ddd/complete.h
Examining data/ddd-3.3.12/ddd/SourceView.h
Examining data/ddd-3.3.12/ddd/home.h
Examining data/ddd-3.3.12/ddd/Swallower.h
Examining data/ddd-3.3.12/ddd/TrueBox.C
Examining data/ddd-3.3.12/ddd/SlopeBox.C
Examining data/ddd-3.3.12/ddd/tips.h
Examining data/ddd-3.3.12/ddd/rxclass.h
Examining data/ddd-3.3.12/ddd/selection.h
Examining data/ddd-3.3.12/ddd/index.C
Examining data/ddd-3.3.12/ddd/AsyncAgent.h
Examining data/ddd-3.3.12/ddd/ArgNode.C
Examining data/ddd-3.3.12/ddd/BoxSize.h
Examining data/ddd-3.3.12/ddd/post.C
Examining data/ddd-3.3.12/ddd/TextPosA.h
Examining data/ddd-3.3.12/ddd/ListNode.C
Examining data/ddd-3.3.12/ddd/LabelH.h
Examining data/ddd-3.3.12/ddd/Assoc.h
Examining data/ddd-3.3.12/ddd/shell.h
Examining data/ddd-3.3.12/ddd/MatchBox.C
Examining data/ddd-3.3.12/ddd/THatBox.h
Examining data/ddd-3.3.12/ddd/shorten.C
Examining data/ddd-3.3.12/ddd/DiagBox.h
Examining data/ddd-3.3.12/ddd/selection.C
Examining data/ddd-3.3.12/ddd/converters.C
Examining data/ddd-3.3.12/ddd/DummyNode.h
Examining data/ddd-3.3.12/ddd/TypeInfo.C
Examining data/ddd-3.3.12/ddd/toolbar.h
Examining data/ddd-3.3.12/ddd/explicit.h
Examining data/ddd-3.3.12/ddd/BoxPoint.h
Examining data/ddd-3.3.12/ddd/ctrl.C
Examining data/ddd-3.3.12/ddd/MemCheckD.h
Examining data/ddd-3.3.12/ddd/basename.h
Examining data/ddd-3.3.12/ddd/frame.C
Examining data/ddd-3.3.12/ddd/CallNode.C
Examining data/ddd-3.3.12/ddd/TrueNode.h
Examining data/ddd-3.3.12/ddd/printBox.h
Examining data/ddd-3.3.12/ddd/FontFixBox.C
Examining data/ddd-3.3.12/ddd/TestNode.C
Examining data/ddd-3.3.12/ddd/FontFixBox.h
Examining data/ddd-3.3.12/ddd/THatBox.C
Examining data/ddd-3.3.12/ddd/print.h
Examining data/ddd-3.3.12/ddd/eps-code.h
Examining data/ddd-3.3.12/ddd/isid.C
Examining data/ddd-3.3.12/ddd/UndoBuffer.h
Examining data/ddd-3.3.12/ddd/MakeMenu.h
Examining data/ddd-3.3.12/ddd/BinBox.C
Examining data/ddd-3.3.12/ddd/assert.C
Examining data/ddd-3.3.12/ddd/fileSBF.C
Examining data/ddd-3.3.12/ddd/vsl-lex.C
Examining data/ddd-3.3.12/ddd/PosGraphN.h
Examining data/ddd-3.3.12/ddd/vsl-gramma.h
Examining data/ddd-3.3.12/ddd/LineGraphE.h
Examining data/ddd-3.3.12/ddd/PrintGC.C
Examining data/ddd-3.3.12/ddd/ungrab.h
Examining data/ddd-3.3.12/ddd/TextSetS.h
Examining data/ddd-3.3.12/ddd/tabs.C
Examining data/ddd-3.3.12/ddd/DummyNode.C
Examining data/ddd-3.3.12/ddd/cmdtty.h
Examining data/ddd-3.3.12/ddd/UniqueId.h
Examining data/ddd-3.3.12/ddd/wm.h
Examining data/ddd-3.3.12/ddd/SwallowerP.h
Examining data/ddd-3.3.12/ddd/XErrorB.h
Examining data/ddd-3.3.12/ddd/settings.h
Examining data/ddd-3.3.12/ddd/LineGESI.h
Examining data/ddd-3.3.12/ddd/home.C
Examining data/ddd-3.3.12/ddd/ChunkQueue.C
Examining data/ddd-3.3.12/ddd/VSEFlags.h
Examining data/ddd-3.3.12/ddd/dbx-lookup.C
Examining data/ddd-3.3.12/ddd/options.h
Examining data/ddd-3.3.12/ddd/findWindow.h
Examining data/ddd-3.3.12/ddd/DispBox.C
Examining data/ddd-3.3.12/ddd/Map.h
Examining data/ddd-3.3.12/ddd/value-read.C
Examining data/ddd-3.3.12/ddd/regexps.h
Examining data/ddd-3.3.12/ddd/VSLDef.h
Examining data/ddd-3.3.12/ddd/charsets.h
Examining data/ddd-3.3.12/ddd/history.h
Examining data/ddd-3.3.12/ddd/tabs.h
Examining data/ddd-3.3.12/ddd/expired.h
Examining data/ddd-3.3.12/ddd/file.C
Examining data/ddd-3.3.12/ddd/events.h
Examining data/ddd-3.3.12/ddd/logplayer.C
Examining data/ddd-3.3.12/ddd/MemCheck.C
Examining data/ddd-3.3.12/ddd/filetype.h
Examining data/ddd-3.3.12/ddd/ArcGraphE.h
Examining data/ddd-3.3.12/ddd/editing.C
Examining data/ddd-3.3.12/ddd/rxclass.C
Examining data/ddd-3.3.12/ddd/examine.h
Examining data/ddd-3.3.12/ddd/hostname.C
Examining data/ddd-3.3.12/ddd/BoxPoint.C
Examining data/ddd-3.3.12/ddd/comm-manag.h
Examining data/ddd-3.3.12/ddd/buttons.C
Examining data/ddd-3.3.12/ddd/assert.h
Examining data/ddd-3.3.12/ddd/sashes.C
Examining data/ddd-3.3.12/ddd/charsets.C
Examining data/ddd-3.3.12/ddd/question.C
Examining data/ddd-3.3.12/ddd/EdgeAPA.h
Examining data/ddd-3.3.12/ddd/ArcBox.h
Examining data/ddd-3.3.12/ddd/VSLDefList.C
Examining data/ddd-3.3.12/ddd/glob.C
Examining data/ddd-3.3.12/ddd/MarkBox.C
Examining data/ddd-3.3.12/ddd/args.C
Examining data/ddd-3.3.12/ddd/ArgField.h
Examining data/ddd-3.3.12/ddd/fortranize.h
Examining data/ddd-3.3.12/ddd/Box.h
Examining data/ddd-3.3.12/ddd/FontTable.h
Examining data/ddd-3.3.12/ddd/HatBox.h
Examining data/ddd-3.3.12/ddd/DefCallN.h
Examining data/ddd-3.3.12/ddd/AppData.h
Examining data/ddd-3.3.12/ddd/tictactoe.h
Examining data/ddd-3.3.12/ddd/exectty.C
Examining data/ddd-3.3.12/ddd/GraphGC.h
Examining data/ddd-3.3.12/ddd/verify.h
Examining data/ddd-3.3.12/ddd/ArgNode.h
Examining data/ddd-3.3.12/ddd/ScrolledGE.C
Examining data/ddd-3.3.12/ddd/AlignBox.h
Examining data/ddd-3.3.12/ddd/cwd.h
Examining data/ddd-3.3.12/ddd/SlopeBox.h
Examining data/ddd-3.3.12/ddd/tempfile.h
Examining data/ddd-3.3.12/ddd/BreakPoint.h
Examining data/ddd-3.3.12/ddd/gdbinit.h
Examining data/ddd-3.3.12/ddd/ListBox.C
Examining data/ddd-3.3.12/ddd/casts.h
Examining data/ddd-3.3.12/ddd/buttons.h
Examining data/ddd-3.3.12/ddd/ColorBox.C
Examining data/ddd-3.3.12/ddd/UndoBE.h
Examining data/ddd-3.3.12/ddd/ThemeP.h
Examining data/ddd-3.3.12/ddd/vsldoc.C
Examining data/ddd-3.3.12/ddd/ExitCB.C
Examining data/ddd-3.3.12/ddd/CodeCache.h
Examining data/ddd-3.3.12/ddd/PannedGE.h
Examining data/ddd-3.3.12/ddd/AliasGE.h
Examining data/ddd-3.3.12/ddd/string-fun.h
Examining data/ddd-3.3.12/ddd/DispGraph.C
Examining data/ddd-3.3.12/ddd/stringify.C
Examining data/ddd-3.3.12/ddd/stty.h
Examining data/ddd-3.3.12/ddd/yacctoC.h
Examining data/ddd-3.3.12/ddd/tips.C
Examining data/ddd-3.3.12/ddd/ddd.vsl.h
Examining data/ddd-3.3.12/ddd/compare.h
Examining data/ddd-3.3.12/ddd/PosBuffer.h
Examining data/ddd-3.3.12/ddd/DataLink.h
Examining data/ddd-3.3.12/ddd/LetNode.h
Examining data/ddd-3.3.12/ddd/LessTifH.h
Examining data/ddd-3.3.12/ddd/PosBuffer.C
Examining data/ddd-3.3.12/ddd/sigName.h
Examining data/ddd-3.3.12/ddd/tictactoe.C
Examining data/ddd-3.3.12/ddd/DispValueA.h
Examining data/ddd-3.3.12/ddd/VSLNode.C
Examining data/ddd-3.3.12/ddd/xlibdir.C
Examining data/ddd-3.3.12/ddd/StringBox.C
Examining data/ddd-3.3.12/ddd/AgentM.h
Examining data/ddd-3.3.12/ddd/DataLength.C
Examining data/ddd-3.3.12/ddd/findParent.C
Examining data/ddd-3.3.12/ddd/deref.C
Examining data/ddd-3.3.12/ddd/exectty.h
Examining data/ddd-3.3.12/ddd/DispNodeM.h
Examining data/ddd-3.3.12/ddd/compare.C
Examining data/ddd-3.3.12/ddd/show.h
Examining data/ddd-3.3.12/ddd/HandlerL.C
Examining data/ddd-3.3.12/ddd/CompositeB.h
Examining data/ddd-3.3.12/ddd/HandlerL.h
Examining data/ddd-3.3.12/ddd/TrueNode.C
Examining data/ddd-3.3.12/ddd/mainloop.C
Examining data/ddd-3.3.12/ddd/AutoRaise.C
Examining data/ddd-3.3.12/ddd/TrueBox.h
Examining data/ddd-3.3.12/ddd/java.h
Examining data/ddd-3.3.12/ddd/VSLLib.C
Examining data/ddd-3.3.12/ddd/dbx-lookup.h
Examining data/ddd-3.3.12/ddd/index.h
Examining data/ddd-3.3.12/ddd/question.h
Examining data/ddd-3.3.12/ddd/logo.C
Examining data/ddd-3.3.12/ddd/MarkBox.h
Examining data/ddd-3.3.12/ddd/Graph.h
Examining data/ddd-3.3.12/ddd/hostname.h
Examining data/ddd-3.3.12/ddd/IntIntAA.h
Examining data/ddd-3.3.12/ddd/value-read.h
Examining data/ddd-3.3.12/ddd/BoxExtend.C
Examining data/ddd-3.3.12/ddd/BoxRegion.C
Examining data/ddd-3.3.12/ddd/vsldoc.h
Examining data/ddd-3.3.12/ddd/LetNode.C
Examining data/ddd-3.3.12/ddd/BoxGraphN.h
Examining data/ddd-3.3.12/ddd/ThemeM.h
Examining data/ddd-3.3.12/ddd/verify.C
Examining data/ddd-3.3.12/ddd/MString.C
Examining data/ddd-3.3.12/ddd/LiterateA.C
Examining data/ddd-3.3.12/ddd/ctrl.h
Examining data/ddd-3.3.12/ddd/PlotAgent.h
Examining data/ddd-3.3.12/ddd/SourceView.C
Examining data/ddd-3.3.12/ddd/PosGraphN.C
Examining data/ddd-3.3.12/ddd/Command.C
Examining data/ddd-3.3.12/ddd/DispBuffer.C
Examining data/ddd-3.3.12/ddd/examine.C
Examining data/ddd-3.3.12/ddd/mainloop.h
Examining data/ddd-3.3.12/ddd/ConstNode.h
Examining data/ddd-3.3.12/ddd/mydialogs.h
Examining data/ddd-3.3.12/ddd/history.C
Examining data/ddd-3.3.12/ddd/shell.C
Examining data/ddd-3.3.12/ddd/ComboBox.h
Examining data/ddd-3.3.12/ddd/FixBox.C
Examining data/ddd-3.3.12/ddd/BoxRegion.h
Examining data/ddd-3.3.12/ddd/ColorBox.h
Examining data/ddd-3.3.12/ddd/Sash.h
Examining data/ddd-3.3.12/ddd/Agent.C
Examining data/ddd-3.3.12/ddd/GraphEditP.h
Examining data/ddd-3.3.12/ddd/Delay.h
Examining data/ddd-3.3.12/ddd/shorten.h
Examining data/ddd-3.3.12/ddd/misc.h
Examining data/ddd-3.3.12/ddd/TagBox.C
Examining data/ddd-3.3.12/ddd/status.C
Examining data/ddd-3.3.12/ddd/filetype.C
Examining data/ddd-3.3.12/ddd/GraphGC.C
Examining data/ddd-3.3.12/ddd/ddd.h
Examining data/ddd-3.3.12/ddd/StatArray.h
Examining data/ddd-3.3.12/ddd/DocSpace.c
Examining data/ddd-3.3.12/ddd/GraphNodeI.h
Examining data/ddd-3.3.12/ddd/fileSBF.h
Examining data/ddd-3.3.12/ddd/select.C
Examining data/ddd-3.3.12/ddd/AliasGE.C
Examining data/ddd-3.3.12/ddd/Command.h
Examining data/ddd-3.3.12/ddd/Logger.h
Examining data/ddd-3.3.12/ddd/DummyBox.h
Examining data/ddd-3.3.12/ddd/MemCheck.h
Examining data/ddd-3.3.12/ddd/strtoul.h
Examining data/ddd-3.3.12/ddd/args.h
Examining data/ddd-3.3.12/ddd/ComboBox.C
Examining data/ddd-3.3.12/ddd/PlotAgent.C
Examining data/ddd-3.3.12/ddd/print.C
Examining data/ddd-3.3.12/ddd/ReadLineA.h
Examining data/ddd-3.3.12/ddd/TTYAgent.h
Examining data/ddd-3.3.12/ddd/Delay.C
Examining data/ddd-3.3.12/ddd/decoration.C
Examining data/ddd-3.3.12/ddd/longName.h
Examining data/ddd-3.3.12/ddd/TypeInfo.h
Examining data/ddd-3.3.12/ddd/BindingS.h
Examining data/ddd-3.3.12/ddd/OnOff.h
Examining data/ddd-3.3.12/ddd/SmartC.C
Examining data/ddd-3.3.12/ddd/LineGESI.C
Examining data/ddd-3.3.12/ddd/bool.h
Examining data/ddd-3.3.12/ddd/ThemeVSLL.C
Examining data/ddd-3.3.12/ddd/longName.C
Examining data/ddd-3.3.12/ddd/TimeOut.C
Examining data/ddd-3.3.12/ddd/VSLBuiltin.C
Examining data/ddd-3.3.12/ddd/UndoBuffer.C
Examining data/ddd-3.3.12/ddd/VSLArgList.C
Examining data/ddd-3.3.12/ddd/SignalB.h
Examining data/ddd-3.3.12/ddd/ctest.c
Examining data/ddd-3.3.12/ddd/pi.h
Examining data/ddd-3.3.12/ddd/PrintGC.h
Examining data/ddd-3.3.12/ddd/IntArray.h
Examining data/ddd-3.3.12/ddd/BoxSize.C
Examining data/ddd-3.3.12/ddd/findWindow.C
Examining data/ddd-3.3.12/ddd/basename.C
Examining data/ddd-3.3.12/ddd/DispGraph.h
Examining data/ddd-3.3.12/ddd/wm.C
Examining data/ddd-3.3.12/ddd/ProgressM.h
Examining data/ddd-3.3.12/ddd/isid.h
Examining data/ddd-3.3.12/ddd/mydialogs.C
Examining data/ddd-3.3.12/ddd/ProgressM.C
Examining data/ddd-3.3.12/ddd/fonts.C
Examining data/ddd-3.3.12/ddd/DummyBox.C
Examining data/ddd-3.3.12/ddd/attribute.h
Examining data/ddd-3.3.12/ddd/CallNode.h
Examining data/ddd-3.3.12/ddd/plotter.h
Examining data/ddd-3.3.12/ddd/converters.h
Examining data/ddd-3.3.12/ddd/WhatNextCB.C
Examining data/ddd-3.3.12/ddd/GraphEdge.C
Examining data/ddd-3.3.12/ddd/Graph.C
Examining data/ddd-3.3.12/ddd/ArcBox.C
Examining data/ddd-3.3.12/ddd/oldcxx.h
Examining data/ddd-3.3.12/ddd/VSLBuiltin.h
Examining data/ddd-3.3.12/ddd/InitImage.h
Examining data/ddd-3.3.12/ddd/select.h
Examining data/ddd-3.3.12/ddd/vsl.C
Examining data/ddd-3.3.12/ddd/userinfo.C
Examining data/ddd-3.3.12/ddd/SignalB.C
Examining data/ddd-3.3.12/ddd/DispValueT.C
Examining data/ddd-3.3.12/ddd/Tool.h
Examining data/ddd-3.3.12/ddd/HistoryD.C
Examining data/ddd-3.3.12/ddd/AsyncAgent.C
Examining data/ddd-3.3.12/ddd/disp-read.h
Examining data/ddd-3.3.12/ddd/DestroyCB.h
Examining data/ddd-3.3.12/ddd/decoration.h
Examining data/ddd-3.3.12/ddd/SpinBox.C
Examining data/ddd-3.3.12/ddd/WidgetSA.h
Examining data/ddd-3.3.12/ddd/Box.C
Examining data/ddd-3.3.12/ddd/vsl-gramma.C
Examining data/ddd-3.3.12/ddd/InitImage.C
Examining data/ddd-3.3.12/ddd/my-alloca.h
Examining data/ddd-3.3.12/ddd/GraphEdit.C
Examining data/ddd-3.3.12/ddd/FontTable.C
Examining data/ddd-3.3.12/ddd/comm-manag.C
Examining data/ddd-3.3.12/ddd/ListBox.h
Examining data/ddd-3.3.12/ddd/GraphNode.C
Examining data/ddd-3.3.12/ddd/BoxC.h
Examining data/ddd-3.3.12/ddd/ConstNode.C
Examining data/ddd-3.3.12/ddd/UniqueId.C
Examining data/ddd-3.3.12/ddd/session.C
Examining data/ddd-3.3.12/ddd/DestroyCB.C
Examining data/ddd-3.3.12/ddd/GDBAgent.h
Examining data/ddd-3.3.12/ddd/ThemeM.C
Examining data/ddd-3.3.12/ddd/VarArray.h
Examining data/ddd-3.3.12/ddd/PlotArea.C
Examining data/ddd-3.3.12/ddd/DispBox.h
Examining data/ddd-3.3.12/ddd/TimeOut.h
Examining data/ddd-3.3.12/ddd/settings.C
Examining data/ddd-3.3.12/ddd/deref.h
Examining data/ddd-3.3.12/ddd/RegionGN.C
Examining data/ddd-3.3.12/ddd/COPYING.gz.C
Examining data/ddd-3.3.12/ddd/Widget.h
Examining data/ddd-3.3.12/ddd/RefreshDI.C
Examining data/ddd-3.3.12/ddd/StringMap.h
Examining data/ddd-3.3.12/ddd/mutable.h
Examining data/ddd-3.3.12/ddd/HintGraphN.h
Examining data/ddd-3.3.12/ddd/DocSpace.h
Examining data/ddd-3.3.12/ddd/uniquify.h
Examining data/ddd-3.3.12/ddd/CompositeB.C
Examining data/ddd-3.3.12/ddd/DefCallN.C
Examining data/ddd-3.3.12/ddd/gdbinit.C
Examining data/ddd-3.3.12/ddd/PrimitiveB.h
Examining data/ddd-3.3.12/ddd/ScrolleGEP.h
Examining data/ddd-3.3.12/ddd/PlotArea.h
Examining data/ddd-3.3.12/ddd/Agent.h
Examining data/ddd-3.3.12/ddd/DocSpaceP.h
Examining data/ddd-3.3.12/ddd/windows.h
Examining data/ddd-3.3.12/ddd/VSLDef.C
Examining data/ddd-3.3.12/ddd/editing.h
Examining data/ddd-3.3.12/ddd/xconfig.C
Examining data/ddd-3.3.12/ddd/DispBuffer.h
Examining data/ddd-3.3.12/ddd/DispValue.h
Examining data/ddd-3.3.12/ddd/my-dirent.h
Examining data/ddd-3.3.12/ddd/uniquify.C
Examining data/ddd-3.3.12/ddd/cook.C
Examining data/ddd-3.3.12/ddd/options.C
Examining data/ddd-3.3.12/ddd/events.C
Examining data/ddd-3.3.12/ddd/DataDisp.h
Examining data/ddd-3.3.12/ddd/NEWS.gz.C
Examining data/ddd-3.3.12/ddd/findParent.h
Examining data/ddd-3.3.12/ddd/status.h
Examining data/ddd-3.3.12/ddd/simpleMenu.C
Examining data/ddd-3.3.12/ddd/AgentM.C
Examining data/ddd-3.3.12/ddd/environ.h
Examining data/ddd-3.3.12/ddd/freeXmST.C
Examining data/ddd-3.3.12/ddd/HelpCB.h
Examining data/ddd-3.3.12/ddd/Queue.h
Examining data/ddd-3.3.12/ddd/printBox.C
Examining data/ddd-3.3.12/ddd/cwd.C
Examining data/ddd-3.3.12/ddd/data.C
Examining data/ddd-3.3.12/ddd/DiagBox.C
Examining data/ddd-3.3.12/ddd/resolveP.C
Examining data/ddd-3.3.12/ddd/show.C
Examining data/ddd-3.3.12/ddd/GDBAgent.C
Examining data/ddd-3.3.12/ddd/DispValue.C
Examining data/ddd-3.3.12/ddd/complete.C
Examining data/ddd-3.3.12/ddd/exit.C
Examining data/ddd-3.3.12/ddd/strclass.C
Examining data/ddd-3.3.12/ddd/strclass.h

FINAL RESULTS:

data/ddd-3.3.12/ddd/Agent.C:288:5:  [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.
    execl("/bin/sh", "sh", "-c", exec_cmd, STATIC_CAST(char *,0));
data/ddd-3.3.12/ddd/DispBox.C:128:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(new char[vsllib_path.length() + 1], vsllib_path.chars());
data/ddd-3.3.12/ddd/ExitCB.C:62:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execvp(saved_argv()[0], saved_argv());
data/ddd-3.3.12/ddd/ExitCB.C:80:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(_saved_argv[i], argv[i]);
data/ddd-3.3.12/ddd/ExitCB.C:96:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(_saved_environ[i], environ[i]);
data/ddd-3.3.12/ddd/TTYAgent.C:361:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(tty, R_OK | W_OK) != 0)
data/ddd-3.3.12/ddd/TTYAgent.C:429:6:  [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(line, R_OK | W_OK) == 0)
data/ddd-3.3.12/ddd/VSEFlags.C:477:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(buffer, path.chars());
data/ddd-3.3.12/ddd/VSEFlags.C:502: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.
	nargs = fscanf(fp, "%s%*[ \t]%s%*[ \t]%*[\n]", buf1, buf2);
data/ddd-3.3.12/ddd/complete.C:558: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(ret, completion.chars());
data/ddd-3.3.12/ddd/ddd.C:2090:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(gdb_name.chars(), argv);
data/ddd-3.3.12/ddd/ddd.C:3075: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(XtName(locals_w), tmp_1_.chars());
data/ddd-3.3.12/ddd/ddd.C:3077: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(XtName(args_w),   tmp_2_.chars());
data/ddd-3.3.12/ddd/environ.C:50: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(env, env_s.chars());
data/ddd-3.3.12/ddd/exectty.C:79:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/exectty.C:779:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	FILE *fp = popen(command.chars(), "w");
data/ddd-3.3.12/ddd/exit.C:632:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(cause, "`%s' signal", title);
data/ddd-3.3.12/ddd/exit.C:841:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(message, format, arg);
data/ddd-3.3.12/ddd/exit.C:1287:5:  [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(s1.chars());
data/ddd-3.3.12/ddd/exit.C:1309:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(gdb_command.chars(), "r");
data/ddd-3.3.12/ddd/file.C:86:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/file.C:1103:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(cmd.chars(), "r");
data/ddd-3.3.12/ddd/file.C:1170:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      FILE *fp = popen(kill.chars(), "r");
data/ddd-3.3.12/ddd/filetype.C:77:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/filetype.C:221:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(cmd.chars(), "r");
data/ddd-3.3.12/ddd/glob.C:401:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (result[i], "%s%s%s", dir, add_slash ? "/" : "", array[i]);
data/ddd-3.3.12/ddd/hostname.C:40:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/hostname.C:111:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buffer, un.nodename);
data/ddd-3.3.12/ddd/hostname.C:118:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	FILE *fp = popen("uname -n", "r");
data/ddd-3.3.12/ddd/hostname.C:122:6:  [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.
	    fscanf(fp, "%s", buffer);
data/ddd-3.3.12/ddd/hostname.C:128: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).
	name = strcpy(new char[strlen(buffer) + 1], buffer);
data/ddd-3.3.12/ddd/hostname.C:176:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(num_host + strlen(num_host), i ? ".%d" : "%d",
data/ddd-3.3.12/ddd/hostname.C:203:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	return name = strcpy(new char[strlen(n) + 1], n);
data/ddd-3.3.12/ddd/layout.C:819:2:  [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 ( BOXHEADER );
data/ddd-3.3.12/ddd/layout.C:826:2:  [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 ( TEXTHEADER );
data/ddd-3.3.12/ddd/layout.C:895:2:  [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 (FWDLINE);
data/ddd-3.3.12/ddd/layout.C:898:2:  [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 (BKWDLINE);
data/ddd-3.3.12/ddd/layout.C:902:2:  [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 (LINE);
data/ddd-3.3.12/ddd/layout.C:917: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 (XFIGHEADER);
data/ddd-3.3.12/ddd/layout.C:1123:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (node->attr.node.label, id->label);
data/ddd-3.3.12/ddd/layout.C:1173: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 (graph->label, label);
data/ddd-3.3.12/ddd/options.C:113:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/options.C:1544:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    FILE *fp = popen(cmd.chars(), "r");
data/ddd-3.3.12/ddd/plotter.C:1217:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(target.chars(), W_OK) == 0 && is_regular_file(target))
data/ddd-3.3.12/ddd/print.C:317:6:  [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(f.chars(), W_OK) || !is_regular_file(f) || override)
data/ddd-3.3.12/ddd/settings.C:338:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(s1.chars(), "r");
data/ddd-3.3.12/ddd/settings.C:1796: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(set_command_s, set_command.chars());
data/ddd-3.3.12/ddd/settings.C:3735: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(c, command.chars());
data/ddd-3.3.12/ddd/show.C:67:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/show.C:470:10:  [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.
    fp = popen(s1.chars(), "r");
data/ddd-3.3.12/ddd/show.C:509:10:  [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 = popen(s1.chars(), "w");
data/ddd-3.3.12/ddd/show.C:543:5:  [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(cmd.chars());
data/ddd-3.3.12/ddd/show.C:654:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(s1.chars(), "r");
data/ddd-3.3.12/ddd/show.C:713:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(s1.chars(), "r");
data/ddd-3.3.12/ddd/tempfile.C:69: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(templ, base);
data/ddd-3.3.12/ddd/userinfo.C:71: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(preferences, home);
data/ddd-3.3.12/ddd/userinfo.C:73: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(preferences, dotrc);
data/ddd-3.3.12/ddd/userinfo.C:109: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(signature, home);
data/ddd-3.3.12/ddd/userinfo.C:111: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(signature, dotrc);
data/ddd-3.3.12/ddd/userinfo.C:147: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(buffer, pwd->pw_name);
data/ddd-3.3.12/ddd/userinfo.C:149: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(buffer, fullhostname());
data/ddd-3.3.12/ddd/vsl-gramma.C:1038:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/ddd-3.3.12/ddd/vsl-lex.C:1068:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, (char *)vsltext);
data/ddd-3.3.12/ddd/vsl-lex.C:1085:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, (char *)vsltext);
data/ddd-3.3.12/ddd/vsl-lex.C:2415:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(includeList, dir.chars());
data/ddd-3.3.12/ddd/vsl-lex.C:2429:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path, p);
data/ddd-3.3.12/ddd/vsl-lex.C:2431:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(path, filename);
data/ddd-3.3.12/ddd/xconfig.C:56:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" FILE *popen(const char *command, const char *mode);
data/ddd-3.3.12/ddd/xconfig.C:109:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(s1.chars(), "r");
data/ddd-3.3.12/ddd/GDBAgent.C:3216: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.
	const char *g = getenv("GDBHISTFILE");
data/ddd-3.3.12/ddd/GDBAgent.C:3234: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.
	const char *g = getenv("XDBHIST");
data/ddd-3.3.12/ddd/SourceView.C:4723:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *p = getenv("CLASSPATH");
data/ddd-3.3.12/ddd/SourceView.C:4747: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.
	const char *p = getenv("CLASSPATH");
data/ddd-3.3.12/ddd/converters.C:422:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *xbmlangpath = getenv("XBMLANGPATH");
data/ddd-3.3.12/ddd/converters.C:425:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *xapplresdir = getenv("XAPPLRESDIR");
data/ddd-3.3.12/ddd/cwd.C:67: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.
    const char *pwd = getenv("PWD");
data/ddd-3.3.12/ddd/cxxtest.C:52:50:  [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.
#if HAVE_RANDOM && !HAVE_RANDOM_DECL && !defined(random)
data/ddd-3.3.12/ddd/cxxtest.C:53:10:  [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.
long int random();
data/ddd-3.3.12/ddd/cxxtest.C:55:52:  [3] (random) srandom:
  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.
#if HAVE_SRANDOM && !HAVE_SRANDOM_DECL && !defined(srandom)
data/ddd-3.3.12/ddd/cxxtest.C:56:6:  [3] (random) srandom:
  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.
void srandom(unsigned int seed);
data/ddd-3.3.12/ddd/cxxtest.C:61:48:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#if HAVE_SRAND && !HAVE_SRAND_DECL && !defined(srand)
data/ddd-3.3.12/ddd/cxxtest.C:62:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void srand(unsigned int seed);
data/ddd-3.3.12/ddd/cxxtest.C:76:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((int)tm);
data/ddd-3.3.12/ddd/cxxtest.C:78:5:  [3] (random) srandom:
  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.
    srandom((int)tm);
data/ddd-3.3.12/ddd/cxxtest.C:91:12:  [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.
    return random() % x;
data/ddd-3.3.12/ddd/dbx-lookup.C:177: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.
		     quote(getenv("EDITOR") ? getenv("EDITOR") : "vi"));
data/ddd-3.3.12/ddd/dbx-lookup.C:177: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.
		     quote(getenv("EDITOR") ? getenv("EDITOR") : "vi"));
data/ddd-3.3.12/ddd/ddd.C:2062:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(DDD_NAME "_NO_SIGNAL_HANDLERS") == 0)
data/ddd-3.3.12/ddd/environ.C:69: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.
	const char *env = getenv(name.chars());
data/ddd-3.3.12/ddd/exectty.C:586:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *shell_s = getenv("SHELL");
data/ddd-3.3.12/ddd/filetype.C:434:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *path_s = getenv("PATH");
data/ddd-3.3.12/ddd/gdbinit.C:410: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.
	const char *path_s = getenv("PATH");
data/ddd-3.3.12/ddd/gdbinit.C:472:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    const char *classpath_s = getenv("CLASSPATH");
data/ddd-3.3.12/ddd/home.C:46: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.
	const char *h = getenv("HOME");
data/ddd-3.3.12/ddd/home.C:56:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *user = getenv("USER");
data/ddd-3.3.12/ddd/home.C:58:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    user = getenv("LOGNAME");
data/ddd-3.3.12/ddd/logplayer.C:397: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.
	logname = string(getenv("HOME")) + "/.ddd/log";
data/ddd-3.3.12/ddd/resolveP.C:86:6:  [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(DDD_NAME "_HOME") != 0)
data/ddd-3.3.12/ddd/resolveP.C:87: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.
	    prefixes += getenv(DDD_NAME "_HOME");
data/ddd-3.3.12/ddd/session.C:136:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *ddd_state = getenv(DDD_NAME "_STATE");
data/ddd-3.3.12/ddd/session.C:145:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *ddd_sessions = getenv(DDD_NAME "_SESSIONS");
data/ddd-3.3.12/ddd/session.C:1191:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(DDD_NAME "_SESSION") != 0)
data/ddd-3.3.12/ddd/session.C:1192: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.
	return getenv(DDD_NAME "_SESSION");
data/ddd-3.3.12/ddd/shell.C:67:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    else if (getenv("DISPLAY") != 0)
data/ddd-3.3.12/ddd/shell.C:68:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	display = getenv("DISPLAY");
data/ddd-3.3.12/ddd/show.C:504:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env_pager = getenv("PAGER");
data/ddd-3.3.12/ddd/tempfile.C:54:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *tmpdir = getenv("TMPDIR");
data/ddd-3.3.12/ddd/tempfile.C:80:19:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    return string(tmpnam(templ));
data/ddd-3.3.12/ddd/vsl-lex.C:2394:6:  [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.
	s = getenv("VSL_INCLUDE");
data/ddd-3.3.12/ddd/xconfig.C:163: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.
	const _XtString s = getenv("XKEYSYMDB");
data/ddd-3.3.12/ddd/xconfig.C:297:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	xnlspath = getenv("XNLSPATH");
data/ddd-3.3.12/ddd/BreakPoint.C:294: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).
		ignore_count = atoi(count.chars());
data/ddd-3.3.12/ddd/BreakPoint.C:475:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    myignore_count = atoi(count.chars());
data/ddd-3.3.12/ddd/BreakPoint.C:509: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).
	myignore_count = atoi(count.chars());
data/ddd-3.3.12/ddd/BreakPoint.C:614: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).
    myline_nr = atoi(info_output.chars());
data/ddd-3.3.12/ddd/ChunkQueue.h:37:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern "C" void *memcpy(void *to, const void *from, size_t size);
data/ddd-3.3.12/ddd/ChunkQueue.h:60:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newData, _data, _length);
data/ddd-3.3.12/ddd/ChunkQueue.h:87:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(_data + _length, dta, len + 1);
data/ddd-3.3.12/ddd/ChunkQueue.h:100:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(_data, _data + len, _length);
data/ddd-3.3.12/ddd/DataDisp.C:2151:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	depth = atoi(params[0]);
data/ddd-3.3.12/ddd/DataDisp.C:3769: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).
    int nr = atoi(value.chars());
data/ddd-3.3.12/ddd/DispGraph.C:553:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	nr = atoi(name.chars());
data/ddd-3.3.12/ddd/DispValue.C:100:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(type.chars() + colon);
data/ddd-3.3.12/ddd/DispValue.C:1628: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).
	    int v = atoi(val.chars());
data/ddd-3.3.12/ddd/ExitCB.C:76: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.
    _saved_argv = new char *[argc + 1];
data/ddd-3.3.12/ddd/ExitCB.C:92:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    _saved_environ = new char *[envc + 1];
data/ddd-3.3.12/ddd/GDBAgent.C:445:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ltime[24];
data/ddd-3.3.12/ddd/GraphEdit.C:2522: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).
	grid[X] = atoi(params[0]);
data/ddd-3.3.12/ddd/GraphEdit.C:2524: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).
	grid[Y] = atoi(params[1]);
data/ddd-3.3.12/ddd/GraphEdit.C:2558:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int new_rotation = atoi(param.chars());
data/ddd-3.3.12/ddd/GraphEdit.C:2715:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/ddd-3.3.12/ddd/GraphEdit.C:2716: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, "0x%lx", (unsigned long) node);
data/ddd-3.3.12/ddd/LiterateA.C:272:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[ARG_MAX + 1];
data/ddd-3.3.12/ddd/LiterateA.C:365:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[ARG_MAX];
data/ddd-3.3.12/ddd/LiterateA.C:381:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[ARG_MAX];
data/ddd-3.3.12/ddd/PlotAgent.C:88: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).
    plot_os.open(files[titles.size() - 1].chars());
data/ddd-3.3.12/ddd/PlotArea.C:88:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const color_keys[Ncolors] =   { 
data/ddd-3.3.12/ddd/PlotArea.C:95:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const color_values[Ncolors] = { 
data/ddd-3.3.12/ddd/PlotArea.C:101:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const gray_values[Ncolors] = { 
data/ddd-3.3.12/ddd/PlotArea.C:108:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const dash_keys[Ndashes] =   { 
data/ddd-3.3.12/ddd/PlotArea.C:114:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const dash_mono[Ndashes] =   { 
data/ddd-3.3.12/ddd/PlotArea.C:119:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const dash_color[Ndashes] =   { 
data/ddd-3.3.12/ddd/PlotArea.h:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dashes[Ndashes][5];	// Dashes to use
data/ddd-3.3.12/ddd/PosBuffer.C:67:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int line = atoi(line_s.chars());
data/ddd-3.3.12/ddd/PosBuffer.C:73:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (atoi(answer.chars() + pos) == line)
data/ddd-3.3.12/ddd/PosBuffer.C:1046:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    line = itostring(atoi(nr.chars()));
data/ddd-3.3.12/ddd/SourceView.C:1248: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).
    int line_no = atoi(line.chars());
data/ddd-3.3.12/ddd/SourceView.C:1795: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).
	    if (bp_matches(bp, atoi(arg.chars())))
data/ddd-3.3.12/ddd/SourceView.C:1818:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (bp_matches(bp, file, atoi(line.chars())))
data/ddd-3.3.12/ddd/SourceView.C:1973:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(file_name.chars(), O_RDONLY)) < 0)
data/ddd-3.3.12/ddd/SourceView.C:2573: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).
    read_file(file, atoi(line.chars()), true);
data/ddd-3.3.12/ddd/SourceView.C:4410: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).
	int line = atoi(s.chars());
data/ddd-3.3.12/ddd/SourceView.C:5956:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (atoi(old_ignore) != bp->ignore_count())
data/ddd-3.3.12/ddd/SourceView.C:6375: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 count = atoi(_count);
data/ddd-3.3.12/ddd/SourceView.C:9608:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/ddd-3.3.12/ddd/SourceView.C:9609: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, "0x%lx", (unsigned long) pc);
data/ddd-3.3.12/ddd/SourceView.C:9632:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	offset = atoi(func.chars() + plus + 1);
data/ddd-3.3.12/ddd/SpinBox.C:72: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).
    int v = atoi(value) + offset;
data/ddd-3.3.12/ddd/SpinBox.C:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[20];
data/ddd-3.3.12/ddd/SpinBox.C:77:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buffer, "%d", v);
data/ddd-3.3.12/ddd/TTYAgent.C:333:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(tty, flags);
data/ddd-3.3.12/ddd/TTYAgent.C:352:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(tty, flags);
data/ddd-3.3.12/ddd/TTYAgent.C:385: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 master_line[MAXPTYNAMELEN];
data/ddd-3.3.12/ddd/TTYAgent.C:386: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 slave_line[MAXPTYNAMELEN];
data/ddd-3.3.12/ddd/TTYAgent.C:454:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/TTYAgent.C:455:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(buffer, "/dev/ttyq%d", ptynum);
data/ddd-3.3.12/ddd/TTYAgent.C:541:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char nr[32];
data/ddd-3.3.12/ddd/TTYAgent.C:542:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(nr, "%03d", i);
data/ddd-3.3.12/ddd/TTYAgent.C:702:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/ddd-3.3.12/ddd/TTYAgent.C:985:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/ddd-3.3.12/ddd/UndoBuffer.C:534:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int old_bp_nr = atoi(cmd.chars() + strlen(REMAP_COMMAND "@"));
data/ddd-3.3.12/ddd/UndoBuffer.C:550:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int num = atoi(cmd.chars() + i + 1);
data/ddd-3.3.12/ddd/UndoBuffer.C:602: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).
	source_view->goto_entry(file, atoi(line.chars()), address, true);
data/ddd-3.3.12/ddd/UndoBuffer.C:662: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).
	source_view->process_frame(atoi(frame.chars()));
data/ddd-3.3.12/ddd/UndoBuffer.C:689: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).
	source_view->goto_entry(file, atoi(line.chars()), address, false);
data/ddd-3.3.12/ddd/VSEFlags.C:385: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).
				*intptr = atoi(argv[arg + 1]);
data/ddd-3.3.12/ddd/VSEFlags.C:458: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).
    FILE *fp = fopen(filename.chars(), "r");
data/ddd-3.3.12/ddd/VSEFlags.C:463:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename.chars(), "r");
data/ddd-3.3.12/ddd/VSEFlags.C:476:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/VSEFlags.C:485:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(filename.chars(), "r");
data/ddd-3.3.12/ddd/VSEFlags.C:496: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 *argv[3];
data/ddd-3.3.12/ddd/VSEFlags.C:497: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 buf1[BUFSIZ];
data/ddd-3.3.12/ddd/VSEFlags.C:498: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 buf2[BUFSIZ];
data/ddd-3.3.12/ddd/annotation.C:160:21:  [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).
		expr.gsub(close + open, close + "->" + open);
data/ddd-3.3.12/ddd/annotation.C:160:42:  [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).
		expr.gsub(close + open, close + "->" + open);
data/ddd-3.3.12/ddd/annotation.C:216:29:  [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).
	       annotation.contains(open, 0) && annotation.contains(close, -1))
data/ddd-3.3.12/ddd/buttons.C:118: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 major = atoi(v.chars());
data/ddd-3.3.12/ddd/buttons.C:130: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).
	int minor = atoi(v2.chars());
data/ddd-3.3.12/ddd/buttons.C:146: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).
	int minor = atoi(v2.chars());
data/ddd-3.3.12/ddd/comm-manag.C:396:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	cmd.at(i, j - i + 1) = itostring(atoi(cmd.chars() + i + 1) + base);
data/ddd-3.3.12/ddd/comm-manag.C:2380:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int nr = atoi(number.chars());
data/ddd-3.3.12/ddd/comm-manag.C:2974:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (atoi(list.chars()) == 0)
data/ddd-3.3.12/ddd/comm-manag.C:3178:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if 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 (extra_data->refresh_initial_line && atoi(listing.chars()) > 0)
data/ddd-3.3.12/ddd/comm-manag.C:3179:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		line = atoi(listing.chars());
data/ddd-3.3.12/ddd/converters.C:67:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char bitmaps [3][32] =
data/ddd-3.3.12/ddd/converters.C:366: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 *)(bitmaps[i]),
data/ddd-3.3.12/ddd/cook.C:109:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[256];
data/ddd-3.3.12/ddd/cook.C:110:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "\\%03o", int(c));
data/ddd-3.3.12/ddd/ctest.c:249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[80];
data/ddd-3.3.12/ddd/cwd.C:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[PATH_MAX];
data/ddd-3.3.12/ddd/cxxtest.C:446: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 *twodim [2][3] = {{ "Pioneering", "women", "in"},
data/ddd-3.3.12/ddd/cxxtest.C:696:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char n1[LOCAL_MAX];
data/ddd-3.3.12/ddd/cxxtest.C:697:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char n2[LOCAL_MAX];
data/ddd-3.3.12/ddd/cxxtest.C:734:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1024];
data/ddd-3.3.12/ddd/dbx-lookup.C:110:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	line = atoi(line_s.chars());
data/ddd-3.3.12/ddd/dbx-lookup.C:145: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).
	    line = atoi(line_s.chars());
data/ddd-3.3.12/ddd/dbx-lookup.C:210:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	   && atoi(listing.chars()) == 0)
data/ddd-3.3.12/ddd/dbx-lookup.C:254:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	line = atoi(listing.chars() + num_idx);
data/ddd-3.3.12/ddd/ddd.C:3365:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    std::ofstream os(tmpfile.chars());
data/ddd-3.3.12/ddd/ddd.C:3369:62:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    std::clog << "Copying " << filename.chars() << " to " << tmpfile << "\n";
data/ddd-3.3.12/ddd/ddd.C:3384:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _line[ARG_MAX];
data/ddd-3.3.12/ddd/ddd.C:3440:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	db = XrmGetFileDatabase(tmpfile.chars());
data/ddd-3.3.12/ddd/ddd.C:3448:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile.chars());
data/ddd-3.3.12/ddd/ddd.C:7143:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[1024];
data/ddd-3.3.12/ddd/ddd.C:7215:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	(void) fopen(logname.chars(), "r");
data/ddd-3.3.12/ddd/ddd.C:7222:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/ddd-3.3.12/ddd/ddd.C:7481: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 const char *new_argv[new_argc + 1];
data/ddd-3.3.12/ddd/exectty.C:762:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2048];
data/ddd-3.3.12/ddd/exectty.C:768:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char caps[2048];
data/ddd-3.3.12/ddd/exit.C:476: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).
    patternfile.open("/proc/sys/kernel/core_pattern");
data/ddd-3.3.12/ddd/exit.C:552: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).
    pidfile.open("/proc/sys/kernel/core_uses_pid");
data/ddd-3.3.12/ddd/exit.C:631:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char cause[BUFSIZ];
data/ddd-3.3.12/ddd/exit.C:838:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char format[BUFSIZ];
data/ddd-3.3.12/ddd/exit.C:839:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message[BUFSIZ];
data/ddd-3.3.12/ddd/exit.C:850:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/exit.C:858:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char number[32];
data/ddd-3.3.12/ddd/exit.C:859: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(number, "%d", event->request_code);
data/ddd-3.3.12/ddd/exit.C:959:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/exit.C:1297:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    std::ofstream os(tmpfile.chars());
data/ddd-3.3.12/ddd/exit.C:1317:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile.chars());
data/ddd-3.3.12/ddd/expired.C: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 buffer[1024];
data/ddd-3.3.12/ddd/file.C:322:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/ddd-3.3.12/ddd/file.C:800: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).
	    pid = atoi(p.chars());
data/ddd-3.3.12/ddd/file.C:844:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			pid = atoi(p.chars());
data/ddd-3.3.12/ddd/file.C:989:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(s);
data/ddd-3.3.12/ddd/file.C:1191:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int bad_pid = atoi(kill_result.chars() + i);
data/ddd-3.3.12/ddd/filetype.C:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/ddd-3.3.12/ddd/filetype.C:103:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(file_name.chars(), O_RDONLY);
data/ddd-3.3.12/ddd/filetype.C:152:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(file_name.chars(), O_RDONLY)) == -1)
data/ddd-3.3.12/ddd/filetype.C:224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[PATH_MAX];
data/ddd-3.3.12/ddd/filetype.C:281:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2];
data/ddd-3.3.12/ddd/filetype.C:283:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(file_name.chars(), O_RDONLY);
data/ddd-3.3.12/ddd/filetype.C:304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4];
data/ddd-3.3.12/ddd/filetype.C:306:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(file_name.chars(), O_RDONLY);
data/ddd-3.3.12/ddd/filetype.C: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 buf[BUFSIZ];
data/ddd-3.3.12/ddd/filetype.C:327:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(file_name.chars(), O_RDONLY);
data/ddd-3.3.12/ddd/filetype.C:439:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/ddd-3.3.12/ddd/fonts.C:668: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).
    set_font_size(font, atoi(s));
data/ddd-3.3.12/ddd/fonts.C:727: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).
	set_font_size(font, atoi(sz.chars()));
data/ddd-3.3.12/ddd/glob.C:49:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern "C" void *memcpy(void *to, const void *from, size_t size);
data/ddd-3.3.12/ddd/glob.C:96:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open)
data/ddd-3.3.12/ddd/glob.C:335:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (nextname, dp->d_name, len);
data/ddd-3.3.12/ddd/glob.C:447:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (directory_name, pathname, directory_len);
data/ddd-3.3.12/ddd/glob.C:536:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (result[0], directory_name, directory_len + 1);
data/ddd-3.3.12/ddd/history.C:295:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _line[ARG_MAX + BUFSIZ];
data/ddd-3.3.12/ddd/hostname.C:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MAXHOSTNAMELEN];
data/ddd-3.3.12/ddd/hostname.C:173:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    static char num_host[128];
data/ddd-3.3.12/ddd/java.C:253: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).
    FILE *fp = fopen(file.chars(), "r");
data/ddd-3.3.12/ddd/java.C:259:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/logplayer.C:129:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	(void) fopen(logname.chars(), "r");
data/ddd-3.3.12/ddd/logplayer.C:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[65536];
data/ddd-3.3.12/ddd/logplayer.C:223:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			(c == ':' && command_no == atoi(pattern.chars())) ||
data/ddd-3.3.12/ddd/logplayer.C:227:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ddd-3.3.12/ddd/logplayer.C:228:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buffer, "%4d", command_no);
data/ddd-3.3.12/ddd/options.C:1335:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *from = fopen(src.chars(), "r");
data/ddd-3.3.12/ddd/options.C:1339: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).
    FILE *to = fopen(dest.chars(), "w");
data/ddd-3.3.12/ddd/options.C:2387:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char line[ARG_MAX + BUFSIZ];
data/ddd-3.3.12/ddd/options.C:2407:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	os.open(workfile.chars());
data/ddd-3.3.12/ddd/plotter.C:463:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rot_x = atoi(view_setting.chars());
data/ddd-3.3.12/ddd/plotter.C:465:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rot_z = atoi(view_setting.chars());
data/ddd-3.3.12/ddd/plotter.C:1266:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(target.chars(), "w");
data/ddd-3.3.12/ddd/print.C:137:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(filename.chars(), "w");
data/ddd-3.3.12/ddd/print.C:213:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    int ret = print_to_file(tmpfile, gc, selectedOnly, displays);
data/ddd-3.3.12/ddd/print.C:217:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    StatusDelay delay(msg(tmpfile, displays, false));
data/ddd-3.3.12/ddd/print.C:219:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    command += " " + tmpfile;
data/ddd-3.3.12/ddd/print.C:226:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    string *sp = new string(tmpfile);
data/ddd-3.3.12/ddd/rxclass.h:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefix[32];		// constant prefix (for faster search)
data/ddd-3.3.12/ddd/rxscan.C:8449: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 pushback[BUFSIZ];
data/ddd-3.3.12/ddd/select.C:102:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    reply = itostring(atoi(choices[0].chars())) + "\n";
data/ddd-3.3.12/ddd/session.C:215:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *from = fopen(from_name.chars(), "r");
data/ddd-3.3.12/ddd/session.C:222: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).
    FILE *to = fopen(to_name.chars(), "w");
data/ddd-3.3.12/ddd/session.C:1028:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int tab_width = atoi(tab_width_s.chars());
data/ddd-3.3.12/ddd/settings.C:3234:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (value.matches(rxint) && atoi(value.chars()) > 1)
data/ddd-3.3.12/ddd/show.C:175:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[BUFSIZ];
data/ddd-3.3.12/ddd/show.C:451: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).
    FILE *fp = fopen(tmpfile.chars(), "w");
data/ddd-3.3.12/ddd/show.C:451:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    FILE *fp = fopen(tmpfile.chars(), "w");
data/ddd-3.3.12/ddd/show.C:454:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	os << tmpfile << ": " << strerror(errno);
data/ddd-3.3.12/ddd/show.C:467:64:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    string cmd = string(app_data.uncompress_command) + " < " + tmpfile;
data/ddd-3.3.12/ddd/show.C:488:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile.chars());
data/ddd-3.3.12/ddd/sigName.C:61:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[256];
data/ddd-3.3.12/ddd/sigName.C:63: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, "Signal %d", signo);
data/ddd-3.3.12/ddd/sigName.C:73:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/ddd-3.3.12/ddd/sigName.C:75:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buffer, "Exit %d", (int)WEXITSTATUS(((state))));
data/ddd-3.3.12/ddd/strclass.h:428:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mem[1];                // Start of memory
data/ddd-3.3.12/ddd/string-fun.C:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[20];
data/ddd-3.3.12/ddd/string-fun.C:53: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, "%d", nr);
data/ddd-3.3.12/ddd/string-fun.C:92:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(int_string.chars());
data/ddd-3.3.12/ddd/string-fun.C:111:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(int_string.chars());
data/ddd-3.3.12/ddd/string-fun.C:146:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(s1.chars());
data/ddd-3.3.12/ddd/tempfile.C:44:16:  [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).
extern "C" int mkstemp(char *templ);
data/ddd-3.3.12/ddd/tempfile.C: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 templ[2048];
data/ddd-3.3.12/ddd/tempfile.C:72:18:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int tempfd = mkstemp(templ);
data/ddd-3.3.12/ddd/userinfo.C:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char preferences[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C:75: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).
    FILE *fp = fopen(preferences, "r");
data/ddd-3.3.12/ddd/userinfo.C:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C:83:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C: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 signature[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C:113: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).
    FILE *fp = fopen(signature, "r");
data/ddd-3.3.12/ddd/userinfo.C:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C:122:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C:146:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[BUFSIZ];
data/ddd-3.3.12/ddd/userinfo.C:233: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).
	pwd = getpwuid(atoi(arg));
data/ddd-3.3.12/ddd/value-read.C:739: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).
	repeats = atoi(value.chars());
data/ddd-3.3.12/ddd/vsl-gramma.C:1335:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char const *vslarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/ddd-3.3.12/ddd/vsl-gramma.C:1352:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vslformat[sizeof vslunexpected
data/ddd-3.3.12/ddd/vsl-gramma.C:1520: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 vslmsgbuf[128];
data/ddd-3.3.12/ddd/vsl-gramma.C:2253:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				    (vslval.num) = atoi((const char *)vsltext);
data/ddd-3.3.12/ddd/vsl-lex.C:615: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 pushback[BUFSIZ];
data/ddd-3.3.12/ddd/vsl-lex.C:711: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).
    FILE *fp = fopen(filename, "r");
data/ddd-3.3.12/ddd/vsl-lex.C:1067:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[BUFSIZ];
data/ddd-3.3.12/ddd/vsl-lex.C:1084:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[BUFSIZ];
data/ddd-3.3.12/ddd/vsl-lex.C:2387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char includeList[BUFSIZ];
data/ddd-3.3.12/ddd/vsl-lex.C:2428:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 path[BUFSIZ];
data/ddd-3.3.12/ddd/vsl-lex.C:2433:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(path, "r");
data/ddd-3.3.12/ddd/vsldoc.C:65:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    fp = fopen(full_file_name.chars(), "r");
data/ddd-3.3.12/ddd/vsldoc.C:73:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(file.chars(), "r");
data/ddd-3.3.12/ddd/xconfig.C:71: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).
    FILE *fp = fopen(file.chars(), "r");
data/ddd-3.3.12/ddd/xconfig.C: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 buffer[PATH_MAX];
data/ddd-3.3.12/ddd/ArcBox.C:325:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (!equal)
data/ddd-3.3.12/ddd/ArcBox.C:334:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (!equal)
data/ddd-3.3.12/ddd/ArcBox.C:350:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (!equal)
data/ddd-3.3.12/ddd/ArcBox.C:359:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (!equal)
data/ddd-3.3.12/ddd/BreakPoint.C:669:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
static bool equal(const StringArray& s1, const StringArray& s2)
data/ddd-3.3.12/ddd/BreakPoint.C:805:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!equal(new_bp.commands(), commands()))
data/ddd-3.3.12/ddd/DataLength.h:42: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).
	: data(d), length(strlen(d))
data/ddd-3.3.12/ddd/ExitCB.C:79: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).
	_saved_argv[i] = new char[strlen(argv[i]) + 1];
data/ddd-3.3.12/ddd/ExitCB.C:95: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).
	_saved_environ[i] = new char[strlen(environ[i]) + 1];
data/ddd-3.3.12/ddd/GDBAgent.C:435: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).
    nl += replicate(' ', strlen(prefix));
data/ddd-3.3.12/ddd/GDBAgent.C:458: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).
    dddlog << ltime << (strlen(ltime)!=0 ?"\n":"") << prefix << s << '\n';
data/ddd-3.3.12/ddd/GDBAgent.C:927: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).
    return answer.contains(prompt, answer.length() - strlen(prompt));
data/ddd-3.3.12/ddd/GDBAgent.C:1860:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(expr) != 0) {
data/ddd-3.3.12/ddd/GDBAgent.C:1875: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 (has_print_r_option() && strlen(expr) != 0)
data/ddd-3.3.12/ddd/GDBAgent.C:1880:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(expr) != 0) {
data/ddd-3.3.12/ddd/GDBAgent.C:3199:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(end) != 0)
data/ddd-3.3.12/ddd/LiterateA.C:281: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).
	    queue.append(buffer, strlen(buffer));
data/ddd-3.3.12/ddd/PlotArea.C:323: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).
	XSetDashes(dpy, gc, 0, dashes[line_type], strlen(dashes[line_type]));
data/ddd-3.3.12/ddd/SourceView.C:612: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(cond) != 0)
data/ddd-3.3.12/ddd/SourceView.C:706: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(cond) != 0 && !gdb->has_condition_command())
data/ddd-3.3.12/ddd/SourceView.C:725: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(cond) != 0 && !gdb->has_condition_command()) {
data/ddd-3.3.12/ddd/SourceView.C:749:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cond) != 0 && gdb->has_condition_command())
data/ddd-3.3.12/ddd/SourceView.C:2009:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((length = read(fd, text, statb.st_size)) != statb.st_size)
data/ddd-3.3.12/ddd/StringBox.C:177:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	match = strncmp (map[i].xfont, xfont, strlen(map[i].xfont)) ;
data/ddd-3.3.12/ddd/TTYAgent.C:703:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret = ::read(master, buf, sizeof(TTY_INIT));
data/ddd-3.3.12/ddd/TTYAgent.C:986:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret = ::read(STDIN_FILENO, buf, sizeof(TTY_INIT));
data/ddd-3.3.12/ddd/Tool.C:71:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (app_data.tool_buttons == 0 || strlen(app_data.tool_buttons) == 0)
data/ddd-3.3.12/ddd/UndoBuffer.C:534:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    int old_bp_nr = atoi(cmd.chars() + strlen(REMAP_COMMAND "@"));
data/ddd-3.3.12/ddd/ctest.c:254: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 (name[strlen(name) - 1] == '\n')
data/ddd-3.3.12/ddd/ctest.c:255:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name[strlen(name) - 1] = '\0';
data/ddd-3.3.12/ddd/ddd.C:2169: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).
		    session_value.size = strlen(session_id) + 1;
data/ddd-3.3.12/ddd/exit.C:1311:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/file.C:325: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).
	if (buf[0] && buf[strlen(buf) - 1] == '\n')
data/ddd-3.3.12/ddd/file.C:326: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).
	    buf[strlen(buf) - 1] = '\0';
data/ddd-3.3.12/ddd/file.C:1115:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/file.C:1174:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/filetype.C:106:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, buf, sizeof(buf));
data/ddd-3.3.12/ddd/filetype.C:286:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, buf, sizeof(buf));
data/ddd-3.3.12/ddd/filetype.C:309:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, buf, sizeof(buf));
data/ddd-3.3.12/ddd/filetype.C:330:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, buf, sizeof(buf));
data/ddd-3.3.12/ddd/filetype.C:440:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, path_s, sizeof(buf) - 1);
data/ddd-3.3.12/ddd/glob.C:381:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen (dir);
data/ddd-3.3.12/ddd/glob.C:398: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).
				   + strlen (array[i]) + 1);
data/ddd-3.3.12/ddd/hostname.C:128: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).
	name = strcpy(new char[strlen(buffer) + 1], buffer);
data/ddd-3.3.12/ddd/hostname.C:176: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).
			sprintf(num_host + strlen(num_host), i ? ".%d" : "%d",
data/ddd-3.3.12/ddd/hostname.C:203: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).
	return name = strcpy(new char[strlen(n) + 1], n);
data/ddd-3.3.12/ddd/index.C:53:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(t, prefix, min(strlen(prefix),
data/ddd-3.3.12/ddd/java.C:243: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).
	s = s.before(int(int(s.length()) - strlen(JAVA_SRC_SUFFIX)));
data/ddd-3.3.12/ddd/java.C:245: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).
	s = s.before(int(int(s.length()) - strlen(JAVA_CLASS_SUFFIX)));
data/ddd-3.3.12/ddd/layout.C:162: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).
    nd->attr.node.w = 10 * strlen (node);
data/ddd-3.3.12/ddd/layout.C:1118: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).
	node->attr.node.label = (char *) malloc (strlen(id->label)+5);
data/ddd-3.3.12/ddd/layout.C:1169: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).
    graph->label = (char *)malloc (strlen(label)+1);
data/ddd-3.3.12/ddd/logo.C:241: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).
    from.size = strlen(name);
data/ddd-3.3.12/ddd/my-dirent.h:38: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).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/ddd-3.3.12/ddd/options.C:1344:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(from)) != EOF)
data/ddd-3.3.12/ddd/options.C:1549:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/plotter.C:1482: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).
    nl += replicate(' ', strlen(prefix));
data/ddd-3.3.12/ddd/regexps.C:76: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).
    assert(strlen(the_prefix) == DATA_LEN);
data/ddd-3.3.12/ddd/rxclass.C:184: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 prefix_len = strlen(prefix);
data/ddd-3.3.12/ddd/rxscan.C:8625:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( dddin )) != EOF && c != '\n'; ++n ) \
data/ddd-3.3.12/ddd/rxscan.C:10333: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).
	return ddd_scan_bytes(dddstr,strlen(dddstr) );
data/ddd-3.3.12/ddd/session.C:198:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mode_t mask = umask(0);
data/ddd-3.3.12/ddd/session.C:199:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(mask);
data/ddd-3.3.12/ddd/session.C:230:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(from)) != EOF)
data/ddd-3.3.12/ddd/settings.C:343:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/show.C:179:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (buf[0] && buf[strlen(buf) - 1] == '\n')
data/ddd-3.3.12/ddd/show.C:180: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).
		    buf[strlen(buf) - 1] = '\0';
data/ddd-3.3.12/ddd/show.C:479:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/show.C:660:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/show.C:719:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/stringify.C:49:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getchar()) != EOF)
data/ddd-3.3.12/ddd/tempfile.C:66: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).
    int max_tmpdir_len = sizeof(templ) - strlen(base);
data/ddd-3.3.12/ddd/tempfile.C:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(templ, tmpdir, max_tmpdir_len);
data/ddd-3.3.12/ddd/tictactoe.C:334: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).
    from.size = strlen(name);
data/ddd-3.3.12/ddd/userinfo.C:72:5:  [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(preferences, "/");
data/ddd-3.3.12/ddd/userinfo.C:81:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strncmp(line, tag, strlen(tag)) == 0)
data/ddd-3.3.12/ddd/userinfo.C:85: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).
		char *s = line + strlen(tag);
data/ddd-3.3.12/ddd/userinfo.C:110:5:  [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(signature, "/");
data/ddd-3.3.12/ddd/userinfo.C:148:5:  [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(buffer, "@");
data/ddd-3.3.12/ddd/value-read.C:343:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(delim);
data/ddd-3.3.12/ddd/value-read.C:714: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).
	value = value.from(int(strlen("end")));
data/ddd-3.3.12/ddd/vsl-gramma.C:1216: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).
#   define vslstrlen strlen
data/ddd-3.3.12/ddd/vsl-lex.C:862:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( vslin )) != EOF && c != '\n'; ++n ) \
data/ddd-3.3.12/ddd/vsl-lex.C:2064: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).
	return vsl_scan_bytes(vslstr,strlen(vslstr) );
data/ddd-3.3.12/ddd/vsl-lex.C:2419:2:  [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(includeList, "");
data/ddd-3.3.12/ddd/vsl-lex.C:2421: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(includeList, s, BUFSIZ - 2);
data/ddd-3.3.12/ddd/vsl-lex.C:2430:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(path, "/");
data/ddd-3.3.12/ddd/vsldoc.C:80:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fp)) != EOF)
data/ddd-3.3.12/ddd/xconfig.C:125:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(buffer);

ANALYSIS SUMMARY:

Hits = 417
Lines analyzed = 176026 in approximately 4.07 seconds (43247 lines/second)
Physical Source Lines of Code (SLOC) = 122171
Hits@level = [0] 105 [1]  89 [2] 217 [3]  42 [4]  69 [5]   0
Hits@level+ = [0+] 522 [1+] 417 [2+] 328 [3+] 111 [4+]  69 [5+]   0
Hits/KSLOC@level+ = [0+] 4.2727 [1+] 3.41325 [2+] 2.68476 [3+] 0.908563 [4+] 0.564782 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.