diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-08-28 17:02:55 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-08-28 17:02:55 +0000 |
commit | e8c600f9fedf2cfd69cdd2cb4bde4a9b39ce2873 (patch) | |
tree | dfd8c428023036319c45d84372d9ea9f31566640 /test/Sema/array-constraint.c | |
parent | 94f81fd0b0f81a99d215b225c8c5616295b063f6 (diff) |
Fixed return-of-stack-address checker to correctly handle stack/global
variables that have a pointer type, or arrays that contain pointers.
This fixes a crash on the following code:
int *h[3];
int **foo(int i)
{
return &(h[i]);
}
This bug was reported by Keith Bauer (thanks!).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
0 files changed, 0 insertions, 0 deletions