Skip to content

Executor crashed for invalid UTF-8 #247

@werner-matthias

Description

@werner-matthias

The executor isn't robust against the output of non-valid UTF-8.
If a student program generates an output that is neither ASCII nor UTF-8, the executor crashes. This is also true is the student program and the runtime generated ANSI control codes to color the error message.
While the validator could use a try-except to handle such cases, the output is lost in any case.

Suggestion: Instead of (utf-8-)strings the output (and probably the input and the standard error) should use byte stings.

Disadvantage: This would be a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions