[PATCH 1/2 v2] Don't overflow in __libdw_in_section

Ulf Hermann ulf.hermann@qt.io
Thu Dec 14 13:55:00 GMT 2017


On 12/14/2017 02:43 PM, Mark Wielaard wrote:
> (Meta, I have some trouble applying this with git am, it thinks the
> patch is malformed. But I can apply by hand of course.)

Oh, sorry for that. It's probably the leading spaces again. I keep messing up my mail setup on windows ...

> The transformation seems correct. But if we can overflow/underflow
> here, do we have the same problem in __libdw_offset_in_section where we
>   check data->d_size - offset < size, with offset a Dwarf_Off?

Probably we have the same problem there. I didn't catch any instances of it, though.

regards,
Ulf



More information about the Elfutils-devel mailing list