Commit ef3fe77
committed
Bootutil: always initialise the size returned by boot_util_image_size()
Assert on the pointer validity in debug builds and make sure that
an initialised value of 0 is always returned even in case of errors
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I8d64cf6319a632e39ff51af1296faf92d31182781 parent 671513c commit ef3fe77
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
755 | 758 | | |
756 | 759 | | |
757 | 760 | | |
| |||
0 commit comments