commit | e78178e2c05ec2bb628b70a8b5422bb4dae63343 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Mon Jul 30 13:31:40 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Mon Jul 30 13:31:40 2007 +0000 |
tree | d1c8662e41b7f8f95714bc903ad048a01673c369 | |
parent | 2dbde5ea444de788721e9195d644da38061204c3 [diff] |
Bytes (which are the input for decoding) are mutable now. If a decoding error callback changes the bytes object in the exception the decoder might use memory that's no longer in use. Change unicode_decode_call_errorhandler() so that it fetches the adresses of the bytes array (start and end) from the exception object and passes them back to the caller.