10 Commits

Author SHA1 Message Date
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
Archit Gupta
ff1e980efe Fix spelling of persistence 2024-07-08 16:58:48 +00:00
Soren Ptak
90281cb5ba CI-CD-Updates (#58)
* Remove exec privileges from c and h files
* Apply Formatting Changes
* Spelling Mistake Fixes
2023-12-05 17:34:02 -08:00
Frédéric Nadeau
903c54ce44 Fix typo in FF_CreateIOManager (#41) 2023-02-27 23:24:58 +05:30
Hein Tibosch
13f1913ecc Protect FF_Open in create mode with a new semaphore v2 (#38)
Co-authored-by: Hein Tibosch <hein@htibosch.net>
2022-10-31 10:52:26 -07:00
Hein Tibosch
a6b0b6570e Make reading from and writing to the FSINFO independent (#27)
Co-authored-by: Hein Tibosch <hein at htibosch dot net>
2022-03-06 10:36:03 -08:00
Hein Tibosch
50ea2f2568 Formatted sources using Uncrustify, updated copyright notices. (#16)
* Formatted sources using Uncrustify, updated copyright notices.

* Adding the uncrustify configuration file.

* Changed the copyright notices.

Co-authored-by: Hein Tibosch <hein@htibosch.net>
2021-05-10 11:12:02 -07:00
John Grenard
d725a4c14a Add support to format disks that have a sector size other than 512-bytes. (#5)
* changes to support UTF16 and LFN

* FF_Format - Replace hardcoded sector-size with existing parameter

* Revert minor formatting changes

* Update ffconfigOPTIMISE_UNALIGNED_ACCESS documentation.

* Update FF utilities for sectors larger than 512

Co-authored-by: Arpita <arpita.yagnik@renesas.com>
Co-authored-by: Kristine Jassmann <kristine.jassmann@renesas.com>
2021-03-15 10:31:05 -07:00
Yuhui Zheng
f90428e298 Sync with the distribution in FreeRTOS-Labs at commit 1ad51506443ab5550fbdde9c27a84b5879dd2a73. 2020-02-27 17:29:06 -08:00
Yuhui Zheng
7daf0485d8 Initial commit: FreeRTOS-Plus-FAT-160919a-MIT as-is. 2019-11-19 17:57:06 -08:00