cppcheck analysis of tk8.5_8.5.8-1.dsc
- ./generic/tkCanvArc.c:858 [error] - Possible null pointer dereference: tsoffset - otherwise it is redundant to check if tsoffset is null at line 876
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG;TK_MACOSXDEBUG_UNUSED'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG_CARBON_EVENTS'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXCarbonEvents.c:411 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: ''.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: '_TK'.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXColor.c:421 [error] - Invalid number of character (() when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXDebug.c:354 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: 'StrBody'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: 'StrLength'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXDialog.c:1035 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'TK_MACOSXDRAW_UNUSED'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG;TK_MACOSXDEBUG_UNUSED'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG_DRAWING'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXDraw.c:1029 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXEntry.c:114 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG;TK_MACOSXDEBUG_UNUSED'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXEvent.c:55 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: 'TK_FRAMEWORK'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: '__LP64__'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXInit.c:381 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXRegion.c:223 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG;TK_MACOSXDEBUG_UNUSED'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG_CLIP_REGIONS'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXWindowEvent.c:498 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG;TK_MACOSXDEBUG_UNUSED'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'TK_MAC_DEBUG_WINDOWS'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'TK_REBUILD_TOPLEVEL'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: '_TK'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: '_TKINT'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_3'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_4'.
- ./macosx/tkMacOSXWm.c:895 [error] - Invalid number of character ({) when these macros are defined: 'kHIToolboxVersionNumber10_5'.
- ./win/tkWinWm.c:1349 [possible error] - Array 'IconImages[1]' index 1 out of bounds
- ./win/tkWinWm.c:1350 [possible error] - Array 'IconImages[1]' index 1 out of bounds
- ./win/tkWinWm.c:1351 [possible error] - Array 'IconImages[1]' index 1 out of bounds
- ./win/tkWinWm.c:1352 [possible error] - Array 'IconImages[1]' index 1 out of bounds
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 06:03:08 +0000, based on results by cppcheck 1.41-modif