gbm: Assert modifiers and count are copacetic
authorBen Widawsky <ben@bwidawsk.net>
Wed, 5 Apr 2017 17:31:45 +0000 (10:31 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Sun, 9 Apr 2017 16:29:57 +0000 (09:29 -0700)
commit6e907812f889d34d2840feda1c3e5d182a56e1ba
tree903fe9a699600d6aad204d8a1a184e82738837a1
parenta2eae66b8b12749c07743676863d665ac82c0e31
gbm: Assert modifiers and count are copacetic

The API/entry point in mesa already checks the correct behavior,
however, it's possible to be handled by another implementation and those
implementations should not be able to abuse a weird combination of count
and pointer.

This fixes CID 1403193

Cc: Mark Janes <mark.a.janes@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/gbm/backends/dri/gbm_dri.c