Commit 932408b6 by 李定达

1.修复indata访问越界

parent 8c95cb60
No preview for this file type
...@@ -660,7 +660,10 @@ __declspec(dllexport) int _stdcall GetValue(char *indata, char *outdata) ...@@ -660,7 +660,10 @@ __declspec(dllexport) int _stdcall GetValue(char *indata, char *outdata)
LOG() << "get json from pos :" << indata ; LOG() << "get json from pos :" << indata ;
string tmpin(indata, MAX_BUF_LEN); char buf[MAX_BUF_LEN] = { 0 };
strcpy_s(buf, strlen(indata) + 1, indata);
string tmpin(buf, MAX_BUF_LEN);
string in; string in;
int needrbk = 0; int needrbk = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment