You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/09/10 17:54:03 UTC
cvs commit: xml-axis/java/src/org/apache/axis/utils/bytecode ParamReader.java
dims 2002/09/10 08:54:03
Modified: java/src/org/apache/axis/utils/bytecode ParamReader.java
Log:
Fix for Bug 12478 - ArrayIndexOutOfBoundsException in ParamReader
from thomas@boerkel.de (Thomas Boerkel)
Revision Changes Path
1.3 +1 -1 xml-axis/java/src/org/apache/axis/utils/bytecode/ParamReader.java
Index: ParamReader.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/bytecode/ParamReader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ParamReader.java 9 Sep 2002 17:03:31 -0000 1.2
+++ ParamReader.java 10 Sep 2002 15:54:03 -0000 1.3
@@ -195,7 +195,7 @@
readShort(); // descriptor_index
int index = readShort(); // index
- if (names != null) {
+ if (names != null && index < 2 * len) {
names[index] = resolveUtf8(n);
}
}