1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/locking
Herb Lewis e522de4808 Using a structure for a tdb key can lead to insideous, hard
to find bugs. On 64 bit IRIX, structure packing means that
a
struct {
SMB_DEV_T dev /* 4 bytes */
SMB_INO_T ino /* 8 bytes */
}

has 4 bytes of padding between the two members. If you
don't null the memory before using it as a tdb key,
you randomly can't find keys depending on what is in
the padding. This caused me immense pain and was hard
to track down.... :-)

Jeremy.
(This used to be commit f2a5ba3f09)
2000-05-10 00:05:27 +00:00
..
brlock.c Using a structure for a tdb key can lead to insideous, hard 2000-05-10 00:05:27 +00:00
locking.c Using a structure for a tdb key can lead to insideous, hard 2000-05-10 00:05:27 +00:00
posix.c Using a structure for a tdb key can lead to insideous, hard 2000-05-10 00:05:27 +00:00