https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125524
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=123569
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
A warning might be useful here. BUt I still think it needs to be done
"atomically".
> to the best of my knowledge is a well defined and common coding idiom,
> undefined?
Because both fields need to be changed at the "same time". Otherwise
incrementing `buf->ptr` might allow for more than the bounds.