Skip to content

multidict C Extension Analysis Report #1306

Closed

Description

@devdanzin

I ran a code analysis tool I'm developing on multidict and it generated an interesting report: https://gist.github.com/devdanzin/a36588ae7e2b73f0d85f8a925fb13b3d. It contains issue descriptions, suggested fixes, and reproducers for some of the issues.

From the summary:

The most critical finding is a double-free/use-after-free in md_contains and a crash from swapped format string arguments in _err_cannot_fetch. The iterator and view types are also missing the heap type lifecycle management (Py_VISIT(Py_TYPE(self))) that the main dict types correctly implement.

I hope it helps.

Activity

  1. Vizonex commented on Mar 24, 2026

    @Vizonex
    Member

    Interesting report I've labeled this issue as something that can be worked with because there is a reproducer that is in fact present.

  2. self-assigned this
    on Mar 28, 2026
  3. Vizonex commented on Mar 28, 2026

    @Vizonex
    Member

    I figured out that _err_cannot_fetch is in fact crashable so I will be looking into a fix soon.

  4. asvetlov commented on Sep 22, 2026

    @asvetlov
    Member

    All issues are addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugreproducer: present

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions