fix: bound pagination and guard password file reads#61
fix: bound pagination and guard password file reads#61merlinsantiago982-cmd wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds two client-side safety mechanisms: ChangesPagination Safety Guards
Password-File Validation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
--password-filereads with stat-first validation, regular-file checks, and a 64 KiB size capWhy
A malicious or broken server could keep returning non-null cursors indefinitely, causing the CLI to loop and grow memory.
--password-filealso read arbitrary paths without checking the target type or size before sending the content as the project password.Testing
Fixes #58
Summary by CodeRabbit
New Features
Bug Fixes