sw_engine mempool: fixed to address a potential memory corruption issue. 51/292351/1
authorHermet Park <hermetpark@gmail.com>
Mon, 24 Apr 2023 08:18:32 +0000 (17:18 +0900)
committerPatryk Kaczmarek <patryk.k@partner.samsung.com>
Thu, 4 May 2023 09:24:56 +0000 (11:24 +0200)
commitaf8eb1c477011c2408e0fc95aceaab7f652ab2af
tree9bc5586b07a261db1e088bc05ed153cbf9e6505a
parentde2b90e18e8fb5aecc67af2e8be7326151c27298
sw_engine mempool: fixed to address a potential memory corruption issue.

The previous memory pool was being shared by both the main and first threads,
which could lead to corruption if any threading changes occurred.

@Issue: https://github.com/thorvg/thorvg/issues/1370

Change-Id: I1bfb6948eb3bfe3d222f5955f877a7c9ad4f4f78
src/lib/sw_engine/tvgSwMemPool.cpp
src/lib/tvgTaskScheduler.cpp