![](https://secure.gravatar.com/avatar/ecc9bee2b1efd190a4d9cb6f55d28a96.jpg?s=120&d=mm&r=g)
Oct. 15, 2004
3:32 p.m.
Applied patch for [ 1047269 ] Buffer overwrite in PyUnicode_AsWideChar.
Python 2.3.x candidate.
why bother?
the unicode object you're copying to holds size+1 characters, so all the code does is copying an extra NULL character... completely harmless.
That's true for Py_UNICODE, but not necessarily for the wchar_t* buffer your dealing with.
oh, I missed that the patch modified two functions... (and overwriting the null char in FromWideChar is only a good idea if you're overwriting it with another null character...) </F>