Ignore:
Timestamp:
Apr 2, 2008 6:36:35 PM (16 years ago)
Author:
bennylp
Message:

Ticket #520: Race condition may cause ioqueue corruption (thanks Philippe Leuba)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/list_i.h

    r1405 r1905  
    7676{ 
    7777    pj_link_node( ((pj_list*)node)->prev, ((pj_list*)node)->next); 
     78 
     79    /* It'll be safer to init the next/prev fields to itself, to 
     80     * prevent multiple erase() from corrupting the list. See 
     81     * ticket #520 for one sample bug. 
     82     */ 
     83    pj_list_init(node); 
    7884} 
    7985 
Note: See TracChangeset for help on using the changeset viewer.