mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 13:35:43 +00:00
[BUG] Seg fault in new 0.94 version... #702
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?
Originally created by @magauthority on GitHub (Apr 5, 2022).
Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].
CCExtractor version: {0.94}
Necessary information
{ccextractor -out=srt -bom -utf8 --nofontcolor}Video links download video from here:
Additional information
CCextractor seg faults when trying to extract the closed captions from above file. I have a program that scans all new recordings coming into my machine, and extracts the EIA subs if present into srt files. Most of the time it works perfectly, but a very few files seg fault. I've been able to replicate this behavior with the file in v 0.85 and 0.94 also as an .mkv file and switching it to an .mp4 makes no difference.
@cfsmp3 commented on GitHub (Dec 14, 2025):
@magauthority Can you make the file available again?
@magauthority commented on GitHub (Dec 14, 2025):
Yup, here's the file:
http://cctestfiledata.s3.amazonaws.com/Test%20File%20-%20S03E15%20-%20Wick%27ed.mp4
@cfsmp3 commented on GitHub (Dec 14, 2025):
Issue Resolved
I've tested this issue with the provided sample file and the current development version of CCExtractor. The segfault no longer occurs.
Test Results
Captions Successfully Extracted
Note on Caption Quality
The extracted captions contain some garbled text (e.g., "monis:" instead of "Lemonis:", missing characters). However, this is not a CCExtractor bug - FFmpeg produces the same garbled output from this file. The caption quality issue originates from the source file's broadcast encoding.
Fix Attribution
This issue was likely resolved by recent memory safety improvements, particularly:
fix(memory): Add null checks for unchecked memory allocationsfix(rust): Add null checks and handle invalid UTF-8 in FFI functionsClosing as fixed.
🤖 Generated with Claude Code
@cfsmp3 commented on GitHub (Dec 14, 2025):
Validation Testing Performed
Test Environment
Sample File Details
Tests Performed
1. Basic extraction (original issue command pattern):
Result: ✅ Completed successfully, no segfault
2. With --bom option:
Result: ✅ Completed successfully, no segfault
3. With --no-fontcolor option:
Result: ✅ Completed successfully, no segfault
Output Validation
Cross-validation with FFmpeg
FFmpeg also extracts captions successfully, confirming the file contains valid CEA-608 data.
Memory Safety
No memory errors detected. The file processes completely through the MP4 parser and H.264 NAL unit extraction without any segmentation fault.
🤖 Generated with Claude Code