ffmpeg | branch: release/4.3 | Michael Niedermayer <mich...@niedermayer.cc> | 
Sat Aug 17 01:11:50 2024 +0200| [c5b3a3f9697f4f0683c10a174a3b9ece30fa5c03] | 
committer: Michael Niedermayer

avcodec/avcodec: Warn about data returned from get_buffer*()

Text based on suggestion by: epira...@gmail.com
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>
(cherry picked from commit 93444c46fce195e378c4ebb1a20ea662e7f0123b)
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c5b3a3f9697f4f0683c10a174a3b9ece30fa5c03
---

 libavcodec/avcodec.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index c91b2fd169..963dd2a214 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1294,6 +1294,10 @@ typedef struct AVCodecContext {
      *   this callback and filled with the extra buffers if there are more
      *   buffers than buf[] can hold. extended_buf will be freed in
      *   av_frame_unref().
+     *   Decoders will generally initialize the whole buffer before it is 
output
+     *   but it can in rare error conditions happen that uninitialized data is 
passed
+     *   through. \important The buffers returned by get_buffer* should thus 
not contain sensitive
+     *   data.
      *
      * If AV_CODEC_CAP_DR1 is not set then get_buffer2() must call
      * avcodec_default_get_buffer2() instead of providing buffers allocated by

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

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

Reply via email to