Skip to content
Snippets Groups Projects
Commit fc992d8f authored by Aleksei Voronin's avatar Aleksei Voronin
Browse files

[*] Fixed node segfault while running s_http_simple_proc(): in case of...

[*] Fixed node segfault while running s_http_simple_proc(): in case of processing order without explicitly specified region (ext = 0x52ff) node was crashing while attempting to access region number 0xff = 255
parent 6b8faba4
No related branches found
No related tags found
1 merge request!24Support 3689
......@@ -108,9 +108,11 @@ bool dap_chain_net_srv_order_get_continent_region(dap_chain_net_srv_order_t *a_o
if(!a_order || !a_order->ext_size || !a_order->ext || a_order->ext[0]!=0x52)
return false;
if(a_continent_num) {
memcpy(a_continent_num, a_order->ext + 1, sizeof(uint8_t));
}
else
if((uint8_t)a_order->ext[1]!=0xff)
memcpy(a_continent_num, a_order->ext + 1, sizeof(uint8_t));
else
a_continent_num = 0;
}else
a_continent_num = 0;
if(a_region) {
size_t l_size = a_order->ext_size - sizeof(uint8_t) - 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment