diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-04-02 09:52:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-02 09:52:34 +0200 |
| commit | f42ce43556475acb576fa926f685128d1dccf64b (patch) | |
| tree | fe73e12f9b1bbee1c561a52a78a262bc60c90792 /src/coreboot-partition-map-parse.c | |
| parent | c78e5763d8f5e471d043e6ed2752e245dbcaf047 (diff) | |
| parent | 74f329a38884e3d3468ad6abad43a4fbd7afa970 (diff) | |
Merge pull request #1 from amlel-el-mahrouss/dev
arm64: fix: a fully arm64 firmware + important fixes and patches.
Diffstat (limited to 'src/coreboot-partition-map-parse.c')
| -rw-r--r-- | src/coreboot-partition-map-parse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coreboot-partition-map-parse.c b/src/coreboot-partition-map-parse.c index 6e828d9..85ccf1b 100644 --- a/src/coreboot-partition-map-parse.c +++ b/src/coreboot-partition-map-parse.c @@ -16,7 +16,7 @@ bool cb_parse_partition_block_data_at(voidptr_t blob, size_t blob_sz, size_t ind (sizeof(part_block_t) * index) > blob_sz) return false; - part_block_t* block = (part_block_t*)(block + (sizeof(part_block_t) * index)); + part_block_t* block = (part_block_t*)(blob + (sizeof(part_block_t) * index)); if (block->version != EPM_REVISION || block->num_blocks < 1 || @@ -42,7 +42,9 @@ part_block_t* cb_parse_partition_block_at(voidptr_t blob, size_t blob_sz, size_t (sizeof(part_block_t) * index) > blob_sz) return nil; - part_block_t* block = (part_block_t*)(block + (sizeof(part_block_t) * index)); + part_block_t* block = (part_block_t*)(blob + (sizeof(part_block_t) * index)); + + cb_put_string(block->magic); if (block->version != EPM_REVISION || block->num_blocks < 1 || |
