Message84833
PyDict_SetItemString() fails when the second argument (key) is null
pointer. It occurs because PyString_FromString(key) call doesn't check
for null pointer and if we're in a disabled assert environment the
assert() is not caught and strlen() fails.
I don't know what is the best fix but we have two possibilities:
(i) check the second argument in PyDict_SetItemString() before calling
PyString_FromString() and returns null if that argument is null;
(ii) replace the assert() in PyString_FromString() to 'if (str == NULL)
return NULL;'.
This bug was reported as a PostgreSQL bug at [1].
[1] http://archives.postgresql.org/pgsql-hackers/2009-03/msg01344.php |
|
Date |
User |
Action |
Args |
2009-03-31 16:47:14 | eulerto | set | recipients:
+ eulerto |
2009-03-31 16:47:13 | eulerto | set | messageid: <1238518033.32.0.364685297824.issue5627@psf.upfronthosting.co.za> |
2009-03-31 16:47:11 | eulerto | link | issue5627 messages |
2009-03-31 16:47:10 | eulerto | create | |
|