Skip to content

Commit

Permalink
Merge branch 'master' into feat/capture-return-values
Browse files Browse the repository at this point in the history
  • Loading branch information
anishnaik authored Jan 14, 2025
2 parents 5032f48 + 68a14ff commit ed8c13c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion compilation/abiutils/solidity_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func GetPanicReason(panicCode uint64) string {
case PanicCodeAssertFailed:
return "panic: assertion failed"
case PanicCodeArithmeticUnderOverflow:
return "panic: arithmetic underflow"
return "panic: arithmetic underflow/overflow"
case PanicCodeDivideByZero:
return "panic: division by zero"
case PanicCodeEnumTypeConversionOutOfBounds:
Expand Down
17 changes: 9 additions & 8 deletions fuzzing/corpus/corpus.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ package corpus
import (
"bytes"
"fmt"
"math/big"
"os"
"path/filepath"
"regexp"
"strconv"
"sync"
"time"

"github.com/crytic/medusa/chain"
"github.com/crytic/medusa/fuzzing/calls"
"github.com/crytic/medusa/fuzzing/coverage"
Expand All @@ -12,13 +20,6 @@ import (
"github.com/crytic/medusa/utils/randomutils"
"github.com/ethereum/go-ethereum/common"
"github.com/google/uuid"
"math/big"
"os"
"path/filepath"
"regexp"
"strconv"
"sync"
"time"

"github.com/crytic/medusa/fuzzing/contracts"
)
Expand Down Expand Up @@ -363,7 +364,7 @@ func (c *Corpus) Initialize(baseTestChain *chain.TestChain, contractDefinitions
covMaps := coverage.GetCoverageTracerResults(messageResults)
_, _, covErr := c.coverageMaps.Update(covMaps)
if covErr != nil {
return 0, 0, err
return 0, 0, covErr
}
}
}
Expand Down

0 comments on commit ed8c13c

Please sign in to comment.