View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008338VTK(No Category)public2009-01-02 14:492016-08-12 09:55
ReporterSean McBride 
Assigned ToDave DeMarle 
PrioritynormalSeveritymajorReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.0.0 
Target VersionFixed in Version 
Summary0008338: various vtkRenderWindow subclass implementations of SetWindowInfo are likely not 64 bit clean
DescriptionvtkRenderWindow has a strange API named SetWindowInfo(). It takes an ASCII string of a decimal number and converts it to a pointer.

The X11 and Win32 implementations don't appear 64bit clean as they use an 'int' which is not guaranteed by the C++ standard to be big enough to hold a pointer. Using 'int' is also weird because it is signed, but addresses are never signed.

Using ptrdiff_t would be safer.

The following have the error: vtkOSOpenGLRenderWindow, vtkWin32OpenGLRenderWindow, vtkWinCEOpenGLRenderWindow, vtkXOpenGLRenderWindow.

For example:

void vtkWin32OpenGLRenderWindow::SetWindowInfo(char *info)
{
  int tmp;
  
  sscanf(info,"%i",&tmp);

  this->WindowId = (HWND)tmp;
  vtkDebugMacro(<< "Setting WindowId to " << this->WindowId << "\n");
}

This is how I did it in Cocoa:

  ptrdiff_t tmp = 0;
  if (info)
    {
    (void)sscanf(info, "%tu", &tmp);
    }

I don't have access to these platforms and so daren't fix it myself.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0031292)
Dave DeMarle (administrator)
2013-07-22 20:33

Dave P no longer works on the project. If these old issues still exist in 6.0.0, reopen them and assign to Dave DeMarle
(0031319)
Sean McBride (developer)
2013-07-23 10:35

Issue still exists.
(0037050)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-01-02 14:49 Sean McBride New Issue
2009-01-02 14:49 Sean McBride Status backlog => tabled
2009-01-02 14:49 Sean McBride Assigned To => David Cole
2011-01-19 10:22 David Cole Assigned To David Cole => David Partyka
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2013-07-22 20:33 Dave DeMarle Status backlog => expired
2013-07-22 20:33 Dave DeMarle Note Added: 0031292
2013-07-23 10:35 Sean McBride Project => TBD
2013-07-23 10:35 Sean McBride Type => incorrect functionality
2013-07-23 10:35 Sean McBride Note Added: 0031319
2013-07-23 10:35 Sean McBride Assigned To David Partyka => Dave DeMarle
2013-07-23 10:35 Sean McBride Product Version => 6.0.0
2016-08-12 09:55 Kitware Robot Note Added: 0037050
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team