[FFmpeg-cvslog] avformat/tls: Fix integer overflow with option mtu
Zhao Zhili
git at videolan.org
Sat Jun 7 11:18:18 EEST 2025
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Thu Jun 5 17:41:24 2025 +0800| [1af6881ba1230443477c913725ff63c9c5d7f47b] | committer: Zhao Zhili
avformat/tls: Fix integer overflow with option mtu
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1af6881ba1230443477c913725ff63c9c5d7f47b
---
libavformat/tls.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/tls.h b/libavformat/tls.h
index cb626f1977..2f381acc04 100644
--- a/libavformat/tls.h
+++ b/libavformat/tls.h
@@ -90,7 +90,7 @@ typedef struct TLSShared {
{"verifyhost", "Verify against a specific hostname", offsetof(pstruct, options_field . host), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
{"http_proxy", "Set proxy to tunnel through", offsetof(pstruct, options_field . http_proxy), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
{"use_external_udp", "Use external UDP from muxer or demuxer", offsetof(pstruct, options_field . use_external_udp), AV_OPT_TYPE_INT, { .i64 = 0}, 0, 1, .flags = TLS_OPTFL }, \
- {"mtu", "Maximum Transmission Unit", offsetof(pstruct, options_field . mtu), AV_OPT_TYPE_INT, { .i64 = 0}, INT64_MIN, INT64_MAX, .flags = TLS_OPTFL}, \
+ {"mtu", "Maximum Transmission Unit", offsetof(pstruct, options_field . mtu), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, .flags = TLS_OPTFL}, \
{"fingerprint", "The optional fingerprint for DTLS", offsetof(pstruct, options_field . fingerprint), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL}, \
{"cert_buf", "The optional certificate buffer for DTLS", offsetof(pstruct, options_field . cert_buf), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL}, \
{"key_buf", "The optional private key buffer for DTLS", offsetof(pstruct, options_field . key_buf), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL}
More information about the ffmpeg-cvslog
mailing list