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
When parse message with a double field, it may cause crash, because incorrect data alignment will send signal sigbus in these machines.So modify lua_pb.c to use follow functions to parse float and double:
static float unpack_float(const uint8_t* buffer)
{
When parse message with a double field, it may cause crash, because incorrect data alignment will send signal sigbus in these machines.So modify lua_pb.c to use follow functions to parse float and double:
static float unpack_float(const uint8_t* buffer)
{
ifdef IS_LITTLE_ENDIAN
else
endif
}
static double unpack_double(const uint8_t* buffer)
{
ifdef IS_LITTLE_ENDIAN
else
endif
}
The text was updated successfully, but these errors were encountered: