|
From: | Bob Friesenhahn |
Subject: | Re: put slist in ltdl namespace |
Date: | Sat, 18 Dec 2004 17:07:32 -0600 (CST) |
On Sat, 18 Dec 2004, Ralf Wildenhues wrote:
The problem also exists for closedir, opendir, readdir, rewinddir, and seekdir. These are not prefixed at all so that under MinGW they will interfere with the MSYS POSIX porting library (when it is used), or with other programs which include their own portability wrapper functions.I don't see how you come to this conclusion. branch-1-5 has all replacement functions as statics, so it's ok. branch-2-0 and HEAD have replacements for opendir readdir closedir but not rewinddir and seekdir. But both have this:
I was thrown off by nm output.Under MinGW on my system, 'nm -g' on libltdl-6.dll includes this output:
10004e50 T _opendir 100042c0 T _preopen_LTX_get_vtable 10005070 T _readdir 100051f0 T _rewinddir 10005290 T _seekdirChecking libtool's config.h I see that configure discovered these functions under MinGW so the libtool versions are not being used. MinGW must have been updated to supply them somehow. This was not the case when the functions were originally added to libltdl.
This means that today's code fixes for potential stack overwrite are even less important.
Bob ====================================== Bob Friesenhahn address@hidden http://www.simplesystems.org/users/bfriesen
[Prev in Thread] | Current Thread | [Next in Thread] |