Given that you'd never find empty string, just error.
Also add a test that an invalid expr generates an error.
Paths
| Differential D123793
[lldb] Handle empty search string in "memory find" ClosedPublic Authored by DavidSpickett on Apr 14 2022, 7:19 AM.
Details Summary Given that you'd never find empty string, just error. Also add a test that an invalid expr generates an error.
Diff Detail
Event TimelineComment Actions Previously this would crash. Unless we'd rather treat it as \x0 but that could be confusing. You can always search for literal 0 instead. This revision is now accepted and ready to land.Apr 14 2022, 12:31 PM Closed by commit rG68e73eaee632: [lldb] Handle empty search string in "memory find" (authored by DavidSpickett). · Explain WhyApr 19 2022, 2:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 423564 lldb/source/Commands/CommandObjectMemory.cpp
lldb/test/API/functionalities/memory/find/TestMemoryFind.py
|