Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2112

AbstractMultipartFormat uses ByteBuffer.array without arrayOffset

    XMLWordPrintableJSON

Details

    Description

      The offset of charset.encode results are unlikely to use a nonzero offset (or non-heap) however we should check the offset to be safe.

      I may file an issue on httpcomponents-core to add a ByteArrayBuffer.append(ByteBuffer) method to avoid this complexity at call sites.

      Attachments

        Activity

          People

            ckozak Carter Kozak
            ckozak Carter Kozak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m