String truncation during example generation cuts through characters #28
Closed
Description
Describe the bug
In some cases, examples.rs:535
result.to_mut().truncate(max);
panics (as documented) because max
is not at a character boundary. This assertion then fails.
Versions:
- OS: linux
- rustc: any
- Wuppiefuzz: latest
To Reproduce
Reproduction is finnicky since example generation is random.
Expected behavior
Examples generated successfully
Metadata
Assignees
Labels
No labels