Skip to content
Snippets Groups Projects

compiler/glsl: avoid null-pointer deref

Merged Erik Faye-Lund requested to merge kusma/mesa:compiler-null-deref into master

When we encounter a bindless image here, lower_deref returns a NULL-pointer, and calling record_images_used will try to dereference that NULL-pointer.

So let's dig out the var from the source instruction instead of the result of the lowering.

Fixes: 5910c938 ("nir/glsl: gather bitmask of images used by program")

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
  • Loading
  • Loading
Please register or sign in to reply
Loading