Closed
Description
I was writing some code to pad strings, and if I pass in a negative number of spaces to add, it compiles fine but segmentation faults at runtime. The following code is enough to trigger it:
fn main() {
"goodbye".to_string().repeat(-1);
}
Metadata
Metadata
Assignees
Labels
No labels