Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f364393a authored by Jesse Hall's avatar Jesse Hall Committed by Gerrit Code Review
Browse files

Merge "libagl: Fix buffer read overrun in eglCreatePbufferSurface"

parents 64e13880 2e8ca9d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1373,7 +1373,7 @@ static EGLSurface createPbufferSurface(EGLDisplay dpy, EGLConfig config,


    int32_t w = 0;
    int32_t w = 0;
    int32_t h = 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_WIDTH)  w = attrib_list[1];
        if (attrib_list[0] == EGL_HEIGHT) h = attrib_list[1];
        if (attrib_list[0] == EGL_HEIGHT) h = attrib_list[1];
        attrib_list+=2;
        attrib_list+=2;