mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1801] [MERGED] fix(smptett): replace unsafe string operations with bounds-checked versions #2538
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/1801
Author: @cfsmp3
Created: 12/12/2025
Status: ✅ Merged
Merged: 12/13/2025
Merged by: @cfsmp3
Base:
master← Head:fix/smptett-buffer-safety📝 Commits (1)
d4642c1fix(smptett): replace unsafe string operations with bounds-checked versions📊 Changes
1 file changed (+104 additions, -44 deletions)
View changed files
📝
src/lib_ccx/ccx_encoders_smptett.c(+104 -44)📄 Description
Summary
sprintf,strcpy, andstrcatcalls with bounds-checked versionsChanges
write_stringz_as_smptettsnprintfwithsizeof(str)for timestamp formattingwrite_cc_bitmap_as_smptettsnprintfwithINITIAL_ENC_BUFFER_CAPACITYwrite_cc_buffer_as_smptettfinalandtempmallocbuf_sizeand use throughoutstrcpy/strcatchains withmemcpy/snprintfsnprintffor style tags and color code formattingTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.