<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi All,</p>
    <p>Currently libfuzzer doesn't properly handles case when readdir
      returns dirent structure with <i>d_type == DT_UNKNOWN</i> in
      ListFilesInDirRecursive method:
<a class="moz-txt-link-freetext" href="http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerIOPosix.cpp:35">http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerIOPosix.cpp:35</a>.
      It just skips corpus data and fuzzing starts in a clean slate.</p>
    <p>Man pages of readdir says there should be fallback to the lstat/stat
      in this case: <a class="moz-txt-link-freetext" href="https://linux.die.net/man/3/readdir">https://linux.die.net/man/3/readdir</a></p>
    <p>Patch attached.<br>
    </p>
    <pre class="moz-signature" cols="72">--
Aleksander
</pre>
  </body>
</html>