[PATCH] [gdb/testsuite] Use allocator_may_return_null=1 in two test-cases

Tom Tromey tom@tromey.com
Thu Apr 18 14:04:25 GMT 2024


>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> Simon reported [1] that recent commit 06e967dbc9b ("[gdb/python] Throw
Tom> MemoryError in inferior.read_memory if malloc fails") introduced
Tom> AddressSanitizer allocation-size-too-big errors in the two test-cases
Tom> affected by this commit.

Tom> Fix this by suppressing the error in the two test-cases using
Tom> allocator_may_return_null=1.

Tom> Tested on aarch64-linux.

Tom> [1] https://sourceware.org/pipermail/gdb-patches/2024-April/208171.html

Looks reasonable to me.
Approved-By: Tom Tromey <tom@tromey.com>

Tom


More information about the Gdb-patches mailing list