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.6-8.6.10/compat/unistd.h Examining data/tk8.6-8.6.10/compat/stdlib.h Examining data/tk8.6-8.6.10/generic/tkTextTag.c Examining data/tk8.6-8.6.10/generic/tkImage.c Examining data/tk8.6-8.6.10/generic/tkImgPPM.c Examining data/tk8.6-8.6.10/generic/tkEntry.c Examining data/tk8.6-8.6.10/generic/tkMacWinMenu.c Examining data/tk8.6-8.6.10/generic/tkMenu.c Examining data/tk8.6-8.6.10/generic/tkTextDisp.c Examining data/tk8.6-8.6.10/generic/tkImgUtil.c Examining data/tk8.6-8.6.10/generic/tkGet.c Examining data/tk8.6-8.6.10/generic/tkTextBTree.c Examining data/tk8.6-8.6.10/generic/tk.h Examining data/tk8.6-8.6.10/generic/tkButton.c Examining data/tk8.6-8.6.10/generic/tkMessage.c Examining data/tk8.6-8.6.10/generic/tkClipboard.c Examining data/tk8.6-8.6.10/generic/tkSelect.c Examining data/tk8.6-8.6.10/generic/ks_names.h Examining data/tk8.6-8.6.10/generic/tkCanvas.c Examining data/tk8.6-8.6.10/generic/tkArray.h Examining data/tk8.6-8.6.10/generic/tkCanvPoly.c Examining data/tk8.6-8.6.10/generic/tkOption.c Examining data/tk8.6-8.6.10/generic/tkInt.h Examining data/tk8.6-8.6.10/generic/tkGrab.c Examining data/tk8.6-8.6.10/generic/tkEvent.c Examining data/tk8.6-8.6.10/generic/tkTextWind.c Examining data/tk8.6-8.6.10/generic/tkImgPhoto.h Examining data/tk8.6-8.6.10/generic/tkAtom.c Examining data/tk8.6-8.6.10/generic/tkScrollbar.c Examining data/tk8.6-8.6.10/generic/tkCanvBmap.c Examining data/tk8.6-8.6.10/generic/tkTextImage.c Examining data/tk8.6-8.6.10/generic/tkMenu.h Examining data/tk8.6-8.6.10/generic/tkUndo.c Examining data/tk8.6-8.6.10/generic/tkIntXlibDecls.h Examining data/tk8.6-8.6.10/generic/tkCanvas.h Examining data/tk8.6-8.6.10/generic/tkStubInit.c Examining data/tk8.6-8.6.10/generic/tkFileFilter.h Examining data/tk8.6-8.6.10/generic/tkUndo.h Examining data/tk8.6-8.6.10/generic/tkScale.h Examining data/tk8.6-8.6.10/generic/tkError.c Examining data/tk8.6-8.6.10/generic/tkColor.c Examining data/tk8.6-8.6.10/generic/tkCursor.c Examining data/tk8.6-8.6.10/generic/tkListbox.c Examining data/tk8.6-8.6.10/generic/tkFocus.c Examining data/tk8.6-8.6.10/generic/tk3d.c Examining data/tk8.6-8.6.10/generic/tkMain.c Examining data/tk8.6-8.6.10/generic/tkBind.c Examining data/tk8.6-8.6.10/generic/tkConfig.c Examining data/tk8.6-8.6.10/generic/tkSquare.c Examining data/tk8.6-8.6.10/generic/tkMenubutton.h Examining data/tk8.6-8.6.10/generic/tkButton.h Examining data/tk8.6-8.6.10/generic/tkTextMark.c Examining data/tk8.6-8.6.10/generic/tkCmds.c Examining data/tk8.6-8.6.10/generic/tkPointer.c Examining data/tk8.6-8.6.10/generic/tkText.c Examining data/tk8.6-8.6.10/generic/tkTextIndex.c Examining data/tk8.6-8.6.10/generic/tkDecls.h Examining data/tk8.6-8.6.10/generic/tkEntry.h Examining data/tk8.6-8.6.10/generic/ttk/ttkDefaultTheme.c Examining data/tk8.6-8.6.10/generic/ttk/ttkInit.c Examining data/tk8.6-8.6.10/generic/ttk/ttkWidget.c Examining data/tk8.6-8.6.10/generic/ttk/ttkWidget.h Examining data/tk8.6-8.6.10/generic/ttk/ttkScrollbar.c Examining data/tk8.6-8.6.10/generic/ttk/ttkManager.h Examining data/tk8.6-8.6.10/generic/ttk/ttkState.c Examining data/tk8.6-8.6.10/generic/ttk/ttkSquare.c Examining data/tk8.6-8.6.10/generic/ttk/ttkScroll.c Examining data/tk8.6-8.6.10/generic/ttk/ttkManager.c Examining data/tk8.6-8.6.10/generic/ttk/ttkFrame.c Examining data/tk8.6-8.6.10/generic/ttk/ttkThemeInt.h Examining data/tk8.6-8.6.10/generic/ttk/ttkSeparator.c Examining data/tk8.6-8.6.10/generic/ttk/ttkTreeview.c Examining data/tk8.6-8.6.10/generic/ttk/ttkEntry.c Examining data/tk8.6-8.6.10/generic/ttk/ttkStubInit.c Examining data/tk8.6-8.6.10/generic/ttk/ttkButton.c Examining data/tk8.6-8.6.10/generic/ttk/ttkLayout.c Examining data/tk8.6-8.6.10/generic/ttk/ttkClamTheme.c Examining data/tk8.6-8.6.10/generic/ttk/ttkImage.c Examining data/tk8.6-8.6.10/generic/ttk/ttkTheme.h Examining data/tk8.6-8.6.10/generic/ttk/ttkNotebook.c Examining data/tk8.6-8.6.10/generic/ttk/ttkDecls.h Examining data/tk8.6-8.6.10/generic/ttk/ttkPanedwindow.c Examining data/tk8.6-8.6.10/generic/ttk/ttkStubLib.c Examining data/tk8.6-8.6.10/generic/ttk/ttkElements.c Examining data/tk8.6-8.6.10/generic/ttk/ttkTrace.c Examining data/tk8.6-8.6.10/generic/ttk/ttkBlink.c Examining data/tk8.6-8.6.10/generic/ttk/ttkTheme.c Examining data/tk8.6-8.6.10/generic/ttk/ttkLabel.c Examining data/tk8.6-8.6.10/generic/ttk/ttkTagSet.c Examining data/tk8.6-8.6.10/generic/ttk/ttkTrack.c Examining data/tk8.6-8.6.10/generic/ttk/ttkCache.c Examining data/tk8.6-8.6.10/generic/ttk/ttkProgress.c Examining data/tk8.6-8.6.10/generic/ttk/ttkClassicTheme.c Examining data/tk8.6-8.6.10/generic/ttk/ttkScale.c Examining data/tk8.6-8.6.10/generic/tkFileFilter.c Examining data/tk8.6-8.6.10/generic/tkScrollbar.h Examining data/tk8.6-8.6.10/generic/tkFrame.c Examining data/tk8.6-8.6.10/generic/tkObj.c Examining data/tk8.6-8.6.10/generic/tkPlace.c Examining data/tk8.6-8.6.10/generic/tkOldConfig.c Examining data/tk8.6-8.6.10/generic/tkIntDecls.h Examining data/tk8.6-8.6.10/generic/tkBusy.h Examining data/tk8.6-8.6.10/generic/tkSelect.h Examining data/tk8.6-8.6.10/generic/tkVisual.c Examining data/tk8.6-8.6.10/generic/tkWindow.c Examining data/tk8.6-8.6.10/generic/tkPack.c Examining data/tk8.6-8.6.10/generic/tkStyle.c Examining data/tk8.6-8.6.10/generic/tkStubLib.c Examining data/tk8.6-8.6.10/generic/tkGeometry.c Examining data/tk8.6-8.6.10/generic/tkColor.h Examining data/tk8.6-8.6.10/generic/tkArgv.c Examining data/tk8.6-8.6.10/generic/tkImgGIF.c Examining data/tk8.6-8.6.10/generic/tkMenuDraw.c Examining data/tk8.6-8.6.10/generic/tkImgPhoto.c Examining data/tk8.6-8.6.10/generic/tkGrid.c Examining data/tk8.6-8.6.10/generic/tkImgPhInstance.c Examining data/tk8.6-8.6.10/generic/tkCanvText.c Examining data/tk8.6-8.6.10/generic/tkBusy.c Examining data/tk8.6-8.6.10/generic/tkUtil.c Examining data/tk8.6-8.6.10/generic/tkImgPNG.c Examining data/tk8.6-8.6.10/generic/tkGC.c Examining data/tk8.6-8.6.10/generic/default.h Examining data/tk8.6-8.6.10/generic/tkRectOval.c Examining data/tk8.6-8.6.10/generic/tkBitmap.c Examining data/tk8.6-8.6.10/generic/tkPort.h Examining data/tk8.6-8.6.10/generic/tkCanvPs.c Examining data/tk8.6-8.6.10/generic/tkTest.c Examining data/tk8.6-8.6.10/generic/tkCanvUtil.c Examining data/tk8.6-8.6.10/generic/tkDList.h Examining data/tk8.6-8.6.10/generic/tkPlatDecls.h Examining data/tk8.6-8.6.10/generic/tkMenubutton.c Examining data/tk8.6-8.6.10/generic/tkIntPlatDecls.h Examining data/tk8.6-8.6.10/generic/tkOldTest.c Examining data/tk8.6-8.6.10/generic/tkImgBmap.c Examining data/tk8.6-8.6.10/generic/tkScale.c Examining data/tk8.6-8.6.10/generic/tkConsole.c Examining data/tk8.6-8.6.10/generic/tkPanedWindow.c Examining data/tk8.6-8.6.10/generic/tkCanvLine.c Examining data/tk8.6-8.6.10/generic/tkFont.h Examining data/tk8.6-8.6.10/generic/tkCanvArc.c Examining data/tk8.6-8.6.10/generic/tk3d.h Examining data/tk8.6-8.6.10/generic/tkFont.c Examining data/tk8.6-8.6.10/generic/tkCanvImg.c Examining data/tk8.6-8.6.10/generic/tkText.h Examining data/tk8.6-8.6.10/generic/tkTrig.c Examining data/tk8.6-8.6.10/generic/tkCanvWind.c Examining data/tk8.6-8.6.10/xlib/ximage.c Examining data/tk8.6-8.6.10/xlib/xutil.c Examining data/tk8.6-8.6.10/xlib/xgc.c Examining data/tk8.6-8.6.10/xlib/X11/ap_keysym.h Examining data/tk8.6-8.6.10/xlib/X11/HPkeysym.h Examining data/tk8.6-8.6.10/xlib/X11/Xlib.h Examining data/tk8.6-8.6.10/xlib/X11/X.h Examining data/tk8.6-8.6.10/xlib/X11/Xfuncproto.h Examining data/tk8.6-8.6.10/xlib/X11/keysymdef.h Examining data/tk8.6-8.6.10/xlib/X11/Xutil.h Examining data/tk8.6-8.6.10/xlib/X11/Xatom.h Examining data/tk8.6-8.6.10/xlib/X11/keysym.h Examining data/tk8.6-8.6.10/xlib/X11/DECkeysym.h Examining data/tk8.6-8.6.10/xlib/X11/Sunkeysym.h Examining data/tk8.6-8.6.10/xlib/X11/XF86keysym.h Examining data/tk8.6-8.6.10/xlib/X11/cursorfont.h Examining data/tk8.6-8.6.10/xlib/xcolors.c Examining data/tk8.6-8.6.10/xlib/xdraw.c Examining data/tk8.6-8.6.10/xlib/xbytes.h Examining data/tk8.6-8.6.10/win/ttkWinMonitor.c Examining data/tk8.6-8.6.10/win/tkWinDialog.c Examining data/tk8.6-8.6.10/win/tkWinClipboard.c Examining data/tk8.6-8.6.10/win/tkWinInit.c Examining data/tk8.6-8.6.10/win/tkWinColor.c Examining data/tk8.6-8.6.10/win/tkWinScrlbr.c Examining data/tk8.6-8.6.10/win/tkWinDefault.h Examining data/tk8.6-8.6.10/win/tkWinPort.h Examining data/tk8.6-8.6.10/win/tkWinCursor.c Examining data/tk8.6-8.6.10/win/tkWin3d.c Examining data/tk8.6-8.6.10/win/tkWinFont.c Examining data/tk8.6-8.6.10/win/nmakehlp.c Examining data/tk8.6-8.6.10/win/tkWinWindow.c Examining data/tk8.6-8.6.10/win/tkWinInt.h Examining data/tk8.6-8.6.10/win/winMain.c Examining data/tk8.6-8.6.10/win/tkWinKey.c Examining data/tk8.6-8.6.10/win/tkWinPixmap.c Examining data/tk8.6-8.6.10/win/tkWinRegion.c Examining data/tk8.6-8.6.10/win/tkWinX.c Examining data/tk8.6-8.6.10/win/tkWin32Dll.c Examining data/tk8.6-8.6.10/win/tkWinMenu.c Examining data/tk8.6-8.6.10/win/tkWinConfig.c Examining data/tk8.6-8.6.10/win/tkWinWm.c Examining data/tk8.6-8.6.10/win/tkWinSendCom.h Examining data/tk8.6-8.6.10/win/tkWinDraw.c Examining data/tk8.6-8.6.10/win/tkWinButton.c Examining data/tk8.6-8.6.10/win/tkWinTest.c Examining data/tk8.6-8.6.10/win/tkWinPointer.c Examining data/tk8.6-8.6.10/win/tkWinEmbed.c Examining data/tk8.6-8.6.10/win/tkWinImage.c Examining data/tk8.6-8.6.10/win/ttkWinXPTheme.c Examining data/tk8.6-8.6.10/win/ttkWinTheme.c Examining data/tk8.6-8.6.10/win/stubs.c Examining data/tk8.6-8.6.10/win/tkWinSendCom.c Examining data/tk8.6-8.6.10/win/tkWin.h Examining data/tk8.6-8.6.10/win/tkWinSend.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXWindowEvent.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXDebug.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXTest.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXPort.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXMouseEvent.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXEmbed.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXEvent.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXWm.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXMenu.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXSend.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXButton.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXWm.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXMenus.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXCursors.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXClipboard.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXXStubs.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXConstants.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXDefault.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXHLEvents.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXConfig.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXDialog.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXFont.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXNotify.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXInit.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXXCursors.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXDebug.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXColor.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXServices.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXEntry.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXInt.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXScrlbr.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXMenubutton.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXPrivate.h Examining data/tk8.6-8.6.10/macosx/tkMacOSX.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXSubwindows.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXFont.h Examining data/tk8.6-8.6.10/macosx/tkMacOSXCursor.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXKeyEvent.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXScale.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXEvent.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXKeyboard.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXDraw.c Examining data/tk8.6-8.6.10/macosx/ttkMacOSXTheme.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXImage.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXBitmap.c Examining data/tk8.6-8.6.10/macosx/tkMacOSXRegion.c Examining data/tk8.6-8.6.10/unix/tkUnixCursor.c Examining data/tk8.6-8.6.10/unix/tkUnixScrlbr.c Examining data/tk8.6-8.6.10/unix/tkUnix3d.c Examining data/tk8.6-8.6.10/unix/tkUnixSend.c Examining data/tk8.6-8.6.10/unix/tkUnixInit.c Examining data/tk8.6-8.6.10/unix/tkUnixPort.h Examining data/tk8.6-8.6.10/unix/tkUnixMenu.c Examining data/tk8.6-8.6.10/unix/tkUnixEvent.c Examining data/tk8.6-8.6.10/unix/tkUnixColor.c Examining data/tk8.6-8.6.10/unix/tkAppInit.c Examining data/tk8.6-8.6.10/unix/tkUnixDialog.c Examining data/tk8.6-8.6.10/unix/tkUnixRFont.c Examining data/tk8.6-8.6.10/unix/tkUnixFocus.c Examining data/tk8.6-8.6.10/unix/tkUnixMenubu.c Examining data/tk8.6-8.6.10/unix/tkUnixDraw.c Examining data/tk8.6-8.6.10/unix/tkUnixEmbed.c Examining data/tk8.6-8.6.10/unix/tkUnixConfig.c Examining data/tk8.6-8.6.10/unix/tkUnixXId.c Examining data/tk8.6-8.6.10/unix/tkUnixInt.h Examining data/tk8.6-8.6.10/unix/tkUnixDefault.h Examining data/tk8.6-8.6.10/unix/tkUnixScale.c Examining data/tk8.6-8.6.10/unix/tkUnixSelect.c Examining data/tk8.6-8.6.10/unix/tkUnixFont.c Examining data/tk8.6-8.6.10/unix/tkUnixButton.c Examining data/tk8.6-8.6.10/unix/tkUnixWm.c Examining data/tk8.6-8.6.10/unix/tkUnix.c Examining data/tk8.6-8.6.10/unix/tkUnixKey.c FINAL RESULTS: data/tk8.6-8.6.10/compat/unistd.h:31:13: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. extern int chown(const char *path, uid_t owner, gid_t group); data/tk8.6-8.6.10/compat/unistd.h:66:13: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. extern int readlink(const char *path, char *buf, int bufsize); data/tk8.6-8.6.10/compat/unistd.h:29:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. extern int access(const char *path, int mode); data/tk8.6-8.6.10/compat/unistd.h:35:13: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern int execl(const char *path, ...); data/tk8.6-8.6.10/compat/unistd.h:36:13: [4] (shell) execle: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern int execle(const char *path, ...); data/tk8.6-8.6.10/compat/unistd.h:37:13: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern int execlp(const char *file, ...); data/tk8.6-8.6.10/compat/unistd.h:38:13: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern int execv(const char *path, char **argv); data/tk8.6-8.6.10/compat/unistd.h:61:16: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. extern char * crypt(const char *, const char *); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkCanvText.c:1032: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.6-8.6.10/generic/tkCanvText.c:1033: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.6-8.6.10/generic/tkCanvText.c:1113: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkCmds.c:1797: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.6-8.6.10/generic/tkCmds.c:1802: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.6-8.6.10/generic/tkConfig.c:669: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.6-8.6.10/generic/tkEntry.c:1373:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sbPtr->formatBuf, sbPtr->valueFormat, dvalue); data/tk8.6-8.6.10/generic/tkEntry.c:2061: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.6-8.6.10/generic/tkEntry.c:2062: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.6-8.6.10/generic/tkEntry.c:2162: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.6-8.6.10/generic/tkEntry.c:2352: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.6-8.6.10/generic/tkEntry.c:2381: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.6-8.6.10/generic/tkEntry.c:4383:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sbPtr->formatBuf, sbPtr->valueFormat, dvalue); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkFrame.c:957: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.6-8.6.10/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.6-8.6.10/generic/tkImgPhoto.c:301: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkObj.c:683: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.6-8.6.10/generic/tkOldConfig.c:380: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkTest.c:1417: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.6-8.6.10/generic/tkTest.c:1419: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.6-8.6.10/generic/tkTest.c:1511: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.6-8.6.10/generic/tkTest.c:1585: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.6-8.6.10/generic/tkTest.c:1631: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.6-8.6.10/generic/tkTest.c:1665: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.6-8.6.10/generic/tkTest.c:2037: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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+1, name); data/tk8.6-8.6.10/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, parentPtr->pathName); data/tk8.6-8.6.10/generic/tkWindow.c:782: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.6-8.6.10/generic/ttk/ttkEntry.c:725: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.6-8.6.10/generic/ttk/ttkEntry.c:824: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.6-8.6.10/generic/ttk/ttkEntry.c:825: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.6-8.6.10/generic/ttk/ttkEntry.c:871: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.6-8.6.10/generic/ttk/ttkLayout.c:562: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/unix/tkUnixFont.c:2770: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.6-8.6.10/unix/tkUnixMenu.c:1382: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/unix/tkUnixWm.c:1490: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.6-8.6.10/unix/tkUnixWm.c:2118: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.6-8.6.10/unix/tkUnixWm.c:2356: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.6-8.6.10/unix/tkUnixWm.c:3500: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinDialog.c:2098: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.6-8.6.10/win/tkWinDialog.c:2155: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.6-8.6.10/win/tkWinDialog.c:2174: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.6-8.6.10/win/tkWinDialog.c:2176: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.6-8.6.10/win/tkWinDialog.c:2560: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.6-8.6.10/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.6-8.6.10/win/tkWinX.c:149: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.6-8.6.10/win/tkWinX.c:583: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.6-8.6.10/win/ttkWinXPTheme.c:1252: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.6-8.6.10/win/ttkWinXPTheme.c:1257: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.6-8.6.10/compat/stdlib.h:27:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char * getenv(const char *name); data/tk8.6-8.6.10/macosx/tkMacOSXInit.c:234: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.6-8.6.10/macosx/tkMacOSXInit.c:235: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.6-8.6.10/macosx/tkMacOSXInit.c:314: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.6-8.6.10/macosx/tkMacOSXInit.c:379: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/compat/stdlib.h:22:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). extern int atoi(const char *string); data/tk8.6-8.6.10/compat/stdlib.h:23:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). extern long atol(const char *string); data/tk8.6-8.6.10/compat/unistd.h:73:13: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. extern int vfork(void); data/tk8.6-8.6.10/generic/tk.h:1168: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.6-8.6.10/generic/tkBind.c:1668: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.6-8.6.10/generic/tkBind.c:1670: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.6-8.6.10/generic/tkBind.c:1675: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.6-8.6.10/generic/tkBind.c:2928: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.6-8.6.10/generic/tkBind.c:4786: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.6-8.6.10/generic/tkBind.c:4830: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.6-8.6.10/generic/tkBind.c:4863: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkCanvLine.c:1959: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.6-8.6.10/generic/tkCanvText.c:1031: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, (size_t) byteIndex); data/tk8.6-8.6.10/generic/tkCanvText.c:1112: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, (size_t) byteIndex); data/tk8.6-8.6.10/generic/tkCanvText.c:1507: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkCanvUtil.c:1385:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkCanvas.c:1132: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.6-8.6.10/generic/tkCanvas.c:1140: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.6-8.6.10/generic/tkCanvas.c:4240: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.6-8.6.10/generic/tkCmds.c:1399: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.6-8.6.10/generic/tkCmds.c:1765: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.6-8.6.10/generic/tkCmds.c:1766: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.6-8.6.10/generic/tkCmds.c:1795: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.6-8.6.10/generic/tkCmds.c:1800: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkColor.c:839: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.6-8.6.10/generic/tkColor.c:869:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[14]; data/tk8.6-8.6.10/generic/tkConfig.c:499: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.6-8.6.10/generic/tkConfig.c:503: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.6-8.6.10/generic/tkConfig.c:507: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.6-8.6.10/generic/tkConfig.c:511: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.6-8.6.10/generic/tkConfig.c:515: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.6-8.6.10/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.6-8.6.10/generic/tkEntry.c:1197: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.6-8.6.10/generic/tkEntry.c:1926: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.6-8.6.10/generic/tkEntry.c:1944: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.6-8.6.10/generic/tkEntry.c:2060: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.6-8.6.10/generic/tkEntry.c:2161: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.6-8.6.10/generic/tkEntry.c:2165: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.6-8.6.10/generic/tkEntry.c:2829: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.6-8.6.10/generic/tkEntry.c:2988:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkEntry.c:3437:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkEntry.c:3512: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.6-8.6.10/generic/tkEntry.c:3516: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.6-8.6.10/generic/tkEntry.c:4500: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.6-8.6.10/generic/tkEntry.c:4502: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.6-8.6.10/generic/tkEntry.h:224:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digitFormat[16]; /* Sprintf conversion specifier computed from data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkFont.c:3268:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkFont.c:3321: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.6-8.6.10/generic/tkFont.c:3809:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkFont.c:3861: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.6-8.6.10/generic/tkGrid.c:2084: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.6-8.6.10/generic/tkGrid.c:2659: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.6-8.6.10/generic/tkGrid.c:3551:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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, (size_t) (hunk * count)); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkImgPPM.c:290:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkImgPPM.c:308: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.6-8.6.10/generic/tkImgPPM.c:376:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char header[16 + TCL_INTEGER_SPACE * 2]; data/tk8.6-8.6.10/generic/tkImgPPM.c:379: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.6-8.6.10/generic/tkImgPPM.c:402: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.6-8.6.10/generic/tkImgPPM.c:657:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFFER_SIZE], c; data/tk8.6-8.6.10/generic/tkImgPPM.c:764:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFFER_SIZE], c; data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkImgPhoto.c:2331: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.6-8.6.10/generic/tkImgPhoto.c:2343: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.6-8.6.10/generic/tkImgPhoto.c:2785: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.6-8.6.10/generic/tkImgPhoto.c:2885: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.6-8.6.10/generic/tkImgPhoto.c:3219: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.6-8.6.10/generic/tkImgPhoto.h:111: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.6-8.6.10/generic/tkInt.h: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 cursorString[20]; /* Used to store a cursor id string. */ data/tk8.6-8.6.10/generic/tkInt.h:983: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.6-8.6.10/generic/tkListbox.c:3170: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, (size_t) count); data/tk8.6-8.6.10/generic/tkListbox.c:3296:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkListbox.c:3366:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/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.6-8.6.10/generic/tkObj.c:670:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[TCL_DOUBLE_SPACE]; data/tk8.6-8.6.10/generic/tkOldConfig.c:695: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.6-8.6.10/generic/tkOldConfig.c:697:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[200]; data/tk8.6-8.6.10/generic/tkOldConfig.c:724: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.6-8.6.10/generic/tkOldConfig.c:726: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.6-8.6.10/generic/tkOldConfig.c:780: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.6-8.6.10/generic/tkOldConfig.c:858: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.6-8.6.10/generic/tkOldConfig.c:921:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[200]; data/tk8.6-8.6.10/generic/tkOldConfig.c:1111: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkOption.c:1310: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkScrollbar.c:294:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. configSpecs, (char *) scrollPtr, Tcl_GetString(objv[2]), 0); data/tk8.6-8.6.10/generic/tkScrollbar.c:303: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.6-8.6.10/generic/tkScrollbar.h:165: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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, (size_t) count); data/tk8.6-8.6.10/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.6-8.6.10/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), (unsigned) (1+length)); data/tk8.6-8.6.10/generic/tkStubInit.c:119: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.6-8.6.10/generic/tkTest.c:1508:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkTest.c:1554:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkTest.c:1629:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkTest.c:1663:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkTest.c:1809:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[TCL_INTEGER_SPACE]; data/tk8.6-8.6.10/generic/tkTest.c:1826: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.6-8.6.10/generic/tkTest.c:1864:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkTest.c:1898: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.6-8.6.10/generic/tkTest.c:1952: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.6-8.6.10/generic/tkText.c:3466: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.6-8.6.10/generic/tkText.c:4864: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.6-8.6.10/generic/tkText.c:5021:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkText.c:6444: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(int)); data/tk8.6-8.6.10/generic/tkText.c:6445: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.6-8.6.10/generic/tkText.c:6865:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkText.c:6881: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.6-8.6.10/generic/tkText.c:6882: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.6-8.6.10/generic/tkText.c:6893: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.6-8.6.10/generic/tkText.c:6902: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.6-8.6.10/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.6-8.6.10/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, (size_t) chunkSize); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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, (size_t) index); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkTextDisp.c:449:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char chars[1]; /* UTF characters to display. Actual size will data/tk8.6-8.6.10/generic/tkTextDisp.c:1909: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.6-8.6.10/generic/tkTextDisp.c:2172: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.6-8.6.10/generic/tkTextDisp.c:2375: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.6-8.6.10/generic/tkTextDisp.c:3058: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.6-8.6.10/generic/tkTextDisp.c:3060: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.6-8.6.10/generic/tkTextDisp.c:3265: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.6-8.6.10/generic/tkTextDisp.c:3267: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.6-8.6.10/generic/tkTextDisp.c:4131: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.6-8.6.10/generic/tkTextDisp.c:4137: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.6-8.6.10/generic/tkTextDisp.c:4493: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.6-8.6.10/generic/tkTextDisp.c:4577: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.6-8.6.10/generic/tkTextDisp.c:6516: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.6-8.6.10/generic/tkTextDisp.c:6517: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.6-8.6.10/generic/tkTextDisp.c:6637: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.6-8.6.10/generic/tkTextDisp.c:6801: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.6-8.6.10/generic/tkTextDisp.c:6802: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.6-8.6.10/generic/tkTextDisp.c:7768: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, (unsigned) bytesThatFit); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkTextTag.c:1636: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_t) size); data/tk8.6-8.6.10/generic/tkTextTag.c:1730: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkWindow.c:711:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkWindow.c:1136:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/tkWindow.c:2860: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.6-8.6.10/generic/tkWindow.c:2861: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.6-8.6.10/generic/ttk/ttkCache.c:210:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameBuf[14]; data/tk8.6-8.6.10/generic/ttk/ttkCache.c:213: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.6-8.6.10/generic/ttk/ttkEntry.c:282:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6]; data/tk8.6-8.6.10/generic/ttk/ttkEntry.c:289: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.6-8.6.10/generic/ttk/ttkEntry.c:353: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.6-8.6.10/generic/ttk/ttkEntry.c:408:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numStorage[2*TCL_INTEGER_SPACE]; data/tk8.6-8.6.10/generic/ttk/ttkEntry.c:446: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.6-8.6.10/generic/ttk/ttkEntry.c:450: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.6-8.6.10/generic/ttk/ttkEntry.c:823: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.6-8.6.10/generic/ttk/ttkEntry.c:870: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.6-8.6.10/generic/ttk/ttkLayout.c:499:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5]; data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/ttk/ttkTreeview.c:2197:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/generic/ttk/ttkTreeview.c:2212: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.6-8.6.10/generic/ttk/ttkTreeview.c:2598: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.6-8.6.10/generic/ttk/ttkTreeview.c:2601: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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%lx", containerPtr->parent); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/macosx/tkMacOSXInit.c:584: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.6-8.6.10/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.6-8.6.10/macosx/tkMacOSXPort.h:154: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/macosx/tkMacOSXWm.c:5088: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.6-8.6.10/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.6-8.6.10/macosx/tkMacOSXXStubs.c:812:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[5 + TCL_INTEGER_SPACE * 2]; data/tk8.6-8.6.10/macosx/tkMacOSXXStubs.c:813:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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%lx", containerPtr->parent); data/tk8.6-8.6.10/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%lx", containerPtr->wrapper); data/tk8.6-8.6.10/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.6-8.6.10/unix/tkUnixFont.c:2211:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/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. hi = ((unsigned char *) buf)[0]; data/tk8.6-8.6.10/unix/tkUnixFont.c:2256: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.6-8.6.10/unix/tkUnixFont.c:2259: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.6-8.6.10/unix/tkUnixFont.c:2415:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char src[6]; data/tk8.6-8.6.10/unix/tkUnixFont.c:2467: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.6-8.6.10/unix/tkUnixFont.c:2553: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.6-8.6.10/unix/tkUnixFont.c:2598: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.6-8.6.10/unix/tkUnixFont.c:2753: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.6-8.6.10/unix/tkUnixFont.c:2906:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/unix/tkUnixFont.c:2908: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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), (unsigned) len + 1); data/tk8.6-8.6.10/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.6-8.6.10/unix/tkUnixMenu.c:1383: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.6-8.6.10/unix/tkUnixPort.h:190: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.6-8.6.10/unix/tkUnixRFont.c:666:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[256]; data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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, (size_t) srcLen+1); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/unix/tkUnixWm.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 buf[TCL_INTEGER_SPACE]; data/tk8.6-8.6.10/unix/tkUnixWm.c:1884: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.6-8.6.10/unix/tkUnixWm.c:3090: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.6-8.6.10/unix/tkUnixWm.c:6472:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. hPtr = Tcl_FindHashEntry(&table, (char *) children[i]); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinClipboard.c:340: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, Tcl_DStringValue(&ds), data/tk8.6-8.6.10/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.6-8.6.10/win/tkWinDialog.c:2005: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.6-8.6.10/win/tkWinDialog.c:2006: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.6-8.6.10/win/tkWinDialog.c:2008: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.6-8.6.10/win/tkWinDialog.c:2016: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.6-8.6.10/win/tkWinDialog.c:3015:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/tk8.6-8.6.10/win/tkWinDialog.c:3017: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.6-8.6.10/win/tkWinDialog.c:3105: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.6-8.6.10/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.6-8.6.10/win/tkWinFont.c:900: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.6-8.6.10/win/tkWinFont.c:2175:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/win/tkWinFont.c:2411: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinMenu.c:3312:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/win/tkWinMenu.c:3313:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/win/tkWinMenu.c:3374: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinSend.c:680: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.6-8.6.10/win/tkWinSend.c:1003: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinTest.c:200: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.6-8.6.10/win/tkWinTest.c:323: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.6-8.6.10/win/tkWinTest.c:355: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.6-8.6.10/win/tkWinTest.c:396: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.6-8.6.10/win/tkWinTest.c:401: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.6-8.6.10/win/tkWinTest.c:406: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.6-8.6.10/win/tkWinTest.c:408: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinWm.c:3354: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.6-8.6.10/win/tkWinWm.c:3714:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/win/tkWinWm.c:3727: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.6-8.6.10/win/tkWinWm.c:3957: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.6-8.6.10/win/tkWinWm.c:4265: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.6-8.6.10/win/tkWinWm.c:5020: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.6-8.6.10/win/tkWinWm.c:5487: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.6-8.6.10/win/tkWinWm.c:6961: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.6-8.6.10/win/tkWinX.c:137: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.6-8.6.10/win/tkWinX.c:371: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.6-8.6.10/win/tkWinX.c:1525:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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.6-8.6.10/win/tkWinX.c:1539: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.6-8.6.10/xlib/X11/Xlib.h:421: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.6-8.6.10/xlib/X11/Xlib.h:552: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.6-8.6.10/xlib/X11/Xlib.h:642: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.6-8.6.10/xlib/X11/Xlib.h:889: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/compat/unistd.h:52:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). extern int read(int fd, char *buf, size_t size); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkBind.c:1664: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.6-8.6.10/generic/tkBind.c:1665: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.6-8.6.10/generic/tkBind.c:1672: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.6-8.6.10/generic/tkBind.c:2577: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.6-8.6.10/generic/tkBind.c:4525: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.6-8.6.10/generic/tkBind.c:4852: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.6-8.6.10/generic/tkBind.c:5184: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.6-8.6.10/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.6-8.6.10/generic/tkCanvArc.c:2049: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.6-8.6.10/generic/tkCanvLine.c:2003: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.6-8.6.10/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.6-8.6.10/generic/tkCanvText.c:506: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.6-8.6.10/generic/tkCanvText.c:1025: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkCanvUtil.c:1522: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.6-8.6.10/generic/tkCanvas.c:3413: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkColor.c:934: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.6-8.6.10/generic/tkConfig.c:515: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.6-8.6.10/generic/tkEntry.c:761: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.6-8.6.10/generic/tkEntry.c:765: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.6-8.6.10/generic/tkEntry.c:1199: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.6-8.6.10/generic/tkEntry.c:2053: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.6-8.6.10/generic/tkEntry.c:2339: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.6-8.6.10/generic/tkEntry.c:2564: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.6-8.6.10/generic/tkEntry.c:3929: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.6-8.6.10/generic/tkEntry.c:3933: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.6-8.6.10/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.6-8.6.10/generic/tkFont.c:1847: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.6-8.6.10/generic/tkFont.c:4271: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, (size_t) numBytesInChunk); data/tk8.6-8.6.10/generic/tkFrame.c:956: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkImgPPM.c:386: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.6-8.6.10/generic/tkImgPhoto.c:300: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.6-8.6.10/generic/tkImgPhoto.c:722: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). imageFormat->name, strlen(imageFormat->name)) == 0)) { data/tk8.6-8.6.10/generic/tkImgPhoto.c:736: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.6-8.6.10/generic/tkImgPhoto.c:1368: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.6-8.6.10/generic/tkImgPhoto.c:1381: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.6-8.6.10/generic/tkImgPhoto.c:2445: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.6-8.6.10/generic/tkImgPhoto.c:2479: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.6-8.6.10/generic/tkImgPhoto.c:2585: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.6-8.6.10/generic/tkImgPhoto.c:2612: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.6-8.6.10/generic/tkMain.c:73: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.6-8.6.10/generic/tkMain.c:73: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.6-8.6.10/generic/tkMain.c:286: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.6-8.6.10/generic/tkMenu.c:3089: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkObj.c:680: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.6-8.6.10/generic/tkOldConfig.c:254:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(argvName); data/tk8.6-8.6.10/generic/tkOldConfig.c:379: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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, (size_t) length); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkScale.c:685:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). scalePtr->labelLength = scalePtr->label ? (int)strlen(scalePtr->label) : 0; data/tk8.6-8.6.10/generic/tkScrollbar.c:542: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.6-8.6.10/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.6-8.6.10/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, (size_t) length); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkTest.c:1416: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.6-8.6.10/generic/tkTest.c:1418: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.6-8.6.10/generic/tkText.c:6876: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.6-8.6.10/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.6-8.6.10/generic/tkTextDisp.c:6391: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkUtil.c:1128: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/generic/tkWindow.c:769: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.6-8.6.10/generic/tkWindow.c:770: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.6-8.6.10/generic/tkWindow.c:1166:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, pathName, (size_t) numChars); data/tk8.6-8.6.10/generic/tkWindow.c:3396: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.6-8.6.10/generic/ttk/ttkEntry.c:705: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.6-8.6.10/generic/ttk/ttkEntry.c:812: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.6-8.6.10/generic/ttk/ttkLayout.c:562: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.6-8.6.10/generic/ttk/ttkState.c:152: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/macosx/tkMacOSXFont.c:194: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(uni); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/macosx/tkMacOSXWm.c:5938: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.6-8.6.10/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.6-8.6.10/unix/tkUnixFont.c:2366: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.6-8.6.10/unix/tkUnixFont.c:2368: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.6-8.6.10/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.6-8.6.10/unix/tkUnixMenu.c:1379: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.6-8.6.10/unix/tkUnixMenu.c:1380: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/unix/tkUnixWm.c:4948: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.6-8.6.10/unix/tkUnixWm.c:4961: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.6-8.6.10/unix/tkUnixXId.c:132: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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinClipboard.c:159: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.6-8.6.10/win/tkWinDialog.c:2099: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.6-8.6.10/win/tkWinDialog.c:2156: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.6-8.6.10/win/tkWinDialog.c:2175: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.6-8.6.10/win/tkWinDialog.c:2177: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.6-8.6.10/win/tkWinDialog.c:2471: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.6-8.6.10/win/tkWinDialog.c:2490: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.6-8.6.10/win/tkWinDialog.c:2559: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.6-8.6.10/win/tkWinDialog.c:2654:2: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(string, (WCHAR *) Tcl_DStringValue(&initDirString), data/tk8.6-8.6.10/win/tkWinDialog.c:3473:2: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(lf.lfFaceName, (WCHAR *)Tcl_DStringValue(&ds), data/tk8.6-8.6.10/win/tkWinFont.c:2330: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.6-8.6.10/win/tkWinFont.c:2332: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.6-8.6.10/win/tkWinFont.c:2478:5: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(lf.lfFaceName, (WCHAR *)Tcl_DStringValue(&ds), LF_FACESIZE-1); data/tk8.6-8.6.10/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.6-8.6.10/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.6-8.6.10/win/tkWinX.c:582: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.6-8.6.10/win/ttkWinXPTheme.c:1251: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.6-8.6.10/win/winMain.c:368: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 = 721 Lines analyzed = 296895 in approximately 6.97 seconds (42624 lines/second) Physical Source Lines of Code (SLOC) = 175364 Hits@level = [0] 93 [1] 169 [2] 424 [3] 9 [4] 117 [5] 2 Hits@level+ = [0+] 814 [1+] 721 [2+] 552 [3+] 128 [4+] 119 [5+] 2 Hits/KSLOC@level+ = [0+] 4.64177 [1+] 4.11145 [2+] 3.14774 [3+] 0.72991 [4+] 0.678589 [5+] 0.0114048 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.