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
5c8c0ae0
Commit
5c8c0ae0
authored
Jan 09, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed size 0 bug
parent
f9b0d1a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
stack.go
vm/stack.go
+4
-0
vm_debug.go
vm/vm_debug.go
+1
-1
No files found.
vm/stack.go
View file @
5c8c0ae0
...
@@ -152,6 +152,10 @@ func (m *Memory) Get(offset, size int64) []byte {
...
@@ -152,6 +152,10 @@ func (m *Memory) Get(offset, size int64) []byte {
}
}
func
(
self
*
Memory
)
Geti
(
offset
,
size
int64
)
(
cpy
[]
byte
)
{
func
(
self
*
Memory
)
Geti
(
offset
,
size
int64
)
(
cpy
[]
byte
)
{
if
size
==
0
{
return
nil
}
if
len
(
self
.
store
)
>
int
(
offset
)
{
if
len
(
self
.
store
)
>
int
(
offset
)
{
cpy
=
make
([]
byte
,
size
)
cpy
=
make
([]
byte
,
size
)
copy
(
cpy
,
self
.
store
[
offset
:
offset
+
size
])
copy
(
cpy
,
self
.
store
[
offset
:
offset
+
size
])
...
...
vm/vm_debug.go
View file @
5c8c0ae0
...
@@ -34,7 +34,7 @@ func NewDebugVm(env Environment) *DebugVm {
...
@@ -34,7 +34,7 @@ func NewDebugVm(env Environment) *DebugVm {
lt
=
LogTyDiff
lt
=
LogTyDiff
}
}
return
&
DebugVm
{
env
:
env
,
logTy
:
lt
,
Recoverable
:
tru
e
}
return
&
DebugVm
{
env
:
env
,
logTy
:
lt
,
Recoverable
:
fals
e
}
}
}
func
(
self
*
DebugVm
)
Run
(
me
,
caller
ContextRef
,
code
[]
byte
,
value
,
gas
,
price
*
big
.
Int
,
callData
[]
byte
)
(
ret
[]
byte
,
err
error
)
{
func
(
self
*
DebugVm
)
Run
(
me
,
caller
ContextRef
,
code
[]
byte
,
value
,
gas
,
price
*
big
.
Int
,
callData
[]
byte
)
(
ret
[]
byte
,
err
error
)
{
...
...
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