[virglrenderer-devel] [PATCH v2 0/4] protect more OpenGL calls

Erik Faye-Lund erik.faye-lund at collabora.com
Fri Jul 20 08:03:39 UTC 2018


Here's a few patches to avoid trusting rouge user-space programs
from crashing the host by tricking virglrenderer into calling
unsupported OpenGL functions.

This was initially spotted by Po-Hsien Wang during fuzzing (the
crash in patch #3), the other patches were noticed while reviewing
for similar issues.

Erik Faye-Lund (4):
  protect call to glPrimitiveRestartIndex
  protect call to glDeleteSamplers
  protect gl{Begin,End}ConditionalRendering calls
  protect calls to glPrimitiveRestart on GLES 3.1

 src/vrend_renderer.c | 37 ++++++++++++++++++++++++++++---------
 1 file changed, 28 insertions(+), 9 deletions(-)

-- 
2.18.0



More information about the virglrenderer-devel mailing list