Fixed memory out-of-bound issue

Added extra check for fixing #366
This commit is contained in:
Luca
2017-08-29 19:56:32 +02:00
parent a1367a9d39
commit 299b9435d0
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -961,7 +961,7 @@ struct ndpi_flow_struct {
char *url, *content_type;
u_int8_t num_request_headers, num_response_headers;
u_int8_t request_version; /* 0=1.0 and 1=1.1. Create an enum for this? */
u_char response_status_code[4]; /* 200, 404, etc. */
u_char response_status_code[5]; /* 200, 404, etc. */
} http;
union {