Crash when calling TasmotaSerial destructor when initialized with incorrect arguments (#22036)

This commit is contained in:
s-hadinger 2024-08-28 13:04:56 +02:00 committed by GitHub
parent e8cdeaba6b
commit f62496d164
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
- Zigbee extend timeout for MCU reboot from 5s to 10s (#22009) - Zigbee extend timeout for MCU reboot from 5s to 10s (#22009)
- Matter fix when Rules are disabled (#22016) - Matter fix when Rules are disabled (#22016)
- BearSSL panic on ESP8266 in rare conditions (#22017) - BearSSL panic on ESP8266 in rare conditions (#22017)
- Crash when calling TasmotaSerial destructor when initialized with incorrect arguments
### Removed ### Removed

View File

@ -123,7 +123,9 @@ void TasmotaSerial::end(void) {
} }
TasmotaSerial::~TasmotaSerial(void) { TasmotaSerial::~TasmotaSerial(void) {
end(); if (m_valid) {
end();
}
} }
bool TasmotaSerial::isValidGPIOpin(int pin) { bool TasmotaSerial::isValidGPIOpin(int pin) {