-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Description
CL 461958 introduced inconsistencies across two dimensions:
Encode
still panics on output buffers too small, whileDecode
now treats such cases as an error. This inconsistency cannot be resolved sinceEncode
does not report an error and could be an argument for why we should revert CL 461958.- The
base32
andbase64
packages share very similar API ashex
, and their equivalentDecode
functions still panic if the output buffer is too small. We should handle these cases in identical ways across packages.
Should we revert CL 461958 to maintain consistency between Encode
and Decode
?
Or should we roll forward with applying equivalent checks to base32
and base64
?
I have a very minor preference for rolling back.
Related: the fact that Encode
and Decode
can panic is a sharp edge fixed by #53693.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.