(Tracking issue #29018)
During fuzzing, AppInitParameterInteraction
may actually disable a previously set mocktime. This is confusing and can also cause non-determinism.
Fix this issue, by
- fixing the erroneous
-mocktime
parsing inAppInitParameterInteraction
. - adding the missing
SetMockTime
calls to the affected fuzz init functions. - adding a
CheckGlobals
to the fuzz init, to prevent this issue in the future.
This can be tested by
- Cherry-picking the
CheckGlobals
-commit onto current master and observing a fuzz failure in the touched fuzz targets. - Reverting the touched fuzz fixups and observing a fuzz failure for each target.