]> Git Repo - qemu.git/blobdiff - qtest.c
qmp-commands: move 'migrate' doc to schema
[qemu.git] / qtest.c
diff --git a/qtest.c b/qtest.c
index 46b99aed5291c827bde5ea3857d7d3cfb7cd55e4..bd9d4178129be85b02d0824273de2032ad6e6c9c 100644 (file)
--- a/qtest.c
+++ b/qtest.c
@@ -430,6 +430,8 @@ static void qtest_process_command(CharBackend *chr, gchar **words)
         g_assert(words[1] && words[2]);
         g_assert(qemu_strtoull(words[1], NULL, 0, &addr) == 0);
         g_assert(qemu_strtoull(words[2], NULL, 0, &len) == 0);
+        /* We'd send garbage to libqtest if len is 0 */
+        g_assert(len);
 
         data = g_malloc(len);
         cpu_physical_memory_read(addr, data, len);
This page took 0.023952 seconds and 4 git commands to generate.