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=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30731 invoked from network); 13 Oct 2021 14:22:39 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2021 14:22:39 -0000 Received: (qmail 13829 invoked by uid 550); 13 Oct 2021 14:22:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 13796 invoked from network); 13 Oct 2021 14:22:37 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) From: Shiz In-Reply-To: <0100017c79f9d219-86b8d3e7-358a-473c-9736-befc0678d7c7-000000@email.amazonses.com> Date: Wed, 13 Oct 2021 16:22:22 +0200 Cc: galaxy@openwall.com.au Content-Transfer-Encoding: quoted-printable Message-Id: <489DD265-FBD7-4B1D-966C-46A397B337B8@shiz.me> References: <0100017c79f9d219-86b8d3e7-358a-473c-9736-befc0678d7c7-000000@email.amazonses.com> To: musl@lists.openwall.com X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [musl] strtoll() incompatibility Hi! > ... > I don't know what the standard prescribes for this family of functions = (I just > registered an account at Open Group to download the standard), No need to register, you can view the standard online here: https://pubs.opengroup.org/onlinepubs/9699919799/ > but from the > common sense point of view a string not containing a number for these = functions > is a valid argument, so responding with EINVAL does not seems to be = right. =46rom = https://pubs.opengroup.org/onlinepubs/9699919799/functions/strtol.html: These functions shall fail if: [EINVAL] [CX] The value of base is not supported.=20 [ERANGE] The value to be returned is not representable. These functions may fail if: [EINVAL] No conversion could be performed. > --=20 > (GM) - Shiz=