Re: [PATCH v2] hw/i386: Improve bounds checking in OVMF table parsing

2022-02-21 Thread Dov Murik
Thanks Dave for reviewing. On 21/02/2022 21:44, Dr. David Alan Gilbert wrote: > * Dov Murik (dovmu...@linux.ibm.com) wrote: >> When pc_system_parse_ovmf_flash() parses the optional GUIDed table in >> the end of the OVMF flash memory area, the table length field is checked >> for sizes that are

Re: [PATCH v2] hw/i386: Improve bounds checking in OVMF table parsing

2022-02-21 Thread Dr. David Alan Gilbert
* Dov Murik (dovmu...@linux.ibm.com) wrote: > When pc_system_parse_ovmf_flash() parses the optional GUIDed table in > the end of the OVMF flash memory area, the table length field is checked > for sizes that are too small, but doesn't error on sizes that are too > big (bigger than the flash

[PATCH v2] hw/i386: Improve bounds checking in OVMF table parsing

2022-02-15 Thread Dov Murik
When pc_system_parse_ovmf_flash() parses the optional GUIDed table in the end of the OVMF flash memory area, the table length field is checked for sizes that are too small, but doesn't error on sizes that are too big (bigger than the flash content itself). Add a check for maximal size of the OVMF