axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http NonBlockingBufferedInputStream.java
Date Tue, 27 Nov 2001 20:48:13 GMT
dims        01/11/27 12:48:13

  Modified:    java/src/org/apache/axis/transport/http
                        NonBlockingBufferedInputStream.java
  Log:
  Fix ArrayIndexOutOfBoundsException...
  
  Revision  Changes    Path
  1.7       +1 -0      xml-axis/java/src/org/apache/axis/transport/http/NonBlockingBufferedInputStream.java
  
  Index: NonBlockingBufferedInputStream.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/NonBlockingBufferedInputStream.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- NonBlockingBufferedInputStream.java	2001/11/08 21:43:59	1.6
  +++ NonBlockingBufferedInputStream.java	2001/11/27 20:48:13	1.7
  @@ -105,6 +105,7 @@
           numbytes = in.available();
           if (numbytes <= 0) numbytes = 1;
           if (numbytes > remainingContent) numbytes=remainingContent;
  +        if (numbytes > buffer.length) numbytes=buffer.length;
   
           // actually attempt to read those bytes
           numbytes = in.read(buffer, 0, numbytes);
  
  
  

Mime
View raw message