[issue13849] Add tests for NUL checking in certain strs

Alex Gaynor report at bugs.python.org
Tue Jan 24 03:05:54 CET 2012


New submission from Alex Gaynor <alex.gaynor at gmail.com>:

ATM there's no tests (at least in 2.x, I haven't checked 3.x yet) for this behavior:

>>> os.path.exists("/tmp\x00abcds")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.2/genericpath.py", line 18, in exists
    os.stat(path)
TypeError: embedded NUL character

----------
components: Tests
messages: 151877
nosy: alex, amaury.forgeotdarc
priority: normal
severity: normal
status: open
title: Add tests for NUL checking in certain strs
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13849>
_______________________________________


More information about the Python-bugs-list mailing list