• Victor Toso's avatar
    qxl: Initialize prev field while dup surface list · cf2254c1
    Victor Toso authored
    Otherwise we will can hit a segfault qxl_surface_kill()
    
     │717     void
     │718     qxl_surface_kill (qxl_surface_t *surface)
     │719     {
     │720         struct evacuated_surface_t *ev = surface->evacuated;
     │721
     │722         if (ev)
     │723         {
     │724             /* server side surface is already destroyed (via reset), don't
     │725              * resend a destroy. Just mark surface as not to be recreated */
     │726             ev->pixmap = NULL;│
     │727             if (ev->image)│
     │728                 pixman_image_unref (ev->image);
     │729             if (ev->next)
     │730                 ev->next->prev = ev->prev;
     │731             if (ev->prev)
    >│732                ev->prev->next = ev->next;
     │733             free(ev);
     │734             surface->evacuated = NULL;
     │735             return;
     │736         }
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1641793Signed-off-by: default avatarVictor Toso <victortoso@redhat.com>
    cf2254c1
Name
Last commit
Last update
examples Loading commit data...
scripts Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.xspice Loading commit data...
TODO Loading commit data...
TODO.xspice Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...