Files
jemalloc/test/unit
Dmitry Ilvokhin 52fa9577ba Fix integer overflow in test/unit/hash.c
`final[3]` is `uint8_t`. Integer conversion rank of `uint8_t` is lower
than integer conversion rank of `int`, so `uint8_t` got promoted to
`int`, which is signed integer type. Shift `final[3]` value left on 24,
when leftmost bit is set overflows `int` and it is undefined behaviour.

Before this change Undefined Behaviour Sanitizer was unhappy about it
with the following message.

```
../test/unit/hash.c:119:25: runtime error: left shift of 176 by 24
places cannot be represented in type 'int'
```

After this commit problem is gone.
2025-01-17 12:54:22 -08:00
..
2020-02-19 16:03:16 -08:00
2021-12-23 10:55:08 -08:00
2021-12-23 10:55:08 -08:00
2020-07-31 09:16:50 -07:00
2020-07-31 09:16:50 -07:00
2023-09-06 10:47:14 -07:00
2020-07-31 09:16:50 -07:00
2024-05-22 10:30:31 -07:00
2024-05-22 10:30:31 -07:00
2018-12-03 17:17:03 -08:00
2023-05-08 15:00:02 -07:00
2020-04-01 09:41:20 -07:00
2020-02-19 16:03:16 -08:00
2020-05-12 08:23:15 -07:00
2021-09-17 16:56:41 -07:00
2020-02-19 16:03:16 -08:00
2021-06-24 07:40:28 -07:00
2024-05-22 10:30:31 -07:00
2021-02-04 20:58:31 -08:00
2021-07-12 17:59:18 -07:00
2021-06-24 07:40:28 -07:00
2024-11-21 09:23:32 -08:00
2020-03-31 06:25:08 -07:00
2020-02-19 16:03:16 -08:00
2021-06-24 14:55:49 -07:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00
2023-05-08 15:00:02 -07:00
2020-02-19 16:03:16 -08:00
2017-05-18 11:33:45 -07:00
2020-02-19 16:03:16 -08:00
2020-10-05 19:55:57 -07:00
2024-04-09 12:57:01 -07:00
2024-07-30 10:29:30 -07:00
2021-12-23 10:55:08 -08:00
2017-04-21 10:06:12 -07:00
2024-04-09 12:57:01 -07:00
2021-12-23 10:55:08 -08:00
2019-12-30 15:58:57 -08:00
2020-04-06 09:50:27 -07:00
2020-04-06 09:50:27 -07:00
2021-12-23 10:55:08 -08:00
2021-09-27 16:05:13 -07:00
2021-12-15 10:39:17 -08:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00
2023-05-08 15:00:02 -07:00
2022-04-25 11:29:00 -07:00
2020-03-12 13:55:00 -07:00
2023-04-05 10:16:37 -07:00
2022-01-04 11:03:51 -08:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00