str repeat overflow breaks an unsafe capacity assumption
engineeringrustsecuritymemory-safetyAn unchecked size multiplication can leave str::repeat with too little storage for its raw copies. The disclosed fix checks capacity before the unsafe implementation uses it.