]> 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:27:10 +0000 (05:27 -0700)
committerEli Bendersky <eliben@gmail.com>
Sat, 25 May 2013 12:27:10 +0000 (05:27 -0700)
commit7b3022f24f4bb8c64d02e103de3168e96729bdc2
tree1d027a6e109d195fe7c6a1b3662ea4618c6fcb28
parent19fef69b752d5a1e836ba5b552a8e68592503852
parent6dc32b34ddfba0ddb990cbbb77cf8803879d20f9
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.
Lib/test/test_xml_etree.py
Modules/_elementtree.c