Author: david.lloyd(a)jboss.com
Date: 2008-11-19 11:22:04 -0500 (Wed, 19 Nov 2008)
New Revision: 4705
Modified:
remoting3/trunk/transporter/src/main/java/org/jboss/remoting/transporter/TransporterInvocation.java
Log:
Add bounds check
Modified:
remoting3/trunk/transporter/src/main/java/org/jboss/remoting/transporter/TransporterInvocation.java
===================================================================
---
remoting3/trunk/transporter/src/main/java/org/jboss/remoting/transporter/TransporterInvocation.java 2008-11-19
15:47:10 UTC (rev 4704)
+++
remoting3/trunk/transporter/src/main/java/org/jboss/remoting/transporter/TransporterInvocation.java 2008-11-19
16:22:04 UTC (rev 4705)
@@ -57,6 +57,9 @@
if (len != args.length) {
throw new IllegalStateException("parameter types and/or args length
changed");
}
+ if (len > 0xffff) {
+ throw new IllegalArgumentException("too many parameters");
+ }
out.writeShort(len);
for (Class<?> type : parameterTypes) {
out.writeObject(type);
Show replies by date