diff options
author | George Burgess IV <gbiv@google.com> | 2019-05-13 17:16:20 -0700 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2019-05-23 15:01:54 -0700 |
commit | a1a09b211ec2f931d119937ca574d4befe2e303f (patch) | |
tree | 3f88fa5b1ec886051e1fbeee5616782b224e985e /libc/malloc_debug/malloc_debug.cpp | |
parent | 5da5dd5215b1dc2e12e0908a1c74fe0b7672835d (diff) |
fortify: use __builtin_constant_p for more short-circuits
This also lets us retire our |__enable_if| version of |strlen|, which
should catch strictly fewer cases where we can fold the string's length
to a constant than |__builtin_constant_p| inside of |strlen|.
Bug: 131861088
Test: checkbuild on internal master. blueline bionic tests pass + it
boots.
Change-Id: I21b750a24f7d1825591a88d12a385be03a0a7ca3
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions