Files
Adithya SM c8ab060596 Fix: Packed attribute missing for FF_Part_t causing buggy memcpy and alignment issues (#77)
Fix: Packed attribute missing for FF_Part_t causing buggy memcpy and
alignment issues

Description
-----------
The structure `FF_Part_t` was used with `memcpy` to copy partition data
(`pxPartitions + xPartNr` into `p`) in ff_ioman.c, but it contains
bitfields:

typedef struct _SPart
{
    uint32_t ulStartLBA;
    uint32_t ulSectorCount;
    uint32_t ucActive : 8,
             ucPartitionID : 8,
             bIsExtended : 1;
} FF_Part_t;

Test Steps
-----------
This is a general fix; no additional tests are required.

Checklist:
----------
- [ ] I have tested my changes. No regression in existing tests[NOT
TESTED].
- [ ] I have modified and/or added unit-tests to cover the code changes
in this Pull Request.

Related Issue
-----------
None opened

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
2025-08-04 15:43:13 +08:00
..
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2024-04-29 08:05:50 +05:30
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2024-09-19 14:28:03 -07:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00
2023-12-05 17:34:02 -08:00