aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2015-08-01 15:06:12 -0400
committerDaniel Micay <danielmicay@gmail.com>2015-08-04 17:09:43 -0400
commit67c46a9e5366b3461d9f1e733129c792628c337b (patch)
treedcc5b5f0dbcfba8e386f14f1dc8eb043d45d3937 /src
parentc1a6a51e401eb888caff5de142280754e7d99ba3 (diff)
downloadjemalloc-67c46a9e5366b3461d9f1e733129c792628c337b.tar.gz
work around _FORTIFY_SOURCE false positive
In builds with profiling disabled (default), the opt_prof_prefix array has a one byte length as a micro-optimization. This will cause the usage of write in the unused profiling code to be statically detected as a buffer overflow by Bionic's _FORTIFY_SOURCE implementation as it tries to detect read overflows in addition to write overflows. This works around the problem by informing the compiler that not_reached() means code in unreachable in release builds.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions