<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - null pointer dereference in libfuzzer?"
   href="https://bugs.llvm.org/show_bug.cgi?id=33091">33091</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>null pointer dereference in libfuzzer?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>agostino.sarubbo@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18466" name="attach_18466" title="stacktrace1">attachment 18466</a> <a href="attachment.cgi?id=18466&action=edit" title="stacktrace1">[details]</a></span>
stacktrace1

This is the first time I tried to use libfuzzer, I'd like to understand if I
did something bad on my side.

I downloaded this:
<a href="https://github.com/google/oss-fuzz/blob/master/projects/curl/curl_fuzzer.cc">https://github.com/google/oss-fuzz/blob/master/projects/curl/curl_fuzzer.cc</a>
I compiled it with: 

clang++ -g3 -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard
curl_fuzzer.cc -lcurl /usr/lib64/libFuzzer.a -o curl_libfuzzer

while I launch ./curl_libfuzzer I get (see stacktrace1):
==19775==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x000000000000 bp 0x000000000000 sp 0x7ffe82b616b8 T0)


after that I tried to do the same thing with libfuzzer compiled with
asan/ubsan,
I get more info but the same result (see stacktrace2).

I have clang 4.0.0 and libfuzzer 3.9.1</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>