Repository navigation
Changelog
v1.0.6 — Security & Stability Audit
This release fixes 21 issues identified in a full project audit, ranging from critical thread-safety bugs to low-priority cleanup — all 6 modules affected.
Critical Fixes
- Null check order in
NettyServerChannelHandlerLayer.sendMessage()— swappednullcheck beforechannel.isOpen()to prevent NPE on first invocation - Platform-dependent charset in
W2MWorkerInfoMessage— enforced UTF-8 encoding to prevent data corruption on mixed OS deployments - Infinite max frame size —
LengthFieldBasedFrameDecodernow bounded to 16MB to prevent OOM from oversized frames - Blocking spin-wait in
MapperSessionProcessor.waitForDisconnected()— added 10s timeout + backoff to prevent event-thread stalls - No shutdown handlers in proxy modules — resources (Netty, tasks, listeners) now properly cleaned up on proxy disable/reload
- Waterfall
onServerConnectedblocking event thread — handler now executes asynchronously viarunAsync
High Priority Fixes
- Netty
ByteBufleak in Backend — all buffers now properly released via try-with-resources - Orphaned callbacks — stale entries in
VirtualPlayerManager.pendingCallbackscleaned up after 10s timeout - Unbounded Guava cache — player data cache limited to 1000 entries
- Unlimited NBT heap — deserialization limited to 1MB via
NbtAccounter.create(1048576L) - Blocking
CompletableFuture.join()on entity load — added 10s timeout Bukkit.getOnlinePlayers()from I/O thread — replaced with cached player reference for thread safety
Medium Priority Fixes
- Unbounded
packetFlushQueue— capped at 1024 pending messages M2WDispatchCommandMessagelambda parameter bug — fixed parameter naming and error handling@Overwritemixins — all 3 replaced with@Inject(cancellable=true)for mod compatibility- Worker Netty resources not shut down — added
NettySocketClient.shutdown()on server stop - Waterfall
CitizensPersistenceManageratomic write — now writes to temp file then atomically moves
Low Priority Fixes
volatileon staticLOGGER_INSTfor thread safety- Renamed
BuiltinMessageRegitres→BuiltinMessageRegistries(file + 3 references) - Upgraded
trustAlllog fromINFOtoWARN - Config files no longer stripped of comments on every startup
VirtualYsmPacketProxyImpl.processS2C/C2SreturnsProxyComputeResult.ofPass()instead ofnull- Replace
getHostName()withgetHostString()to avoid reverse DNS lookup - Pass Component directly instead of
toString()in command feedback.