From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 19328 invoked from network); 18 Dec 2020 10:03:22 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 18 Dec 2020 10:03:22 -0000 Received: from mail-lf1-f53.google.com ([209.85.167.53]) by ewsd; Fri Dec 18 04:59:15 -0500 2020 Received: by mail-lf1-f53.google.com with SMTP id u18so3907198lfd.9 for <9front@9front.org>; Fri, 18 Dec 2020 01:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:to:cc:subject:from:date:in-reply-to:mime-version :content-transfer-encoding; bh=MTWLmcRIZxWZJt6GQ5KBVElcIiq3yT1ZNtgeeFaMB+Y=; b=B1c12Pt/sXEk7MWPGLHFIQu7GF9e8f+KaqbCRQDvOPfFvOWLRrV6wOhb8Dvnwv3mOq L+zEYwHdGmX38nw+fq1oST1gtMd5eROX9O3zqeFkaEWS1T9AmvYj/CGxuVP2Zt8Wes2j yjE8cLX7BPDj9XVEp2mh1PAvTd4UqUgvZd/+EQPlOSitimKYTJiFOgXPMrWh/nfY3t9H bt5w3gIc25PxCxEq3SzzE24/YgDogdoBzWR/ECiFy5fuwgmZdO5UmqPoCfHVE7IlzE6N 23Dbn0Y9ySfYatEu0jiQ5MWiTsTMSFElmlGODekSMoiGFCkMxIJf9TM7gZxjEBKHTA2L 7mgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:to:cc:subject:from:date:in-reply-to :mime-version:content-transfer-encoding; bh=MTWLmcRIZxWZJt6GQ5KBVElcIiq3yT1ZNtgeeFaMB+Y=; b=kWo9IYP5a3RswJ64mVYCCUmTDPWND0BP9eAF808Mz/0bVs1E/2iChk2HRYYkhnG4dP rDCtygVYuj4qcJN2PsYuFmsjDR4mptpbrqq58Xw2bjhRxsauxDa6t1BM+8TMneKXqtCq 3gTKKJ14NvBNy7uaXyr0eMQucaZNmWFjw1jXY5w7/PW2C0tGHVHWxaaik6/Ma8CjKi4P 7Nh3KUjpQwPE1pIzHQM26/+FiZmm2BVGHX+bPOSK1+GurGw3SbAMLoI+m7NOEGfFyO6V vviIO5wuIrN3h+wxPWu2Rl9xzsUlq51SFGdJKz7zVHczzHYJchRjLAG7Pe84nbYM3adx 9sIQ== X-Gm-Message-State: AOAM532Pb3Gdg32Q/rLUDHQwTBY3tYdx2deqtXIDMiGLSB5Hwn4ficyH TJMFMLurukHrb8Acm+9cU80= X-Google-Smtp-Source: ABdhPJzDtmT80N9FzQOqYo40xNUlOlYHk5BuJbU7cEe6RKCbWstVVUahVtpOGz2BKjseJCemah87og== X-Received: by 2002:a19:500e:: with SMTP id e14mr1271601lfb.415.1608285545662; Fri, 18 Dec 2020 01:59:05 -0800 (PST) Return-Path: Received: from localhost (c-adc9e655.027-406-73746f40.bbcust.telenor.se. [85.230.201.173]) by smtp.gmail.com with ESMTPSA id q16sm876030lfb.8.2020.12.18.01.59.05 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Dec 2020 01:59:05 -0800 (PST) Message-ID: To: tlaronde@polynum.com, 9front@9front.org CC: meta.jxy@gmail.com From: "Sigrid Solveig Haflínudóttir" Date: Fri, 18 Dec 2020 10:59:04 +0100 In-Reply-To: <20201218090144.GB742@polynum.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: dependency injection CMS frontend Subject: Re: [9front] strndup should use strnlen and memcpy Reply-To: 9front@9front.org Precedence: bulk > Because the terminating '\0' may not be here. Why wouldn't it be there? Isn't strndup supposed to work on strings? Is there any (trustworthy standard-like) source that mentions non-terminated strings as something that should work with strndup?