[libbluray-devel] Check input read function != NULL

Petri Hintukainen git at videolan.org
Tue May 19 12:20:43 CEST 2015


libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | 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;
     }
 



More information about the libbluray-devel mailing list