mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #2000] [MERGED] prevent unsafe Vec::set_len causing heap corruption #2800
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/2000
Author: @THE-Amrit-mahto-05
Created: 1/8/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @cfsmp3
Base:
master← Head:fix/avc-safe-vec-resize📝 Commits (1)
6578f0ffix(avc): prevent unsafe Vec::set_len causing heap corruption📊 Changes
1 file changed (+3 additions, -5 deletions)
View changed files
📝
src/rust/src/avc/sei.rs(+3 -5)📄 Description
In raising this pull request, I confirm the following:
My familiarity with the project is as follows:
Summary
fixes an unsafe memory handling issue in
avc/sei.rswhereVec::set_lenwas used without ensuring sufficient capacity, which could lead to heap
corruption and undefined behavior.
Details
Vec::set_len+reservelogic with safeVec::resizeImpact
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.