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

Crash on invalid UTF-8 input #21

Open
chrysn opened this issue Mar 11, 2022 · 0 comments
Open

Crash on invalid UTF-8 input #21

chrysn opened this issue Mar 11, 2022 · 0 comments

Comments

@chrysn
Copy link

chrysn commented Mar 11, 2022

$ pretty2diag.rb
.../3.0.0/gems/cbor-diag-0.7.6/lib/cbor-diagnostic.rb:73:in `to_json': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)
        from .../3.0.0/gems/cbor-diag-0.7.6/lib/cbor-diagnostic.rb:73:in `cbor_diagnostic'
        from .../3.0.0/gems/cbor-diag-0.7.6/lib/cbor-diagnostic.rb:83:in `block in cbor_diagnostic'
        from .../3.0.0/gems/cbor-diag-0.7.6/lib/cbor-diagnostic.rb:83:in `map'
        from .../3.0.0/gems/cbor-diag-0.7.6/lib/cbor-diagnostic.rb:83:in `cbor_diagnostic'
        from .../3.0.0/gems/cbor-diag-0.7.6/lib/cbor-diagnostic-helper.rb:32:in `cbor_diagnostic_output'
        from .../3.0.0/gems/cbor-diag-0.7.6/bin/pretty2diag.rb:17:in `<top (required)>'
        from .../3.0.0/bin/pretty2diag.rb:25:in `load'
        from .../3.0.0/bin/pretty2diag.rb:25:in `<main>'

Originally reported by @Cody119 at cbor/cbor.github.io#83

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