Skip to content

Return null reference in string.IsInterned shim - #157

Merged
Washi1337 merged 2 commits into
Washi1337:masterfrom
wondercrash:fix/stringinvoker-isinterned
Feb 26, 2026
Merged

Return null reference in string.IsInterned shim#157
Washi1337 merged 2 commits into
Washi1337:masterfrom
wondercrash:fix/stringinvoker-isinterned

Conversation

@wondercrash

@wondercrash wondercrash commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Methods using string.IsInterned can crash if the string wasn't interned because null doesn't push anything to the stack. Change it to the null reference instead

@wondercrash
wondercrash marked this pull request as draft February 26, 2026 15:57
@wondercrash
wondercrash marked this pull request as ready for review February 26, 2026 16:04
@Washi1337
Washi1337 merged commit 96a94fe into Washi1337:master Feb 26, 2026
2 checks passed
@wondercrash
wondercrash deleted the fix/stringinvoker-isinterned branch February 26, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants