]> granicus.if.org Git - python/commit
Issue #13612: handle unknown encodings without a buffer overflow.
authorEli Bendersky <eliben@gmail.com>
Sat, 25 May 2013 12:25:48 +0000 (05:25 -0700)
committerEli Bendersky <eliben@gmail.com>
Sat, 25 May 2013 12:25:48 +0000 (05:25 -0700)
commit6dc32b34ddfba0ddb990cbbb77cf8803879d20f9
tree52b3529adfb9b0ccdf71bd5a34a1edb8bb50fdff
parent6b5a38c728bbca3273b6917308559cf22e298531
Issue #13612: handle unknown encodings without a buffer overflow.

This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new
function - DefaultUnknownEncodingHandler.

Based on a patch by Serhiy Storchaka.
Include/pyexpat.h
Lib/test/test_xml_etree.py
Modules/_elementtree.c
Modules/pyexpat.c