Re: [PATCH] of: address: Unify resource bounds overflow checking

2025-01-20 Thread Basharath Hussain Khaja
> On Fri, Jan 17, 2025 at 12:23:53PM +0530, Basharath Hussain Khaja wrote: >> >> >> Thomas Weißschuh writes: >> >> >> > The members "start" and "end" of struct resource are of type >> >> >> > "resource_size_

Re: [PATCH] of: address: Unify resource bounds overflow checking

2025-01-08 Thread Basharath Hussain Khaja
Hi, >> Thomas Weißschuh writes: >> > The members "start" and "end" of struct resource are of type >> > "resource_size_t" which can be 32bit wide. >> > Values read from OF however are always 64bit wide. >> > >> > Refactor the diff overflow checks into a helper function. >> > Also extend the checks

Re: [PATCH] of: address: Unify resource bounds overflow checking

2025-01-16 Thread Basharath Hussain Khaja
>> >> Thomas Weißschuh writes: >> >> > The members "start" and "end" of struct resource are of type >> >> > "resource_size_t" which can be 32bit wide. >> >> > Values read from OF however are always 64bit wide. >> >> > >> >> > Refactor the diff overflow checks into a helper function. >> >> > Also