Details
-
Bug
-
Status: Stalled (View Workflow)
-
Trivial
-
Resolution: Unresolved
-
13.0
-
None
Description
I get the following warning when compiling on MacOSX with clang:
[build] In file included from /Users/gkodinov/dev/server-main/extra/mariabackup/backup_copy.cc:64:
|
[build] /Users/gkodinov/dev/server-main/storage/innobase/include/innodb_binlog.h:254:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
|
[build] 254 | sprintf(name_buf, BINLOG_NAME_BASE "%06" PRIu64 BINLOG_NAME_EXT, file_no);
|
[build] | ^
|
Note that snprintf() is not appropriate as a replacement, as it silently truncates the result, causing silent data corruption.
Attachments
Issue Links
- is caused by
-
MDEV-34705 Improving performance of binary logging by removing the need of syncing it
-
- Closed
-
- is part of
-
MDEV-39099 replace sprintf with snprintf
-
- Open
-