Just a short heads-up for users of aio/eio_readdirx:

I just fixed a memory corruption bug in eio_readdirx, for the flags
combination of EIO_READDIR_STAT_ORDER | EIO_READDIR_DIRS_FIRST. Either
flag alone should be fine.

The corruption would access and modify memory before the dents block.

Reason for the corruption was that with that flags combination, the radix
sort pass would sort entries according to a different sort order than the
insertion sort pass, but the insertion sort pass relies on finding the
minimum element near the start of the array, which would not be the case
as the definition of "minimum" would be different.

A new IO::AIO version with an updated libeio has not been released, but
will probably be released within 24h.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to