Skip to content

Fixed crash on malformed yaml#157

Closed
grigoryvp wants to merge 1 commit intonodeca:masterfrom
grigoryvp:master
Closed

Fixed crash on malformed yaml#157
grigoryvp wants to merge 1 commit intonodeca:masterfrom
grigoryvp:master

Conversation

@grigoryvp
Copy link
Copy Markdown

Following malformed yaml results in crash instead of proper YAMLException:

foo: !!int

This provides a simple fix. If you need additional information, tests or anything else - I will be glad to help.

Following malformed yaml results in crash instead of proper YAMLException:

foo: !!int
@puzrin
Copy link
Copy Markdown
Member

puzrin commented Dec 27, 2014

Ups... lately we fixed null e89db06 but seems this bug exists in other resolvers.

Your fix looks correct, but at first glance the same bug still stay at least in bool & binary. I thing, it would be better to fix all types at once.

Also, it worth adding tests to ./test/issues

@dervus
Copy link
Copy Markdown
Collaborator

dervus commented Dec 27, 2014

Your fix looks correct

It doesn't conform our coding style. Anyway, don't bother. I'll fix that by myself today.

@dervus dervus added the bug label Dec 27, 2014
@dervus dervus self-assigned this Dec 27, 2014
@dervus dervus closed this in 52aa9cc Dec 27, 2014
@dervus
Copy link
Copy Markdown
Collaborator

dervus commented Dec 27, 2014

Fixed in 3.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants