#
a7d2cddd |
| 15-Jul-2024 |
Ed Tanous <etanous@nvidia.com> |
Move to embedded base64
Base64 encode/decode is a relatively simple algorithm, and currently libcper takes a dependency on libb64 for this. libb64 does not have methods for determining the encoded
Move to embedded base64
Base64 encode/decode is a relatively simple algorithm, and currently libcper takes a dependency on libb64 for this. libb64 does not have methods for determining the encoded size or decoded size, and rely on the user to provide the right buffer sizes, which libcper currently approximates as 2X the input size (which is incorrect).
This commit removes the libb64 dependency entirely, and inlines a libcper specific base64 encoder and decoder, using EDK2-allowed types.
The implementation itself is unique to libcper and makes the following design decisions. 1. Malloc is performed within the base64_<> functions. This reduces the number of malloc calls total, and removes the need for separately determining the output size. 2. Arguments are passed in by EDK2-types under the assumption that this will keep compatibility with EDK2 implementations. 3. Incremental parsing is not supported. CPER records are expected to be algorithmically small, and buffered such that the entire value fits in memory. This was already an assumption, but dropping the support for incremental encoding significantly reduces the amount of code to support it. It could be added back in the future if needed.
Change-Id: Idb010db105067ea317dbee05c2663511ab3c6611 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
fedd457d |
| 12-Jul-2024 |
Ed Tanous <ed@tanous.net> |
Remove trailing whitespace
clang-format won't remove trailing whitespace if that's the only change. Fix them all.
Change-Id: Ic6e14af43cdd11905d3b58430d49b9ec1484f812 Signed-off-by: Ed Tanous <ed@t
Remove trailing whitespace
clang-format won't remove trailing whitespace if that's the only change. Fix them all.
Change-Id: Ic6e14af43cdd11905d3b58430d49b9ec1484f812 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
f8fc7052 |
| 03-May-2024 |
John Chung <john.chung@arm.com> |
Formatting .c/.h files and fix memory leakage issues
Signed-off-by: John Chung <john.chung@arm.com> Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68
|
#
5202bbb4 |
| 12-Aug-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Source json.h non-locally.
Change-Id: Ia42c41fde74596b394a1f7ae0021f1a5510991a8
|
#
3592da71 |
| 21-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add human readable name to IA32x64 error info GUIDs.
|
#
e407b4c8 |
| 21-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Partial reformat to kernel code style.
|
#
04750a9e |
| 20-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Fix errata in IA32x64 processing.
|
#
01e3a44d |
| 20-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Fix IA32x64 pointer corruption, invalid generation on ARM.
|
#
aacf0e26 |
| 20-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add fixes based on test fuzzing.
|
#
d34f2b11 |
| 19-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add test suite, fix a mountain of small errors.
|
#
bd9a84a6 |
| 13-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Complete IA32/x64 conversion.
|
#
d0c88849 |
| 13-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add partial IA32x64 CPER-JSON support.
|
#
3636d3c2 |
| 11-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add ARM JSON to specification.
|
#
12c1f65d |
| 08-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Expand specification to IA32/x64 targets.
|
#
f0f95574 |
| 07-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add README, reverse function signature.
|
#
151c6cab |
| 07-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
FIx missing CR8 register in IA32/x86.
|
#
9a785c2a |
| 07-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add CPU information to generic/IA32/x64 sections.
|
#
d7e8ca34 |
| 07-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add CXL component GUIDs, b64 dumps for unknown.
|
#
7f21db6c |
| 06-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add complete ARM support, partial memory support.
|
#
22a467ce |
| 05-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Fix hanging issues.
|
#
2800cd8e |
| 05-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add initial ARM support, fix bit shifting error.
|
#
794312c8 |
| 05-Jul-2022 |
Lawrence Tang <lawrence.tang@arm.com> |
Add untested IA32/x64 log support.
|