[PATCH] D129269: [analyzer] Fix use of length in CStringChecker
Vince Bridgers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 7 15:52:58 PDT 2022
vabridgers added a comment.
Thanks Balazs, you mean something like this correct?
void strcpy_no_overflow_2(char *y) {
char x[3];
strcpy(x, "12\0"); // this produces a warning, but should not.
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129269/new/
https://reviews.llvm.org/D129269
More information about the cfe-commits
mailing list