core/signer, clef: improve ui-test flow, fix errors in uint handling (#19584)
* core/signer, clef: improve ui-test flow, fix errors in uint handling for eip-712 * core/signer: add fuzzer testcases + crashfixes * signer: address review concerns, check sign in integer parsing
This commit is contained in:
committed by
Guillaume Ballet
parent
7a22da98b9
commit
17381ecc66
38
signer/core/testdata/fuzzing/2850f6ccf2d7f5f846dfb73119b60e09e712783f
vendored
Normal file
38
signer/core/testdata/fuzzing/2850f6ccf2d7f5f846dfb73119b60e09e712783f
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name": "test",
|
||||
"type": "uint8"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"domain": {
|
||||
"name": "Ether Mail",
|
||||
"version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"test":"255.3"
|
||||
}
|
||||
}
|
60
signer/core/testdata/fuzzing/36fb987a774011dc675e1b5246ac5c1d44d84d92
vendored
Normal file
60
signer/core/testdata/fuzzing/36fb987a774011dc675e1b5246ac5c1d44d84d92
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Foo": [
|
||||
{
|
||||
"name": "addys",
|
||||
"type": "address[]"
|
||||
},
|
||||
{
|
||||
"name": "stringies",
|
||||
"type": "string[]"
|
||||
},
|
||||
{
|
||||
"name": "inties",
|
||||
"type": "uint[]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Foo",
|
||||
"domain": {
|
||||
"name": "Lorem",
|
||||
"version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"addys": [
|
||||
"0x0000000000000000000000000000000000000001",
|
||||
"0x0000000000000000000000000000000000000002",
|
||||
"0x0000000000000000000000000000000000000003"
|
||||
],
|
||||
"stringies": [
|
||||
"lorem",
|
||||
"ipsum",
|
||||
"dolores"
|
||||
],
|
||||
"inties": [
|
||||
"0x0000000000000000000000000000000000000001",
|
||||
"3",
|
||||
4.0
|
||||
]
|
||||
}
|
||||
}
|
38
signer/core/testdata/fuzzing/37ec7b55c7ba014cced204c5f9989d2d0eb9ff6d
vendored
Normal file
38
signer/core/testdata/fuzzing/37ec7b55c7ba014cced204c5f9989d2d0eb9ff6d
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name": "test",
|
||||
"type": "uint8"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"domain": {
|
||||
"name": "Ether Mail",
|
||||
"version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"test":257
|
||||
}
|
||||
}
|
1
signer/core/testdata/fuzzing/582fa92154b784daa1faa293b695fa388fe34bf1
vendored
Normal file
1
signer/core/testdata/fuzzing/582fa92154b784daa1faa293b695fa388fe34bf1
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"domain":{"version":"0","chainId":""}}
|
54
signer/core/testdata/fuzzing/ab57cb2b2b5ce614efe13a47bc73814580f2cce8
vendored
Normal file
54
signer/core/testdata/fuzzing/ab57cb2b2b5ce614efe13a47bc73814580f2cce8
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
{ "types": { "":[ {
|
||||
"name": "name",
|
||||
"type":"string" },
|
||||
{
|
||||
"name":"version",
|
||||
"type": "string" }, {
|
||||
"name": "chaiI",
|
||||
"type":"uint256 . ad nowretig omeedifere" }, {
|
||||
"ae": "eifinC",
|
||||
"ty":"dess"
|
||||
}
|
||||
],
|
||||
"Person":[
|
||||
{
|
||||
"name":"name",
|
||||
"type": "string"
|
||||
}, {
|
||||
"name":"tes", "type":"it8"
|
||||
},
|
||||
{ "name":"t", "tye":"uit8"
|
||||
},
|
||||
{
|
||||
"a":"ale",
|
||||
"type": "ress"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name":"from", "type":"Person" },
|
||||
{
|
||||
"name": "to", "type": "Person"
|
||||
},
|
||||
{
|
||||
"name": "contents",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}, "primaryType": "Mail",
|
||||
"domain": {
|
||||
"name":"theMail", "version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingntract": "0xCcccCCCcCCCCCCCcCCcCCCcCcccccC"
|
||||
},
|
||||
"message": { "from": {
|
||||
"name": "Cow",
|
||||
"test": "3",
|
||||
"est2":5.0,
|
||||
"llt": "0xcD2a3938E13D947E0bE734DfDD86" }, "to": { "name": "Bob",
|
||||
"ts":"",
|
||||
"tet2": 5,
|
||||
"allet": "0bBBBBbbBBbbbbBbbBbbbbBBBbB"
|
||||
},
|
||||
"contents": "Hello, Bob!" }
|
||||
}
|
64
signer/core/testdata/fuzzing/e4303e23ca34fbbc43164a232b2caa7a3af2bf8d
vendored
Normal file
64
signer/core/testdata/fuzzing/e4303e23ca34fbbc43164a232b2caa7a3af2bf8d
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Person": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "wallet",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name": "from",
|
||||
"type": "Person"
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"type": "Mail"
|
||||
},
|
||||
{
|
||||
"name": "s",
|
||||
"type": "Person"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"domain": {
|
||||
"name": "l",
|
||||
"version": "1",
|
||||
"chainId": "",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"from": {
|
||||
"name": "",
|
||||
"wallet": "0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"
|
||||
},
|
||||
"to": {
|
||||
"name": "",
|
||||
"wallet": "0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"
|
||||
},
|
||||
"": ""
|
||||
}
|
||||
}
|
1
signer/core/testdata/fuzzing/f658340af009dd4a35abe645a00a7b732bc30921
vendored
Normal file
1
signer/core/testdata/fuzzing/f658340af009dd4a35abe645a00a7b732bc30921
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"types":{"0":[{}]}}
|
Reference in New Issue
Block a user