immortalwrt/tools/firmware-utils
Rafał Miłecki 8a58ab4f0f firmware-utils: mkmylofw: fix blocks padding
The old code didn't make sense as it was using "len" variable which was
guaranteed to be always 0. Loop right above broken code is:
while (len > 0) { }

With this recent ALIGN macro fix this resulted in subtracting block size
from 0 and calling write_out_padding() with a negative length.

To calculate amount of bytes needed for padding & alignment it should be
enough to use % 4.

Fixes: a2f6622945 ("firmware-utils: fix few random warnings")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2021-04-13 23:30:45 +08:00
..
src firmware-utils: mkmylofw: fix blocks padding 2021-04-13 23:30:45 +08:00
Makefile firmware-utils: add -Wall to most tools 2021-04-09 23:53:06 +08:00