Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+17 more

    Repair Multipart Boundary Bugs

    1

    Repair multipart parser and encoder bugs involving quoted boundaries, split delimiters, CRLF framing, nested parts, filename parameters, size limits, premature EOF, and cleanup.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Our Rust multipart parser misses a closing boundary when it is split across three reads and occasionally truncates binary data containing a boundary prefix. Repair with generated byte fixtures and every chunk split. Preserve limits, filename sanitation, accepted syntax, temp-file cleanup, and error types.

    Your agent does

    Streaming delimiter defect found. The parser discards an incomplete boundary prefix at buffer rollover and accepts prefix matches without verifying legal CRLF/closing suffixes. The repair retains the minimal overlap window, validates full delimiter framing, preserves every size/header/filename rule, and exhaustively tests all chunk splits, binary near-matches, premature EOF, cancellation, and single-owner temporary-file cleanup.

    What you get

    Resolve part truncation caused by boundary collisions in binary payloads.Implement deterministic chunk-split testing for streaming uploads.Fix temporary file leaks following malformed multipart requests.Repair quoted boundary and CRLF framing logic in MIME parsers.

    About this skill

    The problem

    Large file uploads fail intermittently when boundaries are split across streaming chunks or when binary data mimics boundary prefixes. These bugs often lead to truncated files, unhandled temporary file leaks, and hard-to-reproduce parsing errors in production.

    What it does

    • Identifies state machine failures in multipart/form-data and MIME parsing logic.
    • Repairs boundary overlap handling and CRLF framing to prevent premature part truncation.
    • Implements deterministic chunk-split test matrices to verify streaming stability.
    • Fixes resource lifecycle management to ensure temporary files are cleaned up after cancellation or malformed input.
    • Corrects handling of quoted boundary parameters and nested parts without weakening validation policy.

    Frameworks & tools

    Works with repository-level streaming parsers, HTTP servers, and MIME encoders. Compatible with languages using local file systems and standard networking libraries.

    Why this beats prompting it yourself

    Parsing multipart streams is notoriously edge-case heavy, especially when boundaries split across byte buffers. This skill enforces a rigorous state machine audit and ownership register, ensuring you don't just fix one symptom while leaving resource leaks or concurrency race conditions behind.

    Use cases

    • Fixing uploads that crash only at specific chunk sizes or network speeds.
    • Preventing binary payloads from being misinterpreted as closing delimiters.
    • Auditing multipart parsers for quoted boundary and preamble compliance.
    • Automating the cleanup of orphaned temp files during failed streaming transfers.

    Known limitations

    This skill cannot fix issues requiring production service access or live secret rotation. It does not replace correctness with increased timeouts or catch-all error suppression.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    • One-time purchase, yours forever

    Listedtoday

    Frequently Asked Questions