From fd9e6e1472c4c2aec4622e163e6f6d1d82c0d7b6 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Mon, 20 Jul 2020 13:18:01 -0700 Subject: [PATCH] ueventd: bump UEVENT_MSG_LEN to 8192 The previous size, 2048, is only the size of the 'environment' for the uevent message, but doesn't include the @ portion. The portion has a max length < 10, but the portion is unbounded. 8192 should be plenty to capture all of these parameters. Bug: 161580785 Test: ueventd still works Merged-In: I6de6fd3a444ac91b3b4df154097abde3696e21b3 Change-Id: I6de6fd3a444ac91b3b4df154097abde3696e21b3 (cherry picked from commit 939b41c79b4a02b814e9aa677e85b3b5cacc83c8) --- init/uevent_listener.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/uevent_listener.h b/init/uevent_listener.h index aea094e77..f9f954aa0 100644 --- a/init/uevent_listener.h +++ b/init/uevent_listener.h @@ -27,7 +27,7 @@ #include "uevent.h" -#define UEVENT_MSG_LEN 2048 +#define UEVENT_MSG_LEN 8192 namespace android { namespace init {