[cfe-commits] [PATCH] Strftime and "non literal format"

Joerg Sonnenberger joerg at britannica.bec.de
Tue Feb 7 01:43:52 PST 2012


On Thu, Feb 02, 2012 at 10:28:03AM +0100, Jean-Daniel Dupas wrote:
> 
> I'm wondering if it is right to emit warnings when using a non literal string in strftime function.
> Unlike other format functions, this one takes only 1 single mandatory argument that represents the time we want to format.
> So, unlike other format functions, it should not be 'unsafe' to pass an arbitrary string.

I agree for strftime. The question is, does every possible user of the
strftime format have this property.

Joerg



More information about the cfe-commits mailing list