Page MenuHomeFeedback Tracker

string.Replace segfaults when string to be replaced is empty
Assigned, NormalPublic

Description

E.g.

string s = "Test";
string replace = "";
s.Replace(replace, "Foo");   // game crashes

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding

Event Timeline

lava76 created this task.Jan 13 2024, 4:55 PM
lava76 changed Category from General to Modding.
Lad added a subscriber: Lad.Jan 13 2024, 5:22 PM
Geez changed the task status from New to Assigned.Jan 15 2024, 10:53 AM