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

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 68c4d7ec8ca351c1ae21623e1a9883e4b6a07e9f
Author:     Romain Beauxis <[email protected]>
AuthorDate: Sat Apr 18 09:14:50 2026 -0500
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue Jun 16 06:10:02 2026 +0200

    libavdevice/alsa.c: fix NULL pointer dereference
    
    (cherry picked from commit 82d7e375f18bd8b9e25505095c9deacbd7fc14d4)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavdevice/alsa.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c
index cfdb28ff49..4fd1d3b328 100644
--- a/libavdevice/alsa.c
+++ b/libavdevice/alsa.c
@@ -381,8 +381,10 @@ int ff_alsa_get_device_list(AVDeviceInfoList *device_list, 
snd_pcm_stream_t stre
                 ret = AVERROR(ENOMEM);
                 goto fail;
             }
-            new_device->device_name = av_strdup(name);
-            if ((tmp = strrchr(descr, '\n')) && tmp[1])
+            new_device->device_name = av_strdup(name ? name : "");
+            if (!descr)
+                new_device->device_description = av_strdup("");
+            else if ((tmp = strrchr(descr, '\n')) && tmp[1])
                 new_device->device_description = av_strdup(&tmp[1]);
             else
                 new_device->device_description = av_strdup(descr);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to