OT: Objevena 25 let stará chyba v BSD

Pav Lucistnik pav at FreeBSD.org
Wed May 14 16:36:03 CEST 2008


Toth Milan píše v st 14. 05. 2008 v 16:28 +0200:
> Ahojte,
> 
> 	urcite uz mnohy z Vas poculi, ze bola objavena tato chyba. Chcel by  
> som sa iba opytat zainteresovanych vo vyvoji FreeBSD, ci sa to uz  
> objavilo niekde v commitoch do freebsd csv. A ci niekto kompetentny  
> podnikol nejake kroky v prospech FreeBSD :o) Dakujem za info. Pripajam  
> link:
> 
> http://www.root.cz/zpravicky/objevena-25-let-stara-chyba-v-bsd/
> http://www.vnode.ch/fixing_seekdir

Myslis neco jako rev. 1.11 na tomhle fajlu?
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/telldir.c

Do not read away the target directory entry when encountering deleted
files after a seekdir().

The seekdir shall set the position for the next readdir operation.
When the _readdir_unlocked() encounters deleted entry, dd_loc is
already advanced. Continuing the loop leads to premature read of
the target entry.

Submitted by:	Marc Balmer <mbalmer at openbsd org>
Obtained from:	OpenBSD
MFC after:	2 weeks

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

It also explains why paper clips just lie there while you look at them,
but as soon as you turn your back, they run away, giggling wildly,
and transform themselves into coat hangers.



More information about the Users-l mailing list