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

GC ASN 43717 is not in [0,43716) Invalid ASN: 43717 #559

Open
ac opened this issue Jun 9, 2016 · 1 comment
Open

GC ASN 43717 is not in [0,43716) Invalid ASN: 43717 #559

ac opened this issue Jun 9, 2016 · 1 comment

Comments

@ac
Copy link

ac commented Jun 9, 2016

Функции v7_parse_json() выдан json размером 10MB. Разбор сначала завершался ошибкой V7_AST_TOO_LARGE, а после включения V7_LARGE_AST стал выдавать этот "GC ASN is not in".

V7_DISABLE_GC не помогает.

Сам json при этом точно валидный. С серверной стороны он создавался сериализацией PHP-объекта, и на клиентской стороне нормально парсится другой библиотекой - cson.

@mkmik
Copy link
Collaborator

mkmik commented Jun 9, 2016

sorry currently v7_parse_json is not suitable for parsing big files. The current implementation is based on eval and suffers from security problems as well. We will fix that.

please try a json parser like https://github.com/douglascrockford/JSON-js/blob/master/json2.js in the mean time

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

2 participants