[FFmpeg-devel] [PATCH 2/5] checkasm/sw_scale: Fix stack-buffer-overflow

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Thu May 21 00:59:52 EEST 2020


Michael Niedermayer:
> On Tue, May 19, 2020 at 12:45:58PM +0200, Andreas Rheinhardt wrote:
>> A buffer whose size is not a multiple of four has been initialized using
>> consecutive writes of 32bits. This results in a stack-buffer-overflow
>> reported by ASAN in the checkasm-sw_scale FATE-test.
>>
>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
>> ---
>> Instead of using FFALIGN one could also just remove the "- 1" if that's
>> preferred.
>>
>>  tests/checkasm/sw_scale.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> LGTM
> 
> thx
> 
> [...]
> 
> 
Applied, thanks.

- Andreas


More information about the ffmpeg-devel mailing list