Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
fdacbe7c
Commit
fdacbe7c
authored
Feb 19, 2019
by
wjx@disanbo.com
Committed by
vipwzw
Feb 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gosec
parent
3f35c79d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
query.go
plugin/dapp/evm/executor/query.go
+4
-1
instructions.go
plugin/dapp/evm/executor/vm/runtime/instructions.go
+5
-1
No files found.
plugin/dapp/evm/executor/query.go
100644 → 100755
View file @
fdacbe7c
...
...
@@ -99,7 +99,10 @@ func getCallReceipt(logs []*types.ReceiptLog) *evmtypes.ReceiptEVMContract {
for
_
,
v
:=
range
logs
{
if
v
.
Ty
==
evmtypes
.
TyLogCallContract
{
var
res
evmtypes
.
ReceiptEVMContract
types
.
Decode
(
v
.
Log
,
&
res
)
err
:=
types
.
Decode
(
v
.
Log
,
&
res
)
if
err
!=
nil
{
return
nil
}
return
&
res
}
}
...
...
plugin/dapp/evm/executor/vm/runtime/instructions.go
100644 → 100755
View file @
fdacbe7c
...
...
@@ -485,7 +485,11 @@ func opReturnDataCopy(pc *uint64, evm *EVM, contract *Contract, memory *mm.Memor
if
end
.
BitLen
()
>
64
||
uint64
(
len
(
evm
.
Interpreter
.
ReturnData
))
<
end
.
Uint64
()
{
return
nil
,
model
.
ErrReturnDataOutOfBounds
}
memory
.
Set
(
memOffset
.
Uint64
(),
length
.
Uint64
(),
evm
.
Interpreter
.
ReturnData
[
dataOffset
.
Uint64
()
:
end
.
Uint64
()])
err
:=
memory
.
Set
(
memOffset
.
Uint64
(),
length
.
Uint64
(),
evm
.
Interpreter
.
ReturnData
[
dataOffset
.
Uint64
()
:
end
.
Uint64
()])
if
err
!=
nil
{
panic
(
err
)
return
nil
,
err
}
return
nil
,
nil
}
...
...
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