<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in Makefile</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>ffcf5711 - [LLDB] Fix &apos;std::out_of_range&apos; crashing bug when file name completion using file path.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/lldb/test/API/iohandler/completion/Makefile#ffcf5711</link>
        <description>[LLDB] Fix &apos;std::out_of_range&apos; crashing bug when file name completion using file path.When I run a lldb command that uses filename completion, if I enter a stringthat is not only a filename but also a string with a non-file name string added,such as &quot;./&quot; that is relative path string , it will crash as soon as I press the[Tab] key. For example, debugging an executable file named &quot;hello&quot; that iscompiled from a file named &quot;hello.c&quot; , and I&#8217;ll put a breakpoint on line 3 ofhello.c.```$ lldb ./hello(lldb) breakpoint set --file hello.c --line 3```This is not a problem, but if I set &quot;--file ./hello.&quot;  and then press [Tab] keyto complete file name, lldb crashes.```$ lldb ./hello(lldb) breakpoint set --file ./hello.terminate called after throwing an instance of &apos;std::out_of_range&apos;  what():  basic_string::substr: __pos (which is 8) &gt; this-&gt;size() (which is 7)```The crash was caused because substr() (in lldb/source/Host/common/Editline.cpp)cut out string which size is user&apos;s input string from the completion string.I modified the code that erase the user&apos;s intput string from current line andthen add the completion string.Differential Revision: https://reviews.llvm.org/D108817

            List of files:
            /llvm-project-15.0.7/lldb/test/API/iohandler/completion/Makefile</description>
        <pubDate>Mon, 30 Aug 2021 12:12:29 +0000</pubDate>
        <dc:creator>Hiroki &lt;h.imai.833@nitech.jp&gt;</dc:creator>
    </item>
</channel>
</rss>
