This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add page tests to string/test-strnlen.


On Tue, Mar 14, 2017 at 3:37 PM, Wainer dos Santos Moschetta
<wainersm@linux.vnet.ibm.com> wrote:
> On 03/09/2017 01:28 AM, DJ Delorie wrote:
>> I wonder if any of these
>> mmap-based tests have some way of forcing a page violation (by
>> intentionally accessing beyond the mmap'd area) to test to be sure that
>> an exception actually happens?  If the test can't prove the fault will
>> happen, all the other tests are technically inconclusive.  (not that
>> it's relevent to the patch you're submitting, I'm just wondering)
>
> Don't know too.

I don't know of code that does specifically this, but debug/tst-chk1.c
has logic that could maybe be repurposed.  It's probably the sort of
thing that should be written once and put in support/.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]