This patch adds a support for the libc strncat() function in DFSAN
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/test/dfsan/custom.cpp | ||
---|---|---|
373 | Should we test the case where n < strlen(src) ? In this case, the taint labels on the later bytes (not overridden due to the limit) should be unchanged, in addition to the taint labels on the middle changed bytes being changed. I'd probably duplicate the function to do this. |
Comment Actions
Thank you for the comments. I have prepared and updated version with tests accounting for n < strlen(src)
compiler-rt/test/dfsan/custom.cpp | ||
---|---|---|
342–344 | Change back to char *ret = strcat(p, src); |
Change back to