bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
15.45k stars 1.3k forks source link

Update memory configuration during fuzzing #9567

Closed alexcrichton closed 2 weeks ago

alexcrichton commented 2 weeks ago

This commit updates how the NormalMemoryConfig works during fuzzing. Previously this was either 0 or an arbitrary 32-bit number. This ended up not not handling cases such as 4GiB exactly which is 1 larger than the 32-bit range. Additionally 33+-bit numbers were never tested. This intends to expand our fuzz coverage here by most of the time using the default settings of Config and then otherwise selecting amongst an "interesting" set of numbers such as 0, powers of two, etc.