bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ptrdiff_t overflow checks for malloc-posix etc.


From: Paul Eggert
Subject: Re: ptrdiff_t overflow checks for malloc-posix etc.
Date: Sun, 18 Apr 2021 15:33:58 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 4/18/21 1:23 PM, Bruno Haible wrote:
If we put the test in a module that is marked as

     Status:
     privileged-test

It shouldn't require root access to test.

I installed the attached instead, as this is simpler. If there are problems with PTRDIFF_MAX + 1, the test program might thrash or maybe even crash the kernel, but that's good enough since there shouldn't be problems. These tests are not immune to arbitrary compiler optimization tricks but it's not worth the trouble to try to bypass the trucks.

Attachment: 0001-malloc-gnu-tests-etc.-test-ptrdiff_t-overflow.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]