diff options
author | Yixuan Cao <caoyixuan2019@email.szu.edu.cn> | 2025-10-06 09:03:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-05 18:03:12 -0700 |
commit | 2e6da800484d9cf5a75a9a57919f855d7de70d42 (patch) | |
tree | 15a1d3297cf7fa6dc1453c4d1f97048360d14a44 /lldb/test/API/lang/cpp/std-function-recognizer/Makefile | |
parent | 99d802a3332b25deae1c8c2be5b8875ba9926a4a (diff) | |
download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 |
[compiler-rt][asan] Reland: wcscpy/wcsncpy interceptors and stabilize wchar tests on Darwin/Android (#162028)HEADmain
### Summary
Reland: wcscpy/wcsncpy interceptors and stabilize wchar tests on
Darwin/Android. Functional reland (runtime + tests).
### Context
Reland of #160493 and #161624; previously reverted by #162021 and
#162001 to restore green.
### Motivation
- Restore wchar interceptors (wcscpy/wcsncpy), broaden ASan coverage,
and improve Windows parity with narrow-string checks.
- Make tests robust across Darwin/Android to keep bots green.
### Runtime (wcscpy/wcsncpy)
- Add overlap checks; mark read/write ranges in bytes.
- Use MaybeRealWcsnlen when available to bound reads.
- Register Windows static runtime thunk where applicable.
### Tests (wcscpy/wcsncpy/wcscat/wcsncat)
- Android: keep `%env_asan_opts=log_to_stderr=1` so the ASan header is
on stderr.
- Darwin: tolerate reordering by putting all four key lines in one DAG
group:
```cpp
// CHECK-DAG: Good so far.
// CHECK-DAG: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:...]] at pc {{...}} bp {{...}} sp {{...}}
// CHECK-DAG: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
// CHECK-DAG: #0 {{0x[0-9a-f]+}} in <func>
```
### Risk
- Functional reland (runtime + tests), intended to restore functionality
and maintain stability across platforms.
---------
Signed-off-by: Yixuan Cao <caoyixuan2019@email.szu.edu.cn>
Diffstat (limited to 'lldb/test/API/lang/cpp/std-function-recognizer/Makefile')
0 files changed, 0 insertions, 0 deletions