Forked from
IOPSYS / IOWRT
22394 commits behind the upstream repository.
-
Mathias Kresin authored
The sum variable need to be initialised, otherwise it will points to random stack memory and a bogus image checksum might be calculated. While at it, fix the segfault in case the product region code isn't specified and enable compiler warnings which had revealed all the code issues. Signed-off-by:
Mathias Kresin <dev@kresin.me>
Mathias Kresin authoredThe sum variable need to be initialised, otherwise it will points to random stack memory and a bogus image checksum might be calculated. While at it, fix the segfault in case the product region code isn't specified and enable compiler warnings which had revealed all the code issues. Signed-off-by:
Mathias Kresin <dev@kresin.me>
dgn3500sum.c 4.93 KiB