The Samba-Bugzilla – Attachment 409 Details for
Bug 1097
strnlen and strndup broken on AIX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Details for strndup bug
samba2.txt (text/plain), 3.70 KB, created by
Heinrich Mislik
on 2004-02-19 03:57:29 UTC
(
hide
)
Description:
Details for strndup bug
Filename:
MIME Type:
Creator:
Heinrich Mislik
Created:
2004-02-19 03:57:29 UTC
Size:
3.70 KB
patch
obsolete
>I used this patch: > >*** smbd/mangle_hash2.c.orig Thu Feb 19 12:42:31 2004 >--- smbd/mangle_hash2.c Thu Feb 19 12:33:12 2004 >*************** >*** 175,180 **** >--- 175,183 ---- > } > > prefix_cache[i] = strndup(prefix, length); >+ M_DEBUG(0,("after strndup: prefix=<%s>; length=%d; strndup=<%s>\n", >+ prefix,length,prefix_cache[i])); >+ > prefix_cache_hashes[i] = hash; > } > >and see: > > >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<FolderRedir.adm>; length=11; strndup=<FolderRedir> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<FolderRedir.reg>; length=11; strndup=<FolderRedir> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<NT4-Locking.reg>; length=11; strndup=<NT4-Locking> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<NT4_PlainPassword.reg>; length=17; strndup=<NT4_PlainPassword> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<Win-NT-2K-XP-DeleteRoamingProfile.reg>; length=33; strndup=<Win-NT-2K-XP-DeleteRoamingProfile> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<Win2000_PlainPassword.reg>; length=21; strndup=<Win2000_PlainPasswordWin-NT-2K-XP-DeleteRoamingP> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<Win95_PlainPassword.reg>; length=19; strndup=<Win95_PlainPasswordainPasswordWin-NT-2K-XP-Delet> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<Win9X-CacheHandling.reg>; length=19; strndup=<Win9X-CacheHandling^A^P^YqÀ> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<WinME_PlainPassword.reg>; length=19; strndup=<WinME_PlainPassword> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<WinXP_PlainPassword.reg>; length=19; strndup=<WinXP_PlainPasswordr/locks> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<WinXP_SignOrSeal.reg>; length=16; strndup=<WinXP_SignOrSeal> >[2004/02/19 12:49:23, 0] smbd/mangle_hash2.c:cache_insert(179) > after strndup: prefix=<WindowsTerminalServer.reg>; length=21; strndup=<WindowsTerminalServer> > >The user sees: > >G:\test\samba-3.0.1\docs\Registry>dir /x > Volume in drive G is Unet Home > Volume Serial Number is 06DD-02A5 > > Directory of G:\test\samba-3.0.1\docs\Registry > >19.02.2004 12:37 <DIR> . >15.12.2003 15:54 <DIR> .. >14.12.2003 00:54 1,433 FREKPM~Z.ADM FolderRedir.adm >14.12.2003 00:54 849 FREKPM~Z.REG FolderRedir.reg >06.12.2001 08:33 871 NPF0V8~9.REG NT4-Locking.reg >06.12.2001 08:33 303 NNLS6J~7.REG NT4_PlainPassword.reg >16.01.2003 03:20 288 WT2H2Y~R.REG Win-NT-2K-XP-DeleteRoamingProfile.reg >06.12.2001 08:33 303 WTTKBN~H.REG Win2000_PlainPassword.reg >06.12.2001 08:33 122 WPLPS8~5.REG Win95_PlainPassword.reg >06.12.2001 08:33 190 WJ36C6~G.REG Win9X-CacheHandling.reg >06.12.2001 08:33 122 WRXIE9~T.REG WinME_PlainPassword.reg >17.11.2002 00:59 1,026 WB4BRV~J.REG WinXP_PlainPassword.reg >05.04.2002 19:02 449 W8GWQ0~Z.REG WinXP_SignOrSeal.reg >06.12.2001 08:33 230 WOIGGZ~X.REG WindowsTerminalServer.reg > 12 File(s) 6,186 bytes > 2 Dir(s) 34,275,328 bytes free > >G:\test\samba-3.0.1\docs\Registry>type WJ36C6~G.REG >The system cannot find the file specified. > >G:\test\samba-3.0.1\docs\Registry>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1097
: 409 |
416