Skip to content

ErrLineBufferOverflow error when a command uses return (\r) to overwrite previous output line #67

Open
@bjohnsonAPF

Description

@bjohnsonAPF

Some commands use a return character at the end of each line in order to overwrite the previous output line with new data. This is often used to show progress of the running command. An example is the dc3dd command. This command outputs the progress of the command to one line that consistently gets overwritten with the new progress stats. If a long running command does this the output will continually be saved to the buffer and not passed to the go channel in the Write function of OutputStream because this function only checks for \n or \r\n at the end of a line. Because a command like this will never have a \n at the end of an output line the buffer will overflow every time the command is run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions