stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.44k stars 1.75k forks source link

Bandwidth test broken after "Fix remote buffer overflow vulnerability (fc73565)" #152

Closed jwittebo closed 10 years ago

jwittebo commented 10 years ago

In the file tests/bandwidth-server-one.c at line 72, the size of the address space is reduced from MODBUS_MAX_READ_BITS to 1000.

https://github.com/stephane/libmodbus/commit/fc73565da7a5c35d55eab843cf6c60af6c2b6925

This breaks the test as the client requests MODBUS_MAX_READ_BITS bit which is 2000.

The result is an Illegal data address.

stephane commented 10 years ago

Thank you