Skip to content

String truncation during example generation cuts through characters #28

Closed
@grebnetiew

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions