[issue16975] Broken error handling in codecs.escape_decode()

2013-01-29 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16975] Broken error handling in codecs.escape_decode()

2013-01-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5970c90dd8d1 by Serhiy Storchaka in branch '2.7':
Issue #16975: Fix error handling bug in the escape-decode decoder.
http://hg.python.org/cpython/rev/5970c90dd8d1

New changeset 22594c5060eb by Serhiy Storchaka in branch '3.2':
Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
http://hg.python.org/cpython/rev/22594c5060eb

New changeset 580d536cc910 by Serhiy Storchaka in branch '3.3':
Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
http://hg.python.org/cpython/rev/580d536cc910

New changeset 513b728695fc by Serhiy Storchaka in branch 'default':
Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
http://hg.python.org/cpython/rev/513b728695fc

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16975] Broken error handling in codecs.escape_decode()

2013-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue16979.

--
assignee:  - serhiy.storchaka
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16975] Broken error handling in codecs.escape_decode()

2013-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which fixes error handling in codecs.escape_decode().

 codecs.escape_decode(r'[\x1]\x2', 'replace')
(b'[?]?', 8)

New tests for escape_decode() added.

--
keywords: +patch
nosy: +doerwalter, lemburg
stage: needs patch - patch review
Added file: http://bugs.python.org/file28749/escape_decode_error_handling.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16975] Broken error handling in codecs.escape_decode()

2013-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: 
http://bugs.python.org/file28750/escape_decode_error_handling-2.7.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16975] Broken error handling in codecs.escape_decode()

2013-01-15 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

 import codecs
 codecs.escape_decode(r'\x1\x2\x3\x4\x5\x6\x7\x8\x9', 'replace')
(b'?\\x1?\\x2?\\x3?\\x4?\\x5?\\x6?\\x', 27)
 codecs.escape_decode(r'\x1\x2\x3\x4\x5\x6\x7\x8\x9' * 1000, 'replace')
Segmentation fault

--
components: Interpreter Core
messages: 180056
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Broken error handling in codecs.escape_decode()
type: crash
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com