-
-
Notifications
You must be signed in to change notification settings - Fork 726
UBSan finds invalid cast in itkPeriodicBoundaryCondition.hxx #2353
Copy link
Copy link
Open
Labels
status:Use_Milestone_BacklogUse "Backlog" milestone instead of label for issues without a fixed deadlineUse "Backlog" milestone instead of label for issues without a fixed deadlinetype:BugInconsistencies or issues which will cause an incorrect result under some or all circumstancesInconsistencies or issues which will cause an incorrect result under some or all circumstances
Metadata
Metadata
Assignees
Labels
status:Use_Milestone_BacklogUse "Backlog" milestone instead of label for issues without a fixed deadlineUse "Backlog" milestone instead of label for issues without a fixed deadlinetype:BugInconsistencies or issues which will cause an incorrect result under some or all circumstancesInconsistencies or issues which will cause an incorrect result under some or all circumstances
Building current itk master using clang UBSan (undefined behaviour sanitizer) I get this error from the
itkPeriodicBoundaryConditionTesttest:It's from this code:
If you change that to
dynamic_castandassertthe result, you'll see it's null. (That's a way to repro/debug without UBSan).Alas, I don't know this code enough to debug further...