From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Enable utf8->string to take a range Date: Fri, 21 Jan 2022 18:04:11 +0100 Message-ID: <0f4ce6f8ddbdd9456dcc0063b206bf8c76d71da6.camel@telenet.be> References: <87h79x6abc.fsf@vijaymarupudi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-JuxmLpgBBiKXphnYz9e7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12035"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 To: Vijay Marupudi , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 21 18:36:16 2022 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAxpe-0002x5-TS for guile-devel@m.gmane-mx.org; Fri, 21 Jan 2022 18:36:14 +0100 Original-Received: from localhost ([::1]:59068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAxpd-0006Cr-UB for guile-devel@m.gmane-mx.org; Fri, 21 Jan 2022 12:36:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAxKk-0006o3-AY for guile-devel@gnu.org; Fri, 21 Jan 2022 12:04:18 -0500 Original-Received: from [2a02:1800:110:4::f00:19] (port=55614 helo=laurent.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAxKh-0007KD-1x for guile-devel@gnu.org; Fri, 21 Jan 2022 12:04:17 -0500 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id lV4B2600F4UW6Th01V4BF6; Fri, 21 Jan 2022 18:04:12 +0100 In-Reply-To: <87h79x6abc.fsf@vijaymarupudi.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642784652; bh=LBdVYIEesl2m3/yeURSxAId8dkd0gRqHg1voQBj/nU8=; h=Subject:From:To:Date:In-Reply-To:References; b=WqE/BzV9bKPMqp5ZjKibmHaptkW8EEgrYGAt4/UvMwhe5mEebKqEjfUz9gRoaXrDN FiVTIb3z0GmVfgSgYfOvC2E/uEgkwjn0CObORtJdi/EXOFUEL4pUTnSXkjCHG9WfNn 04RV8ouCHRRdGHKw+pGA1zNT6CgjOjErxN3Ra6n+piKyCvHgrlZc5/9HoaFV91QtRX Xa0xkGwZlNE9pF+13EczJcx8t/iaa4pb7sp0fi+BcynvJR6rTEh5lDSbhChu3iAuCG HgRqTue2ybR6wOeRTUVVGtlHSX3Wrnz0GJMEOe7XNbLFmM1oqzGq3/dc6SyDoO3c4U 3vUSw0JZZBSRw== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:19 (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:19; envelope-from=maximedevos@telenet.be; helo=laurent.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21056 Archived-At: --=-JuxmLpgBBiKXphnYz9e7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Vijay Marupudi schreef op do 20-01-2022 om 22:23 [-0500]: > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 c_start =3D scm_to_size_t (start); This seems suboptimal because if start > SIZE_MAX, then this will throw an 'out-of-range' exception without attributing it to 'utf8->string' (untested). Greetings, Maxime. --=-JuxmLpgBBiKXphnYz9e7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYernixccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7i9HAQCaJhiIHCL1VI6Dkm8AOszbn3cb vDM6DWzjd7IrzOfjzAEA97FZJt/+7TIjxedKNuUBwwZyRJIXSKTqaOB5FJUjoAM= =jIp7 -----END PGP SIGNATURE----- --=-JuxmLpgBBiKXphnYz9e7--