summaryrefslogtreecommitdiffstats
path: root/tests/docker/docker.py
diff options
context:
space:
mode:
authorPeter Maydell2016-08-05 12:43:20 +0200
committerPeter Maydell2016-09-09 12:16:18 +0200
commit5f31bbf1015abd3fc27c7f87b8db65aba2c8164d (patch)
tree4a43a0168a357d720cd0b0e84098e66dc1fdb4b2 /tests/docker/docker.py
parentMerge remote-tracking branch 'remotes/elmarco/tags/leak-pull-request' into st... (diff)
downloadqemu-5f31bbf1015abd3fc27c7f87b8db65aba2c8164d.tar.gz
qemu-5f31bbf1015abd3fc27c7f87b8db65aba2c8164d.tar.xz
qemu-5f31bbf1015abd3fc27c7f87b8db65aba2c8164d.zip
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 <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1470393800-7882-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'tests/docker/docker.py')
0 files changed, 0 insertions, 0 deletions