mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 15:45:30 +00:00
lib/syslinux_parse: Add missing alloc check.
Found by: Coverity scan.
This commit is contained in:
parent
21f22c7107
commit
aa64393144
@ -649,6 +649,8 @@ helptext (const char *line, grub_file_t file, struct syslinux_menu *menu)
|
|||||||
grub_size_t helplen, alloclen = 0;
|
grub_size_t helplen, alloclen = 0;
|
||||||
|
|
||||||
help = grub_strdup (line);
|
help = grub_strdup (line);
|
||||||
|
if (!help)
|
||||||
|
return grub_errno;
|
||||||
helplen = grub_strlen (line);
|
helplen = grub_strlen (line);
|
||||||
while ((grub_free (buf), buf = grub_file_getline (file)))
|
while ((grub_free (buf), buf = grub_file_getline (file)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user