From 593660b74e10631a4e1acca5ea684e4a55e84682 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 16 May 2015 10:23:00 -0500 Subject: [PATCH] Disallow image metadata in solid resources --- src/blob_table.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/blob_table.c b/src/blob_table.c index e93fce1e..08859c42 100644 --- a/src/blob_table.c +++ b/src/blob_table.c @@ -1022,6 +1022,13 @@ read_blob_table(WIMStruct *wim) goto out; } + if (reshdr.flags & WIM_RESHDR_FLAG_SOLID) { + ERROR("Image metadata in solid resources " + "is unsupported."); + ret = WIMLIB_ERR_INVALID_LOOKUP_TABLE_ENTRY; + goto out; + } + if (wim->hdr.part_number != 1) { WARNING("Ignoring metadata resource found in a " "non-first part of the split WIM"); -- 2.43.0