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
If client is sending msgid as String instead of integer server will crash with clmdep_msgpack::v1::type_error exception.
Exception is happening inside msg.convert(the_call); in dispatcher.cc
I found that error is triggered when using the following PHP library: https://github.com/funeralzone/MsgPackPhp
which apparently has a bug and is sending "0" (string) as msgid (instead of numeric 0)
So with help of my friend I figured out where the error is:
It's in the rpcLip/lib/rpc/dispatcher.cc
Inside dispatch_call():
It calls msg.convert(the_call);, where it throws a type_error exception which is not handled and results the server crash
Just wrap that call inside try catch block to handle that case as you want(respond the type_error to client, stringToInt..)
If client is sending msgid as String instead of integer server will crash with clmdep_msgpack::v1::type_error exception.
Exception is happening inside msg.convert(the_call); in dispatcher.cc
I found that error is triggered when using the following PHP library:
https://github.com/funeralzone/MsgPackPhp
which apparently has a bug and is sending "0" (string) as msgid (instead of numeric 0)
call stack
convert_integer_sign is throwing because o.type = clmdep_msgpack::v1::type::STR (5)
The text was updated successfully, but these errors were encountered: