delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/10/23:08:17

Message-ID: <3AD3CA93.4DA31C76@lps.u-psud.fr>
Date: Tue, 10 Apr 2001 20:08:03 -0700
From: Daniel Taupin <taupin AT lps DOT u-psud DOT fr>
X-Mailer: Mozilla 4.76 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com
Subject: locate.exe
Reply-To: djgpp AT delorie DOT com

 Finally, I find out thet locate.exe works perfectly... when the
database is not too big. In fact, when I run

updatedb c:/     (where c: is a 34 Gigabyte disk with a lot of files)

then locate crashes with a page fault. But, when I run updatedb on a
limited number of files, it runs OK. I shall look whether I'm able to
correct that.

Anyway, the *char value read_pos is incremented WITHOUT any check in
getline.c, so that if for some reason ia line is huge, the crash is very
likely.
-- 
-------------------------------------------------------------------------
Daniel Taupin, 841 Seale, Palo Alto, Calif. 94301, USA
001.650.3257703 (jusqu'au 22 avril 2001)
------------------------------------------------------------------------

- Raw text -


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