From a366f0eafc3fa347fff75fb00f124e2f7b9ff712 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 8 Mar 2019 18:05:47 +0100 Subject: [PATCH] Fix size alignment --- src/main/java/rpx/RPXFileSystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/rpx/RPXFileSystem.java b/src/main/java/rpx/RPXFileSystem.java index a1b5061..3758d6a 100644 --- a/src/main/java/rpx/RPXFileSystem.java +++ b/src/main/java/rpx/RPXFileSystem.java @@ -138,7 +138,8 @@ public class RPXFileSystem implements GFileSystem { inflater.end(); - curSize = section_size_inflated & ~0x3; + // Is this alignment really necessary? + curSize = (section_size_inflated + 0x03) & ~0x3; flags &= ~SHF_RPL_ZLIB; data = decompressed; }