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
..
2010-12-06 12:05:11 +01:00
2013-09-30 18:42:13 -07:00
2013-07-11 16:21:32 -07:00
2013-08-13 14:30:59 -07:00
2011-09-28 12:17:34 -07:00
2013-06-18 13:07:18 -07:00
2010-01-15 15:57:02 -08:00
2012-09-13 16:54:57 -07:00
2009-03-03 19:28:35 -08:00
2013-02-07 09:40:16 -08:00
2009-03-03 19:28:35 -08:00
2010-01-15 15:01:44 -08:00
2013-06-05 18:05:36 -07:00
2013-10-02 09:23:46 -07:00
2010-06-11 14:39:39 -07:00
2012-09-04 14:11:28 +02:00