Skip to content

mesa: return NULL if we exceed MaxColorAttachments in get_fb_attachment

Tapani Pälli requested to merge tpalli/mesa:cid-1442559 into master

This fixes invalid access to Attachment array which would occur if caller would exceed MaxColorAttachments. In practice this should not ever happen because DiscardFramebufferEXT specifies only GL_COLOR_ATTACHMENT0 to be valid and InvalidateFramebuffer will error out before but this should make coverity happy.

CID: 1442559 Fixes: 0c42b5f3 "mesa: wire up InvalidateFramebuffer" Signed-off-by: Tapani Pälli tapani.palli@intel.com

Merge request reports