OSDN Git Service

DO NOT MERGE Fix length for L2CAP config type EXT FLOW
authorHansong Zhang <hsz@google.com>
Thu, 7 Mar 2019 18:50:04 +0000 (10:50 -0800)
committerJP Sugarbroad <jpsugar@google.com>
Fri, 8 Mar 2019 18:50:54 +0000 (10:50 -0800)
Bug: 119870451
Test: POC
Change-Id: I11041dd03caad5569e930ff36b50fc9c2719c57f
(cherry picked from commit 1fa0f29dbe4f833049697b551f237bf0cd234ddc)

stack/l2cap/l2c_main.c

index ac74497..92e92ca 100644 (file)
@@ -566,7 +566,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;
                     }