mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Fix ModbusBridge buffer overflow (#16979)
This commit is contained in:
parent
f76bed338b
commit
050f2e7e61
@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Fixed
|
### Fixed
|
||||||
- Deduplicate code and fix %timer n% rule regression from v12.2.0 (#16914)
|
- Deduplicate code and fix %timer n% rule regression from v12.2.0 (#16914)
|
||||||
- Serial initialization for baudrate and config (#16970)
|
- Serial initialization for baudrate and config (#16970)
|
||||||
|
- ModbusBridge buffer overflow (#16979)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Define ``USE_PN532_DATA_RAW`` from NFC reader (#16939)
|
- Define ``USE_PN532_DATA_RAW`` from NFC reader (#16939)
|
||||||
|
@ -258,7 +258,7 @@ void ModbusBridgeHandle(void)
|
|||||||
WiFiClient &client = modbusBridgeTCP.client_tcp[i];
|
WiFiClient &client = modbusBridgeTCP.client_tcp[i];
|
||||||
if (client)
|
if (client)
|
||||||
{
|
{
|
||||||
uint8_t header[8];
|
uint8_t header[9];
|
||||||
uint8_t nrOfBytes = 8;
|
uint8_t nrOfBytes = 8;
|
||||||
header[0] = modbusBridgeTCP.tcp_transaction_id >> 8;
|
header[0] = modbusBridgeTCP.tcp_transaction_id >> 8;
|
||||||
header[1] = modbusBridgeTCP.tcp_transaction_id;
|
header[1] = modbusBridgeTCP.tcp_transaction_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user