-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CWEB] Replace 'sprintf' with 'snprintf'.
Apple's XCode 14 (Clang) issues deprecation warnings for the 'sprintf' system function (from <stdio.h>) when used with C++. As I am compiling CWEB as C++ code (locally, not in TeX Live), I became aware of this possible future issue. While common.w diligently checks user-provided file names for possible buffer overflows before invoking 'sprintf' (sections 77--79), I replace the uses of 'sprintf' in ctangle.w and cweave.w and cweav-twill.ch with the safer 'snprintf' alternative. git-svn-id: svn://tug.org/texlive/trunk/Build/source@67794 c570f23f-e606-0410-a88d-b1316a301751
- Loading branch information
Andreas Scherer
committed
Aug 2, 2023
1 parent
df80c5d
commit fd3a887
Showing
8 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters