This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] MPIChecker: add defensive checking (check against nullptr)
AcceptedPublic

Authored by danix800 on Aug 25 2023, 9:18 AM.

Details

Summary

ExplodedNode might be null and shoud be checked conventionally.

Fixes https://github.com/llvm/llvm-project/issues/64647

Diff Detail

Event Timeline

danix800 created this revision.Aug 25 2023, 9:18 AM
Herald added a project: Restricted Project. · View Herald Transcript
danix800 requested review of this revision.Aug 25 2023, 9:18 AM
steakhal accepted this revision.Aug 25 2023, 10:05 AM

Makes sense.
Would thus test crash without the early returns? And now they wouldn't?

This revision is now accepted and ready to land.Aug 25 2023, 10:05 AM

Makes sense.
Would thus test crash without the early returns? And now they wouldn't?

Yes, the original crash shown in https://godbolt.org/z/39P7W6KPa

Thanks. Feel free to merge this (before any of the others).