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

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

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

* commit 'f11cc165':
  Fixed a possible infinite loop in JsonReader#skipValue()
parents 660a514e f11cc165
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();