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

vsprintf articles update #5230

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nikita-leontiev
Copy link

@nikita-leontiev nikita-leontiev commented Mar 8, 2025

  1. cd68e32
    vswprintf and _vswprintf_l functions return characters count that would be written to buffer when buffer=NULL and count=0. If only count is zero, then memory corruption occurs. "Return value" section updated.
  2. 15f1aa3
    If buffer=NULL and count=0, functions return characters count that would be written to buffer. If buffer is valid and count/sizeInBytes is zero, then memory corruption occurs. "Return value"/"Remarks" sections updated.
  3. 5fa9b33
    Functions return characters count that would be written to buffer when buffer=NULL and count=0. If count is zero, functions return -1. "Behavior summary" section updated.
  4. 38e139c
    If buffer is valid, sizeOfBuffer is not zero and count=0, functions return -1. "Behavior summary" section updated.

Functions behavior was checked on Windows 7 SP1 x64 with Microsoft Visual C++ 2008.

Copy link
Contributor

Learn Build status updates of commit 38e139c:

✅ Validation status: passed

File Status Preview URL Details
docs/c-runtime-library/reference/vsnprintf-s-vsnprintf-s-vsnprintf-s-l-vsnwprintf-s-vsnwprintf-s-l.md ✅Succeeded
docs/c-runtime-library/reference/vsnprintf-vsnprintf-vsnprintf-l-vsnwprintf-vsnwprintf-l.md ✅Succeeded
docs/c-runtime-library/reference/vsprintf-p-vsprintf-p-l-vswprintf-p-vswprintf-p-l.md ✅Succeeded
docs/c-runtime-library/reference/vsprintf-vsprintf-l-vswprintf-vswprintf-l-vswprintf-l.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@nikita-leontiev
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Contributor

@nikita-leontiev : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@prmerger-automator prmerger-automator bot requested a review from TylerMSFT March 8, 2025 06:38
Copy link
Contributor

@nikita-leontiev : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@Court72
Copy link
Contributor

Court72 commented Mar 10, 2025

@TylerMSFT

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged Tracking label for the PR review team label Mar 10, 2025
@TylerMSFT
Copy link
Collaborator

Thank you for this. I have several things in my queue at the moment but have marked this to come back to as soon as I'm able.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants