mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avformat/rtpdec_h264: Ignore framesize attributes without a height
Fixes: out of array read Fixes: xfnEsbsbvEIX Fixes: AISLE-2026-0111-00033 Stack out of array read Replicated through UnModified FFmpeg (ffprobe) with ASAN Found-by: Joshua Rogers <joshua.rogers@aisle.com>
This commit is contained in:
1 parent
3d6a441fd3
commit
e5fe2cbebc
1 file changed
+3
@@ -198,6 +198,9 @@ void ff_h264_parse_framesize(AVCodecParameters *par, const char *p)
|
||||
*dst++ = *p++;
|
||||
*dst = '\0';
|
||||
|
||||
if (*p != '-')
|
||||
return;
|
||||
|
||||
// a='framesize:96 320-240'
|
||||
// set our parameters
|
||||
par->width = atoi(buf1);
|
||||
|
||||
Reference in new issue
Block a user