[Samba] Re: String overflow in safe_strcpy - bug in documentation

2004-07-30 Thread Carl
Hi jeremy,
You not going to like this but I am still getting the errors String 
overflow in safe_strcpy with the same config file as before and with 
the latest release (3.0.5.2 - fedora2 rpms from 
http://www.mirror.ac.uk/sites/ftp.samba.org/Binary_Packages/Fedora/RPMS/i386/core/2/ 
)

I have included the errors in the attached .txt file.
all i had to do to reproduce the error was goto a directory containing 
the samba rpm files ( which are over the 8.3 ) and of course the same 
happens for any other file over the 8.3 but not for directories.

Many Thanks,
Carl.
Jeremy Allison wrote:
On Mon, Jul 26, 2004 at 10:21:09AM +0100, Carl Matthews wrote:
Hi Jeremy,
Ive been checking the svn for mangling fixes but didnt see any should i 
just add it to bugzilla so it theres a record of it?

It's definately been fixed in the samba-docs svn tree.
Jeremy.

Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (9 - 8) in 
safe_strcpy [28-07~CU.ZIP]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (20 - 19) in 
safe_strcpy [28-07-2004 02-37-34.zip]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (9 - 8) in 
safe_strcpy [SAMBA~N0.RPM]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (24 - 23) in 
safe_strcpy [samba-swat-3.0.5-2.i386.rpm]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (9 - 8) in 
safe_strcpy [SAMBA~SE.RPM]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (19 - 18) in 
safe_strcpy [samba-3.0.5-2.i386.rpm]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (9 - 8) in 
safe_strcpy [SAMBA~R7.RPM]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (26 - 25) in 
safe_strcpy [samba-client-3.0.5-2.i386.rpm]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (9 - 8) in 
safe_strcpy [SAMBA~54.RPM]
Jul 30 17:12:24 mandrake1 smbd[30156]: [2004/07/30 17:12:24, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jul 30 17:12:24 mandrake1 smbd[30156]:   ERROR: string overflow by 1 (26 - 25) in 
safe_strcpy [samba-common-3.0.5-2.i386.rpm]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Re: String overflow in safe_strcpy - bug in documentation

2004-07-30 Thread Jeremy Allison
On Fri, Jul 30, 2004 at 07:58:59PM +0100, Carl wrote:
 Hi jeremy,
 
 You not going to like this but I am still getting the errors String 
 overflow in safe_strcpy with the same config file as before and with 
 the latest release (3.0.5.2 - fedora2 rpms from 
 http://www.mirror.ac.uk/sites/ftp.samba.org/Binary_Packages/Fedora/RPMS/i386/core/2/ 
 )
 
 I have included the errors in the attached .txt file.
 
 all i had to do to reproduce the error was goto a directory containing 
 the samba rpm files ( which are over the 8.3 ) and of course the same 
 happens for any other file over the 8.3 but not for directories.

Ok, can you give me a tarball containing the directory and also
the *exact* client you're using to reproduce this so I can check.

Thanks,

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: String overflow in safe_strcpy - bug in documentation

2004-07-30 Thread Carl
Hi,
We have 98se2 and xp home sp1 and xp pro sp1 clients, i know for sure 
win98 and xp home when listing a directory cause this problem, we only 
have a few xp pro laptops so i cant be 100% sure about those.

as for the directory i can on monday when i go back to work, but it will 
happen with any file over the limit, i end up with error logs of about 
500-600mb full of these errors.

The clients are windows 98 se and windows xp home, I know that errors 
are reported for them im pretty sure its any client but i cant say i 
have proven that.

I have a fedora box here so i might try to reproduce the errors on it 
tonight so i have sumthing to send you. Its a shame are old compilers 
and our old pcb cad system dont like the hash2.

Thanks,
Carl.

On Fri, Jul 30, 2004 at 07:58:59PM +0100, Carl wrote:
Hi jeremy,
You not going to like this but I am still getting the errors String 
overflow in safe_strcpy with the same config file as before and with 
the latest release (3.0.5.2 - fedora2 rpms from 
http://www.mirror.ac.uk/sites/ftp.samba.org/Binary_Packages/Fedora/RPMS/i386/core/2/ 
)

I have included the errors in the attached .txt file.
all i had to do to reproduce the error was goto a directory containing 
the samba rpm files ( which are over the 8.3 ) and of course the same 
happens for any other file over the 8.3 but not for directories.

Ok, can you give me a tarball containing the directory and also
the *exact* client you're using to reproduce this so I can check.
Thanks,
	Jeremy.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: String overflow in safe_strcpy - bug in documentation

2004-07-28 Thread Jeremy Allison
On Mon, Jul 26, 2004 at 10:21:09AM +0100, Carl Matthews wrote:
 Hi Jeremy,
 
 Ive been checking the svn for mangling fixes but didnt see any should i 
 just add it to bugzilla so it theres a record of it?

It's definately been fixed in the samba-docs svn tree.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: String overflow in safe_strcpy - bug in documentation

2004-07-20 Thread Thomas Bork
Herb Lewis schrieb:
you can change mangle prefix to specify the number of characters you
want to stay the same. Just remember the more letters that remain the
same the more likely you will get a collision and slow things down.
http://de.samba.org/samba/docs/man/smb.conf.5.html
mangling method (G)
controls the algorithm used for the generating the mangled names. Can 
take two different values, hash and hash2. hash is the default and
   
is the algorithm that has been used in Samba for many years. hash2 is 
a newer and considered a better algorithm (generates less collisions) in 
the names. However, many Win32 applications store the mangled names and 
so changing to the new algorithm must not be done lightly as these 
applications may break unless reinstalled.

Default: mangling method = hash2

Example: mangling method = hash
But:
hash is not the default (this was in 2.2.x)
der tom
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: String overflow in safe_strcpy - bug in documentation

2004-07-20 Thread Jeremy Allison
On Tue, Jul 20, 2004 at 09:51:25PM +0200, Thomas Bork wrote:
 Herb Lewis schrieb:
 
 you can change mangle prefix to specify the number of characters you
 want to stay the same. Just remember the more letters that remain the
 same the more likely you will get a collision and slow things down.
 
 http://de.samba.org/samba/docs/man/smb.conf.5.html
 
 mangling method (G)
 controls the algorithm used for the generating the mangled names. Can 
 take two different values, hash and hash2. hash is the default and

 is the algorithm that has been used in Samba for many years. hash2 is 
 a newer and considered a better algorithm (generates less collisions) in 
 the names. However, many Win32 applications store the mangled names and 
 so changing to the new algorithm must not be done lightly as these 
 applications may break unless reinstalled.
 
 Default: mangling method = hash2
 
 Example: mangling method = hash
 
 
 But:
 hash is not the default (this was in 2.2.x)

Fixed in the SVN docs - thanks a *lot* !

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba