Home page logo
/

bugtraq logo Bugtraq mailing list archives

Re: smbmount problem?
From: slapic () FIDO HU (Czako Krisztian)
Date: Tue, 21 Apr 1998 22:57:11 +0200


On Tue, Apr 21, 1998 at 12:05:43PM +0100, Chris Evans wrote:

# export USER=`perl -e 'print "A" x 10000'`
# /usr/sbin/smbmount //a/b /
Segmentation fault

Maybe I'm doing something wrong, but:
slapic () orion:~$ export USER=`perl -e 'print "A" x 10000'`
slapic () orion:~$ smbmount //orion/slapic orion/
Username too long: AAAAAAAAAAAAAAAAAA... etc...

-rwsr-sr-x   1 root     root        10556 Mar 27 04:42 /usr/bin/smbmount

smbmount Version 2.0.2

Debian hamm,
ii  smbfs           2.0.2-5        Mount and umount commands for the smbfs.

in line 530 of smbmount.c:
       if (getenv("USER")) {
                char *user = getenv("USER");
                if (strlen(user) >= sizeof(data.username)) {
                        fprintf(stderr, "Username too long: %s\n", user);
                        exit(1);
                }

So I think it's corrected.

Regards,
Slapic

--
PGP 0x96A9B35D / 37 93 43 2A 81 5C B3 0D  CD C4 94 F8 FA D4 AD C5
To get my key: mail slapic () orion fido hu -s "PGPKEY" < /dev/null



  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]