[vlc-commits] [Git][videolan/vlc][3.0.x] direct3d11: add missing allocation check

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Aug 9 08:45:13 UTC 2022



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
7a69931f by Steve Lhomme at 2022-08-08T06:28:21+02:00
direct3d11: add missing allocation check

- - - - -


1 changed file:

- modules/video_output/win32/direct3d11.c


Changes:

=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -267,6 +267,8 @@ static int Open(vlc_object_t *object)
 #endif
 
     vout_display_sys_t *sys = vd->sys = calloc(1, sizeof(vout_display_sys_t));
+    if (unlikely(sys == NULL))
+        return VLC_ENOMEM;
     int ret = D3D11_Create(vd, &sys->hd3d, true);
     if (unlikely(ret != VLC_SUCCESS))
         goto error;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7a69931f84e5ecfcc51b3b731d4c2a834fcf2fe0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7a69931f84e5ecfcc51b3b731d4c2a834fcf2fe0
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