Skip to content

[Uncaught exception] UnicodeDecodeError when calling to_xml with arbitrary data  #106

Closed
@Asteriska001

Description

@Asteriska001

Describe the bug
I found out that theJson2xml(data).to_xml() method can raise a UnicodeDecodeError leading to a crash of the running program.

This could be problematic if users of the library are dealing with untrusted data since this issue will lead to a DoS. This should be detected and an execption should be triggered

To Reproduce
Steps to reproduce the behavior:
image

Expected behavior
This execption should be expected.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions