XStream
  1. XStream
  2. XSTR-504

XmlHeaderAwareReader does not respect existing PushbackInputStream

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3.1
    • Component/s: Core
    • Labels:
      None

      Description

      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")

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Kevin Conaway
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: