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

CRLF: Binary Data Corruption #78

Open
alemariusnexus opened this issue Mar 24, 2021 · 0 comments
Open

CRLF: Binary Data Corruption #78

alemariusnexus opened this issue Mar 24, 2021 · 0 comments

Comments

@alemariusnexus
Copy link

I was testing the sudo provided by tsu (latest master), when I noticed that it seems to corrupt certain kinds of binary data.

Running the following:

$ sudo echo -ne "\n" | hexdump

I get this output:

0000000 0a0d
0000002

Only a single byte (LF, 0x0a) should be output, but it seems like tsu converts LF to CRLF, so there's an additional byte. This kind of conversion usually happens when data is read/written in text mode instead of binary mode, so maybe there's a wrong setting in the script somewhere?

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

No branches or pull requests

1 participant