MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008338 | VTK | (No Category) | public | 2009-01-02 14:49 | 2016-08-12 09:55 |
| Reporter | Sean McBride | ||||
| Assigned To | Dave DeMarle | ||||
| Priority | normal | Severity | major | Reproducibility | N/A |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | 6.0.0 | ||||
| Target Version | Fixed in Version | ||||
| Project | TBD | ||||
| Type | incorrect functionality | ||||
| Summary | 0008338: various vtkRenderWindow subclass implementations of SetWindowInfo are likely not 64 bit clean | ||||
| Description | vtkRenderWindow 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. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||