|
Message-ID: <CACJ51z1GNcZBcA=-fzBjZWxResrmx5twsyR-C0-dupG9xP0kqw@mail.gmail.com>
Date: Wed, 10 Jul 2019 18:03:51 -0400
From: Andrew Bell <andrew.bell.ia@...il.com>
To: musl@...ts.openwall.com
Subject: open64 and similar
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@...il.com
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.