• Timothy Smith's avatar
    Complete application of InnoDB snapshot innodb-5.1-ss2485, part 2. Fixes · 85b06b4e
    Timothy Smith authored
    Bug #36149: Read buffer overflow in srv0start.c found during "make test"
    
    
    Detailed revision comments:
    
    r2485 | vasil | 2008-05-28 16:01:14 +0300 (Wed, 28 May 2008) | 9 lines
    branches/5.1:
    
    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)
    85b06b4e
srv0start.c 49.3 KB