Nick Kralevich a44e9afdd1 FORTIFY_SOURCE: optimize
Don't do the fortify_source checks if we can determine, at
compile time, that the provided operation is safe.

This avoids silliness like calling fortify source on things like:

  size_t len = strlen("asdf");
  printf("%d\n", len);

and allows the compiler to optimize this code to:

  printf("%d\n", 4);

Defer to gcc's builtin functions instead of pointing our code
to the libc implementation.

Change-Id: I5e1dcb61946461c4afaaaa983e39f07c7a0df0ae
2013-01-17 15:41:33 -08:00
..
2010-12-06 12:05:11 +01:00
2013-01-16 09:40:25 -08:00
2011-09-28 12:17:34 -07:00
2013-01-11 16:44:15 -08:00
2010-01-15 15:57:02 -08:00
2012-08-29 12:47:41 -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
2012-08-20 14:12:20 -07:00
2010-01-15 15:57:02 -08:00
2009-03-03 19:28:35 -08:00
2010-01-15 15:01:44 -08:00
2013-01-17 15:41:33 -08:00
2010-06-11 14:39:39 -07:00
2012-09-04 14:11:28 +02:00
2012-09-03 01:38:34 +03:00