You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2019/01/22 17:52:48 UTC
[trafficserver] branch master updated: Fixes heap-use-after-free in
RangeTransform
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new fb3eb69 Fixes heap-use-after-free in RangeTransform
fb3eb69 is described below
commit fb3eb6913471c0915716c658335b1bdf3b155cba
Author: scw00 <sc...@apache.org>
AuthorDate: Mon Jan 21 20:15:32 2019 +0800
Fixes heap-use-after-free in RangeTransform
---
proxy/Transform.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/proxy/Transform.cc b/proxy/Transform.cc
index 516f8e9..37129d0 100644
--- a/proxy/Transform.cc
+++ b/proxy/Transform.cc
@@ -782,7 +782,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 {