Open GodLiu1 opened 1 month ago
The problem is easy to reproduce, that is, repeatedly disconnecting and reconnecting will result in a memory overflow 1015 times on time, it should be that the modbus_receive() function internally shifted the pointer, I have looked at the source code, the problem should be found in line 350 of modbus.c in int _modbus_receive_msg(modbus_t ctx, uint8_t msg, msg_type_t msg_type), but unfortunately I haven't found the exact problem so far!
libmodbus version
3.1.10
OS and/or distribution
Ubuntu20.04
Environment
arm64
Description
Jetson Xavier NX
Actual behavior if applicable
The client connection from 127.0.0.1 is accepted Waiting for an indication...
<03>