projects
/
grub2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abe61f4
)
fs/zfs: Add missing NULL check after grub_strdup() call
author
Lidong Chen
<lidong.chen@oracle.com>
Wed, 22 Jan 2025 07:17:04 +0000
(07:17 +0000)
committer
Felix Zielcke
<fzielcke@z-51.de>
Thu, 3 Jul 2025 16:35:51 +0000
(18:35 +0200)
Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-zfs-Add-missing-NULL-check-after-grub_strdup-call.patch
grub-core/fs/zfs/zfs.c
patch
|
blob
|
history
diff --git
a/grub-core/fs/zfs/zfs.c
b/grub-core/fs/zfs/zfs.c
index 6e6d1c92149f2a9b6c7f4d151f7a91c3b60a3fae..5ff647ffbb53569d59ff8e059993c5c6cf57a199 100644
(file)
--- a/
grub-core/fs/zfs/zfs.c
+++ b/
grub-core/fs/zfs/zfs.c
@@
-3309,6
+3309,8
@@
dnode_get_fullpath (const char *fullpath, struct subvolume *subvol,
filename = 0;
snapname = 0;
fsname = grub_strdup (fullpath);
+ if (!fsname)
+ return grub_errno;
}
else
{