[Mesa-dev] [PATCH 3/3] mesa: validate that sync objects were created by mesa

Brian Paul brianp at vmware.com
Wed Dec 5 07:36:40 PST 2012


On 12/04/2012 04:55 PM, Jordan Justen wrote:
> Previously, the user could send in a pointer that was not created
> by mesa. When we dereferenced that pointer, there would be an
> exception.
>
> Now we keep a set of pointers and verify that the pointer
> exists in that set before dereferencing it.
>
> Note: This fixes several crashing gles3conform tests.
>
> Signed-off-by: Jordan Justen<jordan.l.justen at intel.com>
> ---
>   src/mesa/main/mtypes.h  |    6 ++++--
>   src/mesa/main/shared.c  |   12 +++++++-----
>   src/mesa/main/syncobj.c |   23 +++++++++++++++--------
>   3 files changed, 26 insertions(+), 15 deletions(-)
>


Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list