~sircmpwn/hare#819: 
streams that embed other streams shouldn't use static buffers

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.

Status
REPORTED
Submitter
~turminal
Assigned to
No-one
Submitted
1 year, 5 months ago
Updated
6 months ago
Labels
bug stdlib

~turminal 1 year, 5 months ago*

List of places that need to be fixed (and there are probably more):

  • encoding::hex
  • encoding::base64
  • encoding::base32
  • format::tar::reader
  • io::drain

~sircmpwn 6 months ago

Bor Grošelj Simić referenced this ticket in commit 8eb08f6.

~torresjrjr 6 months ago

Bor Grošelj Simić referenced this ticket in commit 8eb08f6.

Register here or Log in to comment, or comment via email.