未验证 提交 a392f310 编写于 作者: S Shengliang Guan 提交者: GitHub

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

[TD-4056]<fix>: fix possible char string buffer length overflow
...@@ -7,27 +7,19 @@ platform: ...@@ -7,27 +7,19 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: build
image: gcc
commands:
- apt-get update
- apt-get install -y cmake build-essential
- mkdir debug
- cd debug
- cmake ..
- make
when:
branch:
- develop
- master
- name: smoke_test - name: smoke_test
image: python:3.8 image: python:3.8
commands: commands:
- apt-get update
- apt-get install -y cmake build-essential gcc
- pip3 install psutil - pip3 install psutil
- pip3 install guppy3 - pip3 install guppy3
- pip3 install src/connector/python/linux/python3/ - pip3 install src/connector/python/linux/python3/
- cd tests - mkdir debug
- cd debug
- cmake ..
- make
- cd ../tests
- ./test-all.sh smoke - ./test-all.sh smoke
when: when:
branch: branch:
......
...@@ -171,7 +171,7 @@ typedef struct HttpThread { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册