mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: Domingo Alvarez Duarte <mingodad@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Bug in atoll strtoll, the output of then differ
Date: Sun, 18 Dec 2022 13:23:25 +0100	[thread overview]
Message-ID: <20221218122325.GB78424@port70.net> (raw)
In-Reply-To: <f1c6f16a-a6fd-8447-5f9b-d3d25a044af4@gmail.com>

* Domingo Alvarez Duarte <mingodad@gmail.com> [2022-12-18 10:32:10 +0100]:
> Doing some work with emscripten with this project
> https://github.com/mingodad/CG-SQL-Lua-playground I was getting some errors
> with the usage of "atoll" and with this small program to compare the output
> of "musl" and "glibc" I found what seems to be a bug in "atoll" because with
> "musl" it gives a different output than "strtoll".

as others pointed out using ato* is a bug here.

glibc does not guarantee ato* to to be compatible with strto* either
and it just got around fixing its internal ato* usage:
https://sourceware.org/pipermail/libc-alpha/2022-December/144147.html


  parent reply	other threads:[~2022-12-18 12:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-18  9:32 Domingo Alvarez Duarte
2022-12-18  9:58 ` Markus Wichmann
2022-12-18 10:22   ` Domingo Alvarez Duarte
2022-12-18 11:10     ` Markus Wichmann
2022-12-18 10:06 ` Quentin Rameau
2022-12-18 12:23 ` Szabolcs Nagy [this message]
2022-12-18 15:25 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221218122325.GB78424@port70.net \
    --to=nsz@port70.net \
    --cc=mingodad@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).