Fixed incorrect output size clamping (#21568)

This commit is contained in:
Marius Bezuidenhout 2024-06-06 09:39:23 +02:00 committed by GitHub
parent 0bcb981556
commit f68e2285e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}