summaryrefslogtreecommitdiff
path: root/src/HTTP_Analyze.c
diff options
context:
space:
mode:
authorlishu <[email protected]>2019-01-28 18:22:58 +0800
committerlishu <[email protected]>2019-01-28 18:22:58 +0800
commitd46db5643ed4981ae03f42689deb1ba1390f3e60 (patch)
tree5076da6aad2e57d27ad5f906187ce72695106c9f /src/HTTP_Analyze.c
parent45ff1450cd33ecb44f1787fab4fa878cc3cd8c9b (diff)
1. 支持 Content-Range: bytes -154100106/154100107的解析
2. bug修复:http_doWithGzipData 3. 增加assert(session_info.buflen>=0);
Diffstat (limited to 'src/HTTP_Analyze.c')
-rw-r--r--src/HTTP_Analyze.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/HTTP_Analyze.c b/src/HTTP_Analyze.c
index 001ce48..60ac353 100644
--- a/src/HTTP_Analyze.c
+++ b/src/HTTP_Analyze.c
@@ -25,7 +25,7 @@
http_prog_runtime_parameter_t g_http_prog_para;
int G_HTTP_H_VERSION_3_20150320 = 0;
-int G_HTTP_VERSION_4_20190111 = 0;
+int G_HTTP_VERSION_4_20190128 = 0;
void history()
{
//2014-12-09 V3.0 new documentAnalyze lib ; http.h add and delete ;
@@ -100,6 +100,7 @@ void history()
//2018-11-13 V4.0 //special http pkt, proc span
//2019-01-05 V4.0 //special http packet, get_span_space.pcap
//2019-01-11 V4.0 //is_absolute_uri
+ //2019-01-28 V4.0 //1. support Content-Range: bytes -154100106/154100107 2. bug:http_doWithGzipData 3. assert(session_info.buflen>=0);
}
/*
@@ -183,7 +184,8 @@ void http_callPluginField(http_parser_t* cur_http_node,struct streaminfo *a_tcp,
session_info._pad_ = 0;
session_info.app_info = (void*)(&(cur_http_node->parser));
session_info.buf = (void*)(cur_http_node->session.buf);
- session_info.buflen = cur_http_node->session.buflen;
+ session_info.buflen = cur_http_node->session.buflen;
+ assert(session_info.buflen>=0);
cur_http_node->business.return_value = PROT_PROCESS(&session_info,
&(cur_http_node->business.param),
thread_seq,a_tcp, a_packet);