• 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
..
spiceccid Loading commit data...
uxa Loading commit data...
Makefile.am Loading commit data...
compat-api.h Loading commit data...
dfps.c Loading commit data...
dfps.h Loading commit data...
mspace.c Loading commit data...
mspace.h Loading commit data...
murmurhash3.c Loading commit data...
murmurhash3.h Loading commit data...
qxl.h Loading commit data...
qxl_cursor.c Loading commit data...
qxl_driver.c Loading commit data...
qxl_drmmode.c Loading commit data...
qxl_drmmode.h Loading commit data...
qxl_image.c Loading commit data...
qxl_io.c Loading commit data...
qxl_kms.c Loading commit data...
qxl_mem.c Loading commit data...
qxl_option_helpers.c Loading commit data...
qxl_option_helpers.h Loading commit data...
qxl_ring.c Loading commit data...
qxl_surface.c Loading commit data...
qxl_surface.h Loading commit data...
qxl_surface_ums.c Loading commit data...
qxl_ums_mode.c Loading commit data...
qxl_uxa.c Loading commit data...
spiceqxl_audio.c Loading commit data...
spiceqxl_audio.h Loading commit data...
spiceqxl_display.c Loading commit data...
spiceqxl_display.h Loading commit data...
spiceqxl_driver.c Loading commit data...
spiceqxl_driver.h Loading commit data...
spiceqxl_inputs.c Loading commit data...
spiceqxl_inputs.h Loading commit data...
spiceqxl_io_port.c Loading commit data...
spiceqxl_io_port.h Loading commit data...
spiceqxl_main_loop.c Loading commit data...
spiceqxl_main_loop.h Loading commit data...
spiceqxl_smartcard.c Loading commit data...
spiceqxl_smartcard.h Loading commit data...
spiceqxl_spice_server.c Loading commit data...
spiceqxl_spice_server.h Loading commit data...
spiceqxl_uinput.c Loading commit data...
spiceqxl_uinput.h Loading commit data...
spiceqxl_util.c Loading commit data...
spiceqxl_util.h Loading commit data...
spiceqxl_vdagent.c Loading commit data...
spiceqxl_vdagent.h Loading commit data...