-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Description
| Bugzilla Link | 11114 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @AnnaZaks,@tkremenek |
Extended Description
Tested with version of clang/scan-build in trunk. The static analyzer fails to detect a simple buffer overflow in program found here. I guess more of an FYI than anything else..
http://www.debian-administration.org/articles/408
clang -v
clang version 3.0 (trunk 141707)
Target: x86_64-unknown-linux-gnu
Thread model: posix
scan-build gcc -o buggy buggy.c
scan-build: 'clang' executable not found in '/opt/clang/scan-build/bin'.
scan-build: Using 'clang' from path: /opt/clang/bin/clang
scan-build: Removing directory '/tmp/scan-build-2011-10-11-1' because it contains no reports.
clang --analyze -Xclang -analyzer-checker -Xclang security.experimental buggy.c
clang --analyze -Xclang -analyzer-checker -Xclang security.experimental.ArrayBound buggy.c
clang --analyze -Xclang -analyzer-checker -Xclang security.experimental.ArrayBound2 buggy.c