mesa/src
Connor Abbott 8cd7950014 util/bitset: Avoid out-of-bounds reads
I missed a corner case here: when the next range ends right at the end
of the bitset, we need to return immediately to avoid trying to search
after the bitset. And when finding the next end, we similarly need to
bail if the range is size 1 at the very end of the range. In practice
this probably would'nt have been noticed, because it would break out of
the loop anyway, but I happened to be running something using this under
Valgrind and it complained.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10076>
2021-04-07 14:35:13 +00:00
..
amd radv: fix format feature reporting for modifiers 2021-04-06 09:20:26 +00:00
android_stub android: add some more stub functions for cross compilation 2021-03-25 06:06:16 +00:00
broadcom v3d: use uint type in _gen_unpack_uint 2021-04-07 09:39:42 +00:00
compiler nir/lower_tex: handle deref casts 2021-04-06 08:35:39 +00:00
drm-shim
egl Revert "egl: Don't add hardware device if there is no render node v2." 2021-03-26 10:32:31 +00:00
etnaviv etnaviv/drm: only print out fence error on non timeout 2021-03-29 11:54:59 +02:00
freedreno turnip: implement variableMultisampleRate 2021-04-07 12:04:45 +00:00
gallium nir_to_tgsi: run constant folding after nir_opt_algebraic 2021-04-07 13:55:31 +00:00
gbm egl: fix software flag in _eglAddDevice call on DRM 2021-03-26 10:32:31 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx/drisw: Implement WaitX and WaitGL 2021-03-19 15:43:49 +00:00
gtest
hgl
imgui
intel intel: avoid dumping null cs sampler/binding states 2021-04-07 14:24:08 +00:00
loader loader: prefer iris on Android 2021-03-31 06:28:18 +00:00
mapi scons: Remove. 2021-03-20 10:38:55 +00:00
mesa mesa: Remove unused gl_config::mutableRenderBuffer 2021-04-06 12:16:17 -04:00
microsoft microsoft/compiler: Fix barrier flag for shared memory 2021-04-05 15:58:03 +00:00
nouveau
panfrost panfrost: Add helpers to support indirect draws 2021-04-07 08:27:58 +00:00
util util/bitset: Avoid out-of-bounds reads 2021-04-07 14:35:13 +00:00
virtio
vulkan wsi/x11: Wait for fences with IMMEDIATE on Xwayland 2021-04-07 13:20:20 +00:00
meson.build