libudfread | branch: master | Petri Hintukainen <[email protected]> | Tue May 
19 13:19:31 2015 +0300| [1cd198119d01d237230ec348b09104f2c20b796c] | committer: 
Petri Hintukainen

Check input read function != NULL

> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=1cd198119d01d237230ec348b09104f2c20b796c
---

 src/udfread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udfread.c b/src/udfread.c
index 82e2dde..e2ad6b2 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -1089,7 +1089,7 @@ int udfread_open_input(udfread *udf, udfread_block_input 
*input/*, int partition
     struct volume_descriptor_set vds;
     struct long_ad fsd_location;
 
-    if (!udf || !input) {
+    if (!udf || !input || !input->read) {
         return -1;
     }
 

_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to