mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-21 05:29:50 +00:00
[PR #1815] fix(memory): Add null checks for unchecked memory allocations #2559
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1815
State: closed
Merged: Yes
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