Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1426902rwb; Fri, 23 Sep 2022 12:28:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OyZQKR6O7MjwCOzDtFB4tYSw4mxk4d2w2A7uYewIDp5gjrV4CTo5bJEHCnjsTFg7hUf5D X-Received: by 2002:a17:90b:1d08:b0:200:823f:9745 with SMTP id on8-20020a17090b1d0800b00200823f9745mr11109493pjb.84.1663961330061; Fri, 23 Sep 2022 12:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663961330; cv=none; d=google.com; s=arc-20160816; b=MOnVri3CStZR4NHtNRcbK+9b6ufPaqfYStfRA+rIbFCyIEclM+2evZBYqS36h0WRNQ HytCwUdPguM1K745asWhsBt7pU8hbEQQF90A5Lci2lU5nTDW+JAauCMYU5WfACtppBM+ opb8x94Wqqhtj9uLb0BHMUock3faPD+l6tJSrP6ItFKZjqsQe34MaHMS4eHLbk0bKiin EaL95RMmEcxKQVojj/Jr7+zAc87ygdDFaP39qX6PZbVS1Le+9TMvJLSLl7G9enHUe7ZH L5udflppuefQ7Z6f7uvRZaJXqadWctZIyeAJUTLYJDsFoAcDAlXzLMFBGhlkz3HhauFm Z7Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cr1tpz5WtAZ2lKN1bXAYO4alLn9gTjvHkoOURjWj0Vw=; b=wX8+SyJ0QrOvGGGMd0NsNaKWUmqPk/qzXPH1W2o76tzpsU15su1762zLG66OVB+A9a IDbA8Xoh1UXP6Cq8lTope/YaQczqkQeRImPvxoMr6zMOljzJnU+dNB5SN2gOrJssHf8K Ux9ipHz11rFFb7zBZSyq0cIGneo6pRSWX+UpgvlVXr83YD9s0quQLOc9W3zuYM+ksito pexPwtPrl29wIU2YFd59wX5GY/kq8scuXF/slpMedgppf0UHgIf7V5TDtNk0E//9KdAy wBGHctQw5iWWGwpW12+6c+mV5fLJ+TxxdAwg+IRoMh6kV5kjyqFeEsFmh+JysBzrd792 oG0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MikWSaBz; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a17090a854300b002036f0a953esi3396141pjw.88.2022.09.23.12.27.55; Fri, 23 Sep 2022 12:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MikWSaBz; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbiIWTSs (ORCPT + 99 others); Fri, 23 Sep 2022 15:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiIWTSs (ORCPT ); Fri, 23 Sep 2022 15:18:48 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 420E012C689 for ; Fri, 23 Sep 2022 12:18:46 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id s6so1737094lfo.7 for ; Fri, 23 Sep 2022 12:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=cr1tpz5WtAZ2lKN1bXAYO4alLn9gTjvHkoOURjWj0Vw=; b=MikWSaBz/VRpa0xtXkXSuJkBaJ3JH8/t1ObMUc9vEXl5O9T8HNpSN7b52BT0uW3li4 VGYkqKJR9mq2zSeaD5hX4q4pPgQHP6DRsLP/1KhteIgchmsXi8+dp2dP+027p+aolErZ u5YGi9plMyb9vd6nFMZ0OyByh2n5ZF201b82aU4+m1tkMp75MyqSIfZF6cE4kBHYXAh5 I/Z/85kQx5HZpG5Jlj/EbDAvqnZvHir78L2MVSSLci+kYPmR+gkpVqbSf1SiskT72dE2 yx4U14cB/dYuQEuNT5zVirKKJa3CyXa3VPHK82f0AV6MyX4eF5s1/UJ91pxwyZmAGdOf YW3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=cr1tpz5WtAZ2lKN1bXAYO4alLn9gTjvHkoOURjWj0Vw=; b=rud92RXWvg7LijSbacH9EAGhwvhh7JPLWNc7hhguYVVNPLgxoi//69U5FHkK+dFEK6 hpG+kXas3kNJ2ztmQ/NnLyinXFF+hFeKflXrzXWiYH+HMIebYQjiAlNx3CnGE1IbH21z MQMz/i97lrNMbRBmravAWcTmwHOfqkj8JILS3LvCgMwXqkSkuN9Kyy+MCc1lVTbq8uHi bYJM5FXytPrQvYSI7w/Jx/abEt0ejEWJgj7DTFm8mIZDjGkxsIn+SPFcjSaitmSR8Hvh /hz2ptk/FCQybzO/T1hJrwX3gZTIXHCOZh730LSlku7sz+cY7JiA1jCCPO1dFwtrPmxq 2gVA== X-Gm-Message-State: ACrzQf0y1hDZUl/GBMwav3OJgFcxHARFbtWokI7MidJQ05odMVBInbUD ptaAEY58h4VCAguBULqyydlQj+dNQwRIH5kfdc4= X-Received: by 2002:ac2:5cb9:0:b0:498:eb6f:740d with SMTP id e25-20020ac25cb9000000b00498eb6f740dmr3677408lfq.106.1663960724398; Fri, 23 Sep 2022 12:18:44 -0700 (PDT) MIME-Version: 1.0 References: <20220923145602.25872-1-ceggers@arri.de> In-Reply-To: <20220923145602.25872-1-ceggers@arri.de> From: Luiz Augusto von Dentz Date: Fri, 23 Sep 2022 12:18:32 -0700 Message-ID: Subject: Re: [PATCH BlueZ v2 0/9] properties_changed: check for NULL iterator To: Christian Eggers Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Christian, On Fri, Sep 23, 2022 at 8:02 AM Christian Eggers wrote: Perhaps you should rephrase to mention the NULL iter is actually the result of invalidate properties. > v2: > ---- > - 7/9: don't call memcpy(x, NULL, 0) [Scan Build] > - 9/9: shorten GIT summary [GitLint] > > Christian Eggers (9): > advertising: parse_secondary: fix loop condition > advertising: parse_secondary: fix mask value > advertising: parse_secondary: check for NULL iterator > advertising: parse_min_interval: reset min_interval if iter is NULL > advertising: parse_[min|max]_interval: reset value if iter is NULL > advertising: parse_tx_power: reset value if iter is NULL > client/gatt: proxy_property_changed: check for NULL iterator > gatt: proxy_property_changed: check for NULL iterator > battery: provided_battery_property_changed_cb: check iterator > > client/gatt.c | 17 ++++++++++------- > src/advertising.c | 22 +++++++++++++++++----- > src/battery.c | 10 ++++++---- > src/gatt-database.c | 20 +++++++++++--------- > 4 files changed, 44 insertions(+), 25 deletions(-) > > -- > 2.35.3 > -- Luiz Augusto von Dentz