commit | f364393a01824bf4d805b6fffc78bb00d426eb9f | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Sat Aug 22 02:40:45 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Aug 22 02:40:45 2015 +0000 |
tree | 612adbfef147d71a95c6732fdaa67a6a96f6d90b | |
parent | 64e138803478c22cac598b143b3f109d6220a167 [diff] | |
parent | 2e8ca9d01ed6a64451f9d6182e4abe980cdc41f0 [diff] |
Merge "libagl: Fix buffer read overrun in eglCreatePbufferSurface"
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index 980a389..7560d8f 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp
@@ -1373,7 +1373,7 @@ int32_t w = 0; int32_t h = 0; - while (attrib_list[0]) { + while (attrib_list[0] != EGL_NONE) { if (attrib_list[0] == EGL_WIDTH) w = attrib_list[1]; if (attrib_list[0] == EGL_HEIGHT) h = attrib_list[1]; attrib_list+=2;