bbox task uaf fix

Signed-off-by: linyu <yulin24@huawei.com>
This commit is contained in:
linyu 2024-10-18 16:40:49 +08:00
parent 9b90f3b15b
commit f9b2e7c4db

View File

@ -54,7 +54,7 @@ public:
static void RegistCb(TaskAllocCB<CPUEUTask>::Alloc &&alloc, TaskAllocCB<CPUEUTask>::Free &&free,
TaskAllocCB<CPUEUTask>::GetUnfreedMem &&getUnfreedMem = nullptr,
TaskAllocCB<CPUEUTask>::LockMem &&getUnfreedMem = nullptr,
TaskAllocCB<CPUEUTask>::LockMem &&lockMem = nullptr,
TaskAllocCB<CPUEUTask>::UnlockMem &&unlockMem = nullptr)
{
Instance().alloc_ = std::move(alloc);