[libbluray-devel] seek: check for invalid whence

Petri Hintukainen git at videolan.org
Sat Jun 24 14:39:32 CEST 2017


libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Sat Jun 24 12:32:37 2017 +0300| [9988319be9f809e32b96ba803ccf6fad6369c915] | committer: Petri Hintukainen

seek: check for invalid whence

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

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

diff --git a/src/udfread.c b/src/udfread.c
index 568042f..3e58a45 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -1647,7 +1647,7 @@ int64_t udfread_file_seek(UDFFILE *p, int64_t pos, int whence)
         case UDF_SEEK_SET:
             break;
         default:
-            break;
+            return -1;
     }
 
     if (pos >= 0 && pos <= udfread_file_size(p)) {



More information about the libbluray-devel mailing list