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
..
2013-01-11 16:44:15 -08:00
2012-11-05 08:50:19 -08:00
2013-01-11 16:44:15 -08:00
2013-01-17 15:41:33 -08:00
2012-09-26 14:20:22 -07:00