You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2020/08/27 16:21:00 UTC
[jira] [Commented] (HTTPCLIENT-2112) AbstractMultipartFormat uses
ByteBuffer.array without arrayOffset
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17185949#comment-17185949 ]
Carter Kozak commented on HTTPCLIENT-2112:
------------------------------------------
[https://github.com/apache/httpcomponents-client/pull/253]
> AbstractMultipartFormat uses ByteBuffer.array without arrayOffset
> -----------------------------------------------------------------
>
> Key: HTTPCLIENT-2112
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2112
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (async), HttpClient (classic)
> Reporter: Carter Kozak
> Assignee: Carter Kozak
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org