This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix crash in bugprone-suspicious-realloc-usage.
ClosedPublic

Authored by balazske on Dec 16 2022, 1:53 AM.

Details

Summary

The problem occurs if a statement is found by the checker that has a null child.
Fixes issue #59518.

Diff Detail

Event Timeline

balazske created this revision.Dec 16 2022, 1:53 AM
Herald added a project: Restricted Project. · View Herald Transcript
balazske requested review of this revision.Dec 16 2022, 1:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 16 2022, 1:53 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Dec 19 2022, 10:56 AM
This revision is now accepted and ready to land.Dec 19 2022, 10:56 AM