Merge pull request #6011 from taosdata/fix/TD-4056
[TD-4056]<fix>: fix possible char string buffer length overflow
This commit is contained in:
commit
a392f3104a
22
.drone.yml
22
.drone.yml
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue