[FFmpeg-devel] [PATCH v2] libavcodec/alsdec.c: Add check for av_malloc_array() and av_calloc()
Michael Niedermayer
michael at niedermayer.cc
Sat Jul 12 21:12:08 EEST 2025
On Thu, Jul 10, 2025 at 04:26:39PM +0000, Jiasheng Jiang wrote:
> Add check for the return value of av_malloc_array() and av_calloc()
> to avoid potential NULL pointer dereference.
>
> Fixes: dcfd24b10c ("avcodec/alsdec: Implement floating point sample data decoding")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
> Changelog:
>
> 1. Wrap the if condtion.
> ---
> libavcodec/alsdec.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
will apply
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250712/4005a28e/attachment.sig>
More information about the ffmpeg-devel
mailing list