• Timothy Smith's avatar
    Apply 3 patches from innodb-5.0-ss2637. · 7886d63c
    Timothy Smith authored
    This fixes Bug#36149: Read buffer overflow in srv0start.c found during "make
    test"
    
    Per-revision comments:
    
    r2484 | vasil | 2008-05-28 15:32:48 +0300 (Wed, 28 May 2008) | 9 lines
    
    Fix Bug#36149 Read buffer overflow in srv0start.c found during "make test"
    
    Use strncmp(3) instead of memcmp(3) to avoid reading past end of the string
    if it is empty (*str == '\0'). This bug is _not_ a buffer overflow.
    
    Discussed with:	Sunny (via IM)
    
    r2538 | inaam | 2008-07-15 21:24:02 +0300 (Tue, 15 Jul 2008) | 15 lines
    
    Fix of issue# 4
    
    Fixed a timing hole where a thread dropping an index can free the
    in-memory index struct while another thread is still using
    that structure to remove entries from adaptive hash index belonging
    to one of the pages that belongs to the index being dropped.
    
    The fix is to have a reference counter in the index struct and to
    wait for this counter to drop to zero beforing freeing the struct.
    
    Reviewed by: Heikki
    
    
    r2544 | inaam | 2008-07-22 18:58:11 +0300 (Tue, 22 Jul 2008) | 8 lines
    
    Removed UNIV_INLINE qualifier from btr_search_info_get_ref_count().
    Otherwise compilation failed on non-debug builds.
    
    Pointed by: Vasil
    7886d63c
btr0sea.h 9.04 KB