Skip to content

Clean up code and fix coverity bugs in util/grub-module-verifierXX.c

Alec Brown grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4util/grub-module-verifierXX.c: Add function to calculate section headersutil/grub-module-verifierXX.c+15 -100 replies
2/4util/grub-module-verifierXX.c: Validate number of elf section header table entriesutil/grub-module-verifierXX.c+29 -60 replies
3/4util/grub-module-verifierXX.c: Validate elf section header table index for section name string tableutil/grub-module-verifierXX.c+24 -10 replies
4/4util/grub-module-verifierXX.c: Add module_size parameter to functions for sanity checkingutil/grub-module-verifierXX.c+40 -291 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDarren KennyDaniel Kiper
SeriesR-b R-b
1/4
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Clean up code and fix coverity bugs in util/grub-module-verifierXX.c

Coverity identified several untrusted loop bounds in util/grub-module-verifierXX.c. This patch series addresses these bugs, cleans up lengthy equations, and makes checks to values based on the elf manual page.

The Coverity Bugs being addressed are:
CID 314021
CID 314027
CID 314033

Alec Brown (4):
util/grub-module-verifierXX.c: Add function to calculate section headers util/grub-module-verifierXX.c: Validate number of elf section header table entries util/grub-module-verifierXX.c: Validate elf section header table index for section name string table util/grub-module-verifierXX.c: Add module_size parameter to functions for sanity checking

 util/grub-module-verifierXX.c | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 93 insertions(+), 31 deletions(-)