clean up FORTIFY_SOURCE handling.
Avoid duplicating huge chunks of code. Change-Id: Id6145cdfce781c5ffba2abaaa79681d25a7ab28f
This commit is contained in:
@@ -52,9 +52,7 @@ extern "C" int __vsprintf_chk(
|
||||
int ret = vsnprintf(dest, dest_len_from_compiler, format, va);
|
||||
|
||||
if ((size_t) ret >= dest_len_from_compiler) {
|
||||
__libc_android_log_print(ANDROID_LOG_FATAL, "libc",
|
||||
"*** vsprintf buffer overflow detected ***\n");
|
||||
abort();
|
||||
__fortify_chk_fail("vsprintf buffer overflow", 0);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user