From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501a.mail.yandex.net (forward501a.mail.yandex.net [178.154.239.81]) by sourceware.org (Postfix) with ESMTPS id 0E98438582AB for ; Wed, 29 Mar 2023 14:28:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E98438582AB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net [IPv6:2a02:6b8:c18:58f:0:640:3768:0]) by forward501a.mail.yandex.net (Yandex) with ESMTP id AD6205E997; Wed, 29 Mar 2023 17:28:33 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id WSJuxv2DaeA0-u4exuJgY; Wed, 29 Mar 2023 17:28:33 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1680100113; bh=1vT0zZefBeY4WcljDBLubL1IlpdYUG46izsaJ5sqzf8=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=Mw7wKmey+aCLohvG2B14gEGgFC414E7RCnNXx9sXrjkKTrcVYTjan6Fc8nMRq7Xke FVPKvPhcTMOSpECsCIULJ60Pn8XAK7TDjezynzefMQp/OWCtSX3GQ3hS99vOnV9E2a zL2805Gt3+Xyul3pLcOoKuKesqekZrchVH6fnnC0= Authentication-Results: mail-nwsmtp-smtp-production-main-31.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <64ed2395-863e-81b3-2f0b-d2cc2bc7ffe4@yandex.ru> Date: Wed, 29 Mar 2023 19:28:31 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 01/13] elf: strdup() l_name if no realname [BZ #30100] Content-Language: en-US To: Adhemerval Zanella Netto , libc-alpha@sourceware.org References: <20230318165110.3672749-1-stsp2@yandex.ru> <20230318165110.3672749-2-stsp2@yandex.ru> <1da89fa5-e322-7cfa-0e0c-7074a4436a44@linaro.org> <58e025ba-ae95-bce8-f58e-6c80b4445e45@linaro.org> From: stsp In-Reply-To: <58e025ba-ae95-bce8-f58e-6c80b4445e45@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 29.03.2023 19:19, Adhemerval Zanella Netto пишет: > > On 29/03/23 11:12, stsp wrote: >> 29.03.2023 18:54, Adhemerval Zanella Netto пишет: >> But dlmem() can also use "" as the name >> if the name is not specified explicitly. >> Without that patch it crashes. >> I think you mean its not needed w/o dlmem()? > Yes, I did not take in consideration dlmem inclusion for this. If dlmem breaks > this assumption, it is another issue with the interface. Could you please suggest what should be done? dlmem() may create the anonymous objects, name is optional. I noticed that some code uses "" and did the same. What is the suggested solution about creating an anonymous object? Of course you can prohibit an empty name for dlmem(), but that will only force people to fake it with some "123".