Repository navigation
fix(autoresearch): validate buffer sizes in fl_parlio_measure (meta #2580 C1) - #2585
Conversation
fl_parlio_measure ignored scratch_size/output_size (cast to void) but the inner loop indexes scratch[lane*768+offset] and output[offset*16*sizeof(Wave8Byte)+127]. An undersized buffer silently corrupted memory. Add an early-return + FL_WARN with the required sizes; drop the (void) casts. Addresses CodeRabbit finding C1 from meta #2580 (originally #2547).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesParlio Measurement Buffer Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
fl_parlio_measureignored itsscratch_size/output_sizeparameters ((void)-cast) but the inner loop indexesscratch[lane*768+offset](requires 16*768 bytes) andoutput[offset*16*sizeof(Wave8Byte)+127]. An undersized buffer silently corrupted memory.Adds an early-return +
FL_WARN(or equivalent) with the required sizes; drops the(void)casts.Addresses meta-issue #2580 finding C1 (originally CodeRabbit on #2547 — #2547 (review)).
Test plan
bash lintSummary by CodeRabbit