This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFCi] Use the correct BugType in CStringChecker.
ClosedPublic

Authored by phyBrackets on Feb 10 2022, 10:47 AM.

Details

Summary

There is different bug types for different types of bugs but the emitAdditionOverflowbug seems to use bugtype BT_NotCSting but actually it have to use BT_AdditionOverflow .

Diff Detail

Event Timeline

phyBrackets created this revision.Feb 10 2022, 10:47 AM
phyBrackets requested review of this revision.Feb 10 2022, 10:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2022, 10:47 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
phyBrackets retitled this revision from resolve the bugtype typo inside emitAdditionOverflowbug function to resolve the bugtype typo inside emitAdditionOverflowbug function in CStringChecker.cpp..Feb 10 2022, 10:49 AM
phyBrackets added a reviewer: steakhal.

Use the git blame

phyBrackets edited the summary of this revision. (Show Details)Feb 10 2022, 11:51 AM
phyBrackets retitled this revision from resolve the bugtype typo inside emitAdditionOverflowbug function in CStringChecker.cpp. to [CSA][Checkers]:resolve the bugtype typo inside emitAdditionOverflowbug function in CStringChecker.cpp..
phyBrackets retitled this revision from [CSA][Checkers]:resolve the bugtype typo inside emitAdditionOverflowbug function in CStringChecker.cpp. to [analyzer][NFCi] Use the correct BugType in CStringChecker..Feb 10 2022, 12:08 PM

I would recommend not touching the unrelated lines, unless you have a clear motive. Other than that I think its fair to say that this must have been a bug. Ill check the report diff tomorrow, prior accepting this.

I would recommend not touching the unrelated lines, unless you have a clear motive. Other than that I think its fair to say that this must have been a bug. Ill check the report diff tomorrow, prior accepting this.

Yeah will keep in mind. Thanks.

Hey @steakhal , any updates on this ? should I commit it ?

steakhal accepted this revision.Feb 14 2022, 6:54 AM

I think yes, go ahead!

This revision is now accepted and ready to land.Feb 14 2022, 6:54 AM

I think yes, go ahead!

Thanks !