Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Memory corruption in InputEventTrace (case 1262496). #1184

Merged
merged 3 commits into from Aug 7, 2020

Conversation

Rene-Damm
Copy link
Contributor

Fixes 1262496 (internal).

Was a stupid thing where I changed the meaning of capacity to be in line with how it is used elsewhere in .NET but then didn't correctly update all the code that depended on the previous meaning.

@Rene-Damm Rene-Damm requested a review from karljj1 July 30, 2020 15:05
@@ -13,6 +13,15 @@ public static int AlignToMultipleOf(this int number, int alignment)
return number + alignment - remainder;
}

public static long AlignToMultipleOf(this long number, long alignment)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a test just for this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll go add something in the next PRs.

@Rene-Damm Rene-Damm merged commit 5eedb3b into develop Aug 7, 2020
@Rene-Damm Rene-Damm deleted the fix-inputactiontrace-memory-corruption branch August 7, 2020 12:58
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.

None yet

2 participants