Skip to content

Add advisory for stainless_ffmpeg FormatContext stream_index unsoundness#2987

Open
sisy2020 wants to merge 1 commit into
rustsec:mainfrom
sisy2020:add-stainless-ffmpeg-formatcontext-advisory
Open

Add advisory for stainless_ffmpeg FormatContext stream_index unsoundness#2987
sisy2020 wants to merge 1 commit into
rustsec:mainfrom
sisy2020:add-stainless-ffmpeg-formatcontext-advisory

Conversation

@sisy2020

Copy link
Copy Markdown
Contributor

Affected crate(s)

  • stainless_ffmpeg (634 recent downloads per crates.io)

Links to upstream issue(s) or PR(s)

Severity

This advisory classifies the issue as informational unsound. Affected versions exposed safe public FormatContext methods that accepted a stream_index parameter and used it in unsafe pointer operations without checking whether the index was valid. Safe callers could pass a negative or out-of-bounds stream_index, which could trigger undefined behavior without using unsafe.

The issue was fixed upstream in 0.6.0 by marking the affected methods as unsafe and documenting the caller's safety requirement.

Checklist

  • Advisory filename(s) starts with RUSTSEC-0000-0000 as the ID
  • date field is set to the public disclosure date
  • Contains a concise and descriptive title after advisory metadata
  • Asked maintainer(s) if publishing an advisory is appropriate

@djc

djc commented Jun 22, 2026

Copy link
Copy Markdown
Member

Waiting for maintainer confirmation.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants