aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-01-24 19:50:38 +0100
committerLuca Deri <deri@ntop.org>2020-01-24 19:50:38 +0100
commit87d228f78e6d6515fe080e818881f2bc5adf044c (patch)
treef97ab137f8360ebfb923c3514a58143389f688a7
parenta7a4bf32d3a78604a9e958eb9c37cd2bfa3d8563 (diff)
Fixed heap-buffer-overflow in citrix decoder
-rw-r--r--src/lib/protocols/citrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/citrix.c b/src/lib/protocols/citrix.c
index a05d748ca..65852da7f 100644
--- a/src/lib/protocols/citrix.c
+++ b/src/lib/protocols/citrix.c
@@ -51,7 +51,7 @@ static void ndpi_check_citrix(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_CITRIX, NDPI_PROTOCOL_UNKNOWN);
}
return;
- } else if(payload_len > 4) {
+ } else if(payload_len > 22) {
char citrix_header[] = { 0x1a, 0x43, 0x47, 0x50, 0x2f, 0x30, 0x31 };
if((memcmp(packet->payload, citrix_header, sizeof(citrix_header)) == 0)