Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4198462yba; Tue, 7 May 2019 13:56:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhARCjJXi9RqkyXRd0dgDl5jBJmMRKJpqzogMfQmTG6owCXMk8tIuQ/Jc7Pve789+fBqBL X-Received: by 2002:a63:130d:: with SMTP id i13mr11220227pgl.396.1557262572650; Tue, 07 May 2019 13:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557262572; cv=none; d=google.com; s=arc-20160816; b=hmqdzf1VcJ1V2pyV25oZmE59t3IN7kHnw8V95TW5tkf08Pcz44zH1HRwWJfqkhYyLc tfhOIE+RRw/9JPr2MRDiiOCYV51qTsH1+fVGmuIawVYZosdYJrcQLsScL3A/+ExN4MI9 PHj9t23W8FABcPaBU2TSPsy9koBytMIqYsY9/6yZPjuR212Qp6odWm4B27BU9oVyAJ72 pToujSfDVNwZ1QmINdJ71QtgQE0qHpXVdjmi/A3s7we4qbBygAuHLaE2wTmRzeNgplP7 APDRYLpai8rWjyTF4Zf42N86yxrr758QwvXkvujQwzm2tAstR/xnb/kHkmYWmYDA1c1W aakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=9XvpZgCJwawGoPXIn8zPUV9ybaabAFKgmRnutSisA1I=; b=LMAH6ttXm6I/kngNj/XQsnbUp2rlfUpUizejJ26J1anri4E8zmVLNj7OfrGXDGsKt8 rV9py8MNnsFQoyM6xWUYiGqzq4G/4+FfuMs06vtXEm9JPS8trJH5aw8WWYiU+wzzxvoZ TZuZHJf866U5xfaAjtMKXzrMNccgMvU/XCcVjZrlwg2Fj44fbYeY2ePad0GXNI9MNFA9 ScE+qZSUFNnItrQEnoQ+EeRsGYL5gCSI3Q6V+7wTW5W9X3+BTQAuX+HFc9VzVuA9T8my xnFl7XmRFbben59sfbanSWACcJMev8RzH4WYIPSA7Kvd05A1Y6K3QVP2Duzix6vghDQJ Q0Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YnI2StCG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si1142470pgb.427.2019.05.07.13.55.56; Tue, 07 May 2019 13:56:12 -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=@gmail.com header.s=20161025 header.b=YnI2StCG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727861AbfEGUzw (ORCPT + 99 others); Tue, 7 May 2019 16:55:52 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46472 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727870AbfEGUzw (ORCPT ); Tue, 7 May 2019 16:55:52 -0400 Received: by mail-ot1-f65.google.com with SMTP id v17so8249074otp.13 for ; Tue, 07 May 2019 13:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9XvpZgCJwawGoPXIn8zPUV9ybaabAFKgmRnutSisA1I=; b=YnI2StCGwKy5TSoGm98I0dPpRBFdi8wIY5CqEp9kbL9uCtrxiEI92zBoQs+N5/AwDB iDBPnsflbWiujgXqt/juCbDv9GImuu04tsIgQpb7y49qxYjYw/hrbTsPN1rTSB38g/cp D+HYx5JVXHPPPv4ryPjvtf0vXB4FULzA5ypZTC5O14egE46jiDhZvKK4o4ws+dYHCazv dQfAIZUAtuKVv5MJrSsfyyetBmyVpbx9V5qRSgtygfePxGMPQinM+golF63/Ub8b0QMn xOCqcBq613y7l7R4+VbeuFD//rLVKzfQULn55yCa0Nx3WvQlDBKzkyFNHYDAddoQzjYo meRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9XvpZgCJwawGoPXIn8zPUV9ybaabAFKgmRnutSisA1I=; b=krsHvCZ+KTm7VxhQL51+HegxT7qLB7y9+qaQ5q39pWxSUvSgSQ6h1VGXRjy5ri0TBc bXOn3/rxG4nL7b1/5gjy3ObMC5zyTeliw2Q5fIwSObR+VUYYDYCVUmzvnxCd8JgPosgE 7+pRMXkj+0XQ+oZ9Po86GO5YAArcLSqJBdvN9lRtKEjqUVyPgtCFDamIQAFE0KJqyL0u x1ylbHgqnPVyIfzx77LECHhiuPt9VELWYSik9b7vz6gVcu4FcCSyr49QAwTv1VteaX2J IURD406dBLQ3iF9kqZdPpiRL0roVZd+2g8u0E3hVCRGDrxMi3/z0RJ0lBKKzV5MaYuht ENqw== X-Gm-Message-State: APjAAAWFvCqt2SSJCjgC3z/pndZQ2VQ9Gw82V6ONYhwbQ0+vJqRg2LVT G/RNv33Cr1dObrb2/xVVzkg= X-Received: by 2002:a9d:7987:: with SMTP id h7mr2292724otm.284.1557262551873; Tue, 07 May 2019 13:55:51 -0700 (PDT) Received: from [192.168.1.249] (cpe-70-114-247-242.austin.res.rr.com. [70.114.247.242]) by smtp.googlemail.com with ESMTPSA id m20sm6047558otq.30.2019.05.07.13.55.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 13:55:51 -0700 (PDT) Subject: Re: [PATCH BlueZ v2] mesh: Use node uuids as storage directory names To: "Gix, Brian" , "michal.lowas-rzechonek@silvair.com" , "linux-bluetooth@vger.kernel.org" Cc: "Stotland, Inga" References: <20190507071340.20675-1-michal.lowas-rzechonek@silvair.com> <1557261666.31289.11.camel@intel.com> From: Denis Kenzior Message-ID: <18e096c6-3b22-0096-5cb2-bef7264dbefe@gmail.com> Date: Tue, 7 May 2019 15:55:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1557261666.31289.11.camel@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Brian, On 05/07/2019 03:41 PM, Gix, Brian wrote: >> + if (asprintf(&cfg, "%s/%s/node.json", dir_name, >> + entry->d_name) < 0) >> + continue; > > With ELL, we do not use asprintf. Every dynamic allocation must map back to l_malloc, which performs an > abort() if a memory allocation fails. So this should be re-coded as a malloc of the desired size, and then use > snprintf, using the malloc'd length as N. > ...or use l_strdup_printf. Which is actually asprintf underneath... ;) Regards, -Denis