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.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
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.