Merge pull request #6011 from taosdata/fix/TD-4056

[TD-4056]<fix>: fix possible char string buffer length overflow
This commit is contained in:
Shengliang Guan 2021-05-06 20:29:36 +08:00 committed by GitHub
commit a392f3104a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 16 deletions

View File

@ -7,27 +7,19 @@ platform:
arch: amd64
steps:
- name: build
image: gcc
- name: smoke_test
image: python:3.8
commands:
- apt-get update
- apt-get install -y cmake build-essential
- apt-get install -y cmake build-essential gcc
- pip3 install psutil
- pip3 install guppy3
- pip3 install src/connector/python/linux/python3/
- mkdir debug
- cd debug
- cmake ..
- make
when:
branch:
- develop
- master
- name: smoke_test
image: python:3.8
commands:
- pip3 install psutil
- pip3 install guppy3
- pip3 install src/connector/python/linux/python3/
- cd tests
- cd ../tests
- ./test-all.sh smoke
when:
branch:

View File

@ -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;