https://bz.apache.org/bugzilla/show_bug.cgi?id=59564

Violeta Georgieva <violet...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from Violeta Georgieva <violet...@apache.org> ---
Hi,

I was able to reproduce this issue.

I think that we should invoke 'data.arrayOffset() + data.position()' when we
fill the data:


Index: Http2Parser.java
===================================================================
--- Http2Parser.java    (revision 1745545)
+++ Http2Parser.java    (working copy)
@@ -561,7 +561,7 @@
         }

         default boolean fill(boolean block, ByteBuffer data, int len) throws
IOException {
-            boolean result = fill(block, data.array(), data.arrayOffset(),
len);
+            boolean result = fill(block, data.array(), data.arrayOffset() +
data.position(), len);
             if (result) {
                 data.position(data.position() + len);
             }

What do you think?

Regards,
Violeta

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to