mirror of https://github.com/arendst/Tasmota.git
Fixed incorrect output size clamping (#21568)
This commit is contained in:
parent
0bcb981556
commit
f68e2285e8
|
@ -646,7 +646,7 @@ int32_t HexToBytes(const char* hex, uint8_t* out, size_t out_len) {
|
|||
}
|
||||
|
||||
size_t bytes_out = len / 2;
|
||||
if (bytes_out < out_len) {
|
||||
if (bytes_out > out_len) {
|
||||
bytes_out = out_len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue