Used the correct value in table_create_alloc and remove unused parameter. Use the pre-calculated end pointer when looking for events. Always use the column count of the TABLE_MAP event as all mismatches are detected earlier.