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.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25159 invoked from network); 18 Dec 2020 15:37:10 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 18 Dec 2020 15:37:10 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Fri Dec 18 10:28:07 -0500 2020 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 95744f10 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO); Fri, 18 Dec 2020 07:27:33 -0800 (PST) Message-ID: <3D1A3C07E9FBD4182E5C2870ADFB8842@eigenstate.org> To: meta.jxy@gmail.com To: 9front@9front.org Date: Fri, 18 Dec 2020 07:27:31 -0800 From: ori@eigenstate.org In-Reply-To: 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: overflow-preventing virtualized content-driven template Subject: Re: [9front] strndup should use strnlen and memcpy Reply-To: 9front@9front.org Precedence: bulk Quoth Xiao-Yong Jin : > I just saw the new commit of strndup that uses strlen and memmove. > memmove is unnecessary. > strlen is dangerous. Good catch; Fix committed.