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
a25dd806
Unverified
Commit
a25dd806
authored
Apr 03, 2023
by
Martin Holst Swende
Committed by
GitHub
Apr 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/fuzzers: fuzz rlp handling of big.Int and uint256.Int (#26917)
test/fuzzers: fuzz rlp handling of big.Lnt and uint256.Int
parent
94457cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
rlp_fuzzer.go
tests/fuzzers/rlp/rlp_fuzzer.go
+13
-0
No files found.
tests/fuzzers/rlp/rlp_fuzzer.go
View file @
a25dd806
...
...
@@ -19,9 +19,11 @@ package rlp
import
(
"bytes"
"fmt"
"math/big"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rlp"
"github.com/holiman/uint256"
)
func
decodeEncode
(
input
[]
byte
,
val
interface
{},
i
int
)
{
...
...
@@ -126,5 +128,16 @@ func Fuzz(input []byte) int {
var
rs
types
.
Receipts
decodeEncode
(
input
,
&
rs
,
i
)
}
{
i
++
var
v
struct
{
AnIntPtr
*
big
.
Int
AnInt
big
.
Int
AnU256Ptr
*
uint256
.
Int
AnU256
uint256
.
Int
NotAnU256
[
4
]
uint64
}
decodeEncode
(
input
,
&
v
,
i
)
}
return
1
}
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