LibAFL
LibAFL copied to clipboard
frida-windows: Hook file memory mapping/unmapping functions to correctly poison/unpoison memory
frida-asan assumes all correctly addressable memory is unpoisoned, and all invalid memory is poisoned.
In order to maintain this invariant, we need to make sure that when files are mapped into memory, they are unpoisoned, and when they are unmapped, they are poisoned. We already hook MapViewOfFile, but need to hook any other similar functions, as well as the unmapping functions.