This is an automated email from the ASF dual-hosted git repository.

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

commit 063c4df37a5f325eb40d2c9bdffd675ae1753e4f
Author: scw00 <[email protected]>
AuthorDate: Mon Jan 21 20:15:32 2019 +0800

    Fixes heap-use-after-free in RangeTransform
    
    (cherry picked from commit fb3eb6913471c0915716c658335b1bdf3b155cba)
---
 proxy/Transform.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/proxy/Transform.cc b/proxy/Transform.cc
index d45d2df..9b7cb7f 100644
--- a/proxy/Transform.cc
+++ b/proxy/Transform.cc
@@ -788,7 +788,11 @@ RangeTransform::handle_event(int event, void *edata)
 
   if (m_closed) {
     if (m_deletable) {
-      Debug("http_trans", "RangeTransform destroy: %p ndone=%" PRId64, this, 
m_output_vio ? m_output_vio->ndone : 0);
+      if (m_output_vc != nullptr) {
+        Debug("http_trans", "RangeTransform destroy: %p ndone=%" PRId64, this, 
m_output_vio ? m_output_vio->ndone : 0);
+      } else {
+        Debug("http_trans", "RangeTransform destroy");
+      }
       delete this;
     }
   } else {

Reply via email to