This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients BreamoreBoy, JohnLeitch, belopolsky, brycedarling, eryksun, georg.brandl, larry, lemburg, paul.moore, python-dev, steve.dower, tim.golden, vstinner, zach.ware
Date 2015-09-06.21:55:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441576524.74.0.384425801875.issue24917@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, those macros prevent a certain class of "undefined behavior," which in this case is to terminate the process rather than return an error code. They don't do anything to prevent crashes due to exploitation or malicious code.

The place for more robust formatting is datetime.__format__(), which from a quick test seems to be more strict about what is in the format string.
History
Date User Action Args
2015-09-06 21:55:24steve.dowersetrecipients: + steve.dower, lemburg, georg.brandl, paul.moore, belopolsky, vstinner, larry, tim.golden, BreamoreBoy, python-dev, zach.ware, eryksun, JohnLeitch, brycedarling
2015-09-06 21:55:24steve.dowersetmessageid: <1441576524.74.0.384425801875.issue24917@psf.upfronthosting.co.za>
2015-09-06 21:55:24steve.dowerlinkissue24917 messages
2015-09-06 21:55:24steve.dowercreate