Skip to content
  • Jaideep Karande's avatar
    c91826d0
    Bug#27128868: CRASH FOR SHOW BINLOG EVENTS CMD IN BINARY_LOG::VIEW_CHANGE_EVENT::READ_DATA_MAP · c91826d0
    Jaideep Karande authored
    Issue: "SHOW BINLOG EVENTS FROM 490;" sometimes causes crash
    
    Reason: Code assumes position 490 is a valid event and reads header.
    If bytes in binlog file converts to an event and right length, it simply read
    data and converts to event.
    So invalid position, by chance, has good values(i.e. convertible to an event)
    in the header, at a position of event_type and event_length tricks the code.
    Later causing core dump during conversion to an event.
    
    Test case: main.ctype_cp932_binlog_stm
    
    Issue is duplicate of Bug#20286642(open) and WL#9562(open)
    
    Resolution:
    Removed statement "SHOW BINLOG EVENTS FROM 490;" from test-case for
    successfull run.
    c91826d0
    Bug#27128868: CRASH FOR SHOW BINLOG EVENTS CMD IN BINARY_LOG::VIEW_CHANGE_EVENT::READ_DATA_MAP
    Jaideep Karande authored
    Issue: "SHOW BINLOG EVENTS FROM 490;" sometimes causes crash
    
    Reason: Code assumes position 490 is a valid event and reads header.
    If bytes in binlog file converts to an event and right length, it simply read
    data and converts to event.
    So invalid position, by chance, has good values(i.e. convertible to an event)
    in the header, at a position of event_type and event_length tricks the code.
    Later causing core dump during conversion to an event.
    
    Test case: main.ctype_cp932_binlog_stm
    
    Issue is duplicate of Bug#20286642(open) and WL#9562(open)
    
    Resolution:
    Removed statement "SHOW BINLOG EVENTS FROM 490;" from test-case for
    successfull run.
Loading