Nick Kralevich b91791d71c Use alloc_size attribute on *alloc functions
malloc and family were not declared with __attribute__((alloc_size)).
This was (sometimes) preventing FORTIFY_SOURCE related functions
from knowing the size of the buffer it's dealing with, inhibiting
FORTIFY_SOURCE protections.

Add __attribute__((alloc_size))

Information about the alloc_size attribute can be found
at http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

Change-Id: Ia2f0a445f0170a7325f69259b5e7fb35a9f14921
2013-10-02 14:14:40 -07:00
..
2013-02-01 14:51:19 -08:00
2013-01-11 16:44:15 -08:00
2013-08-15 15:34:22 -07:00
2013-06-11 15:45:23 -07:00
2013-08-27 17:22:34 -07:00
2013-09-24 18:01:33 -07:00
2013-02-13 14:40:48 -08:00
2013-08-08 17:13:33 -07:00