Skip to content

v0.1.3

Latest
Compare
Choose a tag to compare
@EBWi11 EBWi11 released this 21 Jul 01:38
Fix critical bugs in ring buffer implementation

- Fix WriteMsg logic: write message length before content to prevent corruption
- Fix boundary calculation errors in wrap-around scenarios
- Add proper read locking for concurrent safety
- Correct available space calculation algorithm
- Improve message size validation logic
- Add boundary checks for message length read/write positions
- Add comprehensive test suite with 5 new test cases:
  * Wrap-around functionality testing
  * Concurrent read/write operations
  * Boundary condition handling
  * Mixed message sizes
  * Persistence and reopening

All tests now pass, ensuring data integrity and thread safety.