From e8a0ce643a5e00e768f31387000cdddb2a93cb44 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 31 May 2019 17:49:37 +0200 Subject: [PATCH] tag/Generic: fail if InputStream is not seekable --- src/tag/Generic.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tag/Generic.cxx b/src/tag/Generic.cxx index d810d0cb7..e564730c6 100644 --- a/src/tag/Generic.cxx +++ b/src/tag/Generic.cxx @@ -31,6 +31,9 @@ bool ScanGenericTags(InputStream &is, TagHandler &handler) { + if (!is.IsSeekable()) + return false; + if (tag_ape_scan2(is, handler)) return true;