Skip to content

Plug String.GetNonRandomizedHashCode #2340

Merged
quajak merged 5 commits into
masterfrom
fix/string_GetNonRandomizedHashCode
Jul 23, 2022
Merged

Plug String.GetNonRandomizedHashCode #2340
quajak merged 5 commits into
masterfrom
fix/string_GetNonRandomizedHashCode

Conversation

@quajak

@quajak quajak commented Jul 21, 2022

Copy link
Copy Markdown
Member

To support cosmos memory model for strings allocated on the heap with no extra space, since the standard implementation assumes that there is 00 00 after the end of strings with odd length.

Fixes #2338

…or strings allocated on the heap with no extra space
@quajak quajak requested review from MishaTy and valentinbreiz July 21, 2022 19:59
MishaTy
MishaTy previously approved these changes Jul 21, 2022
@quajak quajak enabled auto-merge July 21, 2022 20:01
MishaTy
MishaTy previously approved these changes Jul 22, 2022
@quajak quajak requested a review from MishaTy July 23, 2022 20:03
@quajak quajak merged commit d4b8371 into master Jul 23, 2022
@quajak quajak deleted the fix/string_GetNonRandomizedHashCode branch July 23, 2022 22:29
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.

Strings pulled from Console.ReadLine() don't work as Dictionary Keys if the string lengh is odd numbered

2 participants