[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/4] test-char: fix undefined behavior
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 1/4] test-char: fix undefined behavior |
Date: |
Tue, 12 Mar 2019 15:36:37 +0100 |
Fixes the following failure with --enable-debug:
/tmp/qemu-test/src/tests/test-char.c:838:10: runtime error: load of value 40,
which is not a valid value for type bool
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
/tmp/qemu-test/src/tests/test-char.c:838:10 in
Signed-off-by: Paolo Bonzini <address@hidden>
---
tests/test-char.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-char.c b/tests/test-char.c
index de328380c1..95ccfd3cdb 100644
--- a/tests/test-char.c
+++ b/tests/test-char.c
@@ -745,7 +745,7 @@ static void char_socket_server_test(gconstpointer opaque)
Visitor *v;
QemuThread thread;
int ret;
- bool reconnected;
+ bool reconnected = false;
char *optstr;
QemuOpts *opts;
--
2.20.1
- [Qemu-devel] [PULL 0/4] ASAN/UBSAN fixes, Paolo Bonzini, 2019/03/12
- [Qemu-devel] [PULL 1/4] test-char: fix undefined behavior,
Paolo Bonzini <=
- [Qemu-devel] [PULL 3/4] migration: fix memory leak, Paolo Bonzini, 2019/03/12
- [Qemu-devel] [PULL 2/4] test-bdrv-graph-mod: fix Error leak, Paolo Bonzini, 2019/03/12
- [Qemu-devel] [PULL 4/4] test-migration: fix memory leak, Paolo Bonzini, 2019/03/12
- Re: [Qemu-devel] [PULL 0/4] ASAN/UBSAN fixes, Eric Blake, 2019/03/12
- Re: [Qemu-devel] [PULL 0/4] ASAN/UBSAN fixes, Peter Maydell, 2019/03/14