summaryrefslogtreecommitdiff
path: root/source3/lib/hash.c
AgeCommit message (Collapse)AuthorFilesLines
2003-02-24Fix 2 off-by-one bugs in the use of malloc()ed strings and safe_strcpy().Andrew Bartlett1-2/+4
safe_strcpy() isn't particularly safe (this has been noted before) as it does not take the size of the buffer, but instead the size of the buffer *minus 1* The locking.c fix was causing segfaults on machines running with --enable-developer, and was tracked down thanks to the fact that vance's build farm machine runs with such an option, and smbtorture's DIR1 test hits this bug very well. (The --enable-developer code writes to the last byte of the string, to check for incorrect use of safe_strcpy()). Andrew Bartlett (This used to be commit e908fd164d1b11b6f76a6fdffb22e139813cb3c0)
2003-02-22More signed/unsigned fixes (yes, I run with funny compiler options) andAndrew Bartlett1-5/+5
make x_fwrite() match fwrite() in returning a size_t. Andrew Bartlett (This used to be commit 2943c695787b742e9a96b2eefe2d75f681bacf7c)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-25fixed the really awful performance problem with the stat cache when itAndrew Tridgell1-8/+10
ran out of primes and used a power of two hash modulus. It ended up sticking all the entries in just a few buckets. Yuck! (This used to be commit fdc9952391027e209fbd24f7794b1c2b551b1f9f)
2001-09-19Fix (I hope) compile on HP-UX. Found by the build farm.Andrew Bartlett1-1/+1
(This used to be commit fd5c67d35a3e9eaee6c54151c5fd9381a47c7b14)
2001-09-17move to SAFE_FREE()Simo Sorce1-14/+8
(This used to be commit 60e907b7e8e1c008463a88ed2b076344278986ef)
2001-05-12string_hash() should be static. hash_clear() should be void.Jeremy Allison1-6/+4
Jeremy. (This used to be commit e8ab89fbc0b6cec9f3e80fe4327992b2ec7a4a40)
2000-10-04Made re-init of stat cache explicit rather than being hidden.Jeremy Allison1-4/+0
Jeremy. (This used to be commit b0c40236bb4381fec0e812c20e5f8c09ebf005f9)
2000-06-09Fix from Elrond for hash table corruption. Should fix stat cache bug (IJeremy Allison1-2/+10
sincerely hope :-). Thanks elrond ! Jeremy. (This used to be commit 0d59e8c6bf49e06f11b386f9d805474771365f52)
2000-01-26Added hash-based stat cache code from Ying Chen.Jeremy Allison1-0/+320
Jeremy. (This used to be commit b62a1bd6328f5894ae1a2fef3ef6fc66304ade52)