summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-17 12:26:20 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-17 12:26:20 (GMT)
commite80a6a4ead1da87d2a4149bfcbb95c1a3320dbc2 (patch)
tree8fd4b9d3e430610e4fea82bbc2974bca013d0c6a /Misc
parentaee900338e76c9d0879bf9470bc3be7912b11817 (diff)
downloadcpython-e80a6a4ead1da87d2a4149bfcbb95c1a3320dbc2.zip
cpython-e80a6a4ead1da87d2a4149bfcbb95c1a3320dbc2.tar.gz
cpython-e80a6a4ead1da87d2a4149bfcbb95c1a3320dbc2.tar.bz2
Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)
could crash in many places because of the PyByteArray_AS_STRING() macro returning NULL. The macro now returns a statically allocated empty string instead.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index bc8529a..4806f26 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 2.7 alpha 3?
Core and Builtins
-----------------
+- Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)
+ could crash in many places because of the PyByteArray_AS_STRING() macro
+ returning NULL. The macro now returns a statically allocated empty
+ string instead.
+
- Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
methods of bytes, bytearray and unicode objects by using a common
implementation based on stringlib's fast search. Patch by Florent Xicluna.