Skip to content

Adding missing grub_strdup()/strdup() failure checks

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/4ieee1275/openfw: add missing grub_strdup failure checksgrub-core/kern/ieee1275/openfw.c+14 -31 reply
2/4script/execute: add missing grub_strdup failure checkgrub-core/script/execute.c+3 -01 reply
3/4kern/mips/arc: add missing grub_strdup failure checkgrub-core/kern/mips/arc/init.c+3 -01 reply
4/4osdep/linux/getroot: add missing strdup failure checksgrub-core/osdep/linux/getroot.c+10 -01 reply

Reviews trailers per patch

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

PatchSudhakar KuppusamyDaniel Kiper
SeriesR-b
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 missing grub_strdup()/strdup() failure checks

This patch series adds a failure check after calling grub_strdup()/strdup. Missing a failure check after calling grub_strdup() can lead to undefined behavior. If it 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-ieee1275-openfw-add-missing-grub_strdup-failure-chec.patch) Patch 2/4 (0002-script-execute-add-missing-grub_strdup-failure-check.patch) Patch 3/4 (0003-kern-mips-arc-add-missing-grub_strdup-failure-check.patch) Patch 4/4 (0004-osdep-linux-getroot-add-missing-strdup-failure-check.patch)

Avnish Chouhan (4):
ieee1275/openfw: add missing grub_strdup failure checks script/execute: add missing grub_strdup failure check kern/mips/arc: add missing grub_strdup failure check osdep/linux/getroot: add missing strdup failure checks

 grub-core/kern/ieee1275/openfw.c | 17 ++++++++++++++---
 grub-core/script/execute.c       | 3 +++
 grub-core/kern/mips/arc/init.c   | 3 +++
 grub-core/osdep/linux/getroot.c  | 10 ++++++++++
 4 files changed
Signature · 7 lines
2.47.1


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