summaryrefslogtreecommitdiffstats
path: root/source/lib/hash.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix 2 off-by-one bugs in the use of malloc()ed strings and safe_strcpy().Andrew Bartlett2003-02-241-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
* More signed/unsigned fixes (yes, I run with funny compiler options) andAndrew Bartlett2003-02-221-5/+5
| | | | | | make x_fwrite() match fwrite() in returning a size_t. Andrew Bartlett
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* fixed the really awful performance problem with the stat cache when itAndrew Tridgell2001-09-251-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!
* Fix (I hope) compile on HP-UX. Found by the build farm.Andrew Bartlett2001-09-191-1/+1
|
* move to SAFE_FREE()Simo Sorce2001-09-171-14/+8
|
* string_hash() should be static. hash_clear() should be void.Jeremy Allison2001-05-121-6/+4
| | | | Jeremy.
* Made re-init of stat cache explicit rather than being hidden.Jeremy Allison2000-10-041-4/+0
| | | | Jeremy.
* Fix from Elrond for hash table corruption. Should fix stat cache bug (IJeremy Allison2000-06-091-2/+10
| | | | | sincerely hope :-). Thanks elrond ! Jeremy.
* Added hash-based stat cache code from Ying Chen.Jeremy Allison2000-01-261-0/+320
Jeremy.