]> wimlib.net Git - wimlib/blobdiff - src/blob_table.c
Disallow image metadata in solid resources
[wimlib] / src / blob_table.c
index e93fce1ef2fb91a6f05458c841f3580f84abb756..08859c42787baa5147a398bdacdecae579f69275 100644 (file)
@@ -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");