diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-03-04 22:55:51 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-03-06 20:44:48 +0000 |
commit | 6a11cd50d52694353d7bb11421490939d92df1b6 (patch) | |
tree | 403e52da16f23d879e2d0ed9670373ba35c47345 | |
parent | e98940d6f6da8347ca7a8c5cb9f7c528c6133c8d (diff) |
QUIC QLOG: Fix use of sprintf
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23744)
-rw-r--r-- | ssl/quic/qlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/quic/qlog.c b/ssl/quic/qlog.c index 2cfa9af9d3..c14d53eece 100644 --- a/ssl/quic/qlog.c +++ b/ssl/quic/qlog.c @@ -130,7 +130,7 @@ QLOG *ossl_qlog_new_from_env(const QLOG_TRACE_INFO *info) filename[l++] = qlogdir_sep; for (i = 0; i < info->odcid.id_len; ++i) - l += sprintf(filename + l, "%02x", info->odcid.id[i]); + l += BIO_snprintf(filename + l, strl - l, "%02x", info->odcid.id[i]); l += BIO_snprintf(filename + l, strl - l, "_%s.sqlog", info->is_server ? "server" : "client"); |