[New-bugs-announce] [issue13848] io.open() doesn't check for embedded NUL characters
Antoine Pitrou
report at bugs.python.org
Tue Jan 24 03:03:20 CET 2012
New submission from Antoine Pitrou <pitrou at free.fr>:
>>> open("\x00abc")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: ''
Contrast with 2.x open():
>>> open("\x00abc")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: file() argument 1 must be encoded string without NULL bytes, not str
----------
components: IO, Library (Lib)
keywords: easy
messages: 151876
nosy: hynek, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: io.open() doesn't check for embedded NUL characters
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13848>
_______________________________________
More information about the New-bugs-announce
mailing list