Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1469

UndertowOutputStream.resetBuffer leaks a ByteBuffer resulting in incorrect data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.17.Final
    • None
    • None
    • None

      resetBuffer resets only the pooled buffer, not the ByteBuffer from the pooled buffer. After invoking resetBuffer, the buffer itself may be clobbered, and writes to the stream will produce unexpected data.
      Without other components checking out the same buffer, the stream still fails because the buffer itself isn't reset and contents are still written to the stream.

              flaviarnn Flavia Rainone
              carterkozak Carter Kozak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: