| ^~
alx@debian:~/tmp$ ./a.out
equal before
p = 0x55bff80802a0; q = 0x55bff80802a0
realloc()
PID = 25222
p = 0x55bff80806d0; q = 0x55bff80802a0
Did I miss anything?
-Wuse-after-free=3
Regards.
--
Yann Droneaud
OPTEYA
n't
> imagine of an implementation that invokes UB. Moreover, as you can see, it is
> useful to make it wrap around in a defined way.
>
> Would you consider either or both of being more generous in the GNU
> implementation and guarantee wrap around, and/or suggest that the standard
> guarantees the wrap around?
>
> And BTW, if any of this code helps you implement that for GNU, please feel
> free
> to take it. :)
>
--
Yann Droneaud
OPTEYA
operator as _Sizeof()
? And have a header #define'ing sizeof(...) as _Sizeof() for code
wanting the new behavior ?
Is this possible ? Is such feature was already considered ?
Regards.
--
Yann Droneaud
OPTEYA
t's not related to
GNU Compiler Collection.
Regards.
--
Yann Droneaud
OPTEYA