Skip to content
Snippets Groups Projects

glamor: pixmap FBO may not be allocated

Merged Olivier Fourdan requested to merge ofourdan/xserver:issue647 into master

If _glamor_create_tex() fails to allocate the FBO because of GL_OUT_OF_MEMORY error, the pixmap_priv->fbo is NULL.

However, glamor_get_pixmap_texture() doesn't actually check whether the pixmap_priv->fbo is NULL and will segfault with a NULL pointer dereference trying to access the pixmap_priv->fbo->tex.

Signed-off-by: Olivier Fourdan ofourdan@redhat.com Closes: #647 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading