From 1fa0f29dbe4f833049697b551f237bf0cd234ddc Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Thu, 7 Mar 2019 10:50:04 -0800 Subject: [PATCH] DO NOT MERGE Fix length for L2CAP config type EXT FLOW Bug: 119870451 Test: POC Change-Id: I11041dd03caad5569e930ff36b50fc9c2719c57f --- stack/l2cap/l2c_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/l2cap/l2c_main.c b/stack/l2cap/l2c_main.c index 6720814d8..940055795 100644 --- a/stack/l2cap/l2c_main.c +++ b/stack/l2cap/l2c_main.c @@ -564,7 +564,7 @@ static void process_l2cap_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len) case L2CAP_CFG_TYPE_EXT_FLOW: cfg_info.ext_flow_spec_present = TRUE; - if (cfg_len != 1 + 2 + 3 * 4) { + if (cfg_len != 2 + 2 + 3 * 4) { android_errorWriteLog(0x534e4554, "119870451"); return; } -- 2.11.0