Adding a failure check after grub_malloc()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | normal: Adding a grub_malloc failure check in completion.cgrub-core/ | +3 | 1 reply | |
| 2/4 | Adding a grub_malloc failure check in msdos.cgrub-core/ | +3 | 1 reply | |
| 3/4 | Adding a grub_malloc failure check in mmap.cgrub-core/ | +3 | 1 reply | |
| 4/4 | Adding a grub_malloc failure check in legacy_parse.cgrub-core/ | +3 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Sudhakar Kuppusamy |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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