From 3558f5fe721630ddf557318c4e40b2b2b0da3a43 Mon Sep 17 00:00:00 2001 From: tianzhenxiong <2096067752@qq.com> Date: Fri, 8 Mar 2024 13:44:48 +0000 Subject: [PATCH] fix issue#504 --- go.mod | 2 +- go.sum | 4 ++-- user/config/config_gotls.go | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index c10d046f6..c7a32da55 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/shuLhan/go-bindata v4.0.0+incompatible github.com/spf13/cobra v1.4.0 github.com/spf13/pflag v1.0.5 - golang.org/x/arch v0.3.0 + golang.org/x/arch v0.7.0 golang.org/x/crypto v0.17.0 golang.org/x/sys v0.16.0 ) diff --git a/go.sum b/go.sum index 11d9f7669..e807bad67 100644 --- a/go.sum +++ b/go.sum @@ -102,8 +102,8 @@ github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYp github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f h1:p4VB7kIXpOQvVn1ZaTIVp+3vuYAXFe3OJEvjbUYJLaA= github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= -golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/arch v0.7.0 h1:pskyeJh/3AmoQ8CPE95vxHLqp1G1GfGNXTmcl9NEKTc= +golang.org/x/arch v0.7.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= diff --git a/user/config/config_gotls.go b/user/config/config_gotls.go index 3eab28e9a..3f44c3131 100644 --- a/user/config/config_gotls.go +++ b/user/config/config_gotls.go @@ -177,10 +177,7 @@ func (gc *GoTLSConfig) decodeInstruction(instHex []byte) ([]int, error) { } i += inst.Len } else { - inst, err := arm64asm.Decode(instHex[i:]) - if err != nil { - return nil, err - } + inst, _ := arm64asm.Decode(instHex[i:]) // Why ignore error: https://github.com/gojue/ecapture/pull/506 if inst.Op == arm64asm.RET { offsets = append(offsets, i) }