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.23:14:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441581262.51.0.90226017602.issue24917@psf.upfronthosting.co.za>
In-reply-to
Content
How's this for the test (I added an explanatory comment, since it may look like it isn't testing anything to someone who isn't familiar with the issue):

    def test_strftime_format_check(self):
        # Test that strftime does not crash on invalid format strings
        # that may trigger a buffer overread. When not triggered,
        # strftime may succeed or raise ValueError depending on
        # the platform.
        for x in [ '', 'A', '%A', '%AA' ]:
            for y in range(0x0, 0x10):
                for z in [ '%', 'A%', 'AA%', '%A%', 'A%A%', '%#' ]:
                    try:
                        time.strftime(x * y + z)
                    except ValueError:
                        pass
History
Date User Action Args
2015-09-06 23:14:22steve.dowersetrecipients: + steve.dower, lemburg, georg.brandl, paul.moore, belopolsky, vstinner, larry, tim.golden, BreamoreBoy, python-dev, zach.ware, eryksun, JohnLeitch, brycedarling
2015-09-06 23:14:22steve.dowersetmessageid: <1441581262.51.0.90226017602.issue24917@psf.upfronthosting.co.za>
2015-09-06 23:14:22steve.dowerlinkissue24917 messages
2015-09-06 23:14:22steve.dowercreate