wolfSSL / wolfBoot

wolfBoot is a portable, OS-agnostic, secure bootloader for microcontrollers, supporting firmware authentication and firmware update mechanisms.
https://www.wolfssl.com
GNU General Public License v3.0
334 stars 95 forks source link

Delta updates: 32-bit fields for patch size #358

Closed danielinux closed 10 months ago

danielinux commented 10 months ago

Delta updates: patch size was limited to 65535, due to the fields HDR_IMG_DELTA_SIZE and HDR_IMG_DELTA_INVERSE_SIZE being 2 Bytes long (uint16_t).

This PR increases the size for these two fields to four bytes each (uint32_t). The maximum patch size for delta updates is now 16MB, due to the position compression in the delta format (24 bit).