7 Commits
Author SHA1 Message Date
Thomas Van Lenten 2999609675 Add a message limit to the stream fuzz testers. (#1963)
AsyncMessageSequence sees timeouts on oss-fuzz pretty often, but the
other just saw one and raised it to a bug, so put a limit on how many
messages the tests will read/decode to try and avoid the timeouts.

Fixes https://g-issues.oss-fuzz.com/issues/480506473
2026-02-03 13:38:25 -08:00
Thomas Van Lenten ac8da77c93 Run swift-format -p -r -i . 2024-09-09 14:39:36 -04:00
Thomas Van Lenten 22a71b76db Fix options needing multiple bytes, add tests. 2024-05-01 14:30:12 -04:00
Thomas Van Lenten 1bfc284be5 Add support for decoding options during fuzz testing.
In Binary, TextFormat, and JSON, a leading byte is not value, so leverage that
to indicate that the next byte should be used as bits for decoding options.
2024-04-30 16:27:13 -04:00
Thomas Van Lenten daa0f14d8f Resolve warning.
```
FuzzTesting/Sources/FuzzAsyncMessageSequence/main.swift:27:21: warning: immutable value 'msg' was never used; consider replacing with '_' or removing it
      for try await msg in decoding {
                    ^~~
                    _
```
2024-03-15 10:33:39 -04:00
Tim Kientzle cc3dd4136c Skip re-encoding in the AsyncMessages fuzz tester
Re-encoding is a significant slowdown that is causing
some tests to time out.  Since this isn't yet
giving us much value, just comment it out for now.
2023-11-10 20:52:59 -05:00
Thomas Van Lenten 697b89f403 Add FuzzAsyncMessageSequence to test the new parsing api. 2023-08-24 11:13:43 -04:00