mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-15 10:33:14 +00:00
[PR #1815] [MERGED] fix(memory): Add null checks for unchecked memory allocations #2556
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/1815
Author: @cfsmp3
Created: 12/14/2025
Status: ✅ Merged
Merged: 12/14/2025
Merged by: @cfsmp3
Base:
master← Head:fix/unchecked-memory-allocations📝 Commits (1)
818c78efix(memory): Add null checks for unchecked memory allocations📊 Changes
10 files changed (+41 additions, -7 deletions)
View changed files
📝
src/lib_ccx/asf_functions.c(+4 -0)📝
src/lib_ccx/ccx_decoders_608.c(+2 -0)📝
src/lib_ccx/ccx_decoders_isdb.c(+5 -0)📝
src/lib_ccx/ccx_decoders_xds.c(+4 -0)📝
src/lib_ccx/ccx_dtvcc.c(+2 -2)📝
src/lib_ccx/ccx_encoders_webvtt.c(+4 -0)📝
src/lib_ccx/dvb_subtitle_decoder.c(+2 -2)📝
src/lib_ccx/general_loop.c(+8 -1)📝
src/lib_ccx/lib_ccx.c(+6 -2)📝
src/lib_ccx/mp4.c(+4 -0)📄 Description
Summary
general_loop.cthat caused a memory leakChanges
general_loop.clineandparsebuf; remove duplicate allocation that shadowed outerbytesvariable (memory leak)ccx_encoders_webvtt.ccolor_events/font_eventscallocccx_decoders_isdb.ctext->bufbefore dereferencedvb_subtitle_decoder.cmemset(was crashing on OOM before reaching check)mp4.cdec_sub->databeforememcpyccx_decoders_608.cccx_decoders_xds.casf_functions.cccx_dtvcc.clib_ccx.cpesheaderbufand DVB contextTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.