• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-2314
Back
1

LastIndexOf freezes the game when passed an empty string as parameter

1

State

Open
Issue key
DZG-2314
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
lava76
Created
Oct 30, 2026
Views
14
Platform
PC Steam
What happened?

Calling LastIndexOf freezes the game when passed an empty string as parameter.

Reproduction steps
string haystack = "xyz";
string needle = "";  // could come from anywhere
int lastIdx = haystack.LastIndexOf(needle);  // <-- game freezes
Exact build version (optional)
1.30
Where did it happen?
Local / Offline
Is it modded?
No
Expected result

When passing an empty needle to LastIndexOf, it should follow the convention of other languages and return haystack length instead of freezing.

Reactions

Activity

    about 2 hours ago
  • lava76
    created issueabout 2 hours ago
  • lava76
    changedabout 2 hours ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-2314
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
lava76
Created
Oct 30, 2026
Views
14