Laszlo Ersek f46e720a82 qemu_opts_parse(): always check return value
qemu_opts_parse() can always return NULL, even if the QemuOptsList.desc in
question would be trivial to satisfy (eg. because it's empty). For
example:

qemu_opts_parse()
  opts_parse()
    qemu_opts_create()
      id_wellformed()

In practice:

  $ .../qemu-system-x86_64 -acpitable id=3
  qemu-system-x86_64: -acpitable id=3: Parameter 'id' expects an identifier
  **
  ERROR:vl.c:3491:main: assertion failed: (opts != NULL)
  Aborted (core dumped)

  $ .../qemu-system-x86_64 -smbios id=3
  qemu-system-x86_64: -smbios id=3: Parameter 'id' expects an identifier
  Segmentation fault (core dumped)

I checked all qemu_opts_parse() invocations (and all drive_def()
invocations too, because it blindly forwards the former's retval). Only
the two above examples look problematic.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 1385658779-7529-1-git-send-email-lersek@redhat.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
2013-12-16 15:33:48 -08:00
2013-04-18 13:50:53 +02:00
2013-07-09 13:38:56 -05:00
2013-12-16 10:12:20 +01:00
2013-12-16 10:12:20 +01:00
2013-12-06 08:55:42 +01:00
2013-08-07 12:48:00 -05:00
2013-11-25 20:35:28 -08:00
2013-12-06 08:55:42 +01:00
2013-12-10 09:23:45 -08:00
2013-05-03 13:58:09 +02:00
2012-09-07 09:02:44 +03:00
2013-12-02 21:02:57 +04:00
2013-10-11 09:34:56 -07:00
2013-09-05 09:40:31 -05:00
2013-10-11 10:52:54 +02:00
2013-10-11 09:34:56 -07:00
2008-10-12 17:54:42 +00:00
2013-11-06 21:47:05 -08:00
2013-11-04 15:39:41 +02:00
2013-07-23 02:41:31 +02:00
2013-10-17 10:10:14 +02:00
2013-02-21 16:17:31 -06:00
2013-08-12 09:15:12 -05:00
2013-12-13 11:10:20 -08:00
2013-09-03 12:25:55 +02:00
2013-05-18 16:35:12 +04:00
2013-12-16 10:12:20 +01:00
2013-12-04 15:19:00 +01:00
2013-12-04 15:19:00 +01:00
2013-07-19 12:52:03 +04:00
2013-10-11 09:34:56 -07:00
2013-09-25 21:23:05 +02:00
2013-11-27 14:02:45 -08:00
2013-10-11 09:34:56 -07:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
A fork of QEMU-Nyx which is better suited for my bachelors thesis
Readme 154 MiB
Languages
C 90.3%
Dylan 2.5%
Python 2.1%
C++ 2%
Shell 1.7%
Other 1.4%