This fixes a segmentation fault when trying to flash images from any armv7 host. uuu compares a size_t to UINT64_MAX which is obviously never true on 32-bit architectures. When calling the faulty with UNIT64_MAX, the size_t overflows. This PR fixes this by comparing to correct variable SIZE_MAX instead.
This fixes a segmentation fault when trying to flash images from any
armv7
host. uuu compares a size_t toUINT64_MAX
which is obviously never true on 32-bit architectures. When calling the faulty withUNIT64_MAX
, the size_t overflows. This PR fixes this by comparing to correct variableSIZE_MAX
instead.