]> wimlib.net Git - wimlib/commitdiff
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 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");