X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwin32_apply.c;h=4c65fefea3f6c44f5b56128706a726d7e4fc0a44;hp=26814f68eab5b3535b63ee2bb00e7550fbafa03f;hb=c43944a2bc3991b6a7f7c16bb383233182ff46a5;hpb=d619be5a9d45567a740875ed90ef617967772c44 diff --git a/src/win32_apply.c b/src/win32_apply.c index 26814f68..4c65fefe 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -392,10 +392,13 @@ will_externally_back_inode(struct wim_inode *inode, struct win32_apply_ctx *ctx, stream = inode_unnamed_lte_resolved(inode); + /* Note: Microsoft's WoF driver errors out if it tries to satisfy a + * read, with ending offset >= 4 GiB, from an externally backed file. */ if (!stream || stream->resource_location != RESOURCE_IN_WIM || stream->rspec->wim != ctx->common.wim || - stream->size != stream->rspec->uncompressed_size) + stream->size != stream->rspec->uncompressed_size || + stream->size > 4200000000) return WIM_BACKING_NOT_POSSIBLE; /*