The GNU CPU_ALLOC/CPU_ALLOC_SIZE/CPU_FREE extensions are broken. They result in a fixed-size array being used as a variable-size array...
For objects obtained by malloc, casting pointer to cpu_set_t * does not set effective type. Only accessing via the type does.
-
-
I'll make this fix in
@musllibc too. -
FWIW, Clang's -fsanitize=bounds is what caught this and should catch it with glibc and musl too. GCC doesn't seem to.
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.