]> git.proxmox.com Git - mirror_qemu.git/commit
elf_ops.h: Don't truncate name of the ROM blobs we create
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Nov 2020 20:39:22 +0000 (20:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Dec 2020 12:04:30 +0000 (12:04 +0000)
commit926c9063dc7929674f670b43eb6979e3f9677d91
tree1d4b5dc4e3133d819b0e307412042c0fe6c5a2fe
parent837a0595160d7184298d7935398aa4234e6a400d
elf_ops.h: Don't truncate name of the ROM blobs we create

Currently the load_elf code assembles the ROM blob name into a
local 128 byte fixed-size array. Use g_strdup_printf() instead so
that we don't truncate the pathname if it happens to be long.
(This matters mostly for monitor 'info roms' output and for the
error messages if ROM blobs overlap.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201129203923.10622-4-peter.maydell@linaro.org
include/hw/elf_ops.h