Skip to content

Release: 1.0.6-YSM-2.6.5

Latest

Choose a tag to compare

@NguyenDevs NguyenDevs released this 30 May 04:22
· 2 commits to main since this release
3a2b520

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() — swapped null check before channel.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 — LengthFieldBasedFrameDecoder now 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 onServerConnected blocking event thread — handler now executes asynchronously via runAsync

High Priority Fixes

  • Netty ByteBuf leak in Backend — all buffers now properly released via try-with-resources
  • Orphaned callbacks — stale entries in VirtualPlayerManager.pendingCallbacks cleaned 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
  • M2WDispatchCommandMessage lambda parameter bug — fixed parameter naming and error handling
  • @Overwrite mixins — all 3 replaced with @Inject(cancellable=true) for mod compatibility
  • Worker Netty resources not shut down — added NettySocketClient.shutdown() on server stop
  • Waterfall CitizensPersistenceManager atomic write — now writes to temp file then atomically moves

Low Priority Fixes

  • volatile on static LOGGER_INST for thread safety
  • Renamed BuiltinMessageRegitres → BuiltinMessageRegistries (file + 3 references)
  • Upgraded trustAll log from INFO to WARN
  • Config files no longer stripped of comments on every startup
  • VirtualYsmPacketProxyImpl.processS2C/C2S returns ProxyComputeResult.ofPass() instead of null
  • Replace getHostName() with getHostString() to avoid reverse DNS lookup
  • Pass Component directly instead of toString() in command feedback.