[PATCH] Set behavior of sprintf-like functions with overlapping source and destination

Gabriel F. T. Gomes gabriel@inconstante.eti.br
Thu Dec 27 14:33:00 GMT 2018


On Thu, Dec 27, 2018 at 11:15:06AM +0530, Siddhesh Poyarekar wrote:
> Thanks, to clarify, is your position that we revert to old behaviour (for
> now) for the default case only or for everything, including _FORTIFY_SOURCE?

The _FORTIFY_SOURCE version did not change behaviour...  Even before
Zack's patches, it would overwrite overlapping buffers.  This means that
this patch, as it is today, reverts all behavior to what it used to be.



More information about the Libc-alpha mailing list