History log of /external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f4a1ea7e0130273039f6c76d97e852f28e572d7a 12-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Tests for scanf parser in allowGnuMalloc=false mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174971 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
44be70b186549d592c952a13aafe79bfeae89f81 11-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] clang-format pass over scanf code.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174888 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
0527bf2e6aa5b35da8aa57e866287ab66af67c15 11-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] scanf: don't report stores that did not happen.

Respect REAL(scanf) return value and don't report memory stores that
could potentially happen, but did not.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174887 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
0e43e9ea9a1d5453fe1c25a6ec3927b417a8f5b1 11-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Scanf parser improvements.

Handle %a in cases when it is unambiguous.
Handle %m.

Patch by Jakub Jelinek.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174882 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
4f06d0ba90aae87a21f3a7d75db985a01b8fb6d2 08-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Add 2 random tests for the scanf implementation.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174705 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
c36c168f8f482f35f200fea57dd88a888bf062fb 08-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Improve scanf interceptor

This a rewrite of the scanf parser. The new implementation is pretty close to
the spec, with a few shortcuts taken here and there. It is conservative, i.e.
it gives up parsing if it does not understand some part of the format string,
or runs into an ambiguous % spec. It does not handle some rarely used parts of
the spec, like %n$ - for now.

I'm also moving parser call to after the original *scanf function completes,
so that we can find out the store size of %s directive by the use of strlen()
on the target buffer.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
3c2999e340a57a663f1b507006becfc49b368473 25-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] More fixes to scanf interceptor: stub support for %s, support for %[...] directive

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173451 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
6503100c43c8951f436698b47362cdc8c2ec0a69 25-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix errors in scanf interceptors: add support for %c and fix cases like %5d

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173440 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
82a9080eaff95d69b270cd863e9df63e3b4e59ad 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] lint


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
4f32c0beaa83ffbb84db23d2e6205bee57c39ce1 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Rename 2 files *.h->*.inc as appropriate.

Also add a missing include.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
843d662b11b50b5f4974d485ccd43f3c509cad14 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Remove an unused variable.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172811 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
996c4f2fa53cce8f9d7b517073f38569460de505 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Common *scanf interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc