<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Buffer overflow in method LLLexer::FP80HexToIntPair"
   href="https://llvm.org/bugs/show_bug.cgi?id=24640">24640</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Buffer overflow in method LLLexer::FP80HexToIntPair
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>normal
          </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>kschimpf@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14799" name="attach_14799" title="Assembly test file">attachment 14799</a> <a href="attachment.cgi?id=14799&action=edit" title="Assembly test file">[details]</a></span>
Assembly test file

Test case: bug.ll

Using llvm-as-fuzzer (built using lib/Fuzzer), the following address sanitizer
bug was found:

SUMMARY: AddressSanitizer: heap-buffer-overflow
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:110:30 in FP80HexToIntPair

==6507==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000003b06
at pc 0x000000510942 bp 0x7ffc97eb6a90 sp 0x7ffc97eb6a88
READ of size 1 at 0x619000003b06 thread T0
    #0 0x510941 in FP80HexToIntPair
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:110:30
    #1 0x510941 in llvm::LLLexer::Lex0x()
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:852
    #2 0x50bcb6 in llvm::LLLexer::LexDigitOrNegative()
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:914:14
    #3 0x4fa6e4 in llvm::LLLexer::LexToken()
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:232:12
    #4 0x4f9fc7 in llvm::LLLexer::LexToken()
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:207:12
    #5 0x4f9fc7 in llvm::LLLexer::LexToken()
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:207:12
    #6 0x4f9fc7 in llvm::LLLexer::LexToken()
/workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.cpp:207:12
    #7 0x51d342 in Lex /workspace/llvm-dev/llvm/lib/AsmParser/LLLexer.h:50:24
    #8 0x51d342 in llvm::LLParser::ParseNamedGlobal()
/workspace/llvm-dev/llvm/lib/AsmParser/LLParser.cpp:479
    #9 0x510e14 in llvm::LLParser::ParseTopLevelEntities()
/workspace/llvm-dev/llvm/lib/AsmParser/LLParser.cpp:224:33
    #10 0x510a01 in llvm::LLParser::Run()
/workspace/llvm-dev/llvm/lib/AsmParser/LLParser.cpp:48:10
    #11 0x4f1161 in llvm::parseAssemblyInto(llvm::MemoryBufferRef,
llvm::Module&, llvm::SMDiagnostic&, llvm::SlotMapping*)
/workspace/llvm-dev/llvm/lib/AsmParser/Parser.cpp:31:10
    #12 0x4f242b in parseAssembly
/workspace/llvm-dev/llvm/lib/AsmParser/Parser.cpp:41:7
    #13 0x4f242b in llvm::parseAssemblyFile(llvm::StringRef,
llvm::SMDiagnostic&, llvm::LLVMContext&, llvm::SlotMapping*)
/workspace/llvm-dev/llvm/lib/AsmParser/Parser.cpp:59
    #14 0x4ed9b1 in main
/workspace/llvm-dev/llvm/tools/llvm-as/llvm-as.cpp:96:31
    #15 0x7f9bb0976ec4 in __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:287
    #16 0x424f3b in _start
(/workspace/llvm-dev/build-as-test/bin/llvm-as+0x424f3b)</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>