[New-bugs-announce] [issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

Alexey Izbyshev report at bugs.python.org
Thu Aug 23 13:41:50 EDT 2018


New submission from Alexey Izbyshev <izbyshev at ispras.ru>:

This is a follow-up of #34454. 'datetime' extension module attempts to encode input strings into UTF-8 in several places, which requires special care because some valid Python strings can't be represented in UTF-8. It makes sense to add more tests for methods dealing with strings.

Note that my PR doesn't attempt to deal with #34481. In cases where behavior differs between C and Python datetime impls the tests check only for  absence of crashes.

----------
components: Extension Modules
messages: 323964
nosy: belopolsky, izbyshev, p-ganssle, serhiy.storchaka, taleinat
priority: normal
severity: normal
status: open
title: datetime: Tests for potential crashes due to non-UTF-8-encodable strings
type: security
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34482>
_______________________________________


More information about the New-bugs-announce mailing list