Error in package org.apache.jasper.runtime.BodyContentImpl class.

Method:

   /**
    * Write a single character.
    */
   public void write(int c) throws IOException {
   if (writer != null) {
       writer.write(c);
   } else {
       ensureOpen();
       if (nextChar >= bufferSize) {
       reAllocBuff (0);
       }
       cb[nextChar++] = (char) c;
   }
   }

Comment:

If the developer has more than 512 character being fed to this method an array-out-of-bounds
will occur. reAllocBuff should not be zero.


Cheers,

James


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to