[LTP] [RFC PATCH 1/9] lib: Add support for guarded buffers

Cyril Hrubis chrubis@suse.cz
Fri Aug 2 16:23:09 CEST 2019


Hi!
> > If we have runtime free then we need to figure out which map the
> > address belongs to or what its offset is (if any).
> 
> That's easy, we will store the returned pointer to the map structure
> and use it for comparsion...

Or we even don't have to do that, we do have a buffer start address and
length so we just need to make sure that the pointer fits the range...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list