[vlc-commits] [Git][videolan/vlc][master] sdi: fix use-after-free

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Mon Jun 19 18:56:43 UTC 2023



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
4b16a94d by Thomas Guillem at 2023-06-19T18:42:57+00:00
sdi: fix use-after-free

Fixes #28223

- - - - -


1 changed file:

- modules/stream_out/sdi/DBMSDIOutput.cpp


Changes:

=====================================
modules/stream_out/sdi/DBMSDIOutput.cpp
=====================================
@@ -370,8 +370,8 @@ int DBMSDIOutput::ConfigureVideo(const video_format_t *vfmt)
         size_t len = strlen(psz_string);
         if (len > 4)
         {
-            free(psz_string);
             msg_Err(p_stream, "Invalid mode %s", psz_string);
+            free(psz_string);
             goto error;
         }
         strncpy(wanted_mode.str, psz_string, 4);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4b16a94d390f94ed60feec5ae2968824265f6cce

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4b16a94d390f94ed60feec5ae2968824265f6cce
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list