Re: [PATCH 1/3] rust: allocator: Prevent mis-aligned allocation
From: Miguel Ojeda
Date: Sun Jul 30 2023 - 20:14:01 EST
On Mon, Jul 31, 2023 at 12:54 AM Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
>
> Good to know, thanks!
Yeah, thanks Björn!
> Agreed. It's better. So reword as below:
>
> // Note: Although these are *safe* functions, but they are called by the
> // compiler with the parameters that obey the same `GlobalAlloc`
> // function safety requirements: size and align should form a valid
> // layout, and size is greater than 0.
+1, thanks!
Applied to `rust-fixes`, but please feel free to send `Reviewed-by`s.
Cheers,
Miguel