mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-25 23:41:28 +08:00
Fix out-of-bounds array access found by mudflap.
* gengtype.c (note_insn_name): Make 1 element larger. From-SVN: r95473
This commit is contained in:
parent
e9444bd5ee
commit
79e4e6a60b
@ -1,3 +1,7 @@
|
||||
2005-02-23 James E Wilson <wilson@specifixinc.com>
|
||||
|
||||
* gengtype.c (note_insn_name): Make 1 element larger.
|
||||
|
||||
2005-02-23 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
PR target/20018
|
||||
|
@ -367,7 +367,9 @@ enum insn_note {
|
||||
NOTE_INSN_MAX
|
||||
};
|
||||
|
||||
static const char *const note_insn_name[NOTE_INSN_MAX] = {
|
||||
/* We must allocate one more entry here, as we use NOTE_INSN_MAX as the
|
||||
default field for line number notes. */
|
||||
static const char *const note_insn_name[NOTE_INSN_MAX+1] = {
|
||||
#define DEF_INSN_NOTE(NAME) #NAME,
|
||||
#include "insn-notes.def"
|
||||
#undef DEF_INSN_NOTE
|
||||
|
Loading…
x
Reference in New Issue
Block a user