delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/06/07:48:51

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3A571D5F.36413161@phekda.freeserve.co.uk>
Date: Sat, 06 Jan 2001 13:27:59 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Bug in lstat() - wrong arguments to FSEXT
Reply-To: djgpp-workers AT delorie DOT com

Hello.

There appears to be a bug in lstat() - see line 910 of
src/libc/posix/sys/stat/lstat.c:

   if (__FSEXT_call_open_handlers(__FSEXT_stat, &ret, &real_path))
     return ret;

__FSEXT_call_open_handlers() should be called with the third arg as a
va_list, not a pointer like this. This has the effect of causing segfaults
in FSEXTs that support __FSEXT_stat, because the FSEXT expects the va_list
to contain a filename and pointer to a stat buffer, but only a filename
will be found.

Unfortunately I don't have time to fix it right now.

Bye, Rich =]

-- 
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019