Disallow image metadata in solid resources
authorEric Biggers <ebiggers3@gmail.com>
Sat, 16 May 2015 15:23:00 +0000 (10:23 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 16 May 2015 15:23:00 +0000 (10:23 -0500)
src/blob_table.c

index e93fce1..08859c4 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");