Skip to content

Adding a failure check after grub_malloc()

Avnish Chouhan grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4normal: Adding a grub_malloc failure check in completion.cgrub-core/normal/completion.c+3 -01 reply
2/4Adding a grub_malloc failure check in msdos.cgrub-core/partmap/msdos.c+3 -01 reply
3/4Adding a grub_malloc failure check in mmap.cgrub-core/mmap/mmap.c+3 -01 reply
4/4Adding a grub_malloc failure check in legacy_parse.cgrub-core/lib/legacy_parse.c+3 -01 reply

Reviews trailers per patch

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

PatchSudhakar Kuppusamy
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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] Adding a failure check after grub_malloc()

This patch series adds a NULL check after calling grub_malloc(). Missing a failure check after calling grub_malloc() can lead to undefined behavior. If the allocation fails and returns NULL, subsequent dereferencing or writing to the pointer will likely result in a runtime error such as a segmentation fault.

Patch 1/4 (0001-normal-Adding-a-grub_malloc-failure-check-in-completion-c.patch) Patch 2/4 (0002-Adding-a-grub_malloc-failure-check-in-msdos-c.patch) Patch 3/4 (0003-Adding-a-grub_malloc-failure-check-in-mmap-c.patch) Patch 4/4 (0004-Adding-a-grub_malloc-failure-check-in-legacy_parse-c.patch)

Avnish Chouhan (4):
normal: Adding a grub_malloc failure check in completion.c Adding a grub_malloc failure check in msdos.c Adding a grub_malloc failure check in mmap.c Adding a grub_malloc failure check in legacy_parse.c

 grub-core/normal/completion.c | 3 +++
 grub-core/partmap/msdos.c     | 3 +++
 grub-core/mmap/mmap.c         | 3 +++
 grub-core/lib/legacy_parse.c  | 3 +++
 4 files changed
Signature · 7 lines
2.31.1


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel