From 73148353eb68ad9b5c7cf6302f0294414b64826d Mon Sep 17 00:00:00 2001 From: lax1dude Date: Sat, 9 Nov 2024 18:46:59 -0800 Subject: [PATCH] Fix corruption issue --- core/src/main/java/org/teavm/runtime/LaxMalloc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/runtime/LaxMalloc.java b/core/src/main/java/org/teavm/runtime/LaxMalloc.java index 483b5c512..2549ab32b 100644 --- a/core/src/main/java/org/teavm/runtime/LaxMalloc.java +++ b/core/src/main/java/org/teavm/runtime/LaxMalloc.java @@ -231,7 +231,7 @@ public final class LaxMalloc { allocateMemoryFromChunk(addrIterator, chunkSize, sizeBytes); // +4 bytes to skip size int - Address ret = chunkPtr.add(4); + Address ret = addrIterator.add(4); // clear if requested if (cleared) {