[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2021-09-10 Thread Irit Katriel
Irit Katriel added the comment: If we do this then there are tests tha break, for instance test_is_symlink has this: self.assertIs((P / 'fileA\x00').is_file(), False) -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4, Python 3.5 ___ Python

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147 ___ ___

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file36327/embedded_null_in_path.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-08 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147 ___ ___ Python-bugs-list mailing

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147 ___ ___ Python-bugs-list

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds like a reasonable request indeed. -- components: +Library (Lib) versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147 ___

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-06 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147 ___ ___

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-05 Thread Isaac Schwabacher
New submission from Isaac Schwabacher: This is listed as a python3.4 issue even though I only tried this on the python2.7 backport because I don't have a python3 handy, but I was not able to find an indication, either here or elsewhere, that this had been addressed. Please forgive me if it

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-05 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: Further digging reveals that the issue with `open()` was fixed in #13848 (the bug was in the `io` module). I still believe that this should fail in the `pathlib.Path` constructor, but this is less of a security issue. -- type: security - behavior