mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #2057] [MERGED] fix: prevent heap overflow in parse_PAT/parse_PMT and null deref in processmp4 #2864
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/2057
Author: @cfsmp3
Created: 1/24/2026
Status: ✅ Merged
Merged: 1/24/2026
Merged by: @cfsmp3
Base:
master← Head:fix/heap-overflow-and-null-pointer-2053-2054-2055📝 Commits (3)
fd7271bfix: prevent heap overflow in parse_PAT/parse_PMT and null deref in processmp45c19c7bstyle: fix Rust formatting in parser.rs testd0a8244fix(rust): resolve clippy unnecessary_unwrap warnings for Rust 1.93📊 Changes
5 files changed (+53 additions, -26 deletions)
View changed files
📝
src/lib_ccx/mp4.c(+5 -0)📝
src/lib_ccx/ts_tables.c(+24 -2)📝
src/rust/src/common.rs(+12 -19)📝
src/rust/src/file_functions/file.rs(+8 -4)📝
src/rust/src/parser.rs(+4 -1)📄 Description
Summary
payload_length >= 8before accessing header fields (fixes #2053)ES_info_lengthvalidation and 2-byte minimum check before readingdescriptor_taganddesc_leninPRIVATE_USER_MPEG2and teletext parsing loops (fixes #2054)fileparameter before passing tomprint(fixes #2055)These are security fixes for heap-buffer-overflow and null pointer dereference vulnerabilities reported by @oneafter.
Test plan
Fixes #2053, #2054, #2055
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.