[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/25249] Memory leak in microblaze-dis.c
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/25249] Memory leak in microblaze-dis.c |
Date: |
Thu, 05 Dec 2019 04:31:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25249
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=378fd436405b3051df34ac995b2e03fe1f3d1907
commit 378fd436405b3051df34ac995b2e03fe1f3d1907
Author: Alan Modra <address@hidden>
Date: Thu Dec 5 14:42:44 2019 +1030
PR25249, Memory leak in microblaze-dis.c
PR 25249
* microblaze-dis.c (NUM_STRBUFS, STRBUF_SIZE): Define.
(struct string_buf): New.
(strbuf): New function.
(get_field): Use strbuf rather than strdup of local temp.
(get_field_imm, get_field_imm5, get_field_imm5_mbar): Likewise.
(get_field_rfsl, get_field_imm15): Likewise.
(get_field_rd, get_field_r1, get_field_r2): Update macros.
(get_field_special): Likewise. Don't strcpy spr. Formatting.
(print_insn_microblaze): Formatting. Init and pass string_buf to
get_field functions.
--
You are receiving this mail because:
You are on the CC list for the bug.