Commit a487fcd268 for ffmpeg
commit a487fcd268142c30d7f85c5bc6a4753cfc4477c1
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Tue Oct 6 07:34:46 2026 +0200
avformat/sdp: Set the address type in resolve_destination() without network
The fix is the one recommended in the report.
Fixes: use of uninitialized memory
Fixes: YcBNmSVOpm32
Fixes: AISLE-2026-0111-00272
Use of uninitialized memory Replicated through API with Valgrind in a --disable-network build
Found-by: Joshua Rogers <joshua.rogers@aisle.com>
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index f6798f4bd9..4eeccf92b4 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -121,6 +121,7 @@ static int resolve_destination(char *dest_addr, int size, char *type,
static int resolve_destination(char *dest_addr, int size, char *type,
int type_size)
{
+ av_strlcpy(type, "IP4", type_size);
return 0;
}
#endif