471d89c4fd
They check for null, alignment, excessive size, and address space wrapping. If any of the checks fails, `Err(CL_INVALID_VALUE)` is returned. The caller still has to uphold the other requirements of the `from_raw_parts` fns. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26157>