View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006204VTK(No Category)public2007-12-27 08:292012-12-12 11:56
ReporterSören Gebbert 
Assigned ToDavid Gobbi 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformIntel 32BitOSSuSE LinuxOS Version9.2
Product Version 
Target VersionFixed in Version 
Summary0006204: vtkWrapPython produced a segfault while wrapping
DescriptionvtkWrapPython produced a segfault while wrapping class vtkTriCubicHexahedron
(this class is not yet an official component of vtk, it's in the wish list).

Patch:

Index: vtkWrapPython.c
===================================================================
RCS file: /cvsroot/VTK/VTK/Wrapping/vtkWrapPython.c,v
retrieving revision 1.84
diff -u -r1.84 vtkWrapPython.c
--- vtkWrapPython.c 11 Apr 2007 18:11:10 -0000 1.84
+++ vtkWrapPython.c 27 Dec 2007 13:15:45 -0000
@@ -381,7 +381,8 @@

 char *get_format_string()
 {
- static char result[1024];
+ static char result[10240];//Soeren Gebbert 27.12.2007 this field must be enlarged to process the vtkTriCubicHexahedron class
+
   int currPos = 0;
   int argtype;
   int i, j;
@@ -501,7 +502,7 @@

 void get_python_signature()
 {
- static char result[1024];
+ static char result[10240]; //Soeren Gebbert 27.12.2007 this field must be enlarged to process the vtkTriCubicHexahedron class
   int currPos = 0;
   int argtype;
   int i, j;
Steps To ReproduceIn the build directory VTK_build_shared:

valgrind --tool=memcheck bin/vtkWrapPython /1/gebbert/VTK/Filtering/vtkTriCubicHexahedron.h /1/gebbert/VTK/Wrapping/hints 1 /1/gebbert/VTK_build_shared/Filtering/vtkTriCubicHexahedronPython.cxx
TagsNo tags attached.
Project
Type
Attached Filespatch file icon vtkWrapPython.patch [^] (809 bytes) 2007-12-27 08:31 [Show Content]

 Relationships

  Notes
(0029873)
David Gobbi (developer)
2012-12-12 11:56

The format string array size has been doubled from 1024 to 2048. Eventually all static string storage in vtkWrapPython should be replaced by dynamic string storage.

 Issue History
Date Modified Username Field Change
2007-12-27 08:29 Sören Gebbert New Issue
2007-12-27 08:31 Sören Gebbert File Added: vtkWrapPython.patch
2008-08-29 16:31 David Cole Status backlog => tabled
2008-08-29 16:31 David Cole Assigned To => David Cole
2011-01-19 09:45 David Cole Assigned To David Cole => David Partyka
2011-02-16 15:47 David Gobbi Assigned To David Partyka => David Gobbi
2011-02-26 09:42 David Gobbi Status tabled => @80@
2011-02-26 09:42 David Gobbi Resolution open => fixed
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2012-12-12 11:56 David Gobbi Note Added: 0029873
2012-12-12 11:56 David Gobbi Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team