On 7/21/23 09:16, Siddhesh Poyarekar wrote:
The test deliberately reads beyond bounds to exersize ubsan and the
return value may be anything, based on previous allocations.  The OFF
test caters for it by ANDing the return with 0, do the same for the DYN
test.

gcc/testsuite/ChangeLog:

        PR testsuite/110763
        * gcc.dg/ubsan/object-size-dyn.c (dyn): New parameter RET.
        (main): Use it.
OK
jeff

Reply via email to