mesa: Validate count parameters when marshalling.
authorEric Anholt <eric@anholt.net>
Thu, 3 Jan 2013 19:56:54 +0000 (11:56 -0800)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 03:14:18 +0000 (14:14 +1100)
commita76a3cf664f93ca8a0a62281907a3f3342f44054
tree493c434398eadec321d4e7d245cfe1df57ece81d
parent05dd4a1104ea815e4627bab0fbd35d9abe49f024
mesa: Validate count parameters when marshalling.

Otherwise, for example, glDeleteBuffers(-1, &bo) gets you a segfault
instead of GL_INVALID_VALUE.

Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Acked-by: Marek Olšák <maraeo@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
src/mapi/glapi/gen/gl_marshal.py