commit | e757832d9976895cec3596be2b896aadddd816bc | [log] [tgz] |
---|---|---|
author | Balint Dobszay <balint.dobszay@arm.com> | Fri Jun 13 19:36:34 2025 +0200 |
committer | Balint Dobszay <balint.dobszay@arm.com> | Fri Jun 13 19:36:34 2025 +0200 |
tree | c68302518ddca836d81c1f0bbc75a735b108c20b | |
parent | a9e544c4deb3ea974609755fe091d5cad429f297 [diff] |
Fix name string handling for boot info parsing The name string in a boot info descriptor is a null terminated string, but if the string is shorter than the field reserved for the name, it will contain more than one null value at the end. Currently this causes issues because the CStr::from_bytes_with_nul() method expects exactly a single null character in the buffer, and returns an error if there are more. Fix this by using the CStr::from_bytes_until_nul() method, which handles this scenario correctly. Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I9add8a56387b69a46d80781fc630ea6a820eb659
Arm Firmware Framework for Arm A-profile (FF-A) specification
FF-A Memory Management Protocol specification
Library for handling common FF-A related functionality, create and parse interfaces and descriptors defined by FF-A. Starting from FF-A v1.2 the memory management related parts of the specification have been moved to a separate document (link above).
thiserror
) so the library user knows what's wrong.ffa_v1_1
and later modules).zerocopy
traits.The FF-A specification allows different components of a system to use different versions of the specification. The version used at a specific FF-A instance (i.e. an interface between two FF-A components) is discovered at runtime, either by parsing FF-A manifests or using FFA_VERSION
. An FF-A component might have to use multiple versions at runtime on its different interfaces, therefore this library must be able to support this and having a compile time fixed version is not possible. Because of this, most of the functions to create or parse FF-A messages and data structures require passing the FF-A version used at the instance where the serialized data was received from or will be sent to.
FFA_MEM_*
interfaces (partial).The project is MIT and Apache-2.0 dual licensed, see LICENSE-APACHE
and LICENSE-MIT
.
arm-ffa is a trustedfirmware.org maintained project. All contributions are ultimately merged by the maintainers listed below.
Please follow the directions of the Trusted Firmware Processes
Contributions are handled through review.trustedfirmware.org.
Please follow the directions of the Trusted Firmware Security Center
Copyright 2025 Arm Limited and/or its affiliates open-source-office@arm.com
Arm is a registered trademark of Arm Limited (or its subsidiaries or affiliates).