clover: return CL_INVALID_VALUE when origin or region are NULL

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9212>
This commit is contained in:
Serge Martin
2020-10-11 20:27:44 +02:00
committed by Marge Bot
parent 8a47422d97
commit 4cb9df49c2

View File

@@ -36,6 +36,8 @@ namespace {
vector_t
vector(const size_t *p) {
if (!p)
throw error(CL_INVALID_VALUE);
return range(p, 3);
}