OSDN Git Service

libc fortify: make string.h use diagnose_if
authorGeorge Burgess IV <gbiv@google.com>
Tue, 1 Aug 2017 04:29:42 +0000 (21:29 -0700)
committerGeorge Burgess IV <gbiv@google.com>
Wed, 2 Aug 2017 05:41:11 +0000 (22:41 -0700)
commitb6300463a829762841e3fb7126833f77f62f7100
tree3d827222033db09af663d069e569087f0f0d944d
parentaa8f766bf0ead7d87ed1084880f42aa4b2d01fbb
libc fortify: make string.h use diagnose_if

This also has a handful of style fixups, to make this file more
consistent. And removes __bionic_zero_size_is_okay_t, since there's a
better workaround available.

Bug: 12231437
Test: m checkbuild on bionic internal master; CtsBionicTestCases show
no new failures.

Change-Id: I75a020630dbab0ce828563502900cba14ae992d1
libc/bionic/fortify.cpp
libc/include/bits/fortify/string.h
tests/fortify_compilation_test.cpp