grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Kiper via Grub-devel <grub-devel@gnu.org>
To: grub-devel@gnu.org
Cc: Daniel Kiper <daniel.kiper@oracle.com>,
	alec.r.brown@oracle.com, phcoder@gmail.com,
	ross.philipson@oracle.com
Subject: [PATCH 2/3] lib/xzembed/xz_dec_stream: Replace grub_memcpy() call with memcpy()
Date: Fri, 24 Oct 2025 22:56:31 +0200	[thread overview]
Message-ID: <20251024205632.15108-3-daniel.kiper@oracle.com> (raw)
In-Reply-To: <20251024205632.15108-1-daniel.kiper@oracle.com>

Make the code consistent.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
---
 grub-core/lib/xzembed/xz_dec_stream.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/grub-core/lib/xzembed/xz_dec_stream.c b/grub-core/lib/xzembed/xz_dec_stream.c
index f2dd42dc2..13658d448 100644
--- a/grub-core/lib/xzembed/xz_dec_stream.c
+++ b/grub-core/lib/xzembed/xz_dec_stream.c
@@ -387,8 +387,7 @@ static enum xz_ret hash_validate(struct xz_dec *s, struct xz_buf *b,
 		&& sizeof (s->hash_value) >= hash->mdlen)
 	{
 		hash->final(hash_context);
-		grub_memcpy (s->hash_value, hash->read(hash_context),
-			     hash->mdlen);
+		memcpy (s->hash_value, hash->read (hash_context), hash->mdlen);
 		s->have_hash_value = 1;
 		if (s->hash_id == 1 || crc32)
 		{
-- 
2.11.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  parent reply	other threads:[~2025-10-24 20:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-24 20:56 [PATCH 0/3] Some fixes and cleanups Daniel Kiper via Grub-devel
2025-10-24 20:56 ` [PATCH 1/3] bootstrap: Fix patching warnings Daniel Kiper via Grub-devel
2025-10-24 22:50   ` Andrew Hamilton
2025-10-24 20:56 ` Daniel Kiper via Grub-devel [this message]
2025-10-24 22:50   ` [PATCH 2/3] lib/xzembed/xz_dec_stream: Replace grub_memcpy() call with memcpy() Andrew Hamilton
2025-10-24 20:56 ` [PATCH 3/3] build: Add appended signatures header file to EXTRA_DIST Daniel Kiper via Grub-devel
2025-10-24 22:50   ` Andrew Hamilton
2025-10-25 14:29     ` Andrew Hamilton
2025-10-24 21:21 ` [PATCH 0/3] Some fixes and cleanups Alec Brown via Grub-devel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251024205632.15108-3-daniel.kiper@oracle.com \
    --to=grub-devel@gnu.org \
    --cc=alec.r.brown@oracle.com \
    --cc=daniel.kiper@oracle.com \
    --cc=phcoder@gmail.com \
    --cc=ross.philipson@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).