From ba117304abc783ae4312968c84952432f17bbcce Mon Sep 17 00:00:00 2001 From: JeiFeng Lee Date: Wed, 23 Oct 2019 13:20:41 +0800 Subject: [PATCH] avoid data overflow in low memory device Bug: 142294642 Test: fastboot flash system system.img Change-Id: Iec50817aaca5d31c194f0fdf409503829d14ca06 --- fastboot/device/commands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/device/commands.h b/fastboot/device/commands.h index afd6d0806..9b6e7b6e1 100644 --- a/fastboot/device/commands.h +++ b/fastboot/device/commands.h @@ -19,7 +19,7 @@ #include #include -constexpr unsigned int kMaxDownloadSizeDefault = 0x20000000; +constexpr unsigned int kMaxDownloadSizeDefault = 0x10000000; class FastbootDevice;