search for: strlen_w

Displaying 8 results from an estimated 8 matches for "strlen_w".

2003 Apr 05
1
Samba 2.2.8 SEGV in rpcclient getdriver on Solaris 7
...rinters flags:[0x800000] name:[\\xxxxxxx\hpem] description:[\\xxxxxxx\hpem,HP LaserJet 4050 Series PS,HP LaserJet 4050N PS] comment:[HP LaserJet 4050N PS] (trimmed) rpcclient $> getdriver hpem [Windows NT x86] signal SEGV (no mapping at the fault address) in strlen_w at 0x778d4 0x000778d4: strlen_w+0x0004: lduh [%o0], %g3 (dbx) where =>[1] strlen_w(0x0, 0x1caf00, 0x1f, 0xffbed760, 0x36, 0x0), at 0x778d4 [2] rpcstr_pull(0xffbecfe0, 0x0, 0x0, 0x0, 0x1, 0x100), at 0x797ac [3] display_print_driver_3(0x1, 0x0, 0x1c79e8, 0xff23d8fc, 0x0, 0x3), at 0x33d...
2003 May 20
4
error with cupsaddsmb - adddriver
Hello, I have installed cups on a linux server (running with RH 9.0). When executing "cupsaddsmb -a -v", I get an error: NT_STATUS_UNSUCCESSFULL, when attemping to execute adddriver". Can someone help on the meaning of this error, and on its reason (cause) ? Please find hereafter a file with result (and the error) of this commmand "cupsaddsmb", for a printer:
2003 May 13
5
cli_pipe: return critical error. Error was Call returnedzerobyte(EOF), hilfe!
Hi Kurt, I've read the new document. It's a very fine piece of technical documentation. However, it doesn't help me in the present predicament. Going now by this book I'm only getting more frustrated. What are your versions of Samba, CUPS(?), OS, and Printer again? 2.2.8a, 1.1.18, SuSE 8.2 w/2.4.20-62, Lexmark C720 I'm stuck! I would
2003 May 29
4
Samba+CUPS+Drivers autodownload
...ort NT_STATUS_UNSUCCESSFUL when you execute "adddriver" subcommand of rpcclient. The other bug prevents rpcclient's "enumdrivers" subcommands from completing and can be fixed by changing the line #943 in lib/util_unistr.c so that it reads: src_len = ( src == NULL ? 0 : strlen_w(src)*2+2 ); instead of just src_len = strlen_w(src)*2+2; So that you may find that part easily, here are the 7 lines surrounding and including the offending line: 940 dest_len=MAXUNI-3; 941 942 if (flags & STR_TERMINATE) 943 src_len = strlen_w(src)*2+2...
2002 Nov 20
3
The Samba Team announces Samba 2.2.7 - security release
...if(len > 128) len = 128; /* Password must be converted to NT unicode - null terminated. */ - - dos_struni2((char *)wpwd, (const char *)passwd, 256); + dos_struni2((char *)wpwd, (const char *)passwd, len); /* Calculate length in bytes */ len = strlen_w((const smb_ucs2_t *)wpwd) * sizeof(int16); - -------------------------------cut here--------------------------------- Changes since 2.2.6 - -------------------- See the cvs log for SAMBA_2_2 for more details 1) ensure we send the notify message in the same way it is expected to be received...
2002 Nov 20
3
The Samba Team announces Samba 2.2.7 - security release
...if(len > 128) len = 128; /* Password must be converted to NT unicode - null terminated. */ - - dos_struni2((char *)wpwd, (const char *)passwd, 256); + dos_struni2((char *)wpwd, (const char *)passwd, len); /* Calculate length in bytes */ len = strlen_w((const smb_ucs2_t *)wpwd) * sizeof(int16); - -------------------------------cut here--------------------------------- Changes since 2.2.6 - -------------------- See the cvs log for SAMBA_2_2 for more details 1) ensure we send the notify message in the same way it is expected to be received...
2002 Dec 06
0
smbpasswd has password length problem with the 2.2.7 security patch
...if(len > 128) len = 128; /* Password must be converted to NT unicode - null terminated. */ - dos_struni2((char *)wpwd, (const char *)passwd, 256); + dos_struni2((char *)wpwd, (const char *)passwd, len); /* Calculate length in bytes */ len = strlen_w((const smb_ucs2_t *)wpwd) * sizeof(int16); - -------------------------------cut here---------------------------------
2001 Dec 12
1
MacOS X Server samba diffs
...long usedCharLen = 0; - - src = (unsigned char *)from; - dst = (unsigned char *)cvtbuf; - - dst[0] = '\0'; - if (global_CFString_Encoding != kCFStringEncodingDOSJapanese) - { - if (*src) - { - ucs2result = dos_to_unicode(ucs2Str, src, 2048); - unicodeChars = strlen_w(ucs2Str); - result = CFStringEncodingUnicodeToBytes(kCFStringEncodingUTF8, kCFStringEncodingUseHFSPlusCanonical,(const UniChar *)ucs2Str,unicodeChars,&usedCharLen,(UInt8*)dst,2047,&usedByteLen); - if (result == 0) - dst[usedByteLen] = '\0'; - } - } -else -...