Armin Rigo added the comment:

+        if (Py_REFCNT(result) == 1)
+            buf[len] = '\0';

...and if the refcount is not equal to 1, then too bad, we won't null-terminate 
the string and hope that nobody crashes because of this.??

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11145>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to