Re: [FFmpeg-devel] [PATCH 1/2] swscale/utils: Allocate more dithererror

2024-02-21 Thread Michael Niedermayer
On Sat, Feb 17, 2024 at 06:09:46PM +0100, Michael Niedermayer wrote:
> Fixes: out of array read
> Signed-off-by: Michael Niedermayer 
> ---
>  libswscale/utils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply patchset

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle


signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] [PATCH 1/2] swscale/utils: Allocate more dithererror

2024-02-17 Thread Michael Niedermayer
Fixes: out of array read
Signed-off-by: Michael Niedermayer 
---
 libswscale/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index ec822ff5d92..4dc0fbfefbf 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1885,7 +1885,7 @@ static av_cold int sws_init_single_context(SwsContext *c, 
SwsFilter *srcFilter,
 }
 
 for (i = 0; i < 4; i++)
-if (!FF_ALLOCZ_TYPED_ARRAY(c->dither_error[i], c->dstW + 2))
+if (!FF_ALLOCZ_TYPED_ARRAY(c->dither_error[i], c->dstW + 3))
 goto nomem;
 
 c->needAlpha = (CONFIG_SWSCALE_ALPHA && isALPHA(c->srcFormat) && 
isALPHA(c->dstFormat)) ? 1 : 0;
-- 
2.17.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".