Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #238297

Category ffmpeg
Changed by Lidong Yan <yldhome2d2ohnoyoudont@gmail.com>
Changed at Thu 03 Jul 2025 23:05:14
Repository https://git.ffmpeg.org/ffmpeg.git
Project ffmpeg
Branch master
Revision 98afcd3da776df40955257daf63b6bf8c1fd764e

Comments

avcodec/sunrast: fix leak in sunrast_decode_frame()
In sunrast_decode_frame(), we use av_malloc_array() allocates memory
to ptr and ptr2. However if buf_end - buf < 1, this function returns
error code without freeing this memory thus cause a leak. Add av_freep()
before return.

Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Changed files