[issue43075] ReDoS in urllib.request

2021-08-23 Thread Gianluca Gabrielli
Gianluca Gabrielli added the comment: RedHat has now assigned CVE-2021-3733 to this security bug. -- nosy: +crazybyte ___ Python tracker <https://bugs.python.org/issue43

[issue36304] When using bz2 and lzma in mode 'wt', the BOM is not written

2019-03-18 Thread Gianluca
Gianluca added the comment: In case the file is not seekable, we could decide based on the file mode: - if mode='w', write the BOM - if mode='a', don't write the BOM Of course, mode "a" doesn't guarantee we are in the middle of the file, but it seems a

[issue36304] When using bz2 and lzma in mode 'wt', the BOM is not written

2019-03-15 Thread Gianluca
Gianluca added the comment: As one can read in the stackoverflow answer, using _pyio.TextIOWrapper works as expected. So it looks like this is a bug of _io.TextIOWrapper. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36304] When using bz2 and lzma in mode 'wt', the BOM is not written

2019-03-15 Thread Gianluca
New submission from Gianluca : When bz2 and lzma files are used in writing text mode (wrapped in a TextIOWrapper), the BOM of encodings such as utf-16 and utf-32 is not written. The gzip package works as expected (it writes the BOM). The code that demonstrate this behavior (tested with

[issue29604] ImportError when importing the package `queue`

2017-02-20 Thread Gianluca Rossi
New submission from Gianluca Rossi: In Python 3.5.2 importing *queue* raises an *ImportError*. ``` Python 3.5.2 (default, Jul 5 2016, 12:43:10) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >