]> wimlib.net Git - wimlib/blobdiff - include/wimlib/wim.h
Prevent huge memory allocations from fuzzed header fields
[wimlib] / include / wimlib / wim.h
index 67f55e3bb0ed24df599161cf7fd314ef01b80028..571d59cfb762e533acbf8323f0e4af0dba96aaca 100644 (file)
@@ -96,6 +96,9 @@ struct WIMStruct {
         * Otherwise, this field is invalid (!filedes_valid(&out_fd)).  */
        struct filedes out_fd;
 
+       /* The size of the backing file, or 0 if unknown */
+       u64 file_size;
+
        /*
         * This is the cached decompressor for this WIM file, or NULL if no
         * decompressor is cached yet.  Normally, all the compressed data in a