[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug found (in libc)
From: |
Wolfgang Jaehrling |
Subject: |
Re: bug found (in libc) |
Date: |
Tue, 29 Apr 2003 00:42:16 +0200 |
User-agent: |
Mutt/1.3.28i |
On Sun, Apr 27, 2003 at 03:27:45PM +0200, Niels Möller wrote:
> Well, until I'm told otherwise, I believe binary compatibility *is* a
> goal, and for the not very distant future (in particular as we now (?)
> have pthreads on the Hurd).
In my understanding, binary compatibility with GNU/Linux is dangerous.
Consider the following:
#ifdef PATH_MAX
[use PATH_MAX]
#else
[allocate dynamically]
#endif
If this has been compiled on GNU/Linux and we run it on GNU/Hurd, this
not only introduces an arbitrary limit (which one could probably live
with), it might even result in a buffer overflow if e.g. the PATH_MAX
specific code assumes that it can pass an array of size PATH_MAX to
realpath().
Additionally, I fail to see a good reason why we *would* need binary
compatiblity. All it gains us is that a) we do not need to recompile
the software and b) one might (at least unless there are other
problems) use the same system with either Linux or the Hurd and Mach.
Is this really that useful?
Cheers,
GNU/Wolfgang
- bug found (in libc), Robert Millan, 2003/04/26
- Re: bug found (in libc), Niels Möller, 2003/04/26
- Re: bug found (in libc), Robert Millan, 2003/04/26
- Re: bug found (in libc), Roland McGrath, 2003/04/26
- Re: bug found (in libc), Niels Möller, 2003/04/27
- Re: bug found (in libc), Robert Millan, 2003/04/27
- Re: bug found (in libc), Niels Möller, 2003/04/27
- Re: bug found (in libc), Robert Millan, 2003/04/27
- Re: bug found (in libc),
Wolfgang Jaehrling <=
- Re: bug found (in libc), Roland McGrath, 2003/04/27
- Re: bug found (in libc), Robert Millan, 2003/04/27
- Re: bug found (in libc), Niels Möller, 2003/04/27
- Re: bug found (in libc), Roland McGrath, 2003/04/27
- Re: Bug#187391: bug found (in libc), GOTO Masanori, 2003/04/28
- sa_len (Was Re: Bug#187391: bug found (in libc)), Niels Möller, 2003/04/28
- Re: sa_len (Was Re: Bug#187391: bug found (in libc)), Stephan Trebels, 2003/04/28
- Re: bug found (in libc), Simon Law, 2003/04/26
- Re: bug found (in libc), Robert Millan, 2003/04/27