[compiler-rt] [compiler-rt][nsan] Fix strsep interceptor (PR #106307)

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 17:06:18 PDT 2024


================
@@ -93,8 +93,10 @@ INTERCEPTOR(char *, strfry, char *s) {
 }
 
 INTERCEPTOR(char *, strsep, char **Stringp, const char *delim) {
----------------
alexander-shaposhnikov wrote:

they modify memory, so by intercepting them nsan modifies the shadow memory accordingly.
It rarely matters in practice though (based on what i've seen so far), though one can come up with a contrived / artificial example.

https://github.com/llvm/llvm-project/pull/106307


More information about the llvm-commits mailing list