收到特别拼装的URL时(比如进行漏洞扫描),可能导致web服务崩溃。

feature/assist-websocket
Apex Liu 2022-09-24 00:33:45 +08:00
parent 4ac515dc1b
commit c8b4189936
1 changed files with 5 additions and 5 deletions

View File

@ -574,19 +574,19 @@ PyObject* _py_log_output(PyObject* self, PyObject* args)
switch (level)
{
case EX_LOG_LEVEL_DEBUG:
ex_printf_d(tmp.c_str());
ex_printf_d(L"%ls", tmp.c_str());
break;
case EX_LOG_LEVEL_VERBOSE:
ex_printf_v(tmp.c_str());
ex_printf_v(L"%ls", tmp.c_str());
break;
case EX_LOG_LEVEL_INFO:
ex_printf_i(tmp.c_str());
ex_printf_i(L"%ls", tmp.c_str());
break;
case EX_LOG_LEVEL_WARN:
ex_printf_w(tmp.c_str());
ex_printf_w(L"%ls", tmp.c_str());
break;
case EX_LOG_LEVEL_ERROR:
ex_printf_e(tmp.c_str());
ex_printf_e(L"%ls", tmp.c_str());
break;
default:
PYLIB_RETURN_FALSE;