[clang] [analyzer] Removing untrusted buffer size taint warning (PR #68607)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 9 09:53:40 PDT 2023


================
@@ -733,13 +726,23 @@ void GenericTaintChecker::initTaintRules(CheckerContext &C) const {
       {{CDF_MaybeBuiltin, {{"stpcpy"}}},
        TR::Prop({{1}}, {{0, ReturnValueIndex}})},
       {{CDF_MaybeBuiltin, {{"strcat"}}},
-       TR::Prop({{1}}, {{0, ReturnValueIndex}})},
+       TR::Prop({{0,1}}, {{0, ReturnValueIndex}})},
----------------
DonatNagyE wrote:

```suggestion
       TR::Prop({{0, 1}}, {{0, ReturnValueIndex}})},
```
Add space after comma here and in the test code.

https://github.com/llvm/llvm-project/pull/68607


More information about the cfe-commits mailing list