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

Commit 743817ce authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "[DO NOT MERGE] Handle out-of-bound array index in FastDataInput" into main

parents ce5a40df 26bf0881
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -269,6 +269,10 @@ public class FastDataInput implements DataInput, Closeable {

            return s;
        } else {
            if (ref >= mStringRefs.length) {
                throw new IOException("Invalid interned string reference " + ref + " for "
                        + mStringRefs.length + " interned strings");
            }
            return mStringRefs[ref];
        }
    }