-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
luzer has a FuzzedDataProvider, FDP should be initialized by a buffer with finite length. It means that FDP can provide a limited number of values using consume_ methods. When data in FDP is over methods returns constant default values:
> fdp = luzer.FuzzedDataProvider("")
---
...
> fdp:consume_integer(1, 2) -- return a min value in range
---
- 1
...
> fdp:consume_string(1) -- return a nil
---
-
...
tarantool> fdp:consume_number(1, 2) -- return min value in range
---
- 1
...
tarantool> fdp:consume_boolean(1, 2) -- return false
---
- false
...It is proposed to raise an error in such cases.
luzer's FDP is based on libFuzzer's FDP, and it is expected behaviour there, see 1:
Footnotes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels