Fix evaluation order of (Cfi|Memtag) exclude paths.
Before this change, exclude paths disabled sanitization of targets that would otherwise be enabled by SanitizeDevice product variable (aka SANITIZE_TARGET). With this change, in addition to the above logic, exclude path disables sanitization of targets that would otherwise be enabled by the corresponding include path. Effectively, this change disables sanitization of targets that are covered by *both* include and exclude paths. Test: MEMTAG_HEAP_SYNC_INCLUDE_PATHS=system/extras \ MEMTAG_HEAP_EXCLUDE_PATHS=system/extras/su m su && \ readelf -n path/to/su | grep .note.android.memtag Bug: b/184976817 Change-Id: Ifa44b85556c6468fe5a37b5e6864c4ce9561ae2b
Loading
Please register or sign in to comment