A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-October/049438.html below:

[Python-Dev] Re: Re: python/dist/src/Objects unicodeobject.c, 2.228, 2.229

[Python-Dev] Re: Re: python/dist/src/Objects unicodeobject.c, 2.228, 2.229 [Python-Dev] Re: Re: python/dist/src/Objects unicodeobject.c, 2.228, 2.229Fredrik Lundh fredrik at pythonware.com
Fri Oct 15 17:32:39 CEST 2004
>>>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> 



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4