View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006851VTK(No Category)public2008-04-18 19:352012-12-12 12:15
ReporterClinton Stimpson 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version5.8.0 
Summary0006851: 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.
TagsNo tags attached.
Project
Type
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team