Skip to content

Recursive calls leading to an OOM when parsing a valid schema #1016

@dweiss

Description

@dweiss

Hello!

I've been trying to upgrade our project to the latest version but detected an issue where the validator causes an OOM with a schema that previously worked just fine (and validates against other on-line validators). This commit in my fork reproduces the problem:

dweiss@cefbf5b

It seems to be somewhere around the loop initializing validators:
image

It's not clear to my why this doesn't end with a stack overflow - instead, it just leads to an OOM, almost as if it were fanning out somewhere (there are lots of refs in that schema).

I didn't dig deep but I thought you folks would be interested and would have more expertise to tell what's going on. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions