In non-strict mode we will check memory access for both strings from beginning
to either:
- 0-char
- size
- different chars
In strict mode we will check from beginning to either:
- 0-char
- size
Previously in strict mode we always checked up to the 0-char.
Paths
| Differential D26574
[asan] Fix strncmp and strncasecmp interceptors ClosedPublic Authored by vitalybuka on Nov 11 2016, 8:35 PM.
Details Summary In non-strict mode we will check memory access for both strings from beginning
In strict mode we will check from beginning to either:
Previously in strict mode we always checked up to the 0-char.
Diff Detail
Event Timelinevitalybuka updated this object. Closed by commit rL286708: [asan] Fix strncmp and strncasecmp interceptors (authored by vitalybuka). · Explain WhyNov 11 2016, 8:42 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 77708 compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/trunk/test/asan/TestCases/strncmp_strict.c
|