]> git.proxmox.com Git - mirror_qemu.git/commit
bios-linker-loader: document+validate input
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 21 Feb 2016 10:41:55 +0000 (12:41 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2016 10:55:16 +0000 (12:55 +0200)
commitb54ca0c3df4f21315bebdb96dc81cdf1abb9b214
tree148543850c38bf7b17c2835f4263cdadc8e1d096
parent8eb779e4223a18db9838a49ece1bc72cfdfb7761
bios-linker-loader: document+validate input

While guest/host ABI is documented in hw/acpi/bios-linker-loader.c,
the API was left undocumented.

This adds documentation for all API functions.

Additionally, input is validated to make sure all
pointers fall within range of provided files.

To allow this validation for checksum commands,
bios_linker_loader_add_checksum is changed to accept GArray * in place
of void *.

Reported-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/acpi/bios-linker-loader.c
hw/arm/virt-acpi-build.c
hw/i386/acpi-build.c
include/hw/acpi/bios-linker-loader.h