Paolo Bonzini
563890c7c7
libqtest: escape strings in QMP commands, fix leak
...
libqtest is using g_strdup_printf to format QMP commands, but
this does not work if the argument strings need to be escaped.
Instead, use the fancy %-formatting functionality of QObject.
The only change required in tests is that strings have to be
formatted as %s, not '%s' or \"%s\". Luckily this usage of
parameterized QMP commands is not that frequent.
The leak is in socket_sendf. Since we are extracting the send
loop to a new function, fix it now.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-07-01 10:20:41 +02:00
..
2014-06-19 16:41:53 +03:00
2014-06-02 16:28:59 +02:00
2013-10-28 17:34:42 +01:00
2014-06-27 09:27:56 -04:00
2014-06-27 20:00:01 +02:00
2014-05-28 14:47:35 +01:00
2014-06-23 19:14:52 +02:00
2014-04-27 13:04:18 +04:00
2014-05-05 20:58:33 +02:00
2014-05-27 23:42:16 +03:00
2013-11-07 13:58:58 +01:00
2013-11-19 10:28:14 +01:00
2014-05-19 11:36:48 +02:00
2014-06-23 11:01:24 -04:00
2013-12-24 17:27:17 +01:00
2014-04-28 11:03:39 +02:00
2014-06-09 15:38:58 +02:00
2014-02-14 16:22:33 +01:00
2014-02-17 23:10:02 +01:00
2014-05-05 20:58:33 +02:00
2014-07-01 10:20:41 +02:00
2014-02-17 23:10:02 +01:00
2013-11-19 10:28:14 +01:00
2014-02-20 13:05:48 +00:00
2014-03-31 22:36:17 +02:00
2014-01-22 12:07:16 +01:00
2014-05-05 20:58:33 +02:00
2014-05-05 20:58:33 +02:00
2014-02-14 21:07:13 +01:00
2014-07-01 10:20:41 +02:00
2014-03-31 22:36:16 +02:00
2014-02-17 23:10:02 +01:00
2014-06-23 11:01:25 -04:00
2014-02-14 20:50:19 +01:00
2014-03-31 22:35:03 +02:00
2014-02-14 16:22:33 +01:00
2014-03-31 22:36:17 +02:00
2014-03-12 20:13:02 +01:00
2014-02-28 18:59:06 +01:00
2014-07-01 10:20:41 +02:00
2014-02-17 23:10:02 +01:00
2014-02-14 16:22:33 +01:00
2014-03-13 01:21:57 +01:00
2014-03-31 22:35:02 +02:00
2013-11-05 19:59:43 -08:00
2013-11-28 10:30:52 +01:00
2014-03-02 17:20:37 +04:00
2013-11-05 19:59:43 -08:00
2014-06-05 19:20:38 +03:00
2014-05-28 14:27:42 +02:00
2014-03-11 09:07:42 -04:00
2014-06-30 15:06:11 +02:00
2014-05-15 14:00:46 -04:00
2014-05-15 14:00:46 -04:00
2014-05-28 17:36:09 +02:00
2014-03-13 14:42:21 +01:00
2014-06-19 18:44:22 +03:00
2014-06-29 19:39:43 +03:00
2014-05-28 14:28:46 +02:00
2014-06-04 09:56:12 +02:00
2014-05-15 14:00:46 -04:00
2014-06-23 19:14:52 +02:00
2014-07-01 10:20:41 +02:00
2014-02-14 21:02:27 +01:00
2014-06-02 16:28:59 +02:00
2014-06-23 17:37:59 +03:00
2014-03-31 22:35:50 +02:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 21:12:07 +01:00
2014-02-14 21:01:03 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:57 +01:00
2014-02-14 16:22:33 +01:00