Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
99be62a9
Unverified
Commit
99be62a9
authored
Dec 20, 2021
by
fomotrader
Committed by
GitHub
Dec 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/abi: avoid unnecessary alloc (#24128)
parent
8bbf83e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
unpack.go
accounts/abi/unpack.go
+1
-1
No files found.
accounts/abi/unpack.go
View file @
99be62a9
...
...
@@ -290,7 +290,7 @@ func tuplePointsTo(index int, output []byte) (start int, err error) {
offset
:=
big
.
NewInt
(
0
)
.
SetBytes
(
output
[
index
:
index
+
32
])
outputLen
:=
big
.
NewInt
(
int64
(
len
(
output
)))
if
offset
.
Cmp
(
big
.
NewInt
(
int64
(
len
(
output
)))
)
>
0
{
if
offset
.
Cmp
(
outputLen
)
>
0
{
return
0
,
fmt
.
Errorf
(
"abi: cannot marshal in to go slice: offset %v would go over slice boundary (len=%v)"
,
offset
,
outputLen
)
}
if
offset
.
BitLen
()
>
63
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment