On Sun, 4 Jan 2026, Jérôme LAFORGE wrote:
> Happy New Year everyone!
> The documentation for bytealg.MakeNoZero states: "do not leak to the end user." However, in practice, there is at
> least one hack to access it using the unsafe package. Wouldn't it be simpler to avoid this kind of hack by directly
> exposing this function within the unsafe package, since this function has already indirectly leaked to the end
> user?
The part of the comment about "leaking to the end user" was not about the
MakeNoZero API but rather about the uninitialized memory it returns. You
need to make sure you overwrite all the memory with something useful
before handing its content to someone else.
--
Benny