read_wim_lookup_table(): Make sure all resources get validated (try 2)
authorEric Biggers <ebiggers3@gmail.com>
Tue, 29 Apr 2014 02:42:20 +0000 (21:42 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 29 Apr 2014 02:42:20 +0000 (21:42 -0500)
src/lookup_table.c

index 8c394f7..59d7c7c 100644 (file)
@@ -974,7 +974,10 @@ read_wim_lookup_table(WIMStruct *wim)
                        cur_entry->offset_in_res = 0;
                        cur_entry->size = reshdr.uncompressed_size;
                        cur_entry->flags = reshdr.flags;
+                       ret = validate_resource(cur_rspec);
                        cur_rspec = NULL;
+                       if (ret)
+                               goto out;
                }
                continue;