X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fntfs-3g_apply.c;h=e7557cf663a9712609c264a40449f390a6aad237;hb=a3c63defc94455a84fa681024a461691c1ad5661;hp=ff145a61871a2cc98184bd9599672b8a0085ee7b;hpb=23e0fbfa065d4f25f41ce145e56765b7bf4bac92;p=wimlib diff --git a/src/ntfs-3g_apply.c b/src/ntfs-3g_apply.c index ff145a61..e7557cf6 100644 --- a/src/ntfs-3g_apply.c +++ b/src/ntfs-3g_apply.c @@ -726,6 +726,11 @@ ntfs_3g_begin_extract_stream_to_attr(struct wim_lookup_table_entry *stream, return WIMLIB_ERR_NTFS_3G; } + if (ctx->num_open_attrs == MAX_OPEN_ATTRS) { + ERROR("Can't extract data: too many open files!"); + return WIMLIB_ERR_UNSUPPORTED; + } + attr = ntfs_attr_open(ni, AT_DATA, stream_name, stream_name_nchars); if (!attr) { ERROR_WITH_ERRNO("Failed to open data stream of \"%s\"",