Skip to content
/ server Public

MDEV-39173 Replace sprintf with snprintf#4869

Open
Pochatkin wants to merge 1 commit intoMariaDB:mainfrom
Pochatkin:MDEV-39173
Open

MDEV-39173 Replace sprintf with snprintf#4869
Pochatkin wants to merge 1 commit intoMariaDB:mainfrom
Pochatkin:MDEV-39173

Conversation

@Pochatkin
Copy link
Copy Markdown

@Pochatkin Pochatkin commented Mar 27, 2026

https://jira.mariadb.org/browse/MDEV-39173

Remove the unscoped #pragma GCC diagnostic ignored "-Wdeprecated-declarations" from include/violite.h. The pragma was originally added to suppress OpenSSL deprecation warnings on macOS, but is no longer needed as modern macOS builds use bundled WolfSSL or external OpenSSL without deprecated declarations.

The pragma also silently suppressed ~100 "sprintf is deprecated" warnings on macOS. Replace all sprintf/vsprintf calls with snprintf/vsnprintf across the codebase (118 files), excluding vendored third-party code (readline, wolfssl, wsrep-lib, libmariadb, groonga, zlib).

…f with snprintf

Remove the unscoped #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
from include/violite.h. The pragma was originally added to suppress OpenSSL
deprecation warnings on macOS, but is no longer needed as modern macOS builds
use bundled WolfSSL or external OpenSSL without deprecated declarations.

The pragma also silently suppressed ~100 "sprintf is deprecated" warnings on
macOS. Replace all sprintf/vsprintf calls with snprintf/vsnprintf across the
codebase (118 files), excluding vendored third-party code (readline, wolfssl,
wsrep-lib, libmariadb, groonga, zlib).
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 27, 2026

CLA assistant check
All committers have signed the CLA.

@Pochatkin
Copy link
Copy Markdown
Author

@gkodinov Could you please take a look as ticket reporter?

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants