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 arch: amd64
steps: steps:
- name: build - name: smoke_test
image: gcc image: python:3.8
commands: commands:
- apt-get update - 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 - mkdir debug
- cd debug - cd debug
- cmake .. - cmake ..
- make - make
when: - cd ../tests
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
- ./test-all.sh smoke - ./test-all.sh smoke
when: when:
branch: branch:

View File

@ -171,7 +171,7 @@ typedef struct HttpThread {
EpollFd pollFd; EpollFd pollFd;
int32_t numOfContexts; int32_t numOfContexts;
int32_t threadId; int32_t threadId;
char label[HTTP_LABEL_SIZE]; char label[HTTP_LABEL_SIZE << 1];
bool (*processData)(HttpContext *pContext); bool (*processData)(HttpContext *pContext);
} HttpThread; } HttpThread;