[analyzer][NFCi] Use the correct BugType in CStringChecker.
authorphyBrackets <singh.shivamsingh2003@gmail.com>
Mon, 14 Feb 2022 15:24:21 +0000 (20:54 +0530)
committerphyBrackets <singh.shivamsingh2003@gmail.com>
Mon, 14 Feb 2022 15:24:59 +0000 (20:54 +0530)
commit6745b6a0f18523d6b871f627ceb46a92b7c2c43d
tree828bca9c1f8392b905036b70d53882fd82eadf35
parentf037082714a0fd48568a1f10ef3e4db8919e1523
[analyzer][NFCi] Use the correct BugType in CStringChecker.

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** .

Reviewed By: steakhal

Differential Revision: https://reviews.llvm.org/D119462
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp