Messages in this thread | | | From | Miguel Ojeda <> | Date | Mon, 31 Jul 2023 02:13:44 +0200 | Subject | Re: [PATCH 1/3] rust: allocator: Prevent mis-aligned allocation |
| |
On Mon, Jul 31, 2023 at 12:54 AM Boqun Feng <boqun.feng@gmail.com> 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
| |