Issue |
135086
|
Summary |
1 - ArgIdx in Sema::AddOverloadCandidate looks like it overflows
|
Labels |
new issue
|
Assignees |
shafik
|
Reporter |
shafik
|
Static analysis flagged the `1 - ArgIdx` as possibly leading to overflow:
https://github.com/llvm/llvm-project/blob/f75dce43ea0a98c0ade916cf3ffcc7548f569821/clang/lib/Sema/SemaOverload.cpp#L7196
Looking at somewhat related code maybe it was meant to be `Args.size() - 1 - ArgIdx`.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs