-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update vswprintf to mussl 1.1.23 #9387
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
43292ce
Update vswprintf to mussl 1.1.23
VirtualTim 99a0a96
Add a vswprintf test for long (>256) strings
VirtualTim 06e69bb
Fix indentation, change function call to correct function
VirtualTim 3537883
Update expected test output
VirtualTim faea2fe
Missed new line
VirtualTim 81a6523
Update the musl readme.
VirtualTim a29e8db
Removed unnecessary branching
VirtualTim 37d82a8
Update from incoming
VirtualTim 60e5715
Change readme as per code review
VirtualTim 0d9e5c7
Improve readme change
VirtualTim 87b4661
Merge pull request #16 from emscripten-core/incoming
VirtualTim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ vswoutput st-rts with 0x74 | |
vsw continues with 0x65 | ||
vsw continues with 0x73 | ||
test string has 36 wide characters. | ||
PrintBigWide wrote 426 wchars: | ||
test string has 425 wide characters. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: difference in the above is expected, as "%d" is 2 chars, which gets printed as "425", which is 3 chars. |
||
Internally the variadic print functions use a 256 char buffer, so this is a string that's longer than 256 chars, so in case this breaks we have a test case. As discovered in #9305 vswprintf had been broken for some time, but was never picked up as the test strings were all shorter then 256 chars. So hopefully this long rambly string will help guard against that bug being re-introduced. | ||
Characters: a A | ||
Decimals: 1977 650000 | ||
Preceding with blanks: 1977 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the doco the second arg should be the (number of chars in buffer) -1, so I figured I should change that as well.