Laszlo Ersek e980f2bf0a acpi_table_add(): extract and reimplement internals
The new function acpi_table_install() installs any blob the caller passes
in. In the next patches this function will be promoted from helper role to
extern.

Reimplementing the logic should make it easier to understand. It also
removes a buffer overflow when

    has_header &&
    cumulative_file_size < ACPI_TABLE_HDR_SIZE - ACPI_TABLE_PFX_SIZE

(In that case the g_realloc() call in the read() loop used to shrink the
"acpi_tables" array, causing an out-of-bounds read access when copying the
header out of "acpi_tables".)

The new code isn't more daring alignment-wise than its predecessor:
"acpi_table_header" is packed, and the uint32_t fields are at offsets 6,
26, and 34.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1363821803-3380-7-git-send-email-lersek@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-04-04 19:23:08 -05:00
2013-03-23 14:25:41 +00:00
2013-03-25 09:13:18 +01:00
2013-04-04 00:28:37 +02:00
2013-03-22 13:25:07 +01:00
2013-03-26 16:16:43 -05:00
2013-03-15 16:07:49 +01:00
2013-03-26 16:16:43 -05:00
2013-03-26 16:16:43 -05:00
2013-04-04 19:23:08 -05:00
2013-03-22 13:25:07 +01:00
2013-04-01 18:49:17 +02:00
2013-02-21 16:17:31 -06:00
2013-04-02 14:05:15 -05:00
2013-03-12 10:35:55 +01:00
2013-03-23 14:25:41 +00:00
2013-02-16 14:50:59 +01:00
2013-02-21 16:17:31 -06:00
2013-03-23 14:25:42 +00:00
2013-03-11 13:32:03 +01:00
2013-02-22 21:21:10 +01:00
2013-02-22 21:29:43 +01:00
2013-02-15 17:40:56 -06:00

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

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%