Commit 9988319b authored by Petri Hintukainen's avatar Petri Hintukainen

seek: check for invalid whence

parent 87cab1bc
...@@ -1647,7 +1647,7 @@ int64_t udfread_file_seek(UDFFILE *p, int64_t pos, int whence) ...@@ -1647,7 +1647,7 @@ int64_t udfread_file_seek(UDFFILE *p, int64_t pos, int whence)
case UDF_SEEK_SET: case UDF_SEEK_SET:
break; break;
default: default:
break; return -1;
} }
if (pos >= 0 && pos <= udfread_file_size(p)) { if (pos >= 0 && pos <= udfread_file_size(p)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment