From: Eric Biggers Date: Sat, 16 May 2015 15:23:00 +0000 (-0500) Subject: Disallow image metadata in solid resources X-Git-Tag: v1.8.1~3 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=593660b74e10631a4e1acca5ea684e4a55e84682 Disallow image metadata in solid resources --- 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");