Dmitry Ilvokhin
ef8e512e29
Fix bitmap_ffu out of range read
...
We tried to load `g` from `bitmap[i]` before checking it is actually a
valid load. Tweaked a loop a bit to `break` early, when we are done
scanning for bits.
Before this commit undefined behaviour sanitizer from GCC 14+ was
unhappy at `test/unit/bitmap` test with following error.
```
../include/jemalloc/internal/bitmap.h:293:5: runtime error: load of
address 0x7bb1c2e08008 with insufficient space for an object of type
'const bitmap_t'
<...>
#0 0x62671a149954 in bitmap_ffu ../include/jemalloc/internal/bitmap.h:293
#1 0x62671a149954 in test_bitmap_xfu_body ../test/unit/bitmap.c:275
#2 0x62671a14b767 in test_bitmap_xfu ../test/unit/bitmap.c:323
#3 0x62671a376ad1 in p_test_impl ../test/src/test.c:149
#4 0x62671a377135 in p_test ../test/src/test.c:200
#5 0x62671a13da06 in main ../test/unit/bitmap.c:336
<...>
```
2025-01-28 10:42:20 -08:00
..
2023-07-14 09:06:32 -07:00
2024-08-29 10:50:33 -07:00
2023-07-14 09:06:32 -07:00
2024-05-22 10:30:31 -07:00
2023-10-11 11:56:01 -07:00
2024-05-22 10:30:31 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-09-23 18:06:07 -07:00
2023-07-14 09:06:32 -07:00
2024-09-04 15:43:59 -07:00
2024-05-22 10:30:31 -07:00
2024-05-22 10:30:31 -07:00
2024-05-22 10:30:31 -07:00
2023-07-14 09:06:32 -07:00
2024-05-22 10:30:31 -07:00
2023-07-14 09:06:32 -07:00
2025-01-28 10:42:20 -08:00
2023-07-14 09:06:32 -07:00
2024-08-29 10:50:33 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-10-17 14:53:23 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-09-23 16:23:42 -07:00
2023-07-14 09:06:32 -07:00
2024-06-24 10:50:20 -07:00
2024-07-29 13:58:31 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-11-20 10:52:52 -08:00
2024-11-20 10:52:52 -08:00
2024-12-17 12:35:35 -08:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-24 14:40:42 -07:00
2025-01-22 10:30:53 -08:00
2024-08-29 10:50:33 -07:00
2022-04-25 11:29:00 -07:00
2023-08-28 11:46:39 -07:00
2023-09-06 10:47:14 -07:00
2024-10-14 10:34:15 -07:00
2024-05-22 10:30:31 -07:00
2023-07-31 14:53:15 -07:00
2024-08-06 13:16:09 -07:00
2024-11-20 10:52:52 -08:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-10-04 11:49:10 -07:00
2024-10-01 11:01:56 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-09-23 18:06:07 -07:00
2024-11-08 10:37:28 -08:00
2024-04-04 12:17:30 -07:00
2023-07-14 09:06:32 -07:00
2024-11-20 10:52:52 -08:00
2024-01-18 14:51:04 -08:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-03-14 13:08:17 -07:00
2017-05-11 23:06:54 -07:00
2017-05-11 23:06:54 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-04-09 10:27:52 -07:00
2024-07-30 10:29:30 -07:00
2023-07-24 14:40:42 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-10-01 11:01:56 -07:00
2023-07-24 14:40:42 -07:00
2024-11-21 09:23:32 -08:00
2017-01-20 21:45:53 -08:00
2014-01-16 17:38:01 -08:00
2023-07-14 09:06:32 -07:00
2020-04-11 10:32:11 -07:00
2024-08-28 16:50:33 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-24 14:40:42 -07:00
2023-07-24 14:40:42 -07:00
2023-07-14 09:06:32 -07:00
2023-07-24 14:40:42 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2017-05-25 16:52:10 -07:00
2017-05-25 16:52:10 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-09-12 11:34:09 -07:00
2023-10-18 14:11:46 -07:00
2023-10-25 10:27:31 -07:00
2024-08-29 10:50:33 -07:00
2024-08-29 10:50:33 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2023-07-14 09:06:32 -07:00
2024-09-30 11:33:44 -07:00
2023-07-14 09:06:32 -07:00
2020-07-31 09:16:50 -07:00
2024-12-17 12:39:00 -08:00
2024-05-22 10:30:31 -07:00