https://bz.apache.org/ooo/show_bug.cgi?id=128542
Issue ID: 128542 Issue Type: DEFECT Summary: Bugs in the scripting module's XInputStreamImpl Product: App Dev Version: 3.3.0 or older (OOo) Hardware: All OS: All Status: CONFIRMED Severity: Normal Priority: P5 (lowest) Component: api Assignee: issues@openoffice.apache.org Reporter: dam...@apache.org Target Milestone: --- In main/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java we need to: - Check the loop termination in readBytes() properly: currently it increments totalBytesRead while also decrementing nBytesToRead, so when compared to each other, the loop terminates when the buffer is half full. Only check for nBytesToRead instead. - Trim the sequence to the size actually read. - Deal with the possibility of available() returning 0 in readSomeBytes(). -- You are receiving this mail because: You are the assignee for the issue.