From a06cdcab8eef126284910b33ab3ef290276dc619 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Sun, 9 Jun 2019 15:17:54 +0200 Subject: [PATCH] extract: Handle std::bad_alloc when parsing setup headers --- src/cli/extract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/extract.cpp b/src/cli/extract.cpp index 9eb0f62..3e08abc 100644 --- a/src/cli/extract.cpp +++ b/src/cli/extract.cpp @@ -913,7 +913,7 @@ void process_file(const fs::path & file, const extract_options & o) { return; } throw; - } catch(const std::ios_base::failure & e) { + } catch(const std::exception & e) { std::ostringstream oss; oss << "Stream error while parsing setup headers!\n"; oss << " ├─ detected setup version: " << info.version << '\n';