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
347 stars 98 forks source link

Simulator fixes and support for using MacOS #334

Closed dgarske closed 1 year ago

dgarske commented 1 year ago
dgarske commented 1 year ago

Simulator test gives segmentation fault on linux.

Reproduce with: make test-sim-internal-flash-with-update

then tools/scripts/sim-sunnyday-update.sh

I suspect two different strategies need to be used on Mac vs GNU due to the differences in mmap "hint pointer" handling.

@danielinux I could not reproduce. What was your .config? I've only seen a seg fault if mmap returns a 64-bit pointer and parts of the code assume 32-bit when the address gets passed around.

danielinux commented 1 year ago

My bad, I was testing side-by-side, with the same config as master. I did not realize the address changed in the example config