<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/ldb, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/'/>
<entry>
<title>pyldb: Add tests for type errors</title>
<updated>2015-03-04T00:49:02+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:14+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=c05b0a35a2f911e0e16a87d6d883fa76feb362b7'/>
<id>c05b0a35a2f911e0e16a87d6d883fa76feb362b7</id>
<content type='text'>
Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

Autobuild-User(master): Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date(master): Wed Mar  4 01:49:02 CET 2015 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

Autobuild-User(master): Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date(master): Wed Mar  4 01:49:02 CET 2015 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Report errors converting controls list to char**</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:13+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=379b919e4b5e0c309bd9ef65e84350760b788b03'/>
<id>379b919e4b5e0c309bd9ef65e84350760b788b03</id>
<content type='text'>
With this change, passing an unexpected type to the CRUD methods
will result in an informative TypeError.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this change, passing an unexpected type to the CRUD methods
will result in an informative TypeError.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Better error reporting</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=229935e03686ebdbd4f01cd2939e4399b68c33ec'/>
<id>229935e03686ebdbd4f01cd2939e4399b68c33ec</id>
<content type='text'>
Provide more useful error messages for some type errors

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provide more useful error messages for some type errors

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Type-check arguments parsed with PyArg_ParseTuple*</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:11+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=d460bab949ef48ca4e77864d624da5834dabd057'/>
<id>d460bab949ef48ca4e77864d624da5834dabd057</id>
<content type='text'>
PyObject* arguments need to be type-checked before they're
cast to subtypes.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyObject* arguments need to be type-checked before they're
cast to subtypes.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Fix reference leaks</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=d599dcb6bcac3b7b1600694be38937db0e8719b7'/>
<id>d599dcb6bcac3b7b1600694be38937db0e8719b7</id>
<content type='text'>
The parse_ldif and MessageElement.__iter__ functions leaked references
to intermediate lists whose iterators they return.

The MessageElement repr used the undocumented macro PyObject_REPR, which
leaks references. (It was used internally in CPython before fatal errors,
and will be removed in Python 3.5.)

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The parse_ldif and MessageElement.__iter__ functions leaked references
to intermediate lists whose iterators they return.

The MessageElement repr used the undocumented macro PyObject_REPR, which
leaks references. (It was used internally in CPython before fatal errors,
and will be removed in Python 3.5.)

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Remove use of staticforward macro</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:09+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=359e86af28719fd84e3b15cfb709536132dc2c14'/>
<id>359e86af28719fd84e3b15cfb709536132dc2c14</id>
<content type='text'>
Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Properly preallocate result control list</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=f87e6df34ac05b352c6c74bf1fd1d678ee23217f'/>
<id>f87e6df34ac05b352c6c74bf1fd1d678ee23217f</id>
<content type='text'>
The list was always allocated with size 1, so
if there is more than 1 result control, the additional
items would not be added in the list, and would
become leaked references.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The list was always allocated with size 1, so
if there is more than 1 result control, the additional
items would not be added in the list, and would
become leaked references.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Use the Py_TYPE macro</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:07+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=92ff259f409cfeffc24ef9d7db8ab16217367bab'/>
<id>92ff259f409cfeffc24ef9d7db8ab16217367bab</id>
<content type='text'>
The "ob_type" member of Python objects is going away
in Python 3 for compliance with C's strict aliasing rules.
The Py_TYPE macro should be used instead.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "ob_type" member of Python objects is going away
in Python 3 for compliance with C's strict aliasing rules.
The Py_TYPE macro should be used instead.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyldb: Correct reference counting when returning bools</title>
<updated>2015-03-03T22:20:06+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>pviktori@redhat.com</email>
</author>
<published>2015-03-03T21:29:06+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=39b08c7c1ee2173e47c8e9d381b89c4d74a5e0f5'/>
<id>39b08c7c1ee2173e47c8e9d381b89c4d74a5e0f5</id>
<content type='text'>
Simply returning Py_True/PyFalse doesn't increment the bool object's
reference count.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Simply returning Py_True/PyFalse doesn't increment the bool object's
reference count.

Signed-off-by: Petr Viktorin &lt;pviktori@redhat.com&gt;
Reviewed-by: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the O3 developer build</title>
<updated>2015-03-03T12:14:53+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2015-03-03T07:48:00+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=38628b1e32cb480cbd0cef57a34a9fe0216f344c'/>
<id>38628b1e32cb480cbd0cef57a34a9fe0216f344c</id>
<content type='text'>
Different gcc versions complain at different places

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;

Autobuild-User(master): Volker Lendecke &lt;vl@samba.org&gt;
Autobuild-Date(master): Tue Mar  3 13:14:53 CET 2015 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Different gcc versions complain at different places

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;

Autobuild-User(master): Volker Lendecke &lt;vl@samba.org&gt;
Autobuild-Date(master): Tue Mar  3 13:14:53 CET 2015 on sn-devel-104
</pre>
</div>
</content>
</entry>
</feed>
