Skip to content

Commit

Permalink
xtensa: Fix buffer overflow
Browse files Browse the repository at this point in the history
Fortify buffer overflow message reported.
(see earlephilhower/esp-quick-toolchain#36)

gcc/ChangeLog:

	* config/xtensa/xtensa.md (bswapsi2_internal):
	Enlarge the buffer that is obviously smaller than the template
	string given to sprintf().
  • Loading branch information
jjsuwa-sys3175 authored and jcmvbkbc committed Jun 22, 2022
1 parent de89b07 commit ec532b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/config/xtensa/xtensa.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec532b4

Please sign in to comment.