mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Andrew Bell <andrew.bell.ia@gmail.com>
To: musl@lists.openwall.com
Subject: open64 and similar
Date: Wed, 10 Jul 2019 18:03:51 -0400	[thread overview]
Message-ID: <CACJ51z1GNcZBcA=-fzBjZWxResrmx5twsyR-C0-dupG9xP0kqw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

musl does the following:

#define open64 open

This can cause an infinite loop for the following code:

class Foo
{
public:
  int open64()
    {  open(); }
};

Perhaps it would be better to supply open64 and have it call open, rather
than #define it?  There are several other xxx64 functions also defined that
could cause problems with unfortunate code.

-- 
Andrew Bell
andrew.bell.ia@gmail.com

[-- Attachment #2: Type: text/html, Size: 743 bytes --]

             reply	other threads:[~2019-07-10 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-10 22:03 Andrew Bell [this message]
2019-07-10 22:43 ` Rich Felker
2019-07-11  1:58   ` 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='CACJ51z1GNcZBcA=-fzBjZWxResrmx5twsyR-C0-dupG9xP0kqw@mail.gmail.com' \
    --to=andrew.bell.ia@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).