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/tk8.7-8.7.0~a3/generic/tkTextTag.c
Examining data/tk8.7-8.7.0~a3/generic/tkImage.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgPPM.c
Examining data/tk8.7-8.7.0~a3/generic/tkEntry.c
Examining data/tk8.7-8.7.0~a3/generic/tkMacWinMenu.c
Examining data/tk8.7-8.7.0~a3/generic/tkMenu.c
Examining data/tk8.7-8.7.0~a3/generic/tkTextDisp.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgUtil.c
Examining data/tk8.7-8.7.0~a3/generic/tkGet.c
Examining data/tk8.7-8.7.0~a3/generic/tkTextBTree.c
Examining data/tk8.7-8.7.0~a3/generic/tk.h
Examining data/tk8.7-8.7.0~a3/generic/tkButton.c
Examining data/tk8.7-8.7.0~a3/generic/tkMessage.c
Examining data/tk8.7-8.7.0~a3/generic/tkClipboard.c
Examining data/tk8.7-8.7.0~a3/generic/tkSelect.c
Examining data/tk8.7-8.7.0~a3/generic/ks_names.h
Examining data/tk8.7-8.7.0~a3/generic/tkCanvas.c
Examining data/tk8.7-8.7.0~a3/generic/tkArray.h
Examining data/tk8.7-8.7.0~a3/generic/tkCanvPoly.c
Examining data/tk8.7-8.7.0~a3/generic/tkOption.c
Examining data/tk8.7-8.7.0~a3/generic/tkInt.h
Examining data/tk8.7-8.7.0~a3/generic/tkGrab.c
Examining data/tk8.7-8.7.0~a3/generic/tkEvent.c
Examining data/tk8.7-8.7.0~a3/generic/tkTextWind.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgPhoto.h
Examining data/tk8.7-8.7.0~a3/generic/tkAtom.c
Examining data/tk8.7-8.7.0~a3/generic/tkScrollbar.c
Examining data/tk8.7-8.7.0~a3/generic/tkCanvBmap.c
Examining data/tk8.7-8.7.0~a3/generic/tkTextImage.c
Examining data/tk8.7-8.7.0~a3/generic/tkMenu.h
Examining data/tk8.7-8.7.0~a3/generic/tkImgSVGnano.c
Examining data/tk8.7-8.7.0~a3/generic/tkUndo.c
Examining data/tk8.7-8.7.0~a3/generic/tkIntXlibDecls.h
Examining data/tk8.7-8.7.0~a3/generic/tkCanvas.h
Examining data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c
Examining data/tk8.7-8.7.0~a3/generic/tkStubInit.c
Examining data/tk8.7-8.7.0~a3/generic/tkFileFilter.h
Examining data/tk8.7-8.7.0~a3/generic/tkUndo.h
Examining data/tk8.7-8.7.0~a3/generic/tkScale.h
Examining data/tk8.7-8.7.0~a3/generic/tkError.c
Examining data/tk8.7-8.7.0~a3/generic/tkColor.c
Examining data/tk8.7-8.7.0~a3/generic/tkCursor.c
Examining data/tk8.7-8.7.0~a3/generic/tkPkgConfig.c
Examining data/tk8.7-8.7.0~a3/generic/tkListbox.c
Examining data/tk8.7-8.7.0~a3/generic/tkFocus.c
Examining data/tk8.7-8.7.0~a3/generic/tk3d.c
Examining data/tk8.7-8.7.0~a3/generic/tkMain.c
Examining data/tk8.7-8.7.0~a3/generic/nanosvgrast.h
Examining data/tk8.7-8.7.0~a3/generic/tkBind.c
Examining data/tk8.7-8.7.0~a3/generic/tkConfig.c
Examining data/tk8.7-8.7.0~a3/generic/tkSquare.c
Examining data/tk8.7-8.7.0~a3/generic/tkMenubutton.h
Examining data/tk8.7-8.7.0~a3/generic/tkButton.h
Examining data/tk8.7-8.7.0~a3/generic/tkTextMark.c
Examining data/tk8.7-8.7.0~a3/generic/tkCmds.c
Examining data/tk8.7-8.7.0~a3/generic/tkPointer.c
Examining data/tk8.7-8.7.0~a3/generic/tkText.c
Examining data/tk8.7-8.7.0~a3/generic/tkTextIndex.c
Examining data/tk8.7-8.7.0~a3/generic/tkDecls.h
Examining data/tk8.7-8.7.0~a3/generic/tkEntry.h
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkDefaultTheme.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkInit.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkWidget.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkWidget.h
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkScrollbar.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkManager.h
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkState.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkSquare.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkScroll.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkManager.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkFrame.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkThemeInt.h
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkSeparator.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkTreeview.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkStubInit.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkButton.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkLayout.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkClamTheme.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkImage.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkTheme.h
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkNotebook.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkDecls.h
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkPanedwindow.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkStubLib.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkElements.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkTrace.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkBlink.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkTheme.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkLabel.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkTagSet.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkTrack.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkCache.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkProgress.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkClassicTheme.c
Examining data/tk8.7-8.7.0~a3/generic/ttk/ttkScale.c
Examining data/tk8.7-8.7.0~a3/generic/tkFileFilter.c
Examining data/tk8.7-8.7.0~a3/generic/tkScrollbar.h
Examining data/tk8.7-8.7.0~a3/generic/tkFrame.c
Examining data/tk8.7-8.7.0~a3/generic/tkObj.c
Examining data/tk8.7-8.7.0~a3/generic/tkPlace.c
Examining data/tk8.7-8.7.0~a3/generic/tkOldConfig.c
Examining data/tk8.7-8.7.0~a3/generic/tkIntDecls.h
Examining data/tk8.7-8.7.0~a3/generic/tkBusy.h
Examining data/tk8.7-8.7.0~a3/generic/tkSelect.h
Examining data/tk8.7-8.7.0~a3/generic/tkVisual.c
Examining data/tk8.7-8.7.0~a3/generic/tkWindow.c
Examining data/tk8.7-8.7.0~a3/generic/tkPack.c
Examining data/tk8.7-8.7.0~a3/generic/tkStyle.c
Examining data/tk8.7-8.7.0~a3/generic/tkStubLib.c
Examining data/tk8.7-8.7.0~a3/generic/tkGeometry.c
Examining data/tk8.7-8.7.0~a3/generic/tkColor.h
Examining data/tk8.7-8.7.0~a3/generic/tkArgv.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgGIF.c
Examining data/tk8.7-8.7.0~a3/generic/tkMenuDraw.c
Examining data/tk8.7-8.7.0~a3/generic/nanosvg.h
Examining data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c
Examining data/tk8.7-8.7.0~a3/generic/tkGrid.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgPhInstance.c
Examining data/tk8.7-8.7.0~a3/generic/tkCanvText.c
Examining data/tk8.7-8.7.0~a3/generic/tkBusy.c
Examining data/tk8.7-8.7.0~a3/generic/tkUtil.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgPNG.c
Examining data/tk8.7-8.7.0~a3/generic/tkGC.c
Examining data/tk8.7-8.7.0~a3/generic/default.h
Examining data/tk8.7-8.7.0~a3/generic/tkRectOval.c
Examining data/tk8.7-8.7.0~a3/generic/tkBitmap.c
Examining data/tk8.7-8.7.0~a3/generic/tkPort.h
Examining data/tk8.7-8.7.0~a3/generic/tkCanvPs.c
Examining data/tk8.7-8.7.0~a3/generic/tkTest.c
Examining data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c
Examining data/tk8.7-8.7.0~a3/generic/tkDList.h
Examining data/tk8.7-8.7.0~a3/generic/tkPlatDecls.h
Examining data/tk8.7-8.7.0~a3/generic/tkMenubutton.c
Examining data/tk8.7-8.7.0~a3/generic/tkIntPlatDecls.h
Examining data/tk8.7-8.7.0~a3/generic/tkOldTest.c
Examining data/tk8.7-8.7.0~a3/generic/tkImgBmap.c
Examining data/tk8.7-8.7.0~a3/generic/tkScale.c
Examining data/tk8.7-8.7.0~a3/generic/tkConsole.c
Examining data/tk8.7-8.7.0~a3/generic/tkPanedWindow.c
Examining data/tk8.7-8.7.0~a3/generic/tkCanvLine.c
Examining data/tk8.7-8.7.0~a3/generic/tkFont.h
Examining data/tk8.7-8.7.0~a3/generic/tkCanvArc.c
Examining data/tk8.7-8.7.0~a3/generic/tk3d.h
Examining data/tk8.7-8.7.0~a3/generic/tkFont.c
Examining data/tk8.7-8.7.0~a3/generic/tkCanvImg.c
Examining data/tk8.7-8.7.0~a3/generic/tkText.h
Examining data/tk8.7-8.7.0~a3/generic/tkTrig.c
Examining data/tk8.7-8.7.0~a3/generic/tkCanvWind.c
Examining data/tk8.7-8.7.0~a3/xlib/ximage.c
Examining data/tk8.7-8.7.0~a3/xlib/xutil.c
Examining data/tk8.7-8.7.0~a3/xlib/xgc.c
Examining data/tk8.7-8.7.0~a3/xlib/X11/ap_keysym.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/HPkeysym.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/Xlib.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/X.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/Xfuncproto.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/keysymdef.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/Xutil.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/Xatom.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/keysym.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/DECkeysym.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/Sunkeysym.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/XF86keysym.h
Examining data/tk8.7-8.7.0~a3/xlib/X11/cursorfont.h
Examining data/tk8.7-8.7.0~a3/xlib/xcolors.c
Examining data/tk8.7-8.7.0~a3/xlib/xdraw.c
Examining data/tk8.7-8.7.0~a3/xlib/xbytes.h
Examining data/tk8.7-8.7.0~a3/win/ttkWinMonitor.c
Examining data/tk8.7-8.7.0~a3/win/tkWinDialog.c
Examining data/tk8.7-8.7.0~a3/win/tkWinClipboard.c
Examining data/tk8.7-8.7.0~a3/win/tkWinInit.c
Examining data/tk8.7-8.7.0~a3/win/tkWinColor.c
Examining data/tk8.7-8.7.0~a3/win/tkWinScrlbr.c
Examining data/tk8.7-8.7.0~a3/win/tkWinDefault.h
Examining data/tk8.7-8.7.0~a3/win/tkWinPort.h
Examining data/tk8.7-8.7.0~a3/win/tkWinCursor.c
Examining data/tk8.7-8.7.0~a3/win/tkWin3d.c
Examining data/tk8.7-8.7.0~a3/win/tkWinFont.c
Examining data/tk8.7-8.7.0~a3/win/nmakehlp.c
Examining data/tk8.7-8.7.0~a3/win/tkWinWindow.c
Examining data/tk8.7-8.7.0~a3/win/tkWinInt.h
Examining data/tk8.7-8.7.0~a3/win/winMain.c
Examining data/tk8.7-8.7.0~a3/win/tkWinKey.c
Examining data/tk8.7-8.7.0~a3/win/tkWinPixmap.c
Examining data/tk8.7-8.7.0~a3/win/tkWinRegion.c
Examining data/tk8.7-8.7.0~a3/win/tkWinX.c
Examining data/tk8.7-8.7.0~a3/win/tkWin32Dll.c
Examining data/tk8.7-8.7.0~a3/win/tkWinMenu.c
Examining data/tk8.7-8.7.0~a3/win/tkWinConfig.c
Examining data/tk8.7-8.7.0~a3/win/tkWinWm.c
Examining data/tk8.7-8.7.0~a3/win/tkWinSendCom.h
Examining data/tk8.7-8.7.0~a3/win/tkWinDraw.c
Examining data/tk8.7-8.7.0~a3/win/tkWinButton.c
Examining data/tk8.7-8.7.0~a3/win/tkWinTest.c
Examining data/tk8.7-8.7.0~a3/win/tkWinPointer.c
Examining data/tk8.7-8.7.0~a3/win/tkWinEmbed.c
Examining data/tk8.7-8.7.0~a3/win/tkWinImage.c
Examining data/tk8.7-8.7.0~a3/win/ttkWinXPTheme.c
Examining data/tk8.7-8.7.0~a3/win/ttkWinTheme.c
Examining data/tk8.7-8.7.0~a3/win/stubs.c
Examining data/tk8.7-8.7.0~a3/win/tkWinSendCom.c
Examining data/tk8.7-8.7.0~a3/win/tkWin.h
Examining data/tk8.7-8.7.0~a3/win/tkWinSend.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXWindowEvent.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXDebug.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXTest.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXPort.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXMouseEvent.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXEmbed.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXMenu.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXSend.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXButton.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXMenus.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXCursors.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXClipboard.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXXStubs.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXConstants.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXDefault.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXConfig.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXDialog.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXFont.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXNotify.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXXCursors.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXDebug.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXColor.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXServices.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXEntry.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXInt.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXScrlbr.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXMenubutton.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXPrivate.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSX.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXSubwindows.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXFont.h
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXCursor.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXKeyEvent.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXScale.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXEvent.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXKeyboard.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXDraw.c
Examining data/tk8.7-8.7.0~a3/macosx/ttkMacOSXTheme.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXImage.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXBitmap.c
Examining data/tk8.7-8.7.0~a3/macosx/tkMacOSXRegion.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixCursor.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixScrlbr.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnix3d.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixSend.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixInit.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixPort.h
Examining data/tk8.7-8.7.0~a3/unix/tkUnixMenu.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixEvent.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixColor.c
Examining data/tk8.7-8.7.0~a3/unix/tkAppInit.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixDialog.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixRFont.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixFocus.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixMenubu.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixDraw.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixEmbed.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixConfig.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixXId.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixInt.h
Examining data/tk8.7-8.7.0~a3/unix/tkUnixDefault.h
Examining data/tk8.7-8.7.0~a3/unix/tkUnixScale.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixFont.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixButton.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixWm.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnix.c
Examining data/tk8.7-8.7.0~a3/unix/tkUnixKey.c

FINAL RESULTS:

data/tk8.7-8.7.0~a3/generic/nanosvg.h:1538:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(str, "%f%s", &coord.value, units);
data/tk8.7-8.7.0~a3/generic/tkBind.c:39:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/tk8.7-8.7.0~a3/generic/tkBind.c:39:19:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/tk8.7-8.7.0~a3/generic/tkBusy.c:555:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(name, fmt, Tk_Name(tkRef));
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1036: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(newStr + byteIndex, string);
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1037: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(newStr + byteIndex + byteCount, text + byteIndex);
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1117: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(newStr + byteIndex, text + byteIndex + byteCount);
data/tk8.7-8.7.0~a3/generic/tkClipboard.c:394: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(cbPtr->buffer, buffer);
data/tk8.7-8.7.0~a3/generic/tkCmds.c:416: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(copy, p);
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1790:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s %d", string, visInfoPtr[i].depth);
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1795:3:  [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(buf, visualIdString);
data/tk8.7-8.7.0~a3/generic/tkConfig.c:668:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(newStr, value);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:1389:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(sbPtr->formatBuf, sbPtr->valueFormat, dvalue);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2145: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(newStr + byteIndex, value);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2146: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(newStr + byteIndex + byteCount, string + byteIndex);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2246: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(newStr + byteIndex, string + byteIndex + byteCount);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2436: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(tmp, value);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2465: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(tmp, value);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:4470:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(sbPtr->formatBuf, sbPtr->valueFormat, dvalue);
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:336:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(globPtr->pattern+1, str);
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:352:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(globPtr->pattern, str);
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:356:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(globPtr->pattern, str);
data/tk8.7-8.7.0~a3/generic/tkFocus.c:76: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 arguments; \
data/tk8.7-8.7.0~a3/generic/tkFrame.c:998: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(oldMenuName, framePtr->menuName);
data/tk8.7-8.7.0~a3/generic/tkGeometry.c:345: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(winPtr->geomMgrName, master);
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:304: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(name, formatPtr->name);
data/tk8.7-8.7.0~a3/generic/tkMenubutton.c:637: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(mbPtr->text, value);
data/tk8.7-8.7.0~a3/generic/tkMessage.c:481:23:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    msgPtr->string = strcpy(ckalloc(strlen(value) + 1), value);
data/tk8.7-8.7.0~a3/generic/tkMessage.c:886: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(msgPtr->string, value);
data/tk8.7-8.7.0~a3/generic/tkObj.c:687: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(objPtr->bytes, buffer);
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:384:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(newStr, value);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:176: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(timPtr->imageName, name);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:178:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(timPtr->varName, varName);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:270:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s get", timPtr->imageName);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:315:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s display %d %d %d %d %d %d",
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:360:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s free", instPtr->masterPtr->imageName);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:394:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s delete", timPtr->imageName);
data/tk8.7-8.7.0~a3/generic/tkScale.c:25:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tk8.7-8.7.0~a3/generic/tkScale.c:25:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tk8.7-8.7.0~a3/generic/tkScale.c:1071:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(valueString, TCL_DOUBLE_SPACE, scalePtr->valueFormat,
data/tk8.7-8.7.0~a3/generic/tkScale.c:1077:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(valueString, TCL_DOUBLE_SPACE, scalePtr->valueFormat,
data/tk8.7-8.7.0~a3/generic/tkScale.c:1090:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(valueString, TCL_DOUBLE_SPACE, scalePtr->tickFormat,
data/tk8.7-8.7.0~a3/generic/tkScale.c:1096:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(valueString, TCL_DOUBLE_SPACE, scalePtr->tickFormat,
data/tk8.7-8.7.0~a3/generic/tkScale.c:1507:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        if (snprintf(string, TCL_DOUBLE_SPACE, scalePtr->valueFormat,
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1355: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, cmdInfoPtr->buffer);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1525: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, name);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1538: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, name);
data/tk8.7-8.7.0~a3/generic/tkStyle.c:792: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(specPtr->name, templatePtr->name);
data/tk8.7-8.7.0~a3/generic/tkStyle.c:808: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(dstOptions->name, srcOptions->name);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1427: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(timPtr->imageName, name);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1429: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(timPtr->varName, varName);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1521:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s get", timPtr->imageName);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1595:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "%s display %d %d %d %d",
data/tk8.7-8.7.0~a3/generic/tkTest.c:1641:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s free", instPtr->masterPtr->imageName);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1675:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s delete", timPtr->imageName);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1966:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s%s%s%s%s%s%s%s%" TCL_LL_MODIFIER "d %"
data/tk8.7-8.7.0~a3/generic/tkTest.c:2101: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(newStr, string);
data/tk8.7-8.7.0~a3/generic/tkText.c:637: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(textPtr->selTagPtr->reliefString, DEF_TEXT_SELECT_RELIEF);
data/tk8.7-8.7.0~a3/generic/tkText.c:2856: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(lMarkName, stringUndoMarkId);
data/tk8.7-8.7.0~a3/generic/tkText.c:2857: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(rMarkName, stringUndoMarkId);
data/tk8.7-8.7.0~a3/generic/tkTextImage.c:423: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(eiPtr->body.ei.name, name);
data/tk8.7-8.7.0~a3/generic/tkTextIndex.c:143: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(objPtr->bytes, buffer);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:776: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(pathName+1, name);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:778: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(pathName, parentPtr->pathName);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:780: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(pathName+length1+1, name);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:751: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(entryPtr->entry.string, value);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:850:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(new + byteIndex, value);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:851:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(new + byteIndex + byteCount, string + byteIndex);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:897:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(new + byteIndex, string + byteIndex + byteCount);
data/tk8.7-8.7.0~a3/generic/ttk/ttkLayout.c:561:43:  [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).
    op->name = ckalloc(strlen(name) + 1); strcpy(op->name, name);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXBitmap.c:403: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(ib.value, value);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXScale.c:174:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        if (snprintf(string, TCL_DOUBLE_SPACE, scalePtr->format,
data/tk8.7-8.7.0~a3/macosx/tkMacOSXSend.c:289: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(riPtr->name, actualName);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:1611: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(wmPtr->clientMachine, argv3);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:2226: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(wmPtr->leaderName, argv3);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:2486: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(wmPtr->iconName, argv3);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:3127: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(protPtr->command, cmd);
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2769:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%.200s-%d-*-*-*-*-*%s", nameList[bestIdx[1]],
data/tk8.7-8.7.0~a3/unix/tkUnixMenu.c:1381: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(helpMenuName, Tk_PathName(masterMenuPtr->tkwin));
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:17:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:17:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:277:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(valueString, TCL_DOUBLE_SPACE, format, value) < 0) {
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:364:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    if (snprintf(valueString, TCL_DOUBLE_SPACE, scalePtr->tickFormat,
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:501:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(valueString, TCL_DOUBLE_SPACE, format, value) < 0) {
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:570:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	if (snprintf(string, TCL_DOUBLE_SPACE, scalePtr->valueFormat,
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:334:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy((char *)buffer, incrPtr->converts[i].buffer);
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:653:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(propData, propInfo);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:483: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(newProp, id);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:484:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(newProp+idLength, name);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:918: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(riPtr->name, actualName);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1179:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(pending.result, msg);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1702:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(pcPtr->result, resultString);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1707: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(pcPtr->errorInfo, errorInfo);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1711: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(pcPtr->errorCode, errorCode);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1800:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(pcPtr->result, "no application named \"%s\"",
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:1489: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(wmPtr->clientMachine, argv3);
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:2116: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(wmPtr->leaderName, argv3);
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:2353: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(wmPtr->iconName, argv3);
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:3496: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(wmPtr->title, argv3);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:38:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define   snprintf	_snprintf
data/tk8.7-8.7.0~a3/win/nmakehlp.c:38:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define   snprintf	_snprintf
data/tk8.7-8.7.0~a3/win/nmakehlp.c:255:5:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    lstrcat(cmdline, option);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:393:2:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
	lstrcat(cmdline, options[i]);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:682:6:  [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(szBuffer);
data/tk8.7-8.7.0~a3/win/tkWinCursor.c:22:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int system;			/* 1 if cursor is a system cursor, else 0. */
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2104: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(p, defaultFilter);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2160: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(p, filterPtr->name);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2179: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(p, sep);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2181: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(p, globPtr->pattern);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2568:6:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	    wcscpy(path, cdCBData.retDir);
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:545: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(itemText, Tcl_DStringValue(&itemString));
data/tk8.7-8.7.0~a3/win/tkWinX.c:138:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer+1, "indows %d.%d %d %s", (int)os.dwMajorVersion,
data/tk8.7-8.7.0~a3/win/tkWinX.c:537: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(display->display_name, display_name);
data/tk8.7-8.7.0~a3/win/ttkWinXPTheme.c:1249:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(name, elementName);
data/tk8.7-8.7.0~a3/win/ttkWinXPTheme.c:1254:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(wname, className);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:241: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.
    if (!path && getenv("TK_SRCROOT")) {
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:242:41:  [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.
	path = [[NSString stringWithUTF8String:getenv("TK_SRCROOT")]
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:321: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("XCNOSTDIN") != NULL) {
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:386: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("TK_CONSOLE") ||
data/tk8.7-8.7.0~a3/win/nmakehlp.c:263:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    ok = CreateProcess(
data/tk8.7-8.7.0~a3/win/nmakehlp.c:263:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    ok = CreateProcess(
data/tk8.7-8.7.0~a3/win/nmakehlp.c:397:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    ok = CreateProcess(
data/tk8.7-8.7.0~a3/win/nmakehlp.c:397:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    ok = CreateProcess(
data/tk8.7-8.7.0~a3/generic/nanosvg.h:172: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 id[64];				// Optional 'id' attr of the shape or its group
data/tk8.7-8.7.0~a3/generic/nanosvg.h:438: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 id[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:439: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 ref[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:455: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 id[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:462: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 fillGradient[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:463: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 strokeGradient[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:583: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(s2, s, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:585: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(t, s2, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:812: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(&p->attr[p->attrHead], &p->attr[p->attrHead-1], sizeof(NSVGattrib));
data/tk8.7-8.7.0~a3/generic/nanosvg.h:951: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(grad->stops, stops, nstops*sizeof(NSVGgradientStop));
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1011: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(shape->id, attr->id, sizeof shape->id);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1301: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 s1[32]="", s2[32]="";
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1537: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 units[32]="";
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1559: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 it[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1590: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(xform, t, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1603: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(xform, t, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1615: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(xform, t, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1626: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(xform, t, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1637: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(xform, t, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1665: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(xform, m, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1762: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 item[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1882: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 name[512];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1883: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 value[512];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1897:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (n) memcpy(name, start, n);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1904:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (n) memcpy(value, val, n);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:2284: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 item[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:2556: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 item[64];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:2830:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return (char *)memcpy(result, s, len);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:3000: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(t, shape->fill.gradient->xform, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:3005: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(t, shape->stroke.gradient->xform, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:3049: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, "rb");
data/tk8.7-8.7.0~a3/generic/nanosvgrast.h:120:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char mem[NSVG__MEMPAGE_SIZE];
data/tk8.7-8.7.0~a3/generic/nanosvgrast.h:297: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(r->points2, r->points, sizeof(NSVGpoint) * r->npoints);
data/tk8.7-8.7.0~a3/generic/nanosvgrast.h:1292: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(cache->xform, grad->xform, sizeof(float)*6);
data/tk8.7-8.7.0~a3/generic/tk.h:1199: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 array[sizeof(char *)];
data/tk8.7-8.7.0~a3/generic/tkBind.c:1680: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(newStr, oldStr, length1);
data/tk8.7-8.7.0~a3/generic/tkBind.c:1682: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(newStr + length1 + 1, script, length2 + 1);
data/tk8.7-8.7.0~a3/generic/tkBind.c:1687: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(newStr, script, length + 1);
data/tk8.7-8.7.0~a3/generic/tkBind.c:2940: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 numStorage[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkBind.c:4798: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 string[2];
data/tk8.7-8.7.0~a3/generic/tkBind.c:4842: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[256];
data/tk8.7-8.7.0~a3/generic/tkBind.c:4875: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 field[512];
data/tk8.7-8.7.0~a3/generic/tkBitmap.c:820:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[16 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkBitmap.c:839: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(string, "_tk%d", dispPtr->bitmapAutoNumber);
data/tk8.7-8.7.0~a3/generic/tkButton.c:58:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefButtonHighlightWidth[TCL_INTEGER_SPACE] = DEF_BUTTON_HIGHLIGHT_WIDTH;
data/tk8.7-8.7.0~a3/generic/tkButton.c:59:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefButtonPadx[TCL_INTEGER_SPACE] = DEF_BUTTON_PADX;
data/tk8.7-8.7.0~a3/generic/tkButton.c:60:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefButtonPady[TCL_INTEGER_SPACE] = DEF_BUTTON_PADY;
data/tk8.7-8.7.0~a3/generic/tkButton.c:61:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefButtonBorderWidth[TCL_INTEGER_SPACE] = DEF_BUTTON_BORDER_WIDTH;
data/tk8.7-8.7.0~a3/generic/tkButton.c:62:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefLabelHighlightWidth[TCL_INTEGER_SPACE] = DEF_LABEL_HIGHLIGHT_WIDTH;
data/tk8.7-8.7.0~a3/generic/tkButton.c:63:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefLabelPadx[TCL_INTEGER_SPACE] = DEF_LABCHKRAD_PADX;
data/tk8.7-8.7.0~a3/generic/tkButton.c:64:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefLabelPady[TCL_INTEGER_SPACE] = DEF_LABCHKRAD_PADY;
data/tk8.7-8.7.0~a3/generic/tkButton.h:296: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.
MODULE_SCOPE char tkDefButtonHighlightWidth[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkButton.h:297: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.
MODULE_SCOPE char tkDefButtonPadx[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkButton.h:298: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.
MODULE_SCOPE char tkDefButtonPady[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkButton.h:299: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.
MODULE_SCOPE char tkDefButtonBorderWidth[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkButton.h:300: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.
MODULE_SCOPE char tkDefLabelHighlightWidth[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkButton.h:301: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.
MODULE_SCOPE char tkDefLabelPadx[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkButton.h:302: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.
MODULE_SCOPE char tkDefLabelPady[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkCanvLine.c:2012: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, "%.5g %.5g %.5g", linePtr->arrowShapeA,
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1035:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newStr, text, byteIndex);
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1116:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newStr, text, byteIndex);
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1544:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, selStart + offset, byteCount);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:561: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(buffer, p, (unsigned int) i);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:572: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", *p++ & 0xff);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:574: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+strlen(buffer), " %d", *p++ & 0xff);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:883: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(pt, value, (unsigned) i);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:1384:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pattern[11];
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:1141: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 *) canvasPtr, Tcl_GetString(objv[2]), 0);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:1149: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.
		    (char *) canvasPtr, Tcl_GetString(objv[2]), 0);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2599:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2753: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",ximagePtr->width);   Tcl_AppendResult(interp, " width ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2754: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",ximagePtr->height);  Tcl_AppendResult(interp, " height ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2755: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",ximagePtr->xoffset); Tcl_AppendResult(interp, " xoffset ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2756: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",ximagePtr->format);  Tcl_AppendResult(interp, " format ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2771:10:  [2] (buffer) sprintf:
  Does not 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,"%2.2x",ximagePtr->data[ximagePtr->bytes_per_line * iy + ix]&0xFF);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2778: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," NULL");
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2779: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",ximagePtr->byte_order);       Tcl_AppendResult(interp, " byte_order ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2780: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",ximagePtr->bitmap_unit);      Tcl_AppendResult(interp, " bitmap_unit ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2781: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",ximagePtr->bitmap_bit_order); Tcl_AppendResult(interp, " bitmap_bit_order ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2782: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",ximagePtr->bitmap_pad);       Tcl_AppendResult(interp, " bitmap_pad ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2783: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",ximagePtr->depth);            Tcl_AppendResult(interp, " depth ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2784: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",ximagePtr->bytes_per_line);   Tcl_AppendResult(interp, " bytes_per_line ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2785: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",ximagePtr->bits_per_pixel);   Tcl_AppendResult(interp, " bits_per_pixel ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2786: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%8.8lx",ximagePtr->red_mask);   Tcl_AppendResult(interp, " red_mask ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2787: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%8.8lx",ximagePtr->green_mask); Tcl_AppendResult(interp, " green_mask ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2788: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%8.8lx",ximagePtr->blue_mask);  Tcl_AppendResult(interp, " blue_mask ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2792: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%8.8lx",visualPtr->red_mask);   Tcl_AppendResult(interp, " red_mask ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2793: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%8.8lx",visualPtr->green_mask); Tcl_AppendResult(interp, " green_mask ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2794: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%8.8lx",visualPtr->blue_mask);  Tcl_AppendResult(interp, " blue_mask ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2826: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",rshift); Tcl_AppendResult(interp, "\nbits { rshift ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2827: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",gshift); Tcl_AppendResult(interp, " gshift ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2828: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",bshift); Tcl_AppendResult(interp, " bshift ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2829: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",rbits);  Tcl_AppendResult(interp, " rbits ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2830: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",gbits);  Tcl_AppendResult(interp, " gbits ", buffer, NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2831: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",bbits);  Tcl_AppendResult(interp, " bbits ", buffer, " }", NULL);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:2925: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,"%2.2x",blockPtr.pixelPtr[blockPtr.pitch * y
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:4597: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((void *) newTagPtr, itemPtr->tagPtr,
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1392: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 buf[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1758: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 buf[16 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1759: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 visualIdString[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1788:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "unknown");
data/tk8.7-8.7.0~a3/generic/tkCmds.c:1793: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(visualIdString, " 0x%lx",
data/tk8.7-8.7.0~a3/generic/tkColor.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rgbString[20];		/* */
data/tk8.7-8.7.0~a3/generic/tkColor.c:374: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(tsdPtr->rgbString, "#%04x%04x%04x", colorPtr->red,
data/tk8.7-8.7.0~a3/generic/tkColor.c:837:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const tkWebColors[20] = {
data/tk8.7-8.7.0~a3/generic/tkColor.c:867:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[14];
data/tk8.7-8.7.0~a3/generic/tkConfig.c:498: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 msg[200];
data/tk8.7-8.7.0~a3/generic/tkConfig.c:502: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(msg, "\n    (database entry for \"%.50s\")",
data/tk8.7-8.7.0~a3/generic/tkConfig.c:506: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(msg, "\n    (system default for \"%.50s\")",
data/tk8.7-8.7.0~a3/generic/tkConfig.c:510: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(msg, "\n    (default value for \"%.50s\")",
data/tk8.7-8.7.0~a3/generic/tkConfig.c:514: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(msg + strlen(msg) - 1, " in widget \"%.50s\")",
data/tk8.7-8.7.0~a3/generic/tkCursor.c:428: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(dispPtr->cursorString, "cursor id 0x%" TCL_Z_MODIFIER "x", (size_t)cursor);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:1213: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 fbuf[4], *fmt = sbPtr->reqFormat;
data/tk8.7-8.7.0~a3/generic/tkEntry.c:1960: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 buf[6];
data/tk8.7-8.7.0~a3/generic/tkEntry.c:1978:6:  [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(p, buf, size);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2144:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newStr, string, byteIndex);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2245:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newStr, string, (size_t) byteIndex);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2249:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(toDelete, string + byteIndex, (size_t) byteCount);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2913:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, selStart + offset, (size_t) byteCount);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:3072:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char firstStr[TCL_DOUBLE_SPACE], lastStr[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkEntry.c:3521:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char numStorage[2*TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkEntry.c:3596: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(numStorage, "%d", number);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:3600: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(numStorage, "%d", index);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:4587: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(sbPtr->digitFormat, "%%.%df", afterDecimal);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:4589: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(sbPtr->digitFormat, "%%.%de", numDigits-1);
data/tk8.7-8.7.0~a3/generic/tkEntry.h:237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char digitFormat[16];	/* Sprintf conversion specifier computed from
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:340:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy(globPtr->pattern, "*.*");
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:349:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy(globPtr->pattern, "*.");
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:453:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(filterPtr->name, name, len);
data/tk8.7-8.7.0~a3/generic/tkFont.c:644: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 buf[16 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkFont.c:662: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(buf, "font%d", i);
data/tk8.7-8.7.0~a3/generic/tkFont.c:3263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uindex[5], c, *ps;
data/tk8.7-8.7.0~a3/generic/tkFont.c:3316: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(uindex, "%04X", ch);		/* endianness? */
data/tk8.7-8.7.0~a3/generic/tkFont.c:3804:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *field[XLFD_NUMFIELDS + 2];
data/tk8.7-8.7.0~a3/generic/tkFont.c:3856: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(field[XLFD_ADD_STYLE]) != 0) {
data/tk8.7-8.7.0~a3/generic/tkGrid.c:2083: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(newUG, oldUG, oldSize);
data/tk8.7-8.7.0~a3/generic/tkGrid.c:2658:6:  [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(newSI, oldSI, oldSize);
data/tk8.7-8.7.0~a3/generic/tkGrid.c:3558:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/tk8.7-8.7.0~a3/generic/tkImage.c:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char idString[16 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkImage.c:288: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(idString, "image%d", dispPtr->imageId);
data/tk8.7-8.7.0~a3/generic/tkImgBmap.c:138:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char word[MAX_WORD_LENGTH+1];
data/tk8.7-8.7.0~a3/generic/tkImgBmap.c:778: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 *) masterPtr, Tcl_GetString(objv[2]), 0);
data/tk8.7-8.7.0~a3/generic/tkImgBmap.c:785:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    configSpecs, (char *) masterPtr,
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:99:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char workingBuffer[280];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:177: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.
			    unsigned char buffer[MAXCOLORMAPSIZE][4]);
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:181:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    Tcl_Interp *interp, unsigned char *imagePtr,
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:183: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.
			    unsigned char cmap[MAXCOLORMAPSIZE][4], int srcX,
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:222:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mapa[MAXCOLORMAPSIZE][3];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:302:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char packetAccumulator[256];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:399:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[100];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:402:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char colorMap[MAXCOLORMAPSIZE][4];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:759:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char *data, header[10];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:791: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(header, data, 10);
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:885:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[7];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:914:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[MAXCOLORMAPSIZE][4])
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:917:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char rgb[3];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:1028:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char *imagePtr,
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:1031:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char cmap[MAXCOLORMAPSIZE][4],
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:1042:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char append[(1 << MAX_LWZ_BITS)];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:1043:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stack[(1 << MAX_LWZ_BITS)*2];
data/tk8.7-8.7.0~a3/generic/tkImgGIF.c:1587: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(dst, handle->data, hunk * count);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:668:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char colorBuf[11];
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:693:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(colorBuf, "#%02x%02x%02x ",  pixelPtr[0],
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:698:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(colorBuf, "#%02x%02x%02x%02x ",
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:705:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(colorBuf, "%d", pixelPtr[0]);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:707:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(colorBuf, "%d", pixelPtr[greenOffset]);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:709:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(colorBuf, "%d", pixelPtr[blueOffset]);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:711:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(colorBuf, "%d", alphaVal);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:1005:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char colorBuffer[TK_PHOTO_MAX_COLOR_CHARS + 1];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:166:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char transVal[6];	/* Fully-transparent RGB/Gray Value. */
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:575: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(destPtr, pngPtr->strDataBuf, blockSz);
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:691:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char p[4];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:776:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[PNG_BLOCK_SZ];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:875:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pc[4];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:989: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 typeString[5];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1240:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char sigBuf[PNG_SIG_SZ];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1437:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[PNG_PLTE_MAXSZ];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1524:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[PNG_TRNS_MAXSZ];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1630:6:  [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(pngPtr->transVal, buffer, 6);
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1842:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char lastPixel[6];
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:2886: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(destPtr+objSz, srcPtr, srcSz);
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:2930:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char pc[4];
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[16 + TCL_INTEGER_SPACE * 2];
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:310: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(header, "P6\n%d %d\n255\n", blockPtr->width, blockPtr->height);
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:378:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[16 + TCL_INTEGER_SPACE * 2];
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:381: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(header, "P6\n%d %d\n255\n", blockPtr->width, blockPtr->height);
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:404: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(byteArray, pixLinePtr,
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:659:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFFER_SIZE], c;
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:766:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFFER_SIZE], c;
data/tk8.7-8.7.0~a3/generic/tkImgPhInstance.c:220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[TCL_INTEGER_SPACE * 3];
data/tk8.7-8.7.0~a3/generic/tkImgPhInstance.c:344: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(buf, "%d", nRed);
data/tk8.7-8.7.0~a3/generic/tkImgPhInstance.c:346: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(buf, "%d/%d/%d", nRed, nGreen, nBlue);
data/tk8.7-8.7.0~a3/generic/tkImgPhInstance.c:869: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(newError + offset, instancePtr->error + offset,
data/tk8.7-8.7.0~a3/generic/tkImgPhInstance.c:880: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(errDestPtr, errSrcPtr,
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:462: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.
		    (char *) masterPtr, Tcl_GetString(objv[2]), 0);
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2299: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(newPix32 + offset, masterPtr->pix32 + offset,
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2311: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(destPtr, srcPtr, ((size_t)validBox.width * 4));
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2805: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(sourceBlock.pixelPtr, blockPtr->pixelPtr, sourceBlock.height
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2905: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(destLinePtr, srcLinePtr, ((size_t)width * 4));
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:3239: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(sourceBlock.pixelPtr, blockPtr->pixelPtr, sourceBlock.height
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.h:118:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char colorQuant[3][256];
data/tk8.7-8.7.0~a3/generic/tkImgSVGnano.c:352:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(inputCopy, input, length);
data/tk8.7-8.7.0~a3/generic/tkInt.h:283:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cursorString[20];	/* Used to store a cursor id string. */
data/tk8.7-8.7.0~a3/generic/tkInt.h:1049:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
MODULE_SCOPE const char *const tkWebColors[20];
data/tk8.7-8.7.0~a3/generic/tkListbox.c:3176: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(buffer, Tcl_DStringValue(&selection) + offset, count);
data/tk8.7-8.7.0~a3/generic/tkListbox.c:3302:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char firstStr[TCL_DOUBLE_SPACE], lastStr[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkListbox.c:3372:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char firstStr[TCL_DOUBLE_SPACE], lastStr[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkMenubutton.c:929:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(mbPtr->text, value, len);
data/tk8.7-8.7.0~a3/generic/tkObj.c:674:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:699:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[6];
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:701:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[200];
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:728: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.
	    ckfree((char *) argv[4]);
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:730:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    freeProc((char *) argv[4]);
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:785: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", *((int *) ptr));
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:863: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", *((int *) ptr));
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:926:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[200];
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:1116: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(cachedSpecs, staticSpecs, entrySpace);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:267:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100];
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[200 + TCL_INTEGER_SPACE * 6];
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[200];
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:392:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100];
data/tk8.7-8.7.0~a3/generic/tkOption.c:265:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[TMP_SIZE+1];
data/tk8.7-8.7.0~a3/generic/tkOption.c:1311: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(newLevels, tsdPtr->levels,
data/tk8.7-8.7.0~a3/generic/tkPanedWindow.c:1020: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((void *)&(newSlaves[0]), pwPtr->slaves,
data/tk8.7-8.7.0~a3/generic/tkPanedWindow.c:1022: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((void *)&(newSlaves[pwPtr->numSlaves]), inserts,
data/tk8.7-8.7.0~a3/generic/tkPanedWindow.c:1041: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((void *)&(newSlaves[j]), inserts, sizeof(Slave *)*insertIndex);
data/tk8.7-8.7.0~a3/generic/tkPanedWindow.c:2404:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[5];
data/tk8.7-8.7.0~a3/generic/tkScale.c:726: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 varString[TCL_DOUBLE_SPACE], scaleString[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkScale.c:988: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(scalePtr->tickFormat, "%%.%df", afterDecimal);
data/tk8.7-8.7.0~a3/generic/tkScale.c:990: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(scalePtr->tickFormat, "%%.%de", numDigits - 1);
data/tk8.7-8.7.0~a3/generic/tkScale.c:994: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(scalePtr->valueFormat, "%%.%df", afterDecimal);
data/tk8.7-8.7.0~a3/generic/tkScale.c:996: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(scalePtr->valueFormat, "%%.%de", numDigits - 1);
data/tk8.7-8.7.0~a3/generic/tkScale.c:1024:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char valueString[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkScale.c:1505: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 string[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/generic/tkScale.h:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char valueFormat[16];	/* Sprintf conversion specifier computed from
data/tk8.7-8.7.0~a3/generic/tkScale.h:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tickFormat[16];	/* Sprintf conversion specifier computed from
data/tk8.7-8.7.0~a3/generic/tkScrollbar.c:28:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tkDefScrollbarWidth[TCL_INTEGER_SPACE] = DEF_SCROLLBAR_WIDTH;
data/tk8.7-8.7.0~a3/generic/tkScrollbar.c:296:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		configSpecs, (char *) scrollPtr, Tcl_GetString(objv[2]), 0);
data/tk8.7-8.7.0~a3/generic/tkScrollbar.c:305:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    configSpecs, (char *) scrollPtr, Tcl_GetString(objv[2]), 0);
data/tk8.7-8.7.0~a3/generic/tkScrollbar.h:171: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.
MODULE_SCOPE char tkDefScrollbarWidth[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkSelect.c:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];		/* A buffer to hold part of a UTF character
data/tk8.7-8.7.0~a3/generic/tkSelect.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char command[1];		/* Command to invoke. Actual space is
data/tk8.7-8.7.0~a3/generic/tkSelect.c:197: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(selPtr->clientData, clientData, cmdInfoLen);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:582: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[TK_SEL_BYTES_AT_ONCE+1];
data/tk8.7-8.7.0~a3/generic/tkSelect.c:914:6:  [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(cmdInfoPtr->command, string, cmdLength + 1);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1390: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(buffer, string, count);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1479: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, "0x%x", (unsigned int) infoPtr->time);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1511: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(buffer, Tcl_DStringValue(&ds), length + 1);
data/tk8.7-8.7.0~a3/generic/tkStubInit.c:148:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)window);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1518:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100];
data/tk8.7-8.7.0~a3/generic/tkTest.c:1564:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[200 + TCL_INTEGER_SPACE * 6];
data/tk8.7-8.7.0~a3/generic/tkTest.c:1639:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[200];
data/tk8.7-8.7.0~a3/generic/tkTest.c:1673:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100];
data/tk8.7-8.7.0~a3/generic/tkTest.c:1819:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkTest.c:1836:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%d", val);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1874:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[30];
data/tk8.7-8.7.0~a3/generic/tkTest.c:1908: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, "0x%lx", value);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1944:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/tk8.7-8.7.0~a3/generic/tkTest.c:2016: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 buf[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkText.c:2781:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lMarkName[20] = "tk::undoMarkL";
data/tk8.7-8.7.0~a3/generic/tkText.c:2782:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rMarkName[20] = "tk::undoMarkR";
data/tk8.7-8.7.0~a3/generic/tkText.c:2783:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringUndoMarkId[16] = "";
data/tk8.7-8.7.0~a3/generic/tkText.c:2855: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(stringUndoMarkId, "%d", textPtr->sharedTextPtr->undoMarkId);
data/tk8.7-8.7.0~a3/generic/tkText.c:3511: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(buffer, segPtr->body.chars + offsetInSeg,
data/tk8.7-8.7.0~a3/generic/tkText.c:4908: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(range, segPtr->body.chars + first, length);
data/tk8.7-8.7.0~a3/generic/tkText.c:5065:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkText.c:6525:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			    memcpy(newArray, storeMatch, matchNum*sizeof(TkSizeT));
data/tk8.7-8.7.0~a3/generic/tkText.c:6526:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			    memcpy(newArray + 2*matchNum, storeLength,
data/tk8.7-8.7.0~a3/generic/tkText.c:6946:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/tk8.7-8.7.0~a3/generic/tkText.c:6962: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).
	lineIndex = atoi(Tcl_GetString(objv[3])) - 1;
data/tk8.7-8.7.0~a3/generic/tkText.c:6963: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).
	byteIndex = atoi(Tcl_GetString(objv[4]));
data/tk8.7-8.7.0~a3/generic/tkText.c:6974: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).
	byteOffset = atoi(Tcl_GetString(objv[4]));
data/tk8.7-8.7.0~a3/generic/tkText.c:6983: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).
	byteOffset = atoi(Tcl_GetString(objv[4]));
data/tk8.7-8.7.0~a3/generic/tkText.h:171: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 chars[2];		/* Characters that make up character info.
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:1073: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(segPtr->body.chars, string, chunkSize);
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:3722: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(newTags, tagInfoPtr->tagPtrs,
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:3727: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(newCounts, tagInfoPtr->counts,
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:4566:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newPtr1->body.chars, segPtr->body.chars, index);
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:4571:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newPtr2->body.chars, segPtr->body.chars + index, newPtr2->size);
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:4612:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newPtr->body.chars, segPtr->body.chars, segPtr->size);
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:4613:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newPtr->body.chars + segPtr->size, segPtr2->body.chars, segPtr2->size);
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:443:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chars[1];		/* UTF characters to display. Actual size will
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:1902:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char string[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:2165: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 string[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:2368: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 string[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:3051: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[2 * TCL_INTEGER_SPACE + 1];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:3053: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 %d", lineNum, dInfoPtr->lastMetricUpdateLine);
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:3259: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[4 * TCL_INTEGER_SPACE + 3];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:3261: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, "%d %d %d %d",
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:4125: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[2 * TCL_INTEGER_SPACE + 1];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:4131: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 %d", TkBTreeLinesTo(textPtr,linePtr), pixelHeight);
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:4487: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 string[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:4571: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 string[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:6510: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 buf1[TCL_DOUBLE_SPACE+1];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:6511: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 buf2[TCL_DOUBLE_SPACE+1];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:6631: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 string[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:6795: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 buf1[TCL_DOUBLE_SPACE+1];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:6796: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 buf2[TCL_DOUBLE_SPACE+1];
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:7762:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ciPtr->chars, p, bytesThatFit);
data/tk8.7-8.7.0~a3/generic/tkTextImage.c:412: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[4 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/tkTextImage.c:414: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(buf, "#%d", count+1);
data/tk8.7-8.7.0~a3/generic/tkTextIndex.c:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextIndex.c:1069:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    return sprintf(string, "%d.%d",
data/tk8.7-8.7.0~a3/generic/tkTextTag.c:688: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 position[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextTag.c:772: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 position1[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextTag.c:773: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 position2[TK_POS_CHARS];
data/tk8.7-8.7.0~a3/generic/tkTextTag.c:1637: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(copyArrayPtr, newArrayPtr, size);
data/tk8.7-8.7.0~a3/generic/tkTextTag.c:1731: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 *nameArray[NUM_BIND_TAGS];
data/tk8.7-8.7.0~a3/generic/tkUtil.c:381:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(offsetPtr, &tsoffset, sizeof(Tk_TSOffset));
data/tk8.7-8.7.0~a3/generic/tkUtil.c:427: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(p, "%d", offsetPtr->flags & ~TK_OFFSET_INDEX);
data/tk8.7-8.7.0~a3/generic/tkUtil.c:460:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(q, "%d,%d", offsetPtr->xoffset, offsetPtr->yoffset);
data/tk8.7-8.7.0~a3/generic/tkVisual.c:23:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[12];		/* Textual name of class. */
data/tk8.7-8.7.0~a3/generic/tkWindow.c:709:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char staticSpace[FIXED_SIZE];
data/tk8.7-8.7.0~a3/generic/tkWindow.c:1134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fixedSpace[FIXED_SPACE+1];
data/tk8.7-8.7.0~a3/generic/tkWindow.c:2852:5:  [2] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
    wcscpy(name+len, L".dll");
data/tk8.7-8.7.0~a3/generic/tkWindow.c:2853:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(name+len-8, L"libtk8", 6 * sizeof(WCHAR));
data/tk8.7-8.7.0~a3/generic/ttk/ttkCache.c:209:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nameBuf[14];
data/tk8.7-8.7.0~a3/generic/ttk/ttkCache.c:212: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(nameBuf, "#%04X%04X%04X",
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:297:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[6];
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:304: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(p, buf, size);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:379:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, selStart + offset, byteCount);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:434:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char numStorage[2*TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:472: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(numStorage, "%d", number);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:476: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(numStorage, "%d", index);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:849:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new, string, byteIndex);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:896:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new, string, byteIndex);
data/tk8.7-8.7.0~a3/generic/ttk/ttkLayout.c:498:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[5];
data/tk8.7-8.7.0~a3/generic/ttk/ttkScroll.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg1[TCL_DOUBLE_SPACE + 2];
data/tk8.7-8.7.0~a3/generic/ttk/ttkScroll.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg2[TCL_DOUBLE_SPACE + 2];
data/tk8.7-8.7.0~a3/generic/ttk/ttkTreeview.c:2195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dcolbuf[16];
data/tk8.7-8.7.0~a3/generic/ttk/ttkTreeview.c:2210: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(dcolbuf, "#%d", dColumnNumber);
data/tk8.7-8.7.0~a3/generic/ttk/ttkTreeview.c:2596: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 idbuf[16];
data/tk8.7-8.7.0~a3/generic/ttk/ttkTreeview.c:2599: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(idbuf, "I%03X", tv->tree.serial);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXBitmap.c:212: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 string[4] = {};
data/tk8.7-8.7.0~a3/macosx/tkMacOSXBitmap.c:213: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(string, Tcl_DStringValue(&ds), Tcl_DStringLength(&ds));
data/tk8.7-8.7.0~a3/macosx/tkMacOSXCursor.c:273:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char *bitmap = (unsigned char *)(cursorNames[idx].id1);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXDialog.c:236: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(tmpv, objv, sizeof(Tcl_Obj *) * objc);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXDialog.c:274: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(tmpv, objv, sizeof(Tcl_Obj *) * objc);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXDialog.c:457: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 colorstr[8];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXDialog.c:1722: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(tmpv, objv, sizeof(Tcl_Obj *) * objc);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXEmbed.c:570:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[50];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXEmbed.c:599: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(buffer, "0x%" TCL_Z_MODIFIER "x",
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char URLString[1 + URL_MAX_LENGTH];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char URLBuffer[1 + URL_MAX_LENGTH];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:246:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errString[128];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:261: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(errString, "AEDoScriptHandler: GetParamDesc error %d", (int)err);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:268: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(errString, "AEDoScriptHandler: extra parameters");
data/tk8.7-8.7.0~a3/macosx/tkMacOSXImage.c:81:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    data = memcpy(ckalloc(len), image->data + image->xoffset, len);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXImage.c:111:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	data = memcpy(ckalloc(len), image->data + image->xoffset, len);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXImage.c:226: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(bitmap, (char *)[bitmap_rep bitmapData], size);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXImage.c:226: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.
	memcpy(bitmap, (char *)[bitmap_rep bitmapData], size);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:22:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tkLibPath[PATH_MAX + 1] = "";
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:29: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 scriptPath[PATH_MAX + 1] = "";
data/tk8.7-8.7.0~a3/macosx/tkMacOSXInit.c:589: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 startupScript[PATH_MAX + 1];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXKeyEvent.c:355:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(xEvent.xkey.trans_chars, "\xef\xbf\xbd");
data/tk8.7-8.7.0~a3/macosx/tkMacOSXNotify.c:36: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 *Tk_EventName[39] = {
data/tk8.7-8.7.0~a3/macosx/tkMacOSXPort.h:123: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((buf), "0x%lx", (unsigned long) (w))
data/tk8.7-8.7.0~a3/macosx/tkMacOSXScale.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXSend.c:270: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(Tcl_DStringValue(&dString) + offset, "%d", suffix);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:1987:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:1997:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)window);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:5090: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(newPtr, oldPtr, count * sizeof(TkWindow *));
data/tk8.7-8.7.0~a3/macosx/tkMacOSXXStubs.c:192: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 vendor[25] = "";
data/tk8.7-8.7.0~a3/macosx/tkMacOSXXStubs.c:913:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[5 + TCL_INTEGER_SPACE * 2];
data/tk8.7-8.7.0~a3/macosx/tkMacOSXXStubs.c:914:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer2[11 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixDialog.c:51:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(objs+1, objv, sizeof(Tcl_Obj *) * (unsigned)objc);
data/tk8.7-8.7.0~a3/unix/tkUnixEmbed.c:883:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[50];
data/tk8.7-8.7.0~a3/unix/tkUnixEmbed.c:910: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(buffer, "0x%" TCL_Z_MODIFIER "x", (size_t) containerPtr->parent);
data/tk8.7-8.7.0~a3/unix/tkUnixEmbed.c:927: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(buffer, "0x%" TCL_Z_MODIFIER "x", (size_t) containerPtr->wrapper);
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *fontMap[FONTMAP_PAGES];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2210:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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], src[6];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2254:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    hi = ((unsigned char *) buf)[0];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2255:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    lo = ((unsigned char *) buf)[1];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2258:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    lo = ((unsigned char *) buf)[0];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2414:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char src[6];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2466: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 dst[16];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2552:6:  [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(nameList, nameListOrig, numNames * sizeof(char *));
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2597: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(newPtr, fontPtr->subFontArray,
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2752: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 *str, *rest, buf[256];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2905:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2907:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "-*-%.80s-*-*-*-*-*-*-*-*-*-*-*-*", faceName);
data/tk8.7-8.7.0~a3/unix/tkUnixInit.c:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tkLibPath[PATH_MAX + 1];
data/tk8.7-8.7.0~a3/unix/tkUnixKey.c:123: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(Tcl_DStringValue(dsPtr), kePtr->charValuePtr,
data/tk8.7-8.7.0~a3/unix/tkUnixKey.c:234:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(kePtr->charValuePtr, Tcl_DStringValue(dsPtr), len + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixKey.c:517:6:  [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(newCodes, dispPtr->modKeyCodes,
data/tk8.7-8.7.0~a3/unix/tkUnixMenu.c:1382:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(helpMenuName, ".help");
data/tk8.7-8.7.0~a3/unix/tkUnixPort.h:172: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((buf), "%#08lx", (unsigned long) (w))
data/tk8.7-8.7.0~a3/unix/tkUnixRFont.c:678:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[256];
data/tk8.7-8.7.0~a3/unix/tkUnixScale.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 valueString[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:353: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 valueString[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:495:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char valueString[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:554:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:24:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];	/* A buffer to hold part of a UTF character
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:356: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.
	    ((char *) buffer)[numItems] = 0;
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:452: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(incrPtr->converts[i].buffer, src, srcLen + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:946: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.
	    ((char *) buffer)[numItems] = '\0';
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:1328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TK_SEL_BYTES_AT_ONCE+1];
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:1512: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[12];
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:1514: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(buf, "0x%x", (unsigned int) *propPtr);
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:1538: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 buf[12];
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:1540: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(buf, "0x%x", (unsigned char) *propPtr);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:476:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char id[30], *newProp;
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:479:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(id, "%x ", (unsigned) commWindow);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:486: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(newProp + newBytes, regPtr->property, regPtr->propLength);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:878: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(Tcl_DStringValue(&dString) + offset, "%d", i);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1097: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[TCL_INTEGER_SPACE * 2];
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1099: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, "%x %d",
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1621: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[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1623: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, "%d", result);
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char command[1];		/* Tcl command to invoke when a client message
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:1873:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:1883:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)window);
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:3087: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(protPtr->command, cmd, cmdLength + 1);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[STATICBUFFERSIZE];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[300];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:206:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[300];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:209:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdline[100];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:249:5:  [2] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
    lstrcpy(cmdline, "cl.exe -nologo -c -TC -Zs -X -Fp.\\_junk.pch ");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:261:5:  [2] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant string.
    lstrcat(cmdline, " .\\nul");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:341:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[300];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:345:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdline[255];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:385:5:  [2] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
    lstrcpy(cmdline, "link.exe -nologo ");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:392:2:  [2] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant string.
	lstrcat(cmdline, " \"");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:512: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 szBuffer[100];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:514: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, "rt");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:545: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(szBuffer, p, q - p);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:620: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 szBuffer[1024], szCopy[1024];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:625:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "rt");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:632: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).
	sp = fopen(substitutions, "rt");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:679: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(szBuffer, szCopy, sizeof(szCopy));
data/tk8.7-8.7.0~a3/win/nmakehlp.c:703:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szCwd[MAX_PATH + 1];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:704:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szTmp[MAX_PATH + 1];
data/tk8.7-8.7.0~a3/win/nmakehlp.c:726:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[MAX_PATH+1];
data/tk8.7-8.7.0~a3/win/tkWinButton.c:153: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(newBitmap, tsdPtr->boxesPtr, size);
data/tk8.7-8.7.0~a3/win/tkWinButton.c:189: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(tkDefButtonBorderWidth, "%d", width);
data/tk8.7-8.7.0~a3/win/tkWinClipboard.c:342: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(buffer, Tcl_DStringValue(&ds),
data/tk8.7-8.7.0~a3/win/tkWinColor.c:480:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logPalBuf[sizeof(LOGPALETTE) + 256 * sizeof(PALETTEENTRY)];
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2011:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		    Tcl_DString tmpfile;
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2012:40:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		    ConvertExternalFilename(buffer, &tmpfile);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2014:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			    Tcl_GetPathType(Tcl_DStringValue(&tmpfile))) {
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2022:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		    Tcl_DStringFree(&tmpfile);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2228:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                ckfree((char *)dlgFilterPtr[dw].pszName);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2230:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                ckfree((char *)dlgFilterPtr[dw].pszSpec);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:3025:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:3027:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)clientData);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:3117:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmpv, objv, sizeof(Tcl_Obj *) * objc);
data/tk8.7-8.7.0~a3/win/tkWinFont.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *fontMap[FONTMAP_PAGES];
data/tk8.7-8.7.0~a3/win/tkWinFont.c:902: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 buf[16];
data/tk8.7-8.7.0~a3/win/tkWinFont.c:2182:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char src[XMaxTransChars], buf[16];
data/tk8.7-8.7.0~a3/win/tkWinFont.c:2418: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(newPtr, fontPtr->subFontArray,
data/tk8.7-8.7.0~a3/win/tkWinFont.c:2483:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, faceName, -1, lf.lfFaceName, LF_FACESIZE);
data/tk8.7-8.7.0~a3/win/tkWinImage.c:643: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 infoBuf[sizeof(BITMAPINFO) + sizeof(RGBQUAD)];
data/tk8.7-8.7.0~a3/win/tkWinInit.c:138:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    len = MultiByteToWideChar(CP_UTF8, 0, title, -1, titleString, TK_MAX_WARN_LEN);
data/tk8.7-8.7.0~a3/win/tkWinInit.c:141:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, msg, -1, msgString, (TK_MAX_WARN_LEN - 1) - len);
data/tk8.7-8.7.0~a3/win/tkWinInit.c:147: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(titleString + (TK_MAX_WARN_LEN - 5), L" ...", 5 * sizeof(WCHAR));
data/tk8.7-8.7.0~a3/win/tkWinKey.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[6];
data/tk8.7-8.7.0~a3/win/tkWinKey.c:531:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(new, dispPtr->modKeyCodes,
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:496:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(itemText, "(Tear-off)");
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:499:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(itemText, "(Image)");
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:502:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(itemText, "(Pixmap)");
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:505:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(itemText, "( )");
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:3329:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sizeString[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:3330:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char faceName[LF_FACESIZE];
data/tk8.7-8.7.0~a3/win/tkWinMenu.c:3386: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(sizeString, "%d", pointSize);
data/tk8.7-8.7.0~a3/win/tkWinScrlbr.c:363: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(tkDefScrollbarWidth, "%d", arrowWidth);
data/tk8.7-8.7.0~a3/win/tkWinScrlbr.c:531: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 valueString[TCL_DOUBLE_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinSend.c:682: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(Tcl_DStringValue(&dString) + offset, "%d", i);
data/tk8.7-8.7.0~a3/win/tkWinSend.c:1006: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[1024];
data/tk8.7-8.7.0~a3/win/tkWinTest.c:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char id[TCL_INTEGER_SPACE], msgBuf[24 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinTest.c:165:6:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	    MultiByteToWideChar(CP_ACP, 0, msgPtr, length + 1, wMsgPtr,
data/tk8.7-8.7.0~a3/win/tkWinTest.c:172:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(msgBuf, "function not supported under Win32s");
data/tk8.7-8.7.0~a3/win/tkWinTest.c:174: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(msgBuf, "unknown error: %ld", error);
data/tk8.7-8.7.0~a3/win/tkWinTest.c:201: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(id, "%ld", error);
data/tk8.7-8.7.0~a3/win/tkWinTest.c:334: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 buf[256];
data/tk8.7-8.7.0~a3/win/tkWinTest.c:366: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 buf[256];
data/tk8.7-8.7.0~a3/win/tkWinTest.c:408: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 buf[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinTest.c:413: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(buf, "%d", (int) SendMessageA(hwnd, message, wParam, lParam));
data/tk8.7-8.7.0~a3/win/tkWinTest.c:418: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 buf[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinTest.c:420: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(buf, "%d",
data/tk8.7-8.7.0~a3/win/tkWinWindow.c:173:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)hwnd);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char command[1];		/* Tcl command to invoke when a client message
data/tk8.7-8.7.0~a3/win/tkWinWm.c:804: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 bytes[sizeof(WORD)];
data/tk8.7-8.7.0~a3/win/tkWinWm.c:3351:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wmPtr->clientMachine, argv3, length + 1);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:3711:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinWm.c:3724:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)hwnd);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:3953: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(wmPtr->leaderName, argv3, length + 1);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:4260: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(wmPtr->iconName, argv3, length + 1);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:5014: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(protPtr->command, cmd, cmdLength + 1);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:5481: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(wmPtr->title, argv3, length + 1);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:6956: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(newPtr, oldPtr, count * sizeof(TkWindow*));
data/tk8.7-8.7.0~a3/win/tkWinX.c:126: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[32]; /* Empty string means not initialized yet. */
data/tk8.7-8.7.0~a3/win/tkWinX.c:352: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 pBuffer[200];
data/tk8.7-8.7.0~a3/win/tkWinX.c:1484:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char codepage[4 + TCL_INTEGER_SPACE];
data/tk8.7-8.7.0~a3/win/tkWinX.c:1498: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(codepage, "cp%d", charsetInfo.ciACP);
data/tk8.7-8.7.0~a3/xlib/X11/Xlib.h:475: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 auto_repeats[32];
data/tk8.7-8.7.0~a3/xlib/X11/Xlib.h:611: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 trans_chars[XMaxTransChars];
data/tk8.7-8.7.0~a3/xlib/X11/Xlib.h:702: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 key_vector[32];
data/tk8.7-8.7.0~a3/xlib/X11/Xlib.h:949:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char b[20];
data/tk8.7-8.7.0~a3/xlib/xbytes.h:20: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 xBitReverseTable[256] = {
data/tk8.7-8.7.0~a3/xlib/xcolors.c:43:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char elem[32];
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1486:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:1859:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(attr->id, value, 63);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:2649:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(grad->id, attr[i+1], 63);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:2686:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(grad->ref, href+1, 62);
data/tk8.7-8.7.0~a3/generic/nanosvg.h:2820: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).
	size_t len = strlen(s);
data/tk8.7-8.7.0~a3/generic/tk3d.c:660: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).
    length = strlen(name);
data/tk8.7-8.7.0~a3/generic/tkArgv.c:101: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).
	length = strlen(curArg);
data/tk8.7-8.7.0~a3/generic/tkArgv.c:359: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).
	    length = strlen(infoPtr->key);
data/tk8.7-8.7.0~a3/generic/tkArgv.c:375:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    numSpaces = width + 1 - strlen(infoPtr->key);
data/tk8.7-8.7.0~a3/generic/tkBind.c:1676:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length1 = strlen(oldStr);
data/tk8.7-8.7.0~a3/generic/tkBind.c:1677:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length2 = strlen(script);
data/tk8.7-8.7.0~a3/generic/tkBind.c:1684:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length = strlen(script);
data/tk8.7-8.7.0~a3/generic/tkBind.c:2589: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).
	unsigned len = strlen(p);
data/tk8.7-8.7.0~a3/generic/tkBind.c:4537: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).
    length = strlen(virtString);
data/tk8.7-8.7.0~a3/generic/tkBind.c:4864:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(bufPtr, field, size);
data/tk8.7-8.7.0~a3/generic/tkBind.c:5196: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(name) == 1u) {
data/tk8.7-8.7.0~a3/generic/tkBusy.c:532: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).
    length = strlen(Tk_Name(tkRef));
data/tk8.7-8.7.0~a3/generic/tkCanvArc.c:2234: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).
    length = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkCanvLine.c:2056: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).
    length = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkCanvPs.c:321: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).
	length = strlen(psInfo.colorMode);
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:509: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).
    textPtr->numBytes = strlen(textPtr->text);
data/tk8.7-8.7.0~a3/generic/tkCanvText.c:1029: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).
    byteCount = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:574: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).
	sprintf(buffer+strlen(buffer), " %d", *p++ & 0xff);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:746: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).
    length = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:877: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).
	i = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:879:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    dash->pattern.pt = pt = ckalloc(strlen(value));
data/tk8.7-8.7.0~a3/generic/tkCanvUtil.c:1521: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).
	n = strlen(p);
data/tk8.7-8.7.0~a3/generic/tkCanvas.c:3771: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).
    searchPtr->stringLength = strlen(tag);
data/tk8.7-8.7.0~a3/generic/tkClipboard.c:90:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(destPtr, srcPtr, freeCount);
data/tk8.7-8.7.0~a3/generic/tkClipboard.c:93:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(destPtr, srcPtr, length);
data/tk8.7-8.7.0~a3/generic/tkClipboard.c:142: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).
    length = strlen(p);
data/tk8.7-8.7.0~a3/generic/tkClipboard.c:150:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, p, length);
data/tk8.7-8.7.0~a3/generic/tkClipboard.c:392: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).
    cbPtr->length = strlen(buffer);
data/tk8.7-8.7.0~a3/generic/tkCmds.c:415: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).
	    copy = ckalloc(strlen(p) + 1);
data/tk8.7-8.7.0~a3/generic/tkColor.c:932: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(name) > 99) {
data/tk8.7-8.7.0~a3/generic/tkConfig.c:514: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).
		    sprintf(msg + strlen(msg) - 1, " in widget \"%.50s\")",
data/tk8.7-8.7.0~a3/generic/tkEntry.c:775: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).
		&& (strncmp(minorCmd, "mark", strlen(minorCmd)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkEntry.c:779:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		&& (strncmp(minorCmd, "dragto", strlen(minorCmd)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkEntry.c:1215: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).
		formatLen = strlen(fmt);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:1991:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        entryPtr->placeholderChars = strlen(entryPtr->placeholderString);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2137: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).
    byteCount = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2423:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    valueLen = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:2648: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).
    length = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkEntry.c:4015: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).
		&& (strncmp(minorCmd, "mark", strlen(minorCmd)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkEntry.c:4019:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		&& (strncmp(minorCmd, "dragto", strlen(minorCmd)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkFileFilter.c:451:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(name) + 1;
data/tk8.7-8.7.0~a3/generic/tkFont.c:1841:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	numBytes = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkFont.c:4266:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dst, chunkPtr->start, numBytesInChunk);
data/tk8.7-8.7.0~a3/generic/tkFrame.c:997: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).
    	oldMenuName = ckalloc(strlen(framePtr->menuName) + 1);
data/tk8.7-8.7.0~a3/generic/tkGeometry.c:344:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    winPtr->geomMgrName = ckalloc(strlen(master) + 1);
data/tk8.7-8.7.0~a3/generic/tkGet.c:147: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).
	if (strncmp(string, "center", strlen(string)) == 0) {
data/tk8.7-8.7.0~a3/generic/tkGet.c:227: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).
    length = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkGet.c:308: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).
    length = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkGet.c:426: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).
    length = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:1021:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(colorBuffer, specString, suffixString - specString);
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:1072:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(suffixString + 1) < 1 || strlen(suffixString + 1)> 2) {
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:1072:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(suffixString + 1) < 1 || strlen(suffixString + 1)> 2) {
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:1079: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).
        for (i = 1; i <= (int)strlen(suffixString + 1); i++) {
data/tk8.7-8.7.0~a3/generic/tkImgListFormat.c:1089:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(suffixString + 1) == 1) {
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1245:9:  [1] (buffer) mismatch:
  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.
    int mismatch;
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1265:9:  [1] (buffer) mismatch:
  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 (mismatch && pngPtr->strDataBuf) {
data/tk8.7-8.7.0~a3/generic/tkImgPNG.c:1277:9:  [1] (buffer) mismatch:
  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 (mismatch) {
data/tk8.7-8.7.0~a3/generic/tkImgPPM.c:388: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).
    size = strlen(header);
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:303:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *name = ckalloc(strlen(formatPtr->name) + 1);
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:725: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).
                    imageFormat->name, strlen(imageFormat->name)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:739: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).
                        strlen(imageFormat->name)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:1332:8:  [1] (buffer) strlen:
  Does not handle 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(imageFormat->name)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:1345:5:  [1] (buffer) strlen:
  Does not handle 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(imageFormat->name)) == 0)) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2413:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    formatPtr->name, strlen(formatPtr->name)) != 0) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2447: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).
			formatPtr->name, strlen(formatPtr->name)) != 0) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2556:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncasecmp("default", formatPtr->name, strlen(formatPtr->name))
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2563:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    formatPtr->name, strlen(formatPtr->name)) != 0) {
data/tk8.7-8.7.0~a3/generic/tkImgPhoto.c:2600: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).
			formatPtr->name, strlen(formatPtr->name)) != 0) {
data/tk8.7-8.7.0~a3/generic/tkMain.c:65:12:  [1] (buffer) _tcslen:
  Does not handle 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 _tcslen strlen
data/tk8.7-8.7.0~a3/generic/tkMain.c:65: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).
#   define _tcslen strlen
data/tk8.7-8.7.0~a3/generic/tkMain.c:88:35:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(string, wcslen(string), &ds);
data/tk8.7-8.7.0~a3/generic/tkMain.c:279:37:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if ((argc > 2) && (length = _tcslen(argv[1]))
data/tk8.7-8.7.0~a3/generic/tkMenu.c:3094:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    doDot = parentName[strlen(parentName) - 1] != '.';
data/tk8.7-8.7.0~a3/generic/tkMenubutton.c:636: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).
	    mbPtr->text = ckalloc(strlen(value) + 1);
data/tk8.7-8.7.0~a3/generic/tkMenubutton.c:927:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = 1 + (unsigned) strlen(value);
data/tk8.7-8.7.0~a3/generic/tkMessage.c:481:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    msgPtr->string = strcpy(ckalloc(strlen(value) + 1), value);
data/tk8.7-8.7.0~a3/generic/tkMessage.c:885:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    msgPtr->string = ckalloc(strlen(value) + 1);
data/tk8.7-8.7.0~a3/generic/tkObj.c:684:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buffer);
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:258: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).
    length = strlen(argvName);
data/tk8.7-8.7.0~a3/generic/tkOldConfig.c:383: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).
		newStr = ckalloc(strlen(value) + 1);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:175: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).
    timPtr->imageName = ckalloc(strlen(name) + 1);
data/tk8.7-8.7.0~a3/generic/tkOldTest.c:177: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).
    timPtr->varName = ckalloc(strlen(varName) + 1);
data/tk8.7-8.7.0~a3/generic/tkOption.c:314:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp, field, length);
data/tk8.7-8.7.0~a3/generic/tkOption.c:539:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(masqClass, name, classNameLength);
data/tk8.7-8.7.0~a3/generic/tkOption.c:861: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).
    length = strlen(string);
data/tk8.7-8.7.0~a3/generic/tkScale.c:685: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).
	scalePtr->labelLength = scalePtr->label ? strlen(scalePtr->label) : 0;
data/tk8.7-8.7.0~a3/generic/tkScrollbar.c:545: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).
        scrollPtr->commandSize = (int) strlen(scrollPtr->command);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1353: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).
	extraBytes = strlen(cmdInfoPtr->buffer);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1413:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(cmdInfoPtr->buffer, string, length);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1481: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).
	return strlen(buffer);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1521: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).
	length = strlen(name);
data/tk8.7-8.7.0~a3/generic/tkSelect.c:1534: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).
	length = strlen(name);
data/tk8.7-8.7.0~a3/generic/tkStyle.c:791: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).
    specPtr->name = ckalloc(strlen(templatePtr->name)+1);
data/tk8.7-8.7.0~a3/generic/tkStyle.c:807: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).
	dstOptions->name = ckalloc(strlen(srcOptions->name)+1);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1426: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).
    timPtr->imageName = ckalloc(strlen(name) + 1);
data/tk8.7-8.7.0~a3/generic/tkTest.c:1428: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).
    timPtr->varName = ckalloc(strlen(varName) + 1);
data/tk8.7-8.7.0~a3/generic/tkText.c:6957:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(Tcl_GetString(objv[2]));
data/tk8.7-8.7.0~a3/generic/tkTextBTree.c:4682: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(segPtr->body.chars) != (size_t) segPtr->size) {
data/tk8.7-8.7.0~a3/generic/tkTextDisp.c:6385: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).
    length = strlen(Tcl_GetString(objv[2]));
data/tk8.7-8.7.0~a3/generic/tkTextImage.c:389:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(name);
data/tk8.7-8.7.0~a3/generic/tkTextImage.c:402:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (len == strlen(haveName)) {
data/tk8.7-8.7.0~a3/generic/tkUtil.c:69: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).
    length = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkUtil.c:191: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).
    length = strlen(value);
data/tk8.7-8.7.0~a3/generic/tkUtil.c:339: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).
	if (strncmp(value, "center", strlen(value)) != 0) {
data/tk8.7-8.7.0~a3/generic/tkUtil.c:652: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).
    size_t length = strlen(argv[2]);
data/tk8.7-8.7.0~a3/generic/tkUtil.c:678: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).
	length = strlen(argv[4]);
data/tk8.7-8.7.0~a3/generic/tkUtil.c:1127: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).
    if (!(strlen(namespace) == 2 && namespace[1] == ':')) {
data/tk8.7-8.7.0~a3/generic/tkVisual.c:158: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).
	    && (strncmp(string, "default", strlen(string)) == 0))) {
data/tk8.7-8.7.0~a3/generic/tkWindow.c:442: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).
    length = strlen(screenName);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:491:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(dispPtr->name, screenName, length);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:767: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).
    length1 = strlen(parentPtr->pathName);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:768: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).
    length2 = strlen(name);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:1164:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(p, pathName, numChars);
data/tk8.7-8.7.0~a3/generic/tkWindow.c:3394:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (0 != strncmp(version, actualVersion, strlen(version))) {
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:731:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t numBytes = strlen(value);
data/tk8.7-8.7.0~a3/generic/ttk/ttkEntry.c:838:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t byteCount = strlen(value);
data/tk8.7-8.7.0~a3/generic/ttk/ttkLayout.c:561:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    op->name = ckalloc(strlen(name) + 1); strcpy(op->name, name);
data/tk8.7-8.7.0~a3/generic/ttk/ttkState.c:150:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(objPtr->bytes, Tcl_DStringValue(&result), len-1);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXDebug.c:62:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    module_len = strlen(module);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXEmbed.c:204:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    obj.length = strlen(string);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:263:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      typeChar, errString, strlen(errString));
data/tk8.7-8.7.0~a3/macosx/tkMacOSXHLEvents.c:270: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).
		      typeChar,errString, strlen(errString));
data/tk8.7-8.7.0~a3/macosx/tkMacOSXKeyEvent.c:356: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).
	    xEvent.xkey.nbytes = strlen(xEvent.xkey.trans_chars);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXKeyEvent.c:363: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).
	    xEvent.xkey.nbytes = strlen(xEvent.xkey.trans_chars);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXMenu.c:1163:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(accel);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXMenubutton.c:274:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (butPtr->text && strlen(butPtr->text) > 0) {
data/tk8.7-8.7.0~a3/macosx/tkMacOSXSend.c:286: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).
    riPtr->name = ckalloc(strlen(actualName) + 1);
data/tk8.7-8.7.0~a3/macosx/tkMacOSXWm.c:5940: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).
	result = Tcl_NewStringObj(resultString, strlen(resultString));
data/tk8.7-8.7.0~a3/unix/tkUnixColor.c:158: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(name) > 99) {
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2365: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).
	seen += strlen(seen) + 1;
data/tk8.7-8.7.0~a3/unix/tkUnixFont.c:2367: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).
    Tcl_DStringAppend(dsPtr, name, (int) (strlen(name) + 1));
data/tk8.7-8.7.0~a3/unix/tkUnixKey.c:221:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(Tcl_DStringValue(dsPtr), Tcl_DStringValue(&buf), len);
data/tk8.7-8.7.0~a3/unix/tkUnixMenu.c:1378:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    char *helpMenuName = ckalloc(strlen(Tk_PathName(
data/tk8.7-8.7.0~a3/unix/tkUnixMenu.c:1379: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).
		    masterMenuPtr->tkwin)) + strlen(".help") + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:280:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = (int) strlen(valueString);
data/tk8.7-8.7.0~a3/unix/tkUnixScale.c:504:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = (int) strlen(valueString);
data/tk8.7-8.7.0~a3/unix/tkUnixSelect.c:333: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).
		length = strlen(incrPtr->converts[i].buffer);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:480:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    idLength = strlen(id);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:481: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).
    newBytes = idLength + strlen(name) + 1;
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:917: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).
    riPtr->name = ckalloc(strlen(actualName) + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1178: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).
		pending.result = ckalloc(strlen(msg) + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1701: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).
		    pcPtr->result = ckalloc(strlen(resultString) + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1706: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).
			pcPtr->errorInfo = ckalloc(strlen(errorInfo) + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1710: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).
			pcPtr->errorCode = ckalloc(strlen(errorCode) + 1);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:1799:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    pcPtr->result = ckalloc(strlen(pcPtr->target) + 50);
data/tk8.7-8.7.0~a3/unix/tkUnixSend.c:2041:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (int) strlen(Tcl_GetString(objv[4]))); *p != 0; p++) {
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:4944: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).
	    string, strlen(string));
data/tk8.7-8.7.0~a3/unix/tkUnixWm.c:4957: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).
		XA_UTF8_STRING, 8, wmPtr->iconName, strlen(wmPtr->iconName));
data/tk8.7-8.7.0~a3/unix/tkUnixXId.c:99:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    obj.length = strlen(string);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:394:2:  [1] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant
  character.
	lstrcat(cmdline, "\"");
data/tk8.7-8.7.0~a3/win/nmakehlp.c:530:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(match);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:676:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    op += strlen(p->key);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:732: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).
    dirlen = strlen(dir);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:735:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path, dir, dirlen);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:736:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(path+dirlen, "\\*", 3);	/* Including terminating \0 */
data/tk8.7-8.7.0~a3/win/nmakehlp.c:737: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).
    keylen = strlen(keypath);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:762: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).
	sublen = strlen(finfo.cFileName);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:765:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path+dirlen+1, finfo.cFileName, sublen);
data/tk8.7-8.7.0~a3/win/nmakehlp.c:767:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path+dirlen+1+sublen+1, keypath, keylen+1);
data/tk8.7-8.7.0~a3/win/tkWinClipboard.c:83:39:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Tcl_WCharToUtfDString((WCHAR *)data, wcslen((WCHAR *)data), &ds);
data/tk8.7-8.7.0~a3/win/tkWinClipboard.c:160:9:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = wcslen(fname);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:1517:74:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        Tcl_WCharToUtfDString(filterPtr[ftix-1].pszName, wcslen(filterPtr[ftix-1].pszName), &ftds);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2105: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).
	p+= strlen(defaultFilter);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2161: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).
	    p+= strlen(filterPtr->name);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2180: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).
			p += strlen(sep);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2182: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).
			p += strlen(globPtr->pattern);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2479:9:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        wcsncpy(cdCBData.initDir, saveDir, MAX_PATH);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2498:9:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (wcslen(cdCBData.initDir) == 0) {
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2567:13:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (wcslen(cdCBData.retDir) > 0) {
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2649:42:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Tcl_WCharToUtfDString((WCHAR *) lParam, wcslen((WCHAR *) lParam), &initDirString);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:2661:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy(string, Tcl_UtfToWCharDString(Tcl_DStringValue(&tempString), -1, &initDirString),
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:3043:37:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(filename, wcslen(filename), dsPtr);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:3081:44:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(plf->lfFaceName, wcslen(plf->lfFaceName), &ds);
data/tk8.7-8.7.0~a3/win/tkWinDialog.c:3486:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy(lf.lfFaceName, Tcl_UtfToWCharDString(fontPtr->fa.family, -1, &ds),
data/tk8.7-8.7.0~a3/win/tkWinFont.c:665:37:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(faceName, wcslen(faceName), &faceString);
data/tk8.7-8.7.0~a3/win/tkWinFont.c:1573:32:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(buf, wcslen(buf), &faceString);
data/tk8.7-8.7.0~a3/win/tkWinFont.c:1751:32:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(buf, wcslen(buf), &faceString);
data/tk8.7-8.7.0~a3/win/tkWinFont.c:2056:50:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString((WCHAR *)fallbackName, wcslen((WCHAR *)fallbackName), &faceString);
data/tk8.7-8.7.0~a3/win/tkWinFont.c:2337: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).
	seen += strlen(seen) + 1;
data/tk8.7-8.7.0~a3/win/tkWinFont.c:2339: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).
    Tcl_DStringAppend(dsPtr, name, (int) (strlen(name) + 1));
data/tk8.7-8.7.0~a3/win/tkWinInit.c:200:37:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Tcl_WCharToUtfDString(lpBuffer, wcslen(lpBuffer), &ds);
data/tk8.7-8.7.0~a3/win/tkWinSend.c:251:5:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				wcslen(oleszStub)) == 0) {
data/tk8.7-8.7.0~a3/win/tkWinSend.c:252:30:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    LPOLESTR p = olestr + wcslen(oleszStub);
data/tk8.7-8.7.0~a3/win/tkWinSend.c:258:34:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				Tcl_WCharToUtfDString(p + 1, wcslen(p + 1), &ds);
data/tk8.7-8.7.0~a3/win/tkWinTest.c:181:33:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Tcl_WCharToUtfDString(wMsgPtr, wcslen(wMsgPtr), &ds);
data/tk8.7-8.7.0~a3/win/tkWinTest.c:541:29:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Tcl_WCharToUtfDString(buf, wcslen(buf), &ds);
data/tk8.7-8.7.0~a3/win/tkWinWm.c:5466:33:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    Tcl_WCharToUtfDString(buf, wcslen(buf), &titleString);
data/tk8.7-8.7.0~a3/win/tkWinX.c:536: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).
    display->display_name = ckalloc(strlen(display_name) + 1);
data/tk8.7-8.7.0~a3/win/ttkWinXPTheme.c:1248: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).
    name = ckalloc(strlen(elementName) + 1);
data/tk8.7-8.7.0~a3/win/winMain.c:371:9:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + (_tcslen(cmdLine) * sizeof(TCHAR)) + sizeof(TCHAR));

ANALYSIS SUMMARY:

Hits = 818
Lines analyzed = 310656 in approximately 7.28 seconds (42684 lines/second)
Physical Source Lines of Code (SLOC) = 186229
Hits@level = [0] 100 [1] 195 [2] 500 [3]   8 [4] 115 [5]   0
Hits@level+ = [0+] 918 [1+] 818 [2+] 623 [3+] 123 [4+] 115 [5+]   0
Hits/KSLOC@level+ = [0+] 4.92941 [1+] 4.39244 [2+] 3.34534 [3+] 0.660477 [4+] 0.617519 [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.