[PATCH] D79330: [Analyzer][VLASizeChecker] Check for VLA size overflow.
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 13 07:32:39 PDT 2020
Szelethus added inline comments.
================
Comment at: clang/test/Analysis/vla-overflow.c:10
+ // Size of this array should be the first to overflow.
+ size_t s = sizeof(char[x][x][x][x]); // expected-warning{{Declared variable-length array (VLA) has too large size}}
+ return s;
----------------
Let's not trim be checker name here.
Also, we could mention what the specific size is.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79330/new/
https://reviews.llvm.org/D79330
More information about the cfe-commits
mailing list