This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit b90c9cf752324f665826af107d2de30086c363b2
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Wed Jan 28 13:20:31 2026 +0100
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Thu Sep 24 08:43:09 2026 +0000

    tools/target_sws_fuzzer: don't zero init dest buffer
    
    Destination is destination and should be initialized by the sws itself.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 tools/target_sws_fuzzer.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/target_sws_fuzzer.c b/tools/target_sws_fuzzer.c
index 11326e2f66..d0e79354b2 100644
--- a/tools/target_sws_fuzzer.c
+++ b/tools/target_sws_fuzzer.c
@@ -40,7 +40,7 @@ static void error(const char *err)
     exit(1);
 }
 
-static int alloc_plane(uint8_t *data[AV_VIDEO_MAX_PLANES], int 
stride[AV_VIDEO_MAX_PLANES], int w, int h, int format, int *hshift, int *vshift)
+static int alloc_plane(uint8_t *data[AV_VIDEO_MAX_PLANES], int 
stride[AV_VIDEO_MAX_PLANES], int w, int h, int format, int *hshift, int 
*vshift, int zero_init)
 {
     size_t size[AV_VIDEO_MAX_PLANES];
     ptrdiff_t ptrdiff_stride[AV_VIDEO_MAX_PLANES];
@@ -62,7 +62,7 @@ static int alloc_plane(uint8_t *data[AV_VIDEO_MAX_PLANES], 
int stride[AV_VIDEO_M
 
     for(int p=0; p<AV_VIDEO_MAX_PLANES; p++) {
         if (size[p]) {
-            data[p] = av_mallocz(size[p] + 32);
+            data[p] = zero_init ? av_mallocz(size[p] + 32) : av_malloc(size[p] 
+ 32);
             if (!data[p])
                 return -1;
         } else
@@ -165,11 +165,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t 
size) {
     fprintf(stderr, "%d x %d %s -> %d x %d %s\n", srcW, srcH, desc_src->name, 
dstW, dstH, desc_dst->name);
 #endif
 
-    ret = alloc_plane(src, srcStride, srcW, srcH, srcFormat, &srcHShift, 
&srcVShift);
+    ret = alloc_plane(src, srcStride, srcW, srcH, srcFormat, &srcHShift, 
&srcVShift, 1);
     if (ret < 0)
         goto end;
 
-    ret = alloc_plane(dst, dstStride, dstW, dstH, dstFormat, &dstHShift, 
&dstVShift);
+    ret = alloc_plane(dst, dstStride, dstW, dstH, dstFormat, &dstHShift, 
&dstVShift, 0);
     if (ret < 0)
         goto end;
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to