[issue1950] Potential overflows due to incorrect usage of PyUnicode_AsString.

Alexandre Vassalotti report at bugs.python.org
Sat Apr 12 23:56:26 CEST 2008


Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

I revised the patch with respect to Alexander's comments. In summary,
here is what I changed from the previous patch:

  - Removed the unnecessary "fixes" to Objects/structseq.c
    and Modules/timemodule.c
  - Updated Objects/typeobject.c to forbid null-bytes in __doc__,
    since they cannot be handled in the `tp_doc` member.
  - Removed an erroneous pointer dereference in Modules/zipimport.c
  - Changed `len+1` to `len` in the memcpy() call in the
    Modules/parsermodule.c fixes

Added file: http://bugs.python.org/file10019/unicode_string_overflow-2.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1950>
__________________________________


More information about the Python-bugs-list mailing list