]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/s390x: fix potential recursive String call
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 29 May 2025 19:04:08 +0000 (19:04 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 29 May 2025 19:49:45 +0000 (12:49 -0700)
commit9f3dd846e2ee6e8fcb2c673122d9d0c932e01b71
tree0c5091f3e6a452c9323e5f8ab9d5557881c6a24c
parent21b7e60c6b64dd3221ab5b95d164fb42492029e8
cmd/internal/obj/s390x: fix potential recursive String call

This String method can potentially recurse infinitely, since %#x will
apparently call String if the method exists. This isn't well documented,
but cmd/vet will be updated soon to check this (when we update the
vendored x/tools dependency) so cut off the recursion by converting to
the underlying type first.

Change-Id: Ia6fc046c9eb56a5dd6a33772afd23da443a06116
Reviewed-on: https://go-review.googlesource.com/c/go/+/677261
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/internal/obj/s390x/condition_code.go