Comment #6 on issue 524 by jz...@
google.com: A lot of valgrind complaints about uninitialized memory
https://bugs.chromium.org/p/webp/issues/detail?id=524#c6This only reproduces for me inside the container, a local build on debian testing is fine. I didn't try a separate ubuntu instance, but the issue appears to be with the source like suggested in comment #4. In the container only the first 160 pixels are initialized. Adding printf before WebPAnimEncoderAdd() [1] will move the valgrind report to that line [2].
[1]
fprintf(stderr, "frame size %d x %d (%d)\n", enc->webp_picture.width, enc->webp_picture.height, GST_VIDEO_FRAME_COMP_STRIDE (&vframe, 0));
fprintf(stderr, "rgb[480]: %d\n", GST_VIDEO_FRAME_COMP_DATA (&vframe, 0)[480]);
[2]
frame size 1280 x 720 (3840)
==198343== Thread 3 queue1:src:
==198343== Conditional jump or move depends on uninitialised value(s)
==198343== at 0x4BD46F8: printf_positional (vfprintf-internal.c:1996)
==198343== by 0x4BD7195: __vfprintf_internal (vfprintf-internal.c:1683)
==198343== by 0x4BD805F: buffered_vfprintf (vfprintf-internal.c:2295)
==198343== by 0x4C88E02: __fprintf_chk (fprintf_chk.c:33)
==198343== by 0x6D504C0: fprintf (stdio2.h:103)
==198343== by 0x6D504C0: gst_webp_enc_handle_frame (gstwebpenc.c:303)
==198343== by 0x6A194B9: gst_video_encoder_chain (gstvideoencoder.c:1696)
==198343== by 0x48D54CC: gst_pad_chain_data_unchecked (gstpad.c:4441)
==198343== by 0x48D7748: gst_pad_push_data (gstpad.c:4697)
==198343== by 0x48DED81: gst_pad_push (gstpad.c:4816)
==198343== by 0x5527866: gst_base_transform_chain (gstbasetransform.c:2377)
==198343== by 0x48D54CC: gst_pad_chain_data_unchecked (gstpad.c:4441)
==198343== by 0x48D7748: gst_pad_push_data (gstpad.c:4697)