Re: [PATCH v3] GDB: Fix the overflow in addr/line_is_displayed()

Pedro Alves
2020-01-06T19:55:52Z

Hi,

I merged this patch without waiting for copyright clearing, since the
amount of new copyrightable code is a few lines only IMO (the threshold
check), and also the current form of the patch was largely suggested
by me in a previous email.

For further fixes, I think it's better to wait until copyright
issues are cleared though.

> This commit avoids the segmentation faults with an early check:
>
> if (contet.size () < SCROLL_THRESHOLD)
> return false;

I fixed the "contet" typo before merging.

Thanks,
Pedro Alves