History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-504
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Joerg Schaible
Reporter: Kevin Conaway
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XStream

XmlHeaderAwareReader does not respect existing PushbackInputStream

Created: 30/Jun/08 10:30 AM   Updated: 30/Jun/08 10:32 AM
Component/s: Core
Affects Version/s: 1.3
Fix Version/s: None

File Attachments: 1. Text File xstr-504.patch (2 kb)



 Description  « Hide
If a PushbackInputStream is passed to XmlHeaderAwareReader, the class attempts to reuse that instance as a pushback inputstream without knowing any details about the existing pushback buffer.

If I pass a PushbackInputStream with a buffer size of 1 into XmlHeaderAwareReader, it will attempt to unread more than 1 byte and cause an IOException("Pushback buffer is full")



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Kevin Conaway - 30/Jun/08 10:32 AM
Patch and test case