Re: [FFmpeg-devel] [PATCH] avformat/asfdec: init avpacket by av_packet_alloc()

2022-01-10 Thread James Almer
On 1/10/2022 11:30 PM, 13102179...@163.com wrote: From: Yang Xiao This commit fixed a crash when seeking wma frames, asf decoder will try to demux in function asf_read_pts(). Pointer member side_data of AVPacket that allocated by stack may be wild pointer. Prevent releasing wild pointers i

[FFmpeg-devel] [PATCH] avformat/asfdec: init avpacket by av_packet_alloc()

2022-01-10 Thread 13102179620
From: Yang Xiao This commit fixed a crash when seeking wma frames, asf decoder will try to demux in function asf_read_pts(). Pointer member side_data of AVPacket that allocated by stack may be wild pointer. Prevent releasing wild pointers in AVPacket when some functions try to call av_packet_u