1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/locking
Stefan Metzmacher bbad8f6d72 s3:brlock: s/int/uint64_t for fnum
fsp->fnum and lock->fnum are uint64_t already and we should not truncate the value here.

Currently this doesn't matter as we only use 16-bit.

But as 'int' is int32_t and we later compare fnum with lock->fnum == fnum,
the cast from int32_t to uint64_t goes via int64_t instead of uint32_t.

This means even if fsp->fnum just uses 32-bit of the uint64_t
we'll get the wrong result, as the implicit cast from a negative int32_t
value to uint64_t adds 0xFFFFFFFF00000000.

metze
2012-06-28 10:08:03 +02:00
..
brlock.c s3:brlock: s/int/uint64_t for fnum 2012-06-28 10:08:03 +02:00
locking.c s3:util: rename procid_equal() to serverid_equal() 2012-06-21 08:27:32 +02:00
posix.c s3: Remove reduce_windows_lock_ref_count, used only once 2012-06-22 15:16:51 +02:00
proto.h s3: Make reduce_windows_lock_ref_count static 2012-06-22 15:16:49 +02:00
share_mode_lock.c s3: Do not check the PIDs is parse_share_modes 2012-05-25 09:19:38 -07:00