<html>
    <head>
      <base href="http://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 --- - ObjectContainerBSDArchive::Object::Extract() crashes if extracted file name is exactly 16 characters long"
   href="http://llvm.org/bugs/show_bug.cgi?id=19826">19826</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ObjectContainerBSDArchive::Object::Extract() crashes if extracted file name is exactly 16 characters long
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>michaelwoerister@posteo.net
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The method ObjectContainerBSDArchive::Object::Extract() in 
source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
crashes if the file name extracted from the header is exactly 16 bytes long.
The error is caused by the following piece of code:

// Strip off any spaces (if the object file name contains spaces it
// will use the extended format above).
str.erase (str.find(' '));
ar_name.SetCString(str.c_str());

The str.find(' ') call returns npos in this case (because there are no padding
spaces) which causes str.erase() to throw an exception, crashing LLDB.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>