mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1910] Fix buffer truncation warnings in EPG time strings #2699
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/1910
Author: @Harshdhall01
Created: 12/26/2025
Status: 🔄 Open
Base:
master← Head:fix-epg-buffer-truncation📝 Commits (3)
532f443Fix buffer truncation warnings in EPG time strings03d1810Increase buffer size to 80 bytes to fully eliminate warnings9270313Add size parameter to EPG_ATSC_calc_time to eliminate hardcoded buffer size📊 Changes
2 files changed (+6 additions, -6 deletions)
View changed files
📝
src/lib_ccx/ts_functions.h(+2 -2)📝
src/lib_ccx/ts_tables_epg.c(+4 -4)📄 Description
Summary
Fixed buffer size for EPG time string buffers to prevent truncation warnings.
Changes
start_time_stringandend_time_stringbuffer size from 21 to 32 bytes ints_functions.hRationale
The compiler warned that
snprintfformatting ints_tables_epg.ccould truncate with large year values (e.g., 5+ digit years). While unlikely in practice, this fix ensures safety and eliminates three compiler warnings at lines 130, 150, and 181.Testing
ts_tables_epg.cWarnings Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.