diff options
author | Martin Sebor <msebor@redhat.com> | 2017-01-09 20:08:49 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2017-01-09 13:08:49 -0700 |
commit | 47d5beb478d39937b8068410101241ae806adc25 (patch) | |
tree | 19359af05b63cf35a928214406ab66954808f23f /gcc/asan.c | |
parent | 2193ad7fbf3e917a0ef5a2b48e13f84da1be44f1 (diff) | |
download | gcc-47d5beb478d39937b8068410101241ae806adc25.zip gcc-47d5beb478d39937b8068410101241ae806adc25.tar.gz gcc-47d5beb478d39937b8068410101241ae806adc25.tar.bz2 |
PR bootstrap/79033 - asan.c not compiling with make BOOT_CFLAGS=-O0
gcc/ChangeLog:
* asan.c (asan_emit_stack_protection): Increase local buffer size
to avoid snprintf truncation warning.
From-SVN: r244237
Diffstat (limited to 'gcc/asan.c')
-rw-r--r-- | gcc/asan.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1068,7 +1068,7 @@ asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb, rtx shadow_base, shadow_mem, ret, mem, orig_base; rtx_code_label *lab; rtx_insn *insns; - char buf[30]; + char buf[32]; unsigned char shadow_bytes[4]; HOST_WIDE_INT base_offset = offsets[length - 1]; HOST_WIDE_INT base_align_bias = 0, offset, prev_offset; |