Skip to content

Commit 1ff7182

Browse files
fix: false positive in the calldata fuzzing harness
1 parent fbe953b commit 1ff7182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fuzzing/src/fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ int fuzzTxSimulation(const uint8_t *data, size_t size) {
129129
}
130130

131131
int fuzzCalldata(const uint8_t *data, size_t size) {
132-
calldata_cleanup();
133132
while (size > 0) {
134133
switch (data[0]) {
135134
case 'I':
136135
data++;
137136
size--;
137+
mem_reset();
138138
calldata_init(500);
139139
break;
140140
case 'W':

0 commit comments

Comments
 (0)