Skip to content

hw/i386: OVMF table parsing fixes

Dov Murik qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v21 patch 2 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- simplify bounds check and remove max_tot_len (thanks Dave)
- split one patch to two

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/i386: Improve bounds checking in OVMF table parsinghw/i386/pc_sysfw_ovmf.c+8 -12 replies
2/2hw/i386: Replace magic number with field length calculationhw/i386/pc_sysfw_ovmf.c+6 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel P. BerrangéDr. David Alan Gilbert
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] hw/i386: OVMF table parsing fixes

Fix missing bounds check when parsing the OVMF table.

This already had two iterations as a single patch; I decided to split it to two patches. The first deals only with bounds checking, and the second is a non-functional change to clear the code according to reviewers' suggestions.

v3:
- simplify bounds check and remove max_tot_len (thanks Dave)
- split one patch to two

v2:
- add error message example to commit description
- replace magic numbers 48 and 50 with size calculations (thanks Phil MD)

Dov Murik (2):
hw/i386: Improve bounds checking in OVMF table parsing hw/i386: Replace magic number with field length calculation

 hw/i386/pc_sysfw_ovmf.c | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

base-commit: 477c3b934a47adf7de285863f59d6e4503dd1a6d

Signature · 1 line
2.25.1