See https://lists.sr.ht/~sircmpwn/hare-dev/patches/39304.
This same issue can happen in other places too. While using encoding::hex
to encode another hex encoder is not an incredibly likely use case, I'm afraid it's still something that we can't avoid supporting. Same holds for encoding::base64
(this one uses the static buffer in an even more incorrect way) and some other places as well.
List of places that need to be fixed (and there are probably more):
encoding::hex
encoding::base64
encoding::base32
format::tar::reader
io::drain
Bor Grošelj Simić referenced this ticket in commit 8eb08f6.
Bor Grošelj Simić referenced this ticket in commit 8eb08f6.