You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[compiler-rt][asan] Enable wchar checks: wcscpy/wcsncpy; enable wcscat/wcsncat on Windows
Summary:
- Add ASan interceptors for wcscpy/wcsncpy and register them.
- Enable wcscat/wcsncat on Windows via platform interceptor macro.
- Add MaybeRealWcsnlen guarded by SANITIZER_INTERCEPT_WCSLEN.
- Update Windows static thunk to forward wchar functions.
- Add tests for wcscpy/wcsncpy/wcscat/wcsncat with standard RUN lines.
Prior work and attribution:
- Based on and extends PR #90909 (author: branh, Microsoft). Thanks for the prior work and review feedback.
#90909
Testing:
- AArch64 Linux: 4 new tests pass; full check-asan passed (0 failures) after enabling profile runtime.
Context:
- Related research background: Tech-ASan (Two-stage check for AddressSanitizer): https://arxiv.org/abs/2506.05022
0 commit comments