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

Single quotes in double quoted strings lead to maximum call stack #12

Open
clarencejychan opened this issue Feb 4, 2020 · 0 comments
Open

Comments

@clarencejychan
Copy link

Hi there!, I'm currently using your HOCON parser and noticed that there is a bug with single qutoed strings not being escaped.

Given a HOCON such as

x = [
    {
        s : "'Hello'"
    }
]

you'll run into a

RangeError: Maximum call stack size exceeded
    at m (index.js:255)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)
    at m (index.js:262)

I've solved the problem by escaping the characters myself with Regex prior to parsing, but just as an FYI.

Thanks!

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