mirror of
https://github.com/gosticks/openpose.git
synced 2026-08-16 14:20:26 +00:00
fix array index out of bounds (#26)
This commit is contained in:
@@ -464,7 +464,7 @@ namespace op
|
||||
maxQueueId = fastMax(maxQueueId, fastMax(std::get<2>(threadWorkerQueue), std::get<3>(threadWorkerQueue)));
|
||||
|
||||
// Check each queue id has at least a worker that uses it as input and another one as output. Special cases:
|
||||
std::vector<std::pair<bool, bool>> usedQueueIds(maxQueueId, {false, false});
|
||||
std::vector<std::pair<bool, bool>> usedQueueIds(maxQueueId + 1, {false, false});
|
||||
for (const auto& threadWorkerQueue : mThreadWorkerQueues)
|
||||
{
|
||||
usedQueueIds[std::get<2>(threadWorkerQueue)].first = true;
|
||||
|
||||
Reference in New Issue
Block a user