mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
[Bug] Fixed invalid fill in JitAllocator::shrink() when kOptionFillUnusedMemory is in use by JitAllocator (Critical)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user