mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Fix: Use of uninitialized memory
* config/tc-riscv.c (riscv_ip_hardcode): Fully initialise the allocated riscv_opcode structure.
This commit is contained in:

committed by
Nick Clifton

parent
cb27750702
commit
cf2ab5ef0b
@ -1,3 +1,8 @@
|
|||||||
|
2023-09-18 Jacob Navia <jacob@jacob.remcomp.fr>
|
||||||
|
|
||||||
|
* config/tc-riscv.c (riscv_ip_hardcode): Fully initialise the
|
||||||
|
allocated riscv_opcode structure.
|
||||||
|
|
||||||
2023-08-17 Jose E. Marchesi <jose.marchesi@oracle.com>
|
2023-08-17 Jose E. Marchesi <jose.marchesi@oracle.com>
|
||||||
|
|
||||||
* config/tc-bpf.c (check_immediate_overflow): New function.
|
* config/tc-bpf.c (check_immediate_overflow): New function.
|
||||||
|
@ -3718,7 +3718,7 @@ riscv_ip_hardcode (char *str,
|
|||||||
if (*input_line_pointer != '\0')
|
if (*input_line_pointer != '\0')
|
||||||
return _("unrecognized values");
|
return _("unrecognized values");
|
||||||
|
|
||||||
insn = XNEW (struct riscv_opcode);
|
insn = XCNEW (struct riscv_opcode);
|
||||||
insn->match = values[num - 1];
|
insn->match = values[num - 1];
|
||||||
create_insn (ip, insn);
|
create_insn (ip, insn);
|
||||||
unsigned int bytes = riscv_insn_length (insn->match);
|
unsigned int bytes = riscv_insn_length (insn->match);
|
||||||
|
Reference in New Issue
Block a user