skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
370 stars 140 forks source link

Set proper size in hex2bin call #471

Open mutatrum opened 1 week ago

mutatrum commented 1 week ago

Fixes #302

It actually doesn't corrupt memory, as hex2bin stops on null termination of the string provided by cJSON. But it's still better to have the correct len value passed to hex2bin.