Conrad Meyer
295e4149b0
aic7xxx(4): Fix unintended sign extension in ahd_inq()
...
ahd_inb() returns type uint8_t. The shift left by untyped 24 implicitly
promotes the result to type (signed) int. Then the binary OR with uint64_t
values sign-extends the integer. If bit 31 of the read value happened to be
set, the 64-bit result would have all upper 32 bits set to 1 due to OR. This
is clearly not intended.
Reported by: Coverity
CID: 980473 (old one!)
2020-01-30 18:12:24 +00:00
..
2020-01-28 17:48:17 +00:00
2020-01-27 22:19:55 +00:00
2020-01-29 09:36:59 +00:00
2019-11-18 13:31:16 +00:00
2020-01-29 00:28:50 +00:00
2020-01-30 02:16:17 +00:00
2020-01-28 13:57:24 +00:00
2020-01-29 22:40:13 +00:00
2020-01-10 22:49:14 +00:00
2019-10-30 10:41:10 +00:00
2020-01-12 06:07:54 +00:00
2020-01-30 18:12:24 +00:00
2020-01-29 12:10:42 +00:00
2020-01-30 08:56:22 +00:00
2020-01-12 06:07:54 +00:00
2020-01-27 13:15:16 +00:00
2019-12-03 09:12:53 +00:00
2020-01-21 17:28:22 +00:00
2019-12-30 02:07:55 +00:00
2020-01-30 04:59:08 +00:00
2019-12-26 19:41:09 +00:00
2020-01-23 01:41:09 +00:00
2020-01-29 22:43:56 +00:00
2020-01-30 12:04:02 +00:00
2020-01-17 22:04:11 +00:00
2020-01-23 16:45:48 +00:00
2020-01-29 22:48:18 +00:00
2020-01-22 17:06:55 +00:00
2019-12-01 00:22:04 +00:00
2020-01-23 22:13:41 +00:00
2020-01-03 22:29:58 +00:00
2020-01-03 22:29:58 +00:00
2020-01-11 12:02:16 +00:00
2020-01-09 18:29:59 +00:00
2020-01-29 18:13:44 +00:00
2020-01-29 15:50:48 +00:00
2019-11-28 02:18:51 +00:00
2020-01-07 04:29:34 +00:00
2020-01-23 17:18:58 +00:00
2020-01-30 08:56:22 +00:00
2020-01-26 00:41:38 +00:00
2020-01-30 05:37:35 +00:00
2020-01-29 12:02:47 +00:00
2020-01-29 03:15:34 +00:00