def flat(chunks):
    """Concatnate chunks into a data
    Aimed for the use of crafting ROP chains

    Args:
        chunks    : The target chunks to concat

    Returns:
        bytes: split chunks
    """
    assert isinstance(chunks, list)
    result = chunks[0]
    for i in range(1, len(chunks)):
        result += chunks[i]
    return result
