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

strip null bytes in call to androidembed.log() #2416

Merged
merged 1 commit into from
Feb 28, 2021
Merged

Conversation

obfusk
Copy link
Contributor

@obfusk obfusk commented Feb 1, 2021

p4a's print() is handled by androidembed.log(), which uses PyArg_ParseTuple(args, "s", &logstr) to convert its arguments to a char* for __android_log_write; its documentation states "The Python string must not contain embedded null code points; if it does, a ValueError exception is raised.".

Fixes #2415.

@tito tito merged commit 484e046 into kivy:develop Feb 28, 2021
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.

"Python for android ended." When printing \x00
2 participants