View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0006851 | VTK | (No Category) | public | 2008-04-18 19:35 | 2012-12-12 12:15 | ||||
Reporter | Clinton Stimpson | ||||||||
Assigned To | David Gobbi | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | 5.8.0 | |||||||
Summary | 0006851: vtkVariant crash | ||||||||
Description | vtkObject* o = NULL; vtkVariant v(o); // <- crashes Also a vtkVariant v(NULL); gives me a compiler warning warning: passing NULL to non-pointer argument 1 of ‘vtkVariant::vtkVariant(long int)’ Which isn't the constructur I might have intended to call. | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0026200) David Gobbi (developer) 2011-04-16 19:40 |
Construction vtkVariant with vtkVariant(0) or vtkVariant(NULL) is ambiguous purely due to the way VTK handles overloads. As for the null pointer to vtkObject crash, it was fixed last year: commit f9dbbc16dd4064f4678e8fe36cc9bb92abd7d37b Author: David Gobbi <david.gobbi@gmail.com> Date: Fri May 7 19:24:04 2010 -0600 BUG: constructing with null pointer caused a segfault This changes the behavior of the constructor so that if given a null string or null vtkObject pointer, the result is an invalid vtkVariant instead of a crash. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2008-04-18 19:35 | Clinton Stimpson | New Issue | |
2011-04-16 19:32 | David Gobbi | Assigned To | => David Gobbi |
2011-04-16 19:32 | David Gobbi | Status | backlog => tabled |
2011-04-16 19:40 | David Gobbi | Note Added: 0026200 | |
2011-04-16 19:40 | David Gobbi | Status | tabled => @80@ |
2011-04-16 19:40 | David Gobbi | Resolution | open => fixed |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
2012-12-12 12:15 | David Gobbi | Status | customer review => closed |
2012-12-12 12:15 | David Gobbi | Fixed in Version | => 5.8.0 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |