Files
rsync/lib
Andrew Tridgell 4148419736 hashtable, mdfour: avoid signed left-shift overflow
UBSan flags two spots that shift a value into the top bits of a word via a
signed operand:

  * lib/mdfour.c copy64(): `in[i] << 24` promotes the uchar to int, so a
    byte >= 128 overflows int (UB).  Cast each byte to uint32.
  * hashtable.c NON_ZERO_64(): `(int64)(x) << 32` overflows int64 whenever
    x's high bit is set.  Shift as uint64_t (covers all four call sites).

Behavior-preserving -- only the intermediate type changes; the resulting
bit pattern is identical.
2026-06-08 20:54:57 +10:00
..
2020-07-11 11:39:36 -07:00
2022-03-03 17:00:57 -08:00
2025-08-23 17:31:40 +10:00
2019-03-16 09:15:49 -07:00
2024-11-19 21:33:30 -08:00
2022-08-14 10:15:08 -07:00
2022-08-14 10:15:08 -07:00
2006-01-02 17:46:12 +00:00