[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 5f31bb: qtest.c: Allow zero size in memset qt
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 5f31bb: qtest.c: Allow zero size in memset qtest commands |
Date: |
Fri, 09 Sep 2016 05:00:04 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 5f31bbf1015abd3fc27c7f87b8db65aba2c8164d
https://github.com/qemu/qemu/commit/5f31bbf1015abd3fc27c7f87b8db65aba2c8164d
Author: Peter Maydell <address@hidden>
Date: 2016-09-09 (Fri, 09 Sep 2016)
Changed paths:
M qtest.c
Log Message:
-----------
qtest.c: Allow zero size in memset qtest commands
Some tests use the qtest protocol "memset" command with a zero
size, expecting it to do nothing. However in the current code this
will result in calling memset() with a NULL pointer, which is
undefined behaviour. Detect and specially handle zero sizes to
avoid this.
Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 5f31bb: qtest.c: Allow zero size in memset qtest commands,
GitHub <=