[libbluray-devel] Check for null path in udfread_open()
Petri Hintukainen
git at videolan.org
Thu May 21 11:23:31 CEST 2015
libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Thu May 21 12:22:25 2015 +0300| [953fda2f8a9e5ee24e19393d53e93f5efb5833e2] | committer: Petri Hintukainen
Check for null path in udfread_open()
> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=953fda2f8a9e5ee24e19393d53e93f5efb5833e2
---
src/udfread.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/udfread.c b/src/udfread.c
index e2ad6b2..ba910aa 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -1133,6 +1133,10 @@ int udfread_open(udfread *udf, const char *path)
udfread_block_input *input;
int result;
+ if (!path) {
+ return -1;
+ }
+
input = block_input_new(path);
if (!input) {
return -1;
More information about the libbluray-devel
mailing list