Skip to content

Illegal control character in JSON output #165

@Slange-Mhath

Description

@Slange-Mhath

Hey @richardlehane,

Is it possible that control characters in the JSON output are not escaped correctly?
Running Siegfried with a file that has for instance the name "/tmp/test_folder/^Test_file 1"
(linux output might look like "/tmp/test_folder/?Test.log") seems to output an invalid JSON.

A way to replicate that error would be to create a new text file with a control character inside and run a scan with sf -json.
The JSON output will contain the control character, which might result in an invalid JSON format.
Not sure if this might affect other output formats (like YAML) as well.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions