[FFmpeg-trac] #10852(swscale:new): sws_scale overflows buffer for some resolutions using ssse3 instructions
FFmpeg
trac at avcodec.org
Mon Dec 16 13:55:32 EET 2024
#10852: sws_scale overflows buffer for some resolutions using ssse3 instructions
--------------------------------------+-----------------------------------
Reporter: Jerome | Owner: (none)
Type: defect | Status: new
Priority: important | Component: swscale
Version: git-master | Resolution:
Keywords: memory scale | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+-----------------------------------
Comment (by Niklas Haas):
Similar to https://trac.ffmpeg.org/ticket/6763#comment:4
It seems that the three ways of fixing this would be to either
1. Extend the asm logic to make sure to clamp the tail
2. Handle the last line using the C function
3. Use a scratch buffer for the last line's output and memcpy it into the
destination image instead
I'm not sure what is preferable here.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10852#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list