diff options
author | Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> | 2022-06-22 04:51:32 +0900 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-06-21 17:52:24 -0700 |
commit | ec532b47f1823e71f822c0da781c531ffff67a52 (patch) | |
tree | 3140c02ac4837857d5571ad63da5ad6ba00cb43e | |
parent | de89b078e37e5920939893f338f2f45b4640bd48 (diff) | |
download | gcc-ec532b47f1823e71f822c0da781c531ffff67a52.zip gcc-ec532b47f1823e71f822c0da781c531ffff67a52.tar.gz gcc-ec532b47f1823e71f822c0da781c531ffff67a52.tar.bz2 |
xtensa: Fix buffer overflow
Fortify buffer overflow message reported.
(see https://github.com/earlephilhower/esp-quick-toolchain/issues/36)
gcc/ChangeLog:
* config/xtensa/xtensa.md (bswapsi2_internal):
Enlarge the buffer that is obviously smaller than the template
string given to sprintf().
-rw-r--r-- | gcc/config/xtensa/xtensa.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md index 84b975c..f31ec33 100644 --- a/gcc/config/xtensa/xtensa.md +++ b/gcc/config/xtensa/xtensa.md @@ -536,7 +536,7 @@ { rtx_insn *prev_insn = prev_nonnote_nondebug_insn (insn); const char *init = "ssai\t8\;"; - static char result[64]; + static char result[128]; if (prev_insn && NONJUMP_INSN_P (prev_insn)) { rtx x = PATTERN (prev_insn); |