myhtml
myhtml copied to clipboard
Fast C/C++ HTML 5 Parser. Using threads.
Parsing is done with chunking with the following code: ``` myhtml_tree_t* Parse(myhtml_t* myhtml, const std::string& body, size_t chunk_sz) { myhtml_tree_t* tree = myhtml_tree_create(); myhtml_tree_init(tree, myhtml); size_t body_chunk_pos = 0; while...
``` ``` Code for reproduce: ```C #include #include #include #include void dumper(myhtml_tree_node_t *node, size_t level) { while (node) { for (size_t i = 0; i < level; i++) fprintf(stderr, "...
Is anyone working on a Node.js binding for MyHtml?
`myhtml_parse` crash on android ``` const char* html = htmlText.c_str(); myhtml_t* myhtml = myhtml_create(); myhtml_init(myhtml, MyHTML_OPTIONS_DEFAULT, 1, 0); myhtml_tree_t* tree; // first tree init tree = myhtml_tree_create(); myhtml_tree_init(tree, myhtml); myhtml_parse(tree,...
I'm making a project where the interface is handled entirely with lua, here's a rough example of what would happen in my app to get to myhtml app custom thread...
When fuzzing the AddressSanitizer hardened `callback_tree_node_high_level`, we found several vulnerabilities/crashes due to multithreading. A sample proof-of-crash (poc) file (zipped) is: [NPE_r__mchar_async.c:656_1.html.zip](https://github.com/lexborisov/myhtml/files/3684507/NPE_r__mchar_async.c.656_1.html.zip) with the error message like: ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==12692==ERROR:...
I read that one of the things you wanted to support was javascript parsing, and DOM changes during processing, etc. Could you please elaborate, or tell me if this was...
I want to disable the automatically applied URL encodings in `myhtml_attribute_add`. To be more specific, please check the following example: ```c++ #include int main(int argc, const char * argv[]) {...
Environment: cmake version 3.12.1 vs2017 x86 The C compiler identification is MSVC 19.15.26726.0 The CXX compiler identification is MSVC 19.15.26726.0 Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe...
When using the parser in MyHTML_OPTIONS_PARSE_MODE_SINGLE mode, it is initialized in myhtml_init like this: ``` case MyHTML_OPTIONS_PARSE_MODE_SINGLE: if((status = myhtml_create_stream_and_batch(myhtml, 0, 0))) return status; ``` As this call specify that...