Menu

#351 Patch for segfault with Clang 3.5 and greater

2.4.5
closed
None
5
2015-08-17
2015-06-18
No

[PATCH] Work around ITK GDCM test segfault in ImplicitDataElement
with Clang 3.5+.

Segfault's occur with Clang 3.5 and newer (including versions of Apple's XCode
based off this compiler). GetValue() returns a reference to *ValueField, and
ValueField is a SmartPointer. The address of this variable is used in the
dynamic_cast. As a workaround, use the more direct ValueField.GetPointer().

1 Attachments

Discussion

  • Mathieu Malaterre

    commit 6daad4d247f4fe329f70291524c71e26ef40b99c

     
  • Mathieu Malaterre

    • status: open --> closed
    • assigned_to: Mathieu Malaterre
    • Group: 2.5 --> 2.4.5
     

Log in to post a comment.