plugin:buffer overflow

(cherry picked from commit 3e3a583d72)
This commit is contained in:
xiang.zhou
2024-11-05 08:43:47 +08:00
committed by vulgraph
parent ec00415177
commit 80caae1095
+1 -1
View File
@@ -40,7 +40,7 @@ void handle_add_plugin(nng_aio *aio)
header.ctx = aio;
header.type = NEU_REQ_ADD_PLUGIN;
strcpy(cmd.library, req->library);
strncpy(cmd.library, req->library, NEU_PLUGIN_LIBRARY_LEN);
ret = neu_plugin_op(plugin, header, &cmd);
if (ret != 0) {
NEU_JSON_RESPONSE_ERROR(NEU_ERR_IS_BUSY, {