trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 7.1.x updated: Fixes padding byte being part of the POST/PUT data
Date Tue, 18 Apr 2017 16:40:02 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/7.1.x by this push:
       new  2b1ad8e   Fixes padding byte being part of the POST/PUT data
2b1ad8e is described below

commit 2b1ad8e272ce9dc4ab20fd9d47e767394031caa5
Author: Leif Hedstrom <zwoop@apache.org>
AuthorDate: Tue Apr 18 08:00:17 2017 -0600

    Fixes padding byte being part of the POST/PUT data
    
    (cherry picked from commit ef1daa6446dcc62eaeffa475498af41ef559398d)
---
 proxy/http2/Http2ConnectionState.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 6c7d35b..5954021 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -102,7 +102,7 @@ rcv_data_frame(Http2ConnectionState &cstate, const Http2Frame &frame)
   }
 
   if (frame.header().flags & HTTP2_FLAGS_DATA_PADDED) {
-    frame.reader()->memcpy(&pad_length, HTTP2_DATA_PADLEN_LEN, nbytes);
+    frame.reader()->read(&pad_length, HTTP2_DATA_PADLEN_LEN);
     nbytes += HTTP2_DATA_PADLEN_LEN;
     if (pad_length > payload_length) {
       // If the length of the padding is the length of the

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message