Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66c2bfce authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge \"Frameworks/base: Fix FastPrintWriter infinite loop\" into nyc-dev

am: c82a2b53

Change-Id: I3da283b088e2e0d689ac35d634823497fa2fece1
parents 2cf5b73c c82a2b53
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -345,7 +345,7 @@ public class FastPrintWriter extends PrintWriter {
            if (mOutputStream != null) {
            if (mOutputStream != null) {
                CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos);
                CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos);
                CoderResult result = mCharset.encode(charBuffer, mBytes, true);
                CoderResult result = mCharset.encode(charBuffer, mBytes, true);
                while (true) {
                while (!mIoError) {
                    if (result.isError()) {
                    if (result.isError()) {
                        throw new IOException(result.toString());
                        throw new IOException(result.toString());
                    } else if (result.isOverflow()) {
                    } else if (result.isOverflow()) {