Patch replaces memory intrinsics with corresponding libc calls when specific option is set. The memset and friends can be either hooked by the runtime or libc itself can be sanitized
The patch lacks test case - I'll implement one if the whole thing makes sense.