Lines Matching refs:s
253 s := &sanitize.Properties.Sanitize
257 s.Never = BoolPtr(true)
262 s.Never = BoolPtr(true)
266 if Bool(s.Never) {
271 if ctx.testBinary() && s.Memtag_heap == nil {
272 s.Memtag_heap = boolPtr(true)
273 s.Diag.Memtag_heap = boolPtr(true)
293 …if found, globalSanitizers = removeFromList("undefined", globalSanitizers); found && s.All_undefin…
294 s.All_undefined = boolPtr(true)
297 …if found, globalSanitizers = removeFromList("default-ub", globalSanitizers); found && s.Undefined …
298 s.Undefined = boolPtr(true)
301 …if found, globalSanitizers = removeFromList("address", globalSanitizers); found && s.Address == ni…
302 s.Address = boolPtr(true)
305 …if found, globalSanitizers = removeFromList("thread", globalSanitizers); found && s.Thread == nil {
306 s.Thread = boolPtr(true)
309 …if found, globalSanitizers = removeFromList("fuzzer", globalSanitizers); found && s.Fuzzer == nil {
310 s.Fuzzer = boolPtr(true)
313 …if found, globalSanitizers = removeFromList("safe-stack", globalSanitizers); found && s.Safestack …
314 s.Safestack = boolPtr(true)
317 if found, globalSanitizers = removeFromList("cfi", globalSanitizers); found && s.Cfi == nil {
319 s.Cfi = boolPtr(true)
324 …if found, globalSanitizers = removeFromList("integer_overflow", globalSanitizers); found && s.Inte…
326 s.Integer_overflow = boolPtr(true)
330 if found, globalSanitizers = removeFromList("scudo", globalSanitizers); found && s.Scudo == nil {
331 s.Scudo = boolPtr(true)
334 …if found, globalSanitizers = removeFromList("hwaddress", globalSanitizers); found && s.Hwaddress =…
335 s.Hwaddress = boolPtr(true)
338 …if found, globalSanitizers = removeFromList("writeonly", globalSanitizers); found && s.Writeonly =…
341 if s.Address == nil && s.Hwaddress == nil {
344 s.Writeonly = boolPtr(true)
346 …if found, globalSanitizers = removeFromList("memtag_heap", globalSanitizers); found && s.Memtag_he…
348 s.Memtag_heap = boolPtr(true)
358 s.Diag.Integer_overflow == nil && Bool(s.Integer_overflow) && !ctx.static() {
359 s.Diag.Integer_overflow = boolPtr(true)
363 s.Diag.Cfi == nil && Bool(s.Cfi) {
364 s.Diag.Cfi = boolPtr(true)
368 s.Diag.Memtag_heap == nil && Bool(s.Memtag_heap) {
369 s.Diag.Memtag_heap = boolPtr(true)
380 if s.Memtag_heap == nil {
381 s.Memtag_heap = boolPtr(true)
383 if s.Diag.Memtag_heap == nil {
384 s.Diag.Memtag_heap = boolPtr(true)
387 if s.Memtag_heap == nil {
388 s.Memtag_heap = boolPtr(true)
394 …if s.Cfi == nil && ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) && ctx.Arch().ArchType == andro…
395 s.Cfi = boolPtr(true)
397 s.Diag.Cfi = boolPtr(true)
403 s.Cfi = boolPtr(false)
404 s.Diag.Cfi = boolPtr(false)
409 s.Hwaddress = nil
414 s.Scs = nil
419 s.Memtag_heap = nil
423 if Bool(s.Address) || Bool(s.Hwaddress) {
424 s.Cfi = boolPtr(false)
425 s.Diag.Cfi = boolPtr(false)
430 s.Cfi = boolPtr(false)
431 s.Diag.Cfi = boolPtr(false)
432 s.Misc_undefined = nil
433 s.Undefined = nil
434 s.All_undefined = nil
435 s.Integer_overflow = nil
443 s.Cfi = nil
444 s.Diag.Cfi = nil
446 s.Cfi = boolPtr(false)
447 s.Diag.Cfi = boolPtr(false)
454 s.Hwaddress = nil
458 s.Address = nil
459 s.Fuzzer = nil
460 s.Thread = nil
463 if Bool(s.All_undefined) {
464 s.Undefined = nil
469 s.Thread = nil
470 s.Safestack = nil
474 …if ctx.Os() != android.Windows && (Bool(s.All_undefined) || Bool(s.Undefined) || Bool(s.Address) |…
475 …Bool(s.Fuzzer) || Bool(s.Safestack) || Bool(s.Cfi) || Bool(s.Integer_overflow) || len(s.Misc_undef…
476 Bool(s.Scudo) || Bool(s.Hwaddress) || Bool(s.Scs) || Bool(s.Memtag_heap)) {
481 if Bool(s.Address) || Bool(s.Thread) || Bool(s.Hwaddress) || ctx.Config().DisableScudo() {
482 s.Scudo = nil
485 if Bool(s.Hwaddress) {
486 s.Address = nil
487 s.Thread = nil
490 s.Diag.Undefined = nil
491 s.Diag.Integer_overflow = nil
492 s.Diag.Misc_undefined = nil
497 if Bool(s.Fuzzer) {
498 s.Cfi = boolPtr(false)
1347 if s, ok := c.linker.(snapshotSanitizer); ok && s.isSanitizerEnabled(t) {
1384 func (s *sanitizerStaticLibsMap) add(c LinkableInterface, name string) {
1388 s.libsMapLock.Lock()
1389 defer s.libsMapLock.Unlock()
1391 if _, ok := s.libsMap[image]; !ok {
1392 s.libsMap[image] = make(map[string][]string)
1395 s.libsMap[image][arch] = append(s.libsMap[image][arch], name)
1403 func (s *sanitizerStaticLibsMap) exportToMake(ctx android.MakeVarsContext) {
1404 for _, image := range android.SortedStringKeys(s.libsMap) {
1405 archMap := s.libsMap[ImageVariantType(image)]
1412 s.sanitizerType.variationName(),