diff options
author | Herb Lewis <herb@samba.org> | 2000-05-10 00:05:27 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2000-05-10 00:05:27 +0000 |
commit | e522de480891b9d72ba4cd2d4c8decb6909809a9 (patch) | |
tree | 9a188994f3a45f6a9fa37a987dac64637e87b534 /examples/validchars/validchr.com | |
parent | f7089e3cbaa8429a5dd6f5ecf3f524291faa1881 (diff) | |
download | samba-e522de480891b9d72ba4cd2d4c8decb6909809a9.tar.gz samba-e522de480891b9d72ba4cd2d4c8decb6909809a9.tar.bz2 samba-e522de480891b9d72ba4cd2d4c8decb6909809a9.zip |
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 f2a5ba3f0939f59097f0ef6a25f1cf9b5574f157)
Diffstat (limited to 'examples/validchars/validchr.com')
0 files changed, 0 insertions, 0 deletions