You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i update my wrapper to version 2.0.0 (https://github.com/kostya/myhtml/compare/update)
i replaced functions tag_index_* to myhtml_get_nodes_by_tag_id, and now get sigfault when collection receive more than 1024 elements.
short example:
str ="<html>"+"<div class=A>ooo</div>"*2000+"</html>"
parser =Myhtml::Parser.new(str)
c =0
parser.nodes(:div).each do |node|
c +=1
p(node.attribute_by("class"), c)
end
....
1020
"A"
1021
"A"
1022
"A"
1023
Invalid memory access (signal 11) at address 0x40
[4482610235] *CallStack::print_backtrace:Int32 +107
[4482583783] __crystal_sigfault_handler +55
[140735761716522] _sigtramp +26
[4482834581] myhtml_node_attribute_first +5
[4482795982] *Myhtml::Node#attribute_by<String>:(String | Nil) +62
[4482548179] __crystal_main +1587
[4482583528] main +40
The text was updated successfully, but these errors were encountered:
i update my wrapper to version 2.0.0 (https://github.com/kostya/myhtml/compare/update)
i replaced functions
tag_index_*
tomyhtml_get_nodes_by_tag_id
, and now get sigfault when collection receive more than 1024 elements.short example:
The text was updated successfully, but these errors were encountered: