Make error messages even better!

Change-Id: I72bd1eb1d526dc59833e5bc3c636171f7f9545af
This commit is contained in:
Nick Kralevich
2013-10-04 09:45:24 -07:00
parent a81fd294be
commit 6861c6f85e
30 changed files with 32 additions and 32 deletions

View File

@@ -33,7 +33,7 @@
extern "C" char* __strchr_chk(const char* p, int ch, size_t s_len) {
for (;; ++p, s_len--) {
if (__predict_false(s_len == 0)) {
__fortify_chk_fail("strchr buffer overrun prevented", 0);
__fortify_chk_fail("strchr prevented read past end of buffer", 0);
}
if (*p == static_cast<char>(ch)) {
return const_cast<char*>(p);