Comments (3)
Hello,
Thanks for reporting this. I'm going to run a few tests to confirm and test the proposed solution.
from wolfboot.
This should be fixed now via #251 which has been merged today. Feel free to reopen is anything does not check out.
Thanks!
--
D.
from wolfboot.
I can confirm that this happens on other architectures as well.
On ARM Cortex-M I get:
000007dc <wolfBoot_get_blob_version>:
7dc: 2300 movs r3, #0
7de: b507 push {r0, r1, r2, lr}
7e0: 6802 ldr r2, [r0, #0]
7e2: 9301 str r3, [sp, #4]
7e4: 4b05 ldr r3, [pc, #20] ; (7fc <wolfBoot_get_blob_version+0x20>)
7e6: 429a cmp r2, r3
7e8: d104 bne.n 7f4 <wolfBoot_get_blob_version+0x18>
7ea: 2101 movs r1, #1
7ec: aa01 add r2, sp, #4
7ee: 3008 adds r0, #8
7f0: f7ff ffcc bl 78c <wolfBoot_find_header>
7f4: 2000 movs r0, #0
7f6: b003 add sp, #12
7f8: f85d fb04 ldr.w pc, [sp], #4
7fc: 464c4f57 ; <UNDEFINED> instruction: 0x464c4f57
Before the proposed changes, and the following afterwards:
000007e4 <wolfBoot_get_blob_version>:
7e4: 2300 movs r3, #0
7e6: b507 push {r0, r1, r2, lr}
7e8: 6802 ldr r2, [r0, #0]
7ea: 9301 str r3, [sp, #4]
7ec: 4b09 ldr r3, [pc, #36] ; (814 <wolfBoot_get_blob_version+0x30>)
7ee: 429a cmp r2, r3
7f0: d003 beq.n 7fa <wolfBoot_get_blob_version+0x16>
7f2: 2000 movs r0, #0
7f4: b003 add sp, #12
7f6: f85d fb04 ldr.w pc, [sp], #4
7fa: 2101 movs r1, #1
7fc: aa01 add r2, sp, #4
7fe: 3008 adds r0, #8
800: f7ff ffc8 bl 794 <wolfBoot_find_header>
804: 2800 cmp r0, #0
806: d0f4 beq.n 7f2 <wolfBoot_get_blob_version+0xe>
808: 9b01 ldr r3, [sp, #4]
80a: 2b00 cmp r3, #0
80c: d0f1 beq.n 7f2 <wolfBoot_get_blob_version+0xe>
80e: 9b01 ldr r3, [sp, #4]
810: 6818 ldr r0, [r3, #0]
812: e7ef b.n 7f4 <wolfBoot_get_blob_version+0x10>
814: 464c4f57 ; <UNDEFINED> instruction: 0x464c4f57
from wolfboot.
Related Issues (20)
- SMNG.N5
- gicv2_init_secure() crash issue with both Raspberry Pi 3b hardware and Qemu HOT 4
- Raspberry Pi 3b hardware memory alignment issue HOT 1
- API documentation update trigger function call HOT 2
- API in README to trigger update HOT 1
- Internal flash encryption HOT 1
- Core lock up on STM32L0 HOT 4
- STM32U5 USART drivers support HOT 5
- External flash encrypted with Chacha broken HOT 19
- IAR linking errors HOT 5
- Running WolfBoot on ST NUCLEO-F401RE HOT 12
- `master` does not build with `wolfcrypt` 5.4.0 HOT 2
- Uefi shell wolfssl efi HOT 1
- Compilation for cortex-M0 HOT 10
- Reset keystore.der HOT 4
- Prevent ext_flash_decrypt_read from writing more data than requested HOT 1
- Support for keeping application partition encrypted on external flash HOT 1
- Content of keystore.der generated by kengen is not correct HOT 2
- Possible problem with power fail HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfboot.