Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/runner: sanitize last command output #314

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

mxsdev
Copy link
Contributor

@mxsdev mxsdev commented Jun 23, 2023

Removes null bytes from last command output. Prevents errors in notebook if command output contains null bytes.

You can repro this error on main by using echo "\0" - things will break after the first command if a session is used.

@mxsdev mxsdev requested a review from sourishkrout June 23, 2023 15:55
@sourishkrout
Copy link
Member

This is the original error message. Just as a reference:

Screenshot 2023-06-23 at 11 40 45 AM

@sourishkrout
Copy link
Member

Could we add a test case to prevent regressions @mxsdev? Alternatively, I could do an e2e test in the extension.

Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment.

@mxsdev mxsdev requested a review from sourishkrout June 23, 2023 16:22
@mxsdev
Copy link
Contributor Author

mxsdev commented Jun 23, 2023

@sourishkrout Good call! Done 👍

Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@sourishkrout sourishkrout merged commit 79959f7 into main Jun 23, 2023
@sourishkrout sourishkrout deleted the mxsdev/sanitize-stdout branch June 23, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants