Page MenuHome

[T99382:UBSan] Fixed Indexing into null pointer UBSan warning
ClosedPublic

Authored by Loren Osborn (linux_dr) on Jul 7 2022, 8:56 AM.

Details

Summary

Under parent task T99382 (priority: Low)

UBSan warns when indexing into a null pointer. This should produce the same pointer value without triggering the UBSan warning.

Diff Detail

Repository
rB Blender

Event Timeline

Loren Osborn (linux_dr) requested review of this revision.Jul 7 2022, 8:56 AM
Loren Osborn (linux_dr) created this revision.

Hi Clément,

This looks like your code originally. Can you take a peek at it?

Thanks,

-Loren

Assembly result is identical or even better in clang case.

This revision is now accepted and ready to land.Jul 7 2022, 8:25 PM