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

Commit fbd855cb authored by Calin Juravle's avatar Calin Juravle Committed by Android Git Automerger
Browse files

am 78f522d1: am 7a4172d1: am f11cc165: Merge "Fixed a possible infinite loop...

am 78f522d1: am 7a4172d1: am f11cc165: Merge "Fixed a possible infinite loop in JsonReader#skipValue()"

* commit '78f522d1':
  Fixed a possible infinite loop in JsonReader#skipValue()
parents 74304f89 78f522d1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -546,6 +546,9 @@ public final class JsonReader implements Closeable {
    public void skipValue() throws IOException {
        skipping = true;
        try {
            if (!hasNext() || peek() == JsonToken.END_DOCUMENT) {
                throw new IllegalStateException("No element left to skip");
            }
            int count = 0;
            do {
                JsonToken token = advance();