Repository navigation
fix(lib): reject blocks with trailing bytes in RLE sections - #511
Conversation
Ensure strict validation of RLE literal sections by verifying that both the read and write pointers reach their respective expected ends. This prevents potential issues where malformed data containing trailing bytes could be improperly accepted by the decoder. Includes a new test case to verify that such forged blocks are correctly rejected. Signed-off-by: Bertrand Lebonnois <5901952+hellobertrand@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Ensure strict validation of RLE literal sections by verifying that both the read and write pointers reach their respective expected ends. This prevents potential issues where malformed data containing trailing bytes could be improperly accepted by the decoder.
Includes a new test case to verify that such forged blocks are correctly rejected.
Signed-off-by: Bertrand Lebonnois 5901952+hellobertrand@users.noreply.github.com
Summary by CodeRabbit