diff options
author | kobalicek <kobalicek.petr@gmail.com> | 2020-12-26 22:12:14 +0300 |
---|---|---|
committer | kobalicek <kobalicek.petr@gmail.com> | 2020-12-26 22:12:14 +0300 |
commit | 173f09df352ed205867d3a3b8b40e816c2304373 (patch) | |
tree | 1173a0d90a5ea04ee26e75bfc14f29619bd3a49d | |
parent | c165c00271e9f008900eae70423113b12c625706 (diff) |
[Bug] Fixed invalid fill in JitAllocator::shrink() when kOptionFillUnusedMemory is in use by JitAllocator (Critical)
-rw-r--r-- | src/asmjit/core/jitallocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asmjit/core/jitallocator.cpp b/src/asmjit/core/jitallocator.cpp index 340c440..952164e 100644 --- a/src/asmjit/core/jitallocator.cpp +++ b/src/asmjit/core/jitallocator.cpp @@ -873,7 +873,7 @@ Error JitAllocator::shrink(void* ro, size_t newSize) noexcept { // Fill released memory if the secure mode is enabled. if (impl->options & kOptionFillUnusedMemory) JitAllocatorImpl_fillPattern( - block->rwPtr() + (areaIndex + areaOldSize) * pool->granularity, + block->rwPtr() + (areaIndex + areaNewSize) * pool->granularity, fillPattern(), areaDiff * pool->granularity); |