From d8b595ff2b5926aa6209d166ca087d9a11355106 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Mon, 15 May 2023 16:38:56 +0800 Subject: TSG-15014: 使用错误的bridge id获取异步存储空间,导致内存被覆写 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_rule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tsg_rule.cpp') diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index cb17006..7759912 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -2800,7 +2800,7 @@ size_t tsg_scan_nesting_addr(const struct streaminfo *a_stream, struct maat *fea return 0; } - struct session_runtime_attribute *srt_attribute=(struct session_runtime_attribute *)session_runtime_attribute_get(a_stream); + struct session_runtime_attribute *srt_attribute=(struct session_runtime_attribute *)session_runtime_attribute_new(a_stream); srt_attribute_set_ip_asn(a_stream, feather, &(srt_attribute->client_asn), &(srt_attribute->server_asn)); srt_attribute_set_ip_location(a_stream, feather, &(srt_attribute->client_location), &(srt_attribute->server_location)); -- cgit v1.2.3