changeset 12463:4e1e52d484fb

8181597: Process Proxy presentation Reviewed-by: dfuchs, ahgross, rhalade, skoivu
author igerasim
date Wed, 05 Jul 2017 13:21:08 -0700
parents 8c6f671e9556
children 0efdf2c7a214
files src/share/classes/java/io/ObjectInputStream.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/io/ObjectInputStream.java	Sun Jul 02 15:17:19 2017 -0700
+++ b/src/share/classes/java/io/ObjectInputStream.java	Wed Jul 05 13:21:08 2017 -0700
@@ -1746,6 +1746,10 @@
         passHandle = NULL_HANDLE;
 
         int numIfaces = bin.readInt();
+        if (numIfaces > 65535) {
+            throw new InvalidObjectException("interface limit exceeded: "
+                    + numIfaces);
+        }
         String[] ifaces = new String[numIfaces];
         for (int i = 0; i < numIfaces; i++) {
             ifaces[i] = bin.readUTF();