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

Huge input lookup error #109

Open
andy61i opened this issue Nov 20, 2018 · 0 comments
Open

Huge input lookup error #109

andy61i opened this issue Nov 20, 2018 · 0 comments

Comments

@andy61i
Copy link

andy61i commented Nov 20, 2018

Large input data may produce "internal error: Huge input lookup" on iOS devices.

Request for a fix in DDXMLDocument:

  • (instancetype)initWithData:(NSData *)data options:(NSUInteger)mask error:(NSError **)error
    ...
    xmlDocPtr doc = xmlReadMemory([data bytes], (int)[data length], NULL, NULL, (int)mask);
    // xmlDocPtr doc = xmlParseMemory([data bytes], (int)[data length]);

So, XML_PARSE_HUGE can be passed as mask.

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