On Thu, Feb 15, 2024 at 20:33:13 +0300, Vladimir 'phcoder' Serbinenko wrote:
> Is the pointer guaranteed to be aligned? If not you have to use unaligned
> access.

I don't know what alignment guarantees grub_malloc() makes. As long as
they are close to what the regular C malloc() guarantees then it should
be fine.

> Any reason not to check it against correct magic and not just
> zero-out?

I found at least 4 different magic numbers in the XFS documentation and
I wasn't sure if there were any more.

-- 
Jon
Doge Wrangler
X(7): A program for managing terminal windows. See also screen(1) and tmux(1).

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

Reply via email to