<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 - Fatal error when compiling with dataflow sanitizer (DFSan) - "fatal error: error in backend: Broken function found, compilation aborted!""
   href="https://bugs.llvm.org/show_bug.cgi?id=33870">33870</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Fatal error when compiling with dataflow sanitizer (DFSan) - "fatal error: error in backend: Broken function found, compilation aborted!"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rtrieu@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat blacklist.txt 
fun:snprintf=uninstrumented
fun:snprintf=custom

$ cat reduce.cpp 
extern "C" void snprintf(...);
void Foo() {
  char a[1];
  snprintf(0, a);
}

$ clang -cc1 -emit-obj -O1 -fsanitize=dataflow
-fsanitize-blacklist=dfsan_abilist.txt -x c++ reduce.cpp
Wrong types for attribute: byval inalloca nest noalias nocapture nonnull
readnone readonly sret dereferenceable(1) dereferenceable_or_null(1)
  call void (i16*, ...) @__dfsw_snprintf(i16* %3, i32 nonnull 0, i8* %0) #5
fatal error: error in backend: Broken function found, compilation aborted!</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>