Fix multipart base64 edge cases - #13509
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #13509 +/- ##
==========================================
+ Coverage 99.01% 99.02% +0.01%
==========================================
Files 132 133 +1
Lines 49813 49924 +111
Branches 2587 2594 +7
==========================================
+ Hits 49323 49439 +116
+ Misses 368 366 -2
+ Partials 122 119 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported boundary-prefix consumption path was removed because base64 alignment no longer reads supplemental bytes from the underlying stream. Reviews (4): Last reviewed commit: "Fix" | Re-trigger Greptile |
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
|
@aiolibsbot review |
Reviewed against PR head 8dc7772, measured in a worktree. Two blockers.
Credit where due: master raises |
|
|
|
@aiolibsbot review |
|
|
|
@aiolibsbot review |
PR Review — Fix multipart base64 edge casesThe unbounded-memory finding from last round is genuinely fixed and the underlying bug fix is substantial — one blocking item remains untouched: a confirmed Verified on the current head Fixed since last round. The one-line change
Flat, and max chunk The fix is worth more than the changelog says. A fuzz over 3 boundary lengths x 9 payload sizes x 4 wrapping shapes x 7 chunk sizes x both length/boundary paths: 141 failures on Pushing back on greptile's P1 ( Test quality is good.
🟡 Important
1. `cut == 0` fallback still regresses `read_chunk(5|6)` vs master, and two pre-existing tests were edited to absorb it
|
Backport to 3.15: 💚 backport PR created✅ Backport PR branch: Backported as #13512 🤖 @patchback |
Backport to 3.14: 💚 backport PR created✅ Backport PR branch: Backported as #13513 🤖 @patchback |
No description provided.