]> Cypherpunks repositories - gostls13.git/commit
Revert "hex: fix panic in Decode when len(src) > 2*len(dst)"
authorJoe Tsai <joetsai@digital-static.net>
Wed, 8 Feb 2023 09:57:25 +0000 (01:57 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 21 Feb 2023 15:35:11 +0000 (15:35 +0000)
commit81eda3a33916c17e3415219a9b1e6e6295e8c748
tree309aebaf4da5eb1cb63e1c58081f6a477c47f3a5
parent7f59bea53c888605faaa46cd95aaa3ddf29219bf
Revert "hex: fix panic in Decode when len(src) > 2*len(dst)"

This reverts CL 461958 and CL 465855.

Reason for revert: This introduced an irreconcilable inconsistency with Encode

Fixes #58391.

Change-Id: Ifd01a04d433b24c092b73e627b8149a5851c2bca
Reviewed-on: https://go-review.googlesource.com/c/go/+/469615
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/encoding/hex/hex.go
src/encoding/hex/hex_test.go