[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer InputStreamSource.java,1.8,1.9
Brought to you by:
derrickoswald
|
From: Derrick O. <der...@us...> - 2005-10-25 01:26:18
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8364 Modified Files: InputStreamSource.java Log Message: Fixed bug #1334408 Exception occurs based on string length Changed >= test to > to avoid off-by-one error. Index: InputStreamSource.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/InputStreamSource.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** InputStreamSource.java 19 Sep 2005 02:35:05 -0000 1.8 --- InputStreamSource.java 25 Oct 2005 01:26:09 -0000 1.9 *************** *** 619,623 **** if (null == mStream) throw new IOException ("source is closed"); ! if (offset + length >= mBuffer.length) throw new IOException ("illegal read ahead"); else --- 619,623 ---- if (null == mStream) throw new IOException ("source is closed"); ! if (offset + length > mBuffer.length) throw new IOException ("illegal read ahead"); else |