lexborisov / myhtml

Fast C/C++ HTML 5 Parser. Using threads.
GNU Lesser General Public License v2.1
1.65k stars 146 forks source link

myhtml_parse crash on android 64 #185

Open EMHussain opened 3 years ago

EMHussain commented 3 years ago

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, MyENCODING_UTF_8, html, strlen(html));   // crash here on android 64 bit
lexborisov commented 3 years ago

@EMHussain

Hi, can you provide stack and html example?

EMHussain commented 3 years ago

error : SIGSEGV Segmentation violation (invalid memory reference) /data/app/ch.futureit.suchagentnative--7UzNnHYX1Um0ywhwcNdww==/lib/arm64/libmyhtml.so:102776 mycore_string_copy

example html body-load-01.log