<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/util/talloc_stack.c, branch talloc-2.3.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>talloc_stack: Call talloc destructors while frame is still around</title>
<updated>2018-06-23T02:56:44+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2018-06-22T14:25:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=05b54cc259645f69e14de2703724c284ed25838c'/>
<id>05b54cc259645f69e14de2703724c284ed25838c</id>
<content type='text'>
This fixes "samba-tool ntacl set -d10"

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;

Autobuild-User(master): Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date(master): Sat Jun 23 04:56:44 CEST 2018 on sn-devel-144
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes "samba-tool ntacl set -d10"

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;

Autobuild-User(master): Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date(master): Sat Jun 23 04:56:44 CEST 2018 on sn-devel-144
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc_stack: abort in developer me if no stackframe on talloc_tos()</title>
<updated>2012-07-18T05:37:27+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-07-18T05:37:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=1f8b574adb10397ca4b9dc4a55281d3afaaeabfc'/>
<id>1f8b574adb10397ca4b9dc4a55281d3afaaeabfc</id>
<content type='text'>
Don't tolerate leaks in developer mode.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't tolerate leaks in developer mode.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>talloc_stack: report lazy freeing (panic if DEVELOPER).</title>
<updated>2012-07-17T19:27:31+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-07-17T19:27:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=84fb37fe372bc22e0a3ceca8030bff459225044a'/>
<id>84fb37fe372bc22e0a3ceca8030bff459225044a</id>
<content type='text'>
talloc_stackframe() stacks, so if you forget to free one, the outer
one will free it.  However, it's not a good idea to rely too heavily
on this behaviour: it can lead to delays in the release of memory or
destructors.

I had an elaborate hack to make sure every talloc_stackframe() was
freed in the exact same function it was allocated, however all bugs it
caught were simply lazy freeing, so this patch just checks for that.

This doesn't check for stackframes we don't free up on exit: that would
be nice, but uncovers some uncomfortable (but probably harmless) cases.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
talloc_stackframe() stacks, so if you forget to free one, the outer
one will free it.  However, it's not a good idea to rely too heavily
on this behaviour: it can lead to delays in the release of memory or
destructors.

I had an elaborate hack to make sure every talloc_stackframe() was
freed in the exact same function it was allocated, however all bugs it
caught were simply lazy freeing, so this patch just checks for that.

This doesn't check for stackframes we don't free up on exit: that would
be nice, but uncovers some uncomfortable (but probably harmless) cases.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>talloc_stack: always include the location when creating a talloc_stackframe().</title>
<updated>2012-07-17T19:26:31+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-07-17T19:26:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f9b51ff33e10aa126de848072e98b0bf36a7dbc7'/>
<id>f9b51ff33e10aa126de848072e98b0bf36a7dbc7</id>
<content type='text'>
Much better for debugging.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Much better for debugging.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>talloc_stack: handle more than one talloc_stackframe_pool()</title>
<updated>2012-07-17T19:25:31+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-07-17T19:25:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=311281c2c550b71ec4d8b2fc7329a1dfe5af82b0'/>
<id>311281c2c550b71ec4d8b2fc7329a1dfe5af82b0</id>
<content type='text'>
The only reason we make one stackframe parent of the next is so we use
our parent's pool.  That doesn't make sense if we're a new pool, and
wouldn't work anyway.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The only reason we make one stackframe parent of the next is so we use
our parent's pool.  That doesn't make sense if we're a new pool, and
wouldn't work anyway.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: added talloc_stackframe_exists()</title>
<updated>2011-06-17T05:25:42+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2011-06-17T04:22:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b07e4933b7ed4b2452cfdd9d223eecb8c0b74fec'/>
<id>b07e4933b7ed4b2452cfdd9d223eecb8c0b74fec</id>
<content type='text'>
This can be used to tell if a talloc stackframe is currently
available. Callers can use this to decide if they will use
talloc_tos() or instead use an alternative strategy. This gives us a
way to safely have calls to talloc_tos() in common code that may end
up in external libraries, as long as all talloc_tos() calls in these
pieces of common code check first that a stackframe is available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can be used to tell if a talloc stackframe is currently
available. Callers can use this to decide if they will use
talloc_tos() or instead use an alternative strategy. This gives us a
way to safely have calls to talloc_tos() in common code that may end
up in external libraries, as long as all talloc_tos() calls in these
pieces of common code check first that a stackframe is available.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use TALLOC_FREE in talloc_pop()</title>
<updated>2010-03-21T16:12:23+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2010-03-21T14:55:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d097d9fb09ff1f4acc4c8407a1a7903b6ef197de'/>
<id>d097d9fb09ff1f4acc4c8407a1a7903b6ef197de</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use calloc instead of ZERO_STRUCTP in talloc_stackframe_create()</title>
<updated>2010-03-21T16:12:23+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2010-03-21T14:16:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0f3040a61fc51434e07ed5a87a89eda25e196514'/>
<id>0f3040a61fc51434e07ed5a87a89eda25e196514</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Trim an overlong line</title>
<updated>2010-03-21T16:12:23+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2010-03-21T14:14:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=6695b0e87d135dff759ce202cf61de49e062e946'/>
<id>6695b0e87d135dff759ce202cf61de49e062e946</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc_stack: reset stackframe pointers to NULL</title>
<updated>2010-03-15T14:08:24+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2010-03-15T13:39:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d23581b4d7a4936002c1d2d748836aead9215120'/>
<id>d23581b4d7a4936002c1d2d748836aead9215120</id>
<content type='text'>
This makes it easier to debug the code in future.

metze
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it easier to debug the code in future.

metze
</pre>
</div>
</content>
</entry>
</feed>
