Skip to content

std.parseYaml crashes (throws an exception) when given an empty string as input #1270

@johnbartholomew

Description

@johnbartholomew

This is the C++ version of the go-jsonnet bug google/go-jsonnet#714

$ ./jsonnet -e 'std.parseYaml("")'
Something went wrong during jsonnet_evaluate_snippet, please report this: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
Aborted                    (core dumped) ./jsonnet -e 'std.parseYaml("")'
exit: 134

Different code, same problem :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions