transfer string to double got fatal error!
when i use this function strtod in my contract ,it will report a error like the following:
i tested many times,and you guys can test on your enviroment.
my compiler is eosio-cpp version 1.6.1
and nodeos version is:v1.7.3 master branch
And the strtod function is standard function,right??????
when you execute your action which contain strtod ,it will get the error like that.
I can reproduce this issue by calling "strtod" inside a smartcontract. looks like the implementation of "strtod" is buggy.
Error 3070002: Runtime Error Processing WASM
Error Details:
wabt execution failure (out of bounds memory access)
The reason is that the current implementation of strtod uses some local variables of size larger than 8KB which results in stack underflow.
The reason is that the current implementation of
strtoduses some local variables of size larger than 8KB which results in stack underflow. so ,how should we to solve this,honey?
you can implement your own strtod, or wait for the fix (in https://github.com/EOSIO/musl/pull/10) in the next version of cdt
you can implement your own strtod, or wait for the fix (in EOSIO/musl#10) in the next version of cdt
ok, i will wait that, thank you.