[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#33505: glibc dlerror() on dlopen() fails with long (22 char!) filename



On Wed, 17 Feb 1999 20:22:45 +0800, David Luyer wrote:
>
>There appears to be a major bug in dlerror() or dlopen(); when I pass 
>dlopen() an invalid object (eg, an empty file) with a filename longer than
>around 22 characters, I get the first 21 or so characters of the filename
>followed by a random character out of dlerror().  The error message and the
>rest of the filename are nowhere to be seen.

The bug is not present in libc 2.1.  The dynamic linker was completely
rewritten, so I can't find an obvious fix to backport.

I'm a bit suspicious of this bug, 21 chars is absurdly short for a
pathname buffer.  Could you post some sample code please?

zw


Reply to: