Re: [PATCH] GDB: Fix out of bounds accesses with limited-length values

Simon Marchi via Gdb-patches
2023-02-23T21:34:34Z

On 2/23/23 16:14, Maciej W. Rozycki wrote:
> Fix accesses to limited-length values in `contents_copy_raw' and
> `contents_copy_raw_bitwise' so that they observe the limit of the
> original allocation.
>
> Reported by Simon Marchi as a heap-buffer-overflow AddressSanitizer
> issue triggered with gdb.ada/limited-length.exp.
> ---
> Hi,
>
> Verified to remove the original issue and not to cause any regressions
> with and w/o AddressSanitizer and native `x86_64-linux-gnu'. OK to apply?
>
> Maciej

Thanks, that LGTM:

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon