Skip to content

Crash with non printable characters injected to YAML file during FUZZ testing... #300

Answered by biojppm
winneymj asked this question in Q&A
Discussion options

You must be logged in to vote

EDIT: @winneymj Now that an MVE is present, the problem is clear. The crash occurs because you're trying to get the value on a non-existing node. It is up to you to check whether the node exists, but Debug builds help you detect the problem.

The special characters come not after Nodes: (as originally described) but on the seq opened after it, ie after Nodes:\n - . So the - File: that you assume to be there is actually - xF3xA0x81x93󠁓File:, and thus node has no member with key File; it is xF3xA0x81x93󠁓File instead. That's why you cannot get node["File"].val(): node["File"] does not exist unless you create it (is a seed node, it is not valid, and only if you write to it via = or << will it …

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
4 replies
@biojppm
Comment options

@winneymj
Comment options

@winneymj
Comment options

@biojppm
Comment options

Answer selected by biojppm
Comment options

You must be logged in to vote
4 replies
@biojppm
Comment options

@winneymj
Comment options

@biojppm
Comment options

@biojppm
Comment options

Comment options

You must be logged in to vote
1 reply
@winneymj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants