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; }