[cfe-dev] [analyzer]How to find ABV on this case using clang static analyzer
Jiancai Hao via cfe-dev
cfe-dev at lists.llvm.org
Tue Feb 25 17:28:36 PST 2020
Hi,
Is there anyone who cares this? Isn't the buffer overflow checker able to find it? Or, who can tell me the way to improve it?
Thanks
From: jiancai_hao at 163.com via cfe-dev
Date: 2020-02-22 19:27
To: cfe-dev
Subject: [cfe-dev] [analyzer]How to find ABV on this case using clang static analyzer
Hi,
My question is that:
I want to find the buffer overflow on the following case, but clang static analyzer can't report it out, how should I do?
=========== the case ============
int main(int argc, char **argv)
{
int a[10];
for (int i=0; i<=10; i++) {
a[i]=0; <---- array bound over run here
}
}
=========== the case =============
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200226/8f2697ae/attachment.html>
More information about the cfe-dev
mailing list