[Mesa-dev] [Bug 102308] segfault in glCompressedTextureSubImage3D

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 19 16:58:21 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102308

--- Comment #2 from Ilia Mirkin <imirkin at alum.mit.edu> ---
No wonder this felt familiar.

commit 2259b111003f2e8c55cae42677ec45345fb1b6e3
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Thu Aug 27 15:28:24 2015 -0400

    mesa: only copy the requested teximage faces

    Cube maps are special in that they have separate teximages for each
    face. We handled that by copying the data to them separately, but in
    case zoffset != 0 or depth != 6 we would read off the end of the client
    array or modify the wrong images.

    zoffset/depth have already been verified by the time the code gets to
    this stage, so no need to double-check.

    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>

But I only applied it to regular tex images, not to compressed ones.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170819/b6159bfa/attachment.html>


More information about the mesa-dev mailing list