From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web11.8237.1605786644857865998 for ; Thu, 19 Nov 2020 03:50:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ioJDTAUD; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605786644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7jFD2bttGVdenAccuPr1gRh9WM11t0mT94kojpQicP8=; b=ioJDTAUDyxd3dRlObi4qOekJJItX/dDMT+RXSsXr4hpTqJYYmQxp1cX43RNx2seJFrbqoE U0G69o5fB/soPJAug07BEoGUdde2BGbo8Zr97/gVskfKvjYIZoYN5rE7gfusOe9sgcuOVo f30PW/AjiC/6Bp1KXxpm0EPOG+Ktqyw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-329-UOpq-WviOtG672WUyeMgBw-1; Thu, 19 Nov 2020 06:50:40 -0500 X-MC-Unique: UOpq-WviOtG672WUyeMgBw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 165BA801B17; Thu, 19 Nov 2020 11:50:39 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-236.ams2.redhat.com [10.36.112.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EBCA60636; Thu, 19 Nov 2020 11:50:37 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Dandan Bi , Hao A Wu , Jian J Wang , Liming Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH RESEND 1/1] MdeModulePkg/LzmaCustomDecompressLib: catch 4GB+ uncompressed buffer sizes Date: Thu, 19 Nov 2020 12:50:34 +0100 Message-Id: <20201119115034.12897-2-lersek@redhat.com> In-Reply-To: <20201119115034.12897-1-lersek@redhat.com> References: <20201119115034.12897-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 VGhlIEx6bWFVZWZpRGVjb21wcmVzc0dldEluZm8oKSBmdW5jdGlvbgpbTWRlTW9kdWxlUGtnL0xp YnJhcnkvTHptYUN1c3RvbURlY29tcHJlc3NMaWIvTHptYURlY29tcHJlc3MuY10gY3VycmVudGx5 CnNpbGVudGx5IHRydW5jYXRlcyB0aGUgVUlOVDY0ICJEZWNvZGVkU2l6ZSIgcHJvcGVydHkgb2Yg dGhlIGNvbXByZXNzZWQKYmxvYiB0byB0aGUgVUlOVDMyICJEZXN0aW5hdGlvblNpemUiIG91dHB1 dCBwYXJhbWV0ZXIuCgpJZiAiRGVjb2RlZFNpemUiIGlzIDB4MV8wMDAwXzAxMDAsIGZvciBleGFt cGxlLCB0aGVuIHRoZSBzdWJzZXF1ZW50IG1lbW9yeQphbGxvY2F0aW9uIChmb3IgZGVjb21wcmVz c2lvbikgd2lsbCBsaWtlbHkgc3VjY2VlZCAoYWxsb2NhdGluZyAweDEwMCBieXRlcwpvbmx5KSwg YnV0IHRoZW4gdGhlIEx6bWFVZWZpRGVjb21wcmVzcygpIGZ1bmN0aW9uICh3aGljaCByZS1mZXRj aGVzIHRoZQp1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BHZXREZWNv ZGVkU2l6ZU9mQnVmKAogICAgICAgICAgICAgICAgICAgICAgICAgICBpbiBEZXN0aW5hdGlvblNp emUgYW5kIHRoZSBzaXplIG9mIHRoZSBzY3JhdGNoDQogICAgICAgICAgICAgICAgICAgICAgICAg ICBidWZmZXIgd2FzIHJldHVybmVkIGluIFNjcmF0Y2hTaXplLg0KIA0KKyAgQHJldHZhbCBSRVRV Uk5fVU5TVVBQT1JURUQgIERlc3RpbmF0aW9uU2l6ZSBjYW5ub3QgYmUgb3V0cHV0IGJlY2F1c2Ug dGhlDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5jb21wcmVzc2VkIGJ1ZmZlciBz aXplIChpbiBieXRlcykgZG9lcyBub3QgZml0DQorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgaW4gYSBVSU5UMzIuIE91dHB1dCBwYXJhbWV0ZXJzIGhhdmUgbm90IGJlZW4NCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBtb2RpZmllZC4NCiAqKi8NCiBSRVRVUk5fU1RBVFVTDQog RUZJQVBJDQpAQCAtMTQyLDYgKzE0Niw5IEBAIEx6bWFVZWZpRGVjb21wcmVzc0dldEluZm8gKAog ICBBU1NFUlQoU291cmNlU2l6ZSA+PSBMWk1BX0hFQURFUl9TSVpFKTsNCiANCiAgIERlY29kZWRT aXplID0gR2V0RGVjb2RlZFNpemVPZkJ1ZigoVUlOVDgqKVNvdXJjZSk7DQorICBpZiAoRGVjb2Rl ZFNpemUgPiBNQVhfVUlOVDMyKSB7DQorICAgIHJldHVybiBSRVRVUk5fVU5TVVBQT1JURUQ7DQor ICB9DQogDQogICAqRGVzdGluYXRpb25TaXplID0gKFVJTlQzMilEZWNvZGVkU2l6ZTsNCiAgICpT Y3JhdGNoU2l6ZSA9IFNDUkFUQ0hfQlVGRkVSX1JFUVVFU1RfU0laRTsNCi0tIAoyLjE5LjEuMy5n MzAyNDdhYTVkMjAxCgo=