Releases: stephane/libmodbus
Releases · stephane/libmodbus
v3.1.11
What's Changed
- RTU - Check CRC before filtering on slave ID
- HAVE_NETINET_IN_H as guard around header (closes #765)
- Use default port 502 in documentation.
- Fix float endianness issue introduced in v3.1.8 (49af73d). Thank you @ghorwin for your excellent work on the subject. Closes #665, #694, #757, #770.
- Proper display of used CFLAGS.
- Don't build with debug flag by default anymore.
- Check request length in
modbus_reply
when used inmemcpy
.
Thank you Nozomi Networks Labs Advisory for the report. - Fix insecure data handling. CID 416366: INTEGER_OVERFLOW found with Coverity Scan.
- Remove useless cast in setsockopt call (closes #721)
- Link against socket and nsl libs when building on SunOS. Thank you @lanurmi.
- Update documentation about tcp-pi requiring 1 KiB of extra memory (closes #715). Thank you @psychon.
- Documentation improvements by @cedricboudinet and @mhei.
- Revert TCP checks for recovery (closes #711).
- Don't use loop initial declaration (closes #752).
- Fix wrong generated version for double number in win32 (closes #675).
- Don't use gai_strerror if not available.
- Add checks for netinet/ip.h and gai_strerror (#745)
- Log error in read input registers if debug (closes #755).
- Fix errno value on timeout with TCP connect (closes #736, #756).
Thank you @kyllingstad for the issue and @psychon for the fix. - Free addrinfo struct on getaddrinfo() gerrors.
- Fix doc of modbus_mapping_new_start_address (#615).
New Contributors
- @yauyimsing made their first contribution in #702
- @cedricboudinet made their first contribution in #682
- @lanurmi made their first contribution in #398
- @ghorwin made their first contribution in #694
- @diplfranzhoepfinger made their first contribution in #765
Full Changelog: v3.1.10...v3.1.11
v3.1.10
v3.1.9
What's Changed
- Remove Travis CI
- Move content about migration to libmodbus.org
- Avoid negative value in FD_SET call
- Test socket against positive value instead of -1
- Improvements to autotools by @ndim
- Fix doc links by @jordanjohnson56 (#653)
- Test the protocol id for 0 by @metapsychologe (#509)
- Fix double negative in tests
- New quirks handler (closes #38 #533)
- Fix bitwise OR in documentation
- Improve doc about slave ID in RTU
- Add .clang-format and format code (closes #394)
- Remove constraints on baud rate values
- Accept IP or device in arg of unit test progs
- Avoid compilation issue with VS2022 with strdup
- Display created files in configure.js
- Use strcpy_s under Windows
- Replace inet_addr by inet_pton calls
- Replace inet_ntoa by inet_ptop
- Update configure.ac/config.h.win32 for new inet functions
- Instructions to build libmodbus in a VS project
- Fix connection check for Windows RTU (closes #660, #662)
- Add CIFuzz Github action by @DavidKorczynski (#669)
- Convert a few int to unsigned int (#402)
New Contributors
- @jordanjohnson56 made their first contribution in #653
- @metapsychologe made their first contribution in #509
- @DavidKorczynski made their first contribution in #669
v3.1.8
- Major rewrite of documentation with Material for mkdocs
- Reduce memory use of TCP PI backend (closes #621)
- Fixed MODBUS_ERROR_RECOVERY_LINK not working on Windows (@embeddedmz)
- Replace Travis CI by GitHub CI
- Fix linker error for Windows (VCLinkerTool)
- Address check in single register / coil responses added (#463)
- Swap CRC bytes in request data but not at CRC computing (#397)
- Fix float endianness issue on big endian architecture
- Fix comment about EMBUNKEXC (closes #566)
- Fix network library detection on Haiku
- Fix typos (closes #620)
New Contributors
- @JetForMe made their first contribution in #624
- @Begasus made their first contribution in #622
- @ndunks made their first contribution in #616
- @bachp made their first contribution in #463
- @alongL made their first contribution in #631
- @embeddedmz made their first contribution in #644
Full Changelog: v3.1.7...v3.1.8
v3.1.7
What's Changed
- SPDX: change LGPL-2.1+ to LGPL-2.1-or-later by @yegorich in #489
- fix
MODBUS_GET_*
macros in case of negative values by @i-ky in #441 - docs: fix simple typo, reponse -> response by @timgates42 in #569
- Update README.md by @anton-bondarev in #580
- Install NEWS and AUTHORS files with library, ship LICENSE with tests by @richardash1981 in #545
- minor typo by @stefannilsson in #539
- cosmetic changes in man page standardizing itemization by @Zugschlus in #460
- modbus_reply: fix copy & paste error in sanity check (fixes #614) by @mhei in #619
- add SECURITY.md (closes #613)
- fix typo in comment (closes #588)
- replace obsolete
AC_PROG_CC_STDC
byAC_PROG_CC
- fix position of CC flags in documentation (closes #599)
- remove duplicate ';' (closes #602)
- add the baud rate of 256k for Windows (closes #603)
- replace
.dir-locals.el
(Emacs) by.editorconfig
- move malloc before starting unit tests
All changes w/o attribution by @stephane.
New Contributors
- @i-ky made their first contribution in #441
- @timgates42 made their first contribution in #569
- @anton-bondarev made their first contribution in #580
- @richardash1981 made their first contribution in #545
- @stefannilsson made their first contribution in #539
- @Zugschlus made their first contribution in #460
Full Changelog: v3.1.6...v3.1.7
v3.1.6
v3.0.8
v3.1.5
- Add appveyor.com config
- Change arg value from int to const uint16_t in modbus_write_register
- Mark raw_req argument as const in modbus_send_raw_request (closes #479)
- Add unit tests for VD-1301 and VD-1302 vulnerabilities
- Fix VD-1301 and VD-1302 vulnerabilities
- Create CODE_OF_CONDUCT.md
modbus_mapping_t
is now a named typedef (to allow forward declaration)- Rename type as flags for consistency between functions
- Add missing
SOCK_CLOEXEC
flag on socket creation - Remove wrong and harmful checks in configure.ac
- Oops fix OR on RS485 settings (1c5d969)
- Only set
SER_RS485_ENABLED
bit of existing RS485 settings - Add .vscode/ to .gitignore
- Fix wrong function name
- Remove a duplicated semi-colon
- Fix a small typo in test message
- Fix
modbus_reply
for TCP when unit id == 0 (fixes #376) - New functions to define the indication timeout (#95)
- Remove CYGWIN condition to provide bswap16 fallback (#383)
- Use builtin
bswap16
of gcc 4.8 (#377) - Handle out-of-memory conditions more gracefully
- Add entry points for accept/listen in libmodbus index
- Refine issue template for Github
- Move WINVER definition before other includes (#350)
- Add new function modbus_get_slave()
- Fix LIBMODBUS_VERSION_HEX encoding (closes #345)
tcp_modbus_accept
mustn't close socket on error (closes #333)
v3.0.7
v3.1.4
Small fixes, Cygwin improvements and fix missing script in tarball
C_PROG_RANLIB
is rendered obsolete by LT_INIT- Improve ifdef around bswap_16 for
__CYGWIN__
- Improve Cygwin support. Thanks to StalderT.
- Another round of DRY in
modbus_reply()
- Rename raw_rep to raw_rsp in unit-test-client
- Fix wrong function name in debug message
- Fix handling of invalid function code (closes #315)
- Add debug message on unknown function and new unit test
- DRY in modbus_reply by improving
response_exception()
- Fix typo in 3053bd0
- CID 69145 - Argument cannot be negative in unit-test-server
- CID 69142 - Unchecked return value in unit-test-server
- Fix CID 69140 - Bad bit shift operation (coverity) in tests
- Rewrite and rename README as
README.md
in tests/ - Github's contributing and issue template files
- Fix small leak (64 bytes in TCP) in unit-test-client
- Add unit-tests.sh to tarball
- Add ./configure.scan to .gitignore
- Move setting of option inside the relevant conditional group
- Add links to new
modbus_*_float_*
functions in index - Slight change to
modbus_report_slave_id
doc.