Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

doctrenderer: make sure printf always uses a format string#1631

Open
raboof wants to merge 1 commit into
ONLYOFFICE:master from
raboof:doctrenderer-format-security
Open

doctrenderer: make sure printf always uses a format string #1631
raboof wants to merge 1 commit into
ONLYOFFICE:master from
raboof:doctrenderer-format-security

Conversation

@raboof

@raboof raboof commented Aug 28, 2024

Copy link
Copy Markdown

Passing the string that is to be printed as the format string could lead to trouble when the string has sequences that would have meaning in a format string. Using the "%s" format string makes sure the string that is to be printed isn't interpreted as a format string.

This also makes compiling with -Werror=format-security happy.

Passing the string that is to be printed as the format string could
lead to trouble when the string has sequences that would have meaning
in a format string. Using the `"%s"` format string makes sure the
string that is to be printed isn't interpreted as a format string.
This also makes compiling with `-Werror=format-security` happy.
Signed-off-by: Arnout Engelen <arnout@bzzt.net>

CLAassistant commented Aug 28, 2024
edited
Loading

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /