mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 10:39:22 +00:00
* grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
(grub_md_sha512_real): Likewise. (grub_util_get_geli_uuid): Likewise. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise. (grub_util_biosdisk_open): Fix format specification. Respect format security. * grub-core/kern/emu/misc.c (xmalloc): Respect format security. (xrealloc): Likewise. (xasprintf): Likewise.
This commit is contained in:
1 parent
5ebd976935
commit
7e94d044ad
4 files changed
+23
-10
No files matched your search
@@ -117,7 +117,7 @@ xmalloc (grub_size_t size)
|
||||
|
||||
p = malloc (size);
|
||||
if (! p)
|
||||
grub_util_error (_("out of memory"));
|
||||
grub_util_error ("%s", _("out of memory"));
|
||||
|
||||
return p;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ xrealloc (void *ptr, grub_size_t size)
|
||||
{
|
||||
ptr = realloc (ptr, size);
|
||||
if (! ptr)
|
||||
grub_util_error (_("out of memory"));
|
||||
grub_util_error ("%s", _("out of memory"));
|
||||
|
||||
return ptr;
|
||||
}
|
||||
@@ -185,7 +185,7 @@ xasprintf (const char *fmt, ...)
|
||||
if (vasprintf (&result, fmt, ap) < 0)
|
||||
{
|
||||
if (errno == ENOMEM)
|
||||
grub_util_error (_("out of memory"));
|
||||
grub_util_error ("%s", _("out of memory"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user