Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp4788615ybn; Sat, 28 Sep 2019 07:27:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7qk0nsX9tglQdZEqOxopk/xZJ6lS6EPgrkFfenICocvQT1q6sBxsoWikRXYxB8bJViU9N X-Received: by 2002:a50:934c:: with SMTP id n12mr10526187eda.12.1569680825869; Sat, 28 Sep 2019 07:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569680825; cv=none; d=google.com; s=arc-20160816; b=tEk0D2Ja05rGYPPCxOcmhDoKnTeAv9aS2mV5Gd6qX8z3+Bgt0QPuFQlsu1HreQ+Gs5 cUsZTFeAmIyXeZE+FKWwqbXQy6vxiLoiFhw2lsEJN7njDoXJTkGLH3HYcLJfZKYnwUHf Ny5YwChUrALke0lDLgQxEVmJoN+1U/l3UIjxo4cV30IWXOW8KvYUQeB9fA89oldWex1r BVzKeMc10wNtiySevQs0UIxhWLHIXKkwP7/54R7uAGUeR7xHo1rbT6uaklUBVbXZdl/2 BypwLfMgBeZYo+BMA2C+H8DDmhMObJ2J/UzOHvn19sNqjHsJyy0MttKWnQ9AMQzTDZKf Coeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=221hu6QwgA3W3CavhtbCU+WDPUZ1blKmFaSfLb3IWJs=; b=UqxRF9Iz1F1djZQL1oxYcdzPWmMq62qp/7AikAILPRFttL4Fd+FDxaR5fUn6UQ8jhy R9mWH/hjXxeNEBQfg0GRQIACOSs8gMoMqU0nDGS25QZao3Qm9FdW8Uul+eWD+9c9UQgf ACnNibh4/+eZDBLAqqlM3Y9PmRG5vn57RUaYSjc3aB4OnjK6FypvpB/7wIolBYjyyN9N DOJFH6BzCascL6Ihgl/OYAcu9VLJidKIwrHJWtrTlZWS93nfO6/+j2uzeuePUVOv52uy Xvfmxh4r35ErYZmSBGJbUy73yDnbqGhjmXwTMr1nXz7CMZksJGGfZ+lnPQQ/eh76apg5 5s/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mnmoran.org header.s=dkim header.b=QOipZprK; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si4291696ejb.285.2019.09.28.07.26.19; Sat, 28 Sep 2019 07:27:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mnmoran.org header.s=dkim header.b=QOipZprK; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725897AbfI1OPQ (ORCPT + 99 others); Sat, 28 Sep 2019 10:15:16 -0400 Received: from hoster906.com ([192.252.156.27]:42490 "EHLO hoster906.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfI1OPQ (ORCPT ); Sat, 28 Sep 2019 10:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mnmoran.org; h=from:to :cc:subject:date:message-id; s=dkim; bh=cfhjBsRFCmAvDUFp0PnZU9bB sZ+E+BAVz+tIJE4AEIo=; b=QOipZprK9R/eEA5VWg3emZc5KOPQNAIET5HH/TAZ SM53h8lUG5m5CzGdC3NMohih3Lt5rwMi9zPkB8DmxO3BmLWjlqdFpVsf/6hHJJiI 40CtEER+9NzpDwG7Xd+OzP0aLFApSGOZfWupbAwV9qp3KeXscWSvVe5nsRo8urTS 01o= Received: (qmail 32408 invoked by uid 503); 28 Sep 2019 14:15:14 -0000 Received: from unknown (HELO lespaul.Home) (mike@mnmoran.org@50.96.104.71) by hoster906.com with ESMTPA; 28 Sep 2019 14:15:14 -0000 From: "Michael N. Moran" To: linux-bluetooth@vger.kernel.org Cc: "Michael N. Moran" Subject: [PATCH BlueZ] meshctl truncates GATT MTU Date: Sat, 28 Sep 2019 10:14:02 -0400 Message-Id: <1569680043-2874-1-git-send-email-mike@mnmoran.org> X-Mailer: git-send-email 1.8.3.1 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: "Michael N. Moran" This patch fixes a bug in meshctl that causes the GATT MTU to be truncated resulting in incorrect segmentation when the MTU is greater than 259. Michael N. Moran (1): The meshctl sock_write() max_len variable is declared as uint8_t, which causes the calculation of the GATT MTU to be truncated when the MTU (write_mtu) is greater than 259. This error causes incorrect segmentation. tools/mesh/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.3.1