Merge "Apply HWASan to libc-in-recovery."
This commit is contained in:
@@ -299,7 +299,8 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// HWASan ramdisk (which is built from recovery) goes over some bootloader limit.
|
// HWASan ramdisk (which is built from recovery) goes over some bootloader limit.
|
||||||
if ctx.inRecovery() {
|
// Keep libc instrumented so that recovery can run hwasan-instrumented code if necessary.
|
||||||
|
if ctx.inRecovery() && !strings.HasPrefix(ctx.ModuleDir(), "bionic/libc") {
|
||||||
s.Hwaddress = nil
|
s.Hwaddress = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user