llvm-project/lldb/test/API/functionalities/gdb_remote_client
Pavel Labath 3427cb5b3a [lldb] Prevent an infinite loop while reading memory regions
A malformed qMemoryRegionInfo response can easily trigger an infinite
loop if regions end (base + size) wraps the address space. A
particularly interesting is the case where base+size=0, which a stub
could use to say that the rest of the memory space is unmapped, even
though lldb expects 0xff... in this case.

One could argue which behavior is more correct (technically, the
current behavior does not say anything about the last byte), but unless
we stop using 0xff... to mean "invalid address", that discussion is very
academic. This patch truncates address ranges which wraps the address
space, which handles the zero case as well as other kinds of malformed
packets.
2022-11-25 11:55:41 +01:00
..
Makefile [lldb] Fix cross-platform kills 2021-11-09 15:31:07 +01:00
TestAArch64XMLRegOffsets.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestArmRegisterDefinition.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestContinue.py [lldb] [gdb-remote] Include PID in vCont packets if multiprocess 2022-08-20 08:21:32 +02:00
TestDynamicLoaderDarwin.py Fix out-of-bounds memory access in test 2022-09-02 18:14:23 -07:00
TestFork.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestGDBRemoteClient.py [lldb/gdb-server] Better reporting of launch errors 2022-10-06 17:18:51 +02:00
TestGDBRemoteDiskFileCompletion.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestGDBRemoteLoad.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestGDBRemotePlatformFile.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestGDBServerNoTargetXML.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestGDBServerTargetXML.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestGdbClientMemoryRegions.py [lldb] Prevent an infinite loop while reading memory regions 2022-11-25 11:55:41 +01:00
TestGdbClientModuleLoad.py [lldb] Remove uses of six module (NFC) 2022-08-11 19:06:15 -07:00
TestIOSSimulator.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestJLink6Armv7RegisterDefinition.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestMemoryRegionDirtyPages.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestMultiprocess.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestNestedRegDefinitions.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestNoGPacketSupported.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestNoLocalFile.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestNoWatchpointSupportInfo.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestPartialGPacket.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestPlatformClient.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestPlatformKill.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestPlatformMacOSX.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestProcessConnect.py [lldb] Move breakpoint hit reset code to Target::CleanupProcess 2022-10-06 17:18:51 +02:00
TestPty.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestQemuAArch64TargetXml.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestRecognizeBreakpoint.py [lldb] Add assertStopReason helper function 2022-08-03 11:44:13 -07:00
TestRegDefinitionInParts.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestRemoteRegNums.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestRestartBug.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestStopPCs.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestTargetXMLArch.py [LLDB] Remove __future__ imports from tests 2022-08-15 08:54:06 +00:00
TestThreadInfoTrailingComma.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestThreadSelectionBug.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestWasm.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestWriteMemory.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
TestqOffsets.py [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
a.yaml [lldb] [test] Rewrite g/p/G/P tests not to rely on hardcoded ARM regs 2021-10-11 14:07:28 +02:00
amd64-partial-regs.FileCheck [lldb] [ABI/X86] Add pseudo-registers if missing 2021-10-15 12:55:03 +02:00
basic_eh_frame-aarch64.yaml
basic_eh_frame-i386.yaml [lldb] [gdb-remote] Try using <architecture/> for remote arch unconditionally 2021-09-16 10:23:31 +02:00
basic_eh_frame.yaml
module_load.yaml [lldb] Avoid duplicate vdso modules when opening core files 2022-04-05 11:22:37 +02:00
operating_system.py
operating_system_2.py
qOffsets.yaml
sleep.cpp [lldb] Fix cross-platform kills 2021-11-09 15:31:07 +01:00
test_sym.yaml
test_wasm_embedded_debug_sections.yaml
test_wasm_external_debug_sections.yaml