[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 2/9] mips_mipssim: fix use-after-free for filename
From: |
arei.gonglei |
Subject: |
[Qemu-trivial] [PATCH 2/9] mips_mipssim: fix use-after-free for filename |
Date: |
Sat, 15 Nov 2014 18:06:41 +0800 |
From: Gonglei <address@hidden>
May pass freed pointer filename as an argument to error_report.
Signed-off-by: Gonglei <address@hidden>
---
hw/mips/mips_mipssim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/mips/mips_mipssim.c b/hw/mips/mips_mipssim.c
index 7ea0b9a..5d44c3f 100644
--- a/hw/mips/mips_mipssim.c
+++ b/hw/mips/mips_mipssim.c
@@ -197,7 +197,7 @@ mips_mipssim_init(MachineState *machine)
!kernel_filename && !qtest_enabled()) {
/* Bail out if we have neither a kernel image nor boot vector code. */
error_report("Could not load MIPS bios '%s', and no "
- "-kernel argument was specified", filename);
+ "-kernel argument was specified", bios_name);
exit(1);
} else {
/* We have a boot vector start address. */
--
1.7.12.4
- [Qemu-trivial] [PATCH 7/9] qemu-char: fix MISSING_COMMA, (continued)
- [Qemu-trivial] [PATCH 7/9] qemu-char: fix MISSING_COMMA, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 5/9] nvme: remove superfluous check, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 4/9] loader: fix NEGATIVE_RETURNS, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 3/9] qga: fix false negative argument passing, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 1/9] l2tpv3: fix fd leak, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 2/9] mips_mipssim: fix use-after-free for filename,
arei.gonglei <=
- [Qemu-trivial] [PATCH 6/9] acl: fix memory leak, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 8/9] shpc: fix dead code, arei.gonglei, 2014/11/15
- [Qemu-trivial] [PATCH 9/9] hcd-musb: fix dereference null return value, arei.gonglei, 2014/11/15