<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/source3/lib/fstring.c, branch talloc-2.4.4</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>s3-lib: restore truncating behavior of push_ascii_nstring()</title>
<updated>2022-10-25T16:25:40+00:00</updated>
<author>
<name>Philipp Gesang</name>
<email>philipp.gesang@intra2net.com</email>
</author>
<published>2022-10-17T11:42:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0a66c739532cbe9bad38deb78f76f48a676f7ffa'/>
<id>0a66c739532cbe9bad38deb78f76f48a676f7ffa</id>
<content type='text'>
Some users of push_ascii_nstring() (notably name_to_unstring())
expect the output to be truncated if it would exceed the size of
an nstring after conversion. However this broke in 2011 due to
commit d546adeab5 ("Change convert_string_internal() and
convert_string_error() to bool return"). This patch restores the
old behavior.

The issue can be observed in syslog after setting the
``workgroup`` to a 16+ characters long string which triggers a
DEBUG() message:

    Oct 17 11:28:45 dev nmbd[11716]: name_to_nstring: workgroup name 0123456789ABCDEF0123456789ABCDEF is too long. Truncating to

Signed-off-by: Philipp Gesang &lt;philipp.gesang@intra2net.com&gt;
Reviewed-by: Noel Power &lt;npower@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;

Autobuild-User(master): Noel Power &lt;npower@samba.org&gt;
Autobuild-Date(master): Tue Oct 25 16:25:40 UTC 2022 on sn-devel-184
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some users of push_ascii_nstring() (notably name_to_unstring())
expect the output to be truncated if it would exceed the size of
an nstring after conversion. However this broke in 2011 due to
commit d546adeab5 ("Change convert_string_internal() and
convert_string_error() to bool return"). This patch restores the
old behavior.

The issue can be observed in syslog after setting the
``workgroup`` to a 16+ characters long string which triggers a
DEBUG() message:

    Oct 17 11:28:45 dev nmbd[11716]: name_to_nstring: workgroup name 0123456789ABCDEF0123456789ABCDEF is too long. Truncating to

Signed-off-by: Philipp Gesang &lt;philipp.gesang@intra2net.com&gt;
Reviewed-by: Noel Power &lt;npower@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;

Autobuild-User(master): Noel Power &lt;npower@samba.org&gt;
Autobuild-Date(master): Tue Oct 25 16:25:40 UTC 2022 on sn-devel-184
</pre>
</div>
</content>
</entry>
<entry>
<title>s3-lib Remove more unused fstring.c functions</title>
<updated>2011-04-13T04:47:07+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2011-04-12T05:39:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=43deb9745b3175d070ce5c62ec6104b31e567249'/>
<id>43deb9745b3175d070ce5c62ec6104b31e567249</id>
<content type='text'>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3-lib: Remove unused pull_ucs2_fstring()</title>
<updated>2011-04-13T04:47:06+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2011-04-12T05:22:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b6a8418ff6918e6c01d603f69e28167fbcd91dee'/>
<id>b6a8418ff6918e6c01d603f69e28167fbcd91dee</id>
<content type='text'>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix convert_string() to take a *converted_size arg. and return a bool.</title>
<updated>2011-03-30T21:59:37+00:00</updated>
<author>
<name>Jeremy Allison</name>
<email>jra@samba.org</email>
</author>
<published>2011-03-30T20:08:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=c109a70531de72eef30a695248b91704bd0c7c24'/>
<id>c109a70531de72eef30a695248b91704bd0c7c24</id>
<content type='text'>
Makes these interfaces much harder to misuse and easier to ensure error
checking.

Autobuild-User: Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Makes these interfaces much harder to misuse and easier to ensure error
checking.

Autobuild-User: Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>Change convert_string_internal() and convert_string_error() to bool return.</title>
<updated>2011-03-30T18:58:10+00:00</updated>
<author>
<name>Jeremy Allison</name>
<email>jra@samba.org</email>
</author>
<published>2011-03-30T17:27:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d546adeab54af123eff66cee61a487c88b6ba61b'/>
<id>d546adeab54af123eff66cee61a487c88b6ba61b</id>
<content type='text'>
Move closer to makeing all convert_string_XXX functions return bool.

Autobuild-User: Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date: Wed Mar 30 20:58:10 CEST 2011 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move closer to makeing all convert_string_XXX functions return bool.

Autobuild-User: Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date: Wed Mar 30 20:58:10 CEST 2011 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the nstring calls to use the correct sizes.</title>
<updated>2011-03-30T17:13:01+00:00</updated>
<author>
<name>Jeremy Allison</name>
<email>jra@samba.org</email>
</author>
<published>2011-03-30T17:13:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=048471d14b3ed65fe83e8f225e03af925aaf0c47'/>
<id>048471d14b3ed65fe83e8f225e03af925aaf0c47</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>s3-string: removed last use of conv_silent</title>
<updated>2011-03-25T03:37:06+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2011-03-24T04:44:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=232fb016a15c0536aabc3bc23607721398693037'/>
<id>232fb016a15c0536aabc3bc23607721398693037</id>
<content type='text'>
This replaces the push_ascii_nstring() implementation with a call to
convert_string_error()

Pair-Programmed-With: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This replaces the push_ascii_nstring() implementation with a call to
convert_string_error()

Pair-Programmed-With: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3-string: moved fstring functions into their own file</title>
<updated>2011-03-25T03:37:06+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2011-03-24T04:56:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f705fc9002ffc32a6155b5411f896212a9408f33'/>
<id>f705fc9002ffc32a6155b5411f896212a9408f33</id>
<content type='text'>
Pair-Programmed-With: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pair-Programmed-With: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
