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

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6-pool, 7-pool, 8-pool
    • Fix Version/s: 9
    • Component/s: xml
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      6
    • Resolved In Build:
      b04
    • Verification:
      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

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

                Dates

                Created:
                Updated:
                Resolved: