Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8034087

XML parser may overwrite element content if that content falls onto the border of an entity scanner buffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 6-pool, 7-pool, 8-pool
    • xml
    • None
    • 6
    • b04
    • Verified

    Description

      Given a simple XML document like the following one:

      <?xml version=\"1.1\"?>
      <ROOT>
         <FILLER>ffffffff...fffff</FILLER>
         <TEST>content</TEST><TEST2>content2</TEST2>
         <FILLER>ffffffff...fffffffff</FILLER>
      </ROOT>

      the content of the TEST elements may be overwritten by content from the following elements (i.e. 'f's) if the content of the TEST elemts is at the border of an entity scanner buffer (XMLEntityScanner uses 8192 byte buffers) and there is still enough content to read after the TEST elements such that another buffer read is required.

      Attachments

        Issue Links

          Activity

            People

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: