This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] MmapWriteExecChecker: use getAs instead of castAs
ClosedPublic

Authored by danix800 on Aug 27 2023, 8:18 AM.

Diff Detail

Event Timeline

danix800 created this revision.Aug 27 2023, 8:18 AM
Herald added a project: Restricted Project. · View Herald Transcript
danix800 requested review of this revision.Aug 27 2023, 8:18 AM

Could you please simplify the test case?
You could basically get rid of everything there, except for forwarding one top level parameter as the proto argument to the mmap call.

Could you please simplify the test case?
You could basically get rid of everything there, except for forwarding one top level parameter as the proto argument to the mmap call.

No problem!

danix800 updated this revision to Diff 553798.Aug 27 2023, 9:41 AM

Simplify testcase

steakhal accepted this revision.Aug 27 2023, 10:00 AM

Land it, whenever you wish. Thanks!
PS: usually we don't have a comment like that. The name of the function should give enough context, along with a // no-crash comment at the line where it was triggered in the past.
That usually just helps reviewers to understand the issue, but as I triaged this I'm aware what's going on.
In tricky situations.
I just let you know about these conventions, no need to adjust this patch.

This revision is now accepted and ready to land.Aug 27 2023, 10:00 AM
This revision was landed with ongoing or failed builds.Aug 29 2023, 9:35 PM
This revision was automatically updated to reflect the committed changes.