Skip to content

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Mar 15, 2022

WideCharToMultiByte doesn't write a final null-byte by default.
til::u16u8 avoids the problem.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • Test passes in Debug builds ✅

@lhecker lhecker added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Mar 15, 2022
@lhecker lhecker changed the title Fix uninitialized memory in GetConsoleTitleA test Fix uninitialized memory access in GetConsoleTitleA test Mar 15, 2022
@DHowett
Copy link
Member

DHowett commented Mar 15, 2022

Is there a bug linked to this in OS or something? Or, you just found it manually?

@DHowett
Copy link
Member

DHowett commented Mar 15, 2022

@msftbot merge this in 5 minutes

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Mar 15, 2022
@ghost
Copy link

ghost commented Mar 15, 2022

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Tue, 15 Mar 2022 23:06:51 GMT, which is in 5 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@lhecker
Copy link
Member Author

lhecker commented Mar 15, 2022

Is there a bug linked to this in OS or something? Or, you just found it manually?

The unit tests didn't pass for #12700 so I fixed them.

@DHowett DHowett added the Needs-Second It's a PR that needs another sign-off label Mar 16, 2022
@ghost ghost merged commit 5072ee6 into main Mar 17, 2022
@ghost ghost deleted the dev/lhecker/fix-GetConsoleTitleA branch March 17, 2022 19:13
DHowett pushed a commit that referenced this pull request Mar 24, 2022
`WideCharToMultiByte` doesn't write a final null-byte by default.
`til::u16u8` avoids the problem.

## PR Checklist
* [x] I work here
* [x] Tests added/passed

## Validation Steps Performed
* Test passes in Debug builds ✅

(cherry picked from commit 5072ee6)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. AutoMerge Marked for automatic merge by the bot when requirements are met Needs-Second It's a PR that needs another sign-off

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants