projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d708182
)
mesa: Check the lookup_framebuffer return value in NamedFramebufferRenderbuffer
author
Fredrik Höglund
<fredrik@kde.org>
Sat, 16 May 2015 17:43:39 +0000
(19:43 +0200)
committer
Fredrik Höglund
<fredrik@kde.org>
Sat, 16 May 2015 17:55:00 +0000
(19:55 +0200)
Found by Coverity.
Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index 8db651ca2a146a07cce6525f33f109837f847f10..1859c277293b565f5254e2ab9a1cdda8b142062c 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-3362,6
+3362,8
@@
_mesa_NamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment,
fb = _mesa_lookup_framebuffer_err(ctx, framebuffer,
"glNamedFramebufferRenderbuffer");
+ if (!fb)
+ return;
if (renderbuffertarget != GL_RENDERBUFFER) {
_mesa_error(ctx, GL_INVALID_ENUM,