Fix remorte buffer overflow vulnerability

Hello Stephane,

please consider pulling this patch. It is also already in the debian repositories.

Add checks so modbus_reply returns a
MODBUS_EXCEPTION_ILLEGAL_DATA_ADDRESS if the count of requested
registers exceeds the spec as noted in modbus.h, line 73ff.