[libdvdcss-devel] [PATCH] libdvdcss: Fix potential free of uninitialized pointer

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Mar 1 11:12:10 CET 2018


---
 src/libdvdcss.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index a659bf3..75ae6a8 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -522,6 +522,7 @@ static dvdcss_t dvdcss_open_common ( const char *psz_target, void *p_stream,
     if( psz_target == NULL &&
       ( p_stream == NULL || p_stream_cb == NULL ) )
     {
+        device->psz_device = NULL;
         goto error;
     }
 
-- 
2.11.0



More information about the libdvdcss-devel mailing list