Fix SEGV caused by format string on 32-bit platforms / armv7l, reported in #1587 (#1658)

Looks great. Thanks for this!
This commit is contained in:
David Baird 2022-05-06 12:11:47 -04:00 committed by GitHub
parent e9f8ecbf7e
commit eea93d2607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -1141,6 +1141,9 @@ class Bond {
*
*/
void log(const char* fmt, ...)
#ifdef __GNUC__
__attribute__((format(printf, 2, 3)))
#endif
{
#ifdef ZT_TRACE
time_t rawtime;
@ -1170,6 +1173,9 @@ class Bond {
*
*/
void debug(const char* fmt, ...)
#ifdef __GNUC__
__attribute__((format(printf, 2, 3)))
#endif
{
#ifdef ZT_DEBUG
time_t rawtime;