-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SUREFIRE-2058] Corrupted STDOUT by directly writing to native stream…
… in forked JVM 1 with UTF-8 console logging (#518) [SUREFIRE-2058] Corrupted STDOUT by directly writing to native stream in forked JVM 1 with UTF-8 console logging * [SUREFIRE-2058] Add readString unit test covering cases with overflowing output buffer - shouldReadStringOverflowOnNewLine - ends up with 1 single byte (LF) remaining on input buffer - shouldReadStringOverflowOn4BytesEncodedSymbol - causing an infinite loop with 4 bytes left on input buffer * [SUREFIRE-2058] Flip and clear output char buffer after each chunk read Overflow can happen even when output buffer has still some remaining space left * [SUREFIRE-2058] Add static import for emptyMap and remove explicit type arguments
- Loading branch information
1 parent
2657a32
commit 754dd9c
Showing
2 changed files
with
70 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 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