mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
PR26446 UBSAN: tc-csky.c:2618,4022 index out of bounds
PR 26446 * csky-opc.h (MAX_OPRND_NUM): Define to 5. (union csky_operand): Use MAX_OPRND_NUM to size oprnds array.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2020-08-29 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 26446
|
||||||
|
* csky-opc.h (MAX_OPRND_NUM): Define to 5.
|
||||||
|
(union csky_operand): Use MAX_OPRND_NUM to size oprnds array.
|
||||||
|
|
||||||
2020-08-28 Alan Modra <amodra@gmail.com>
|
2020-08-28 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 26449
|
PR 26449
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "opcode/csky.h"
|
#include "opcode/csky.h"
|
||||||
|
|
||||||
#define OP_TABLE_NUM 2
|
#define OP_TABLE_NUM 2
|
||||||
#define MAX_OPRND_NUM 4
|
#define MAX_OPRND_NUM 5
|
||||||
|
|
||||||
enum operand_type
|
enum operand_type
|
||||||
{
|
{
|
||||||
@ -222,7 +222,7 @@ struct soperand
|
|||||||
|
|
||||||
union csky_operand
|
union csky_operand
|
||||||
{
|
{
|
||||||
struct operand oprnds[5];
|
struct operand oprnds[MAX_OPRND_NUM];
|
||||||
struct suboperand1
|
struct suboperand1
|
||||||
{
|
{
|
||||||
struct operand oprnd;
|
struct operand oprnd;
|
||||||
|
Reference in New Issue
Block a user