Skip to content

D2VP Vanilla+QoL-0.0.8-R161

Choose a tag to compare

@VTSTech VTSTech released this 16 Nov 21:40
· 88 commits to main since this release
image image image image image

D2VP-QoL (Vanilla+QoL) Release Notes - R158 to R161

Version: Vanilla+QoL v0.0.8-R161
Release Date: November 16, 2026
Repository: https://github.com/VTSTech/D2VP-QoL


Summary

This release spans 4 development rounds (R159-R161) addressing critical security vulnerabilities, data integrity issues, and robustness problems identified in the comprehensive audit. The total impact includes:

  • 24 audit findings resolved
  • 2 High-severity vulnerabilities fixed (data corruption risks)
  • 14 Medium-severity issues resolved
  • 8 Low-severity improvements implemented
  • 9 findings in R159, 2 in R160, 13 in R161

Security Fixes (R159, R161)

🔒 Critical Security Improvements

R159 - Security Hardening:

  • DEV Control Channel Security: Binds loopback only (127.0.0.1:7777) instead of 0.0.0.0, preventing external network access to development commands
  • Remote Input Parsing: Added bounds checking for mon/watch commands to prevent unsafe remote input handling

R161 - Enhanced Security:

  • Path Assembly Safety: Eliminated buffer overflow risks in Redivivus boot path assembly with comprehensive bounds checking
  • Extended Input Guards: Added parsing guards and clamps for ai/walldir/objname/setclip commands
  • Deprecated Unsafe Commands: Retired sym command help stub to remove potential attack surface

Data Integrity & Robustness (R160)

🛡️ Critical Data Protection

R160 - Shared Stash Integrity:

  • Transient Read Failure Protection: Added validation to prevent permanent data loss when _d2vp_shared.sss becomes temporarily unavailable
  • Partial Materialization Recovery: Enhanced error handling to preserve existing state when page materialization fails
  • Automatic Recovery: System now defers operations and refuses saves until successful reads occur

Key Benefits:

  • Prevents permanent corruption of shared stash data
  • Maintains data integrity during file access issues
  • Provides automatic recovery without user intervention

Robustness Improvements (R159-R161)

🔧 Enhanced Error Handling & System Stability

R159:

  • Stash Header Accuracy: Removed claims of unimplemented dead/trading refusal features
  • Marker Balance: Fixed three unbalanced VP-BEGIN markers across the codebase
  • Documentation Update: CONTRIBUTING.md now references actual enforcement tools

R161:

  • INI Write Feedback: Comprehensive user feedback for settings save failures (sound + visual indicators)
  • Buffer Safety: Enhanced buffer bounds checking throughout crash logging and boot systems
  • Windows Profile Cache: Added documentation of cache limitations and improved ini handling
  • Self Check Relocation: VANILLAPLUS_SelfCheck now runs at boot time, not mid-game
  • Version Consistency: Dynamic version tag system prevents hardcoded version drift

Performance Optimizations (R161)

⚡ System Performance Improvements

  • Options Page Polling: Reduced from 16 individual polls per frame to 1 batch poll, eliminating draw stutter
  • Timer Resolution Documentation: Clear documentation of timeBeginPeriod(1) behavior and system-wide impacts
  • Enhanced Caching: Improved ini polling efficiency when Options page is open

New Features & User Experience (R161)

✨ Enhanced User Interface

  • Restart Settings Indicators: Visual red-row highlighting for settings requiring application restart
  • Settings Save Feedback: Distinct sound and visual feedback when settings fail to save
  • INI Template Enhancement: Added [ui] label_font section with REQUIRES RESTART markers

Code Quality & Maintainability (R159-R161)

🧹 Codebase Improvements

R159:

  • Dead Code Removal: Eliminated unused macros and if (0) statements
  • Documentation Cleanup: Fixed stale comments about clock formats, options geometry, and build systems

R161:

  • Memory Safety: Automated verification of Redivivus boot pattern memory safety
  • Code Organization: Conditional compilation for diagnostic functions (~250 lines)
  • Feature Coordination: Enhanced documentation of the 4-coordinated-edit pattern for adding features
  • Static Assertions: Compile-time tripwires tying resolution-ladder constants together

Testing & Quality Assurance (R161)

🧪 Enhanced Testing Framework

  • Mock Verification: Implemented automated memory safety checks for critical boot patterns
  • Gate Suite Revival: Revived reduced testing suite (docs_gate + marker census + LF check)
  • Marker Hygiene: Automated validation of VP marker consistency across git-changed files

Architecture Improvements (R159)

🏗️ System Architecture Enhancements

  • Pattern Standardization: Unified 2-second ini-gate pattern across module boundaries
  • GlobeTextPersistent Fix: Corrected first-poll guard drift for consistent behavior
  • Consistency: Enhanced code consistency and maintainability across modules

Technical Details

Files Modified

  • Redivivus/d2_boot.cpp - Security hardening, bounds checking
  • Redivivus/d2_control.cpp - Security improvements, dead code cleanup
  • Source/D2Game/PLAYER/VanillaPlusStash.cpp - Data integrity fixes
  • Source/D2Client/UI/VanillaPlusCore.cpp - Error handling, feedback systems
  • Source/D2Client/UI/VanillaPlusOptions.cpp - UI improvements, polling optimization
  • tools/check-vanilla-plus.sh - Testing suite revival

VP Markers Applied

  • All fixes include proper // VP-BEGIN/// VP-END markers for upstream compatibility
  • Total markers: 149 BEGIN/149 END (maintained balance)

User Impact

✅ Benefits for Users

  • Enhanced Security: Development build now properly secured from external network access
  • Data Safety: Shared stash data protected from corruption during file access issues
  • Better Feedback: Clear indicators when settings save fails
  • Improved Performance: Smoother Options page experience
  • Visual Cues: Clear indication of settings requiring restart

⚠️ Important Notes

  • Windows profile cache may interfere with external ini editing (documented in README)
  • Some error recovery features may temporarily restrict game operations until successful recovery

Backward Compatibility

This release maintains full backward compatibility with existing Vanilla+QoL functionality. All existing features continue to work as expected, with enhanced safety and reliability.


Known Issues & Future Work

Deferred Findings (from AUDIT-FIXES.md):

  • ROB-03: Ownership epoch tracking for stash pointers (needs SGAMEDATA access)
  • MAINT-03: Mirror code deduplication across module boundaries
  • ARCH-02: Server-side page echo for non-SP scenarios
  • FEAT-01: Session journal feature (requires dedicated development cycle)

Next Development Round (R162):

  • Address ROB-03 ownership epoch tracking
  • Implement TEST-02 stash serialization harness
  • Work on MAINT-03 mirror code consolidation

Thank you for your continued support and feedback on Vanilla+QoL! This release represents our commitment to security, data integrity, and user experience improvements.