Skip to content

Lack update of read_end_offset in shift_file (tcpip.cpp) #247

Description

@aasselin

at

bytes_to_move -= bytes_this_time;

there should be an additional line:
read_end_offset -= bytes_this_time;

the code won't work if the existing data in the file is longer than buffer size

(the SO post referenced near the shift_file function was updated with a comment)
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions