pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argument
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Aug 2011 11:21:18 +0000 (13:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Aug 2011 14:45:27 +0000 (16:45 +0200)
commita5fdf05d6cfb45db319bb33cf6f601a71b2507ed
treefe5bcfa1fed904daa342b067addd921766f779e5
parent43f3d6ad339e7ca914f14e6e8eac3a2cf0ff09db
pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argument

"s#", &str, &len) required 'len' as 'int' not as 'Py_ssize_t'.
With Py_ssize_t the 2nd half of a 64bit Py_ssize_t, will be
uninitialized as 'int' is only 32bit.

metze
lib/ldb/pyldb.c