am a85606e1: am c100a100: Merge "\'Avoid confusing "read prevented write" log messages\' 2."
* commit 'a85606e1563c2153bea3c73dfe4ca1588e778f22': 'Avoid confusing "read prevented write" log messages' 2.
This commit is contained in:
commit
f2a760dca7
|
@ -224,4 +224,4 @@ END(__strcat_chk_failed)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "strcat prevented write past end of buffer"
|
||||
.string "strcat: prevented write past end of buffer"
|
||||
|
|
|
@ -185,4 +185,4 @@ END(__strcpy_chk_failed)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "strcpy prevented write past end of buffer"
|
||||
.string "strcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -109,4 +109,4 @@ END(__memcpy_chk_fail)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memcpy prevented write past end of buffer"
|
||||
.string "memcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -197,4 +197,4 @@ END(memset)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memset prevented write past end of buffer"
|
||||
.string "memset: prevented write past end of buffer"
|
||||
|
|
|
@ -227,4 +227,4 @@ END(__strcat_chk_fail)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "strcat prevented write past end of buffer"
|
||||
.string "strcat: prevented write past end of buffer"
|
||||
|
|
|
@ -191,4 +191,4 @@ END(__strcpy_chk_fail)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "strcpy prevented write past end of buffer"
|
||||
.string "strcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -89,4 +89,4 @@ END(__memcpy_chk_fail)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memcpy prevented write past end of buffer"
|
||||
.string "memcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -201,4 +201,4 @@ END(__memset_large_copy)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memset prevented write past end of buffer"
|
||||
.string "memset: prevented write past end of buffer"
|
||||
|
|
|
@ -401,4 +401,4 @@ END(memcpy)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memcpy prevented write past end of buffer"
|
||||
.string "memcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -130,4 +130,4 @@ END(memset)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memset prevented write past end of buffer"
|
||||
.string "memset: prevented write past end of buffer"
|
||||
|
|
|
@ -222,4 +222,4 @@ END(__strcat_chk_failed)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "strcat prevented write past end of buffer"
|
||||
.string "strcat: prevented write past end of buffer"
|
||||
|
|
|
@ -184,4 +184,4 @@ END(__strcpy_chk_failed)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "strcpy prevented write past end of buffer"
|
||||
.string "strcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -89,4 +89,4 @@ END(__memcpy_chk_fail)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memcpy prevented write past end of buffer"
|
||||
.string "memcpy: prevented write past end of buffer"
|
||||
|
|
|
@ -116,4 +116,4 @@ END(memset)
|
|||
|
||||
.data
|
||||
error_string:
|
||||
.string "memset prevented write past end of buffer"
|
||||
.string "memset: prevented write past end of buffer"
|
||||
|
|
|
@ -63,7 +63,7 @@ extern "C" int __vsnprintf_chk(char* dest, size_t supplied_size, int /*flags*/,
|
|||
* greater than 0.
|
||||
*/
|
||||
extern "C" int __snprintf_chk(char* dest, size_t supplied_size, int flags,
|
||||
size_t dest_len_from_compiler, const char* format, ...) {
|
||||
size_t dest_len_from_compiler, const char* format, ...) {
|
||||
va_list va;
|
||||
va_start(va, format);
|
||||
int result = __vsnprintf_chk(dest, supplied_size, flags, dest_len_from_compiler, format, va);
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
* greater than 0.
|
||||
*/
|
||||
extern "C" int __vsprintf_chk(char* dest, int /*flags*/,
|
||||
size_t dest_len_from_compiler, const char* format, va_list va) {
|
||||
size_t dest_len_from_compiler, const char* format, va_list va) {
|
||||
int result = vsnprintf(dest, dest_len_from_compiler, format, va);
|
||||
if ((size_t) result >= dest_len_from_compiler) {
|
||||
__fortify_chk_fail("vsprintf: prevented write past end of buffer", 0);
|
||||
|
|
Loading…
Reference in New Issue