Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/export/idna: fix infinite loop in Go pre-1.10
lookupString returns 0 for incomplete UTF-8 sequences, so to prevent infinite loops we must specifically check for that case. However, CL 73730 which fixed this issue in 2017 was lost in the shuffle that allowed multiple Unicode versions in x/text (CL 83235), and the fix was never applied to idna9.0.0.go. This CL fixes that oversight. Updates golang/go#22184 Change-Id: I3a6ab08b157f4017560020ff259d1afbe49a9e71 Reviewed-on: https://go-review.googlesource.com/c/text/+/361494 Reviewed-by: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information