mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-24 15:09:55 +00:00
[PR #1800] [MERGED] fix(708_output): replace sprintf with snprintf for buffer safety #2539
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/1800
Author: @cfsmp3
Created: 12/12/2025
Status: ✅ Merged
Merged: 12/13/2025
Merged by: @cfsmp3
Base:
master← Head:fix/708-output-buffer-safety📝 Commits (2)
fb49d94fix(708_output): replace sprintf with snprintf for buffer safety155f56estyle: fix clang-format issues in macro definitions📊 Changes
2 files changed (+171 additions, -65 deletions)
View changed files
📝
src/lib_ccx/ccx_decoders_708_output.c(+170 -64)📝
src/lib_ccx/ccx_decoders_708_output.h(+1 -1)📄 Description
Summary
sprintfcalls withsnprintfto prevent potential buffer overflows in CEA-708 decoder output functionsadd_needed_scc_labelsfunction signature to accept buffer size parameterChanges
dtvcc_change_pen_colorsdtvcc_change_pen_attribsdtvcc_write_srtdtvcc_write_transcriptdtvcc_write_sami_headerdtvcc_write_sami_footerdtvcc_write_samidtvcc_write_scc_headeradd_needed_scc_labelsdtvcc_write_sccdtvcc_writer_initTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.