summaryrefslogtreecommitdiffstats
path: root/tests/ide-test.c
diff options
context:
space:
mode:
authorPeter Maydell2017-02-28 17:22:41 +0100
committerPeter Maydell2017-02-28 17:22:41 +0100
commit7d1730b7d9d8272a13245adfc9b0405e5a4bd0c2 (patch)
tree344165adf916119e0fd6043ae07b191badbca68f /tests/ide-test.c
parentMerge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20170228'... (diff)
parentsyscall: fixed mincore(2) not failing with ENOMEM (diff)
downloadqemu-7d1730b7d9d8272a13245adfc9b0405e5a4bd0c2.tar.gz
qemu-7d1730b7d9d8272a13245adfc9b0405e5a4bd0c2.tar.xz
qemu-7d1730b7d9d8272a13245adfc9b0405e5a4bd0c2.zip
Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into staging
trivial patches for 2017-02-28 # gpg: Signature made Tue 28 Feb 2017 06:43:55 GMT # gpg: using RSA key 0x701B4F6B1A693E59 # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>" # gpg: aka "Michael Tokarev <mjt@corpit.ru>" # gpg: aka "Michael Tokarev <mjt@debian.org>" # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D 4324 457C E0A0 8044 65C5 # Subkey fingerprint: 7B73 BAD6 8BE7 A2C2 8931 4B22 701B 4F6B 1A69 3E59 * remotes/mjt/tags/trivial-patches-fetch: syscall: fixed mincore(2) not failing with ENOMEM hw/acpi/tco.c: fix tco timer stop lm32: milkymist-tmu2: fix a third integer overflow qemu-options.hx: add missing id=chr0 chardev argument in vhost-user example Update copyright year tests/prom-env: Enable the test for the sun4u machine, too cadence_gem: Remove unused parameter debug message register: fix incorrect read mask ide: remove undefined behavior in ide-test CODING_STYLE: Mention preferred comment form hw/core/register: Mark the device with cannot_instantiate_with_device_add_yet hw/core/or-irq: Mark the device with cannot_instantiate_with_device_add_yet softfloat: Use correct type in float64_to_uint64_round_to_zero() target/s390x: Fix typo Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/ide-test.c')
-rw-r--r--tests/ide-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ide-test.c b/tests/ide-test.c
index fb541f88b5..b57c2b1676 100644
--- a/tests/ide-test.c
+++ b/tests/ide-test.c
@@ -544,6 +544,7 @@ static void make_dirty(uint8_t device)
guest_buf = guest_alloc(guest_malloc, len);
buf = g_malloc(len);
+ memset(buf, rand() % 255 + 1, len);
g_assert(guest_buf);
g_assert(buf);