Skip to content

Fix JSON reports with long UTF8 strings#5300

Merged
muglug merged 3 commits intovimeo:masterfrom
zoonru:long_utf8
Mar 1, 2021
Merged

Fix JSON reports with long UTF8 strings#5300
muglug merged 3 commits intovimeo:masterfrom
zoonru:long_utf8

Conversation

@danog
Copy link
Copy Markdown
Collaborator

@danog danog commented Mar 1, 2021

When printing keyed arrays or literal strings containing more than 80 characters, the old logic may cut off a UTF8 codepoint in half, causing an error when encoding JSON reports.
Also added a call to json_last_error_msg to obtain a detailed error description.

@muglug muglug merged commit 404db2b into vimeo:master Mar 1, 2021
@muglug
Copy link
Copy Markdown
Collaborator

muglug commented Mar 1, 2021

Thanks!

This was referenced Mar 15, 2021
This was referenced Mar 17, 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.

3 participants