From 17ddb4587ddce910fb3ccf9bc3a806e50c301f99 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 6 May 2021 14:36:40 +0800 Subject: [PATCH] [TD-4056]: fix possible char string buffer length overflow --- src/plugins/http/inc/httpInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/http/inc/httpInt.h b/src/plugins/http/inc/httpInt.h index 634468f3cc..0a5822b908 100644 --- a/src/plugins/http/inc/httpInt.h +++ b/src/plugins/http/inc/httpInt.h @@ -171,7 +171,7 @@ typedef struct HttpThread { EpollFd pollFd; int32_t numOfContexts; int32_t threadId; - char label[HTTP_LABEL_SIZE]; + char label[HTTP_LABEL_SIZE << 1]; bool (*processData)(HttpContext *pContext); } HttpThread;