|
Ran
|
Jobs
1
|
Files
111
|
Run time
16s
|
Badge
README BADGES
|
push
travis-pro
Custom TokenPairRange.arbitrary implementation with 30 hops bound (#1552) Fixes the recent fuzzer crashes by implementing arbitrary of TokenPairRange with a hard cap of 30. This is fine, as the query params get sanitized [here](https://github.com/gnosis/dex-services/blob/db7b913f7/price-estimator/src/models/query.rs#L92-L98) and so we never create a TokenPairRange that is larger. Not sure if on top of this it makes sense to limit the hops in a TokenPairRange contructor. Not limiting 0 hops as this is still possible from an API perspective and thus should probably be fuzzed as well. ### Test Plan Unpack [crash.bin.zip](https://github.com/gnosis/dex-services/files/5582570/crash.bin.zip) and run ``` cargo +nightly fuzz run pricegraph ~/Downloads/crash.bin ``` And see no more crash.
13944 of 56250 branches covered (24.79%)
Branch coverage included in aggregate %.
3806 of 5926 relevant lines covered (64.23%)
39947.7 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 3 | 5556.3 (OPEN_SOLVER_VERSION=v0.1.2 PRIVATE_SOLVER_VERSION=v0.8.6) | 0 |
28.55 |
Travis Job 5556.3 |