Fix overflow in glamor_xv_query_image_attributes for NV12 image format
This is a format with num_planes == 2, we have only 2 elements in offsets[] and pitches[]
Bug found by Otto Moerbeek on OpenBSD using his strict malloc checking.
This is a format with num_planes == 2, we have only 2 elements in offsets[] and pitches[]
Bug found by Otto Moerbeek on OpenBSD using his strict malloc checking.