DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22450>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22450 Unterminated iteration in JPEGReader class Summary: Unterminated iteration in JPEGReader class Product: Fop Version: 0.20.5 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: Other Component: images AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Look at the JPEGReader class in the org.apache.fop.image.analyzer package. In the setDimension(...) method, can have an unterminated iteration. Why? The method reads bytes from input stream, with a: while ((marker = imageStream.read()) != MARK) { ... } Look at the description of the BufferedInputStream.read() method.: "If no byte is available because the end of the stream has been reached, the value -1 is returned.". In the above iteration the author missed check this condition, so the method can iterate over and over. Sollution: Check the end condition. best regards: Zsolt Kulcsar --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]