<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/EmbeddedPkg/Library/PrePiLib, branch dependabot/github_actions/github/codeql-action-4</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Fgithub%2Fcodeql-action-4</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Fgithub%2Fcodeql-action-4'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2025-09-11T21:05:29+00:00</updated>
<entry>
<title>EmbeddedPkg/PrePiLib: minor cleanup in FfsProcessSection ()</title>
<updated>2025-09-11T21:05:29+00:00</updated>
<author>
<name>Leif Lindholm</name>
<email>leif.lindholm@oss.qualcomm.com</email>
</author>
<published>2025-07-10T11:39:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=615e5ca40a0d47d5381bda57821ca8aa1e821b0a'/>
<id>urn:sha1:615e5ca40a0d47d5381bda57821ca8aa1e821b0a</id>
<content type='text'>
Drop an else wrapper in FfsProcessSection () on the other side of
an if-statemenmt that is an error return.

Signed-off-by: Leif Lindholm &lt;leif.lindholm@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiLib: eliminate unneeded variable in FfsProcessSection ()</title>
<updated>2025-09-11T21:05:29+00:00</updated>
<author>
<name>Leif Lindholm</name>
<email>leif.lindholm@oss.qualcomm.com</email>
</author>
<published>2025-07-10T13:18:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=24fd71dcaa7869b5aecfd3f429e9549d55af9dcb'/>
<id>urn:sha1:24fd71dcaa7869b5aecfd3f429e9549d55af9dcb</id>
<content type='text'>
The "Found" variable provided only a deferred form of success handling, so
eliminate it to improve readability.

Signed-off-by: Leif Lindholm &lt;leif.lindholm@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiLib: refactor FfsProcessSection ()</title>
<updated>2025-09-11T21:05:29+00:00</updated>
<author>
<name>Leif Lindholm</name>
<email>leif.lindholm@oss.qualcomm.com</email>
</author>
<published>2025-07-10T12:50:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6b19b447c5b3c8bb5adbf84d56fc9b6e8dda238a'/>
<id>urn:sha1:6b19b447c5b3c8bb5adbf84d56fc9b6e8dda238a</id>
<content type='text'>
Create some helper functions to make FfsProcessSection at least halfway
readable by both humans and compilers.

Signed-off-by: Leif Lindholm &lt;leif.lindholm@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: CodeQL Fixes.</title>
<updated>2025-01-15T11:18:04+00:00</updated>
<author>
<name>Vineel Kovvuri[MSFT]</name>
<email>vineelko@microsoft.com</email>
</author>
<published>2024-10-25T23:37:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=aae044a130599427e3562fe5736d7b2d42777272'/>
<id>urn:sha1:aae044a130599427e3562fe5736d7b2d42777272</id>
<content type='text'>
Makes changes to comply with alerts raised by CodeQL.

Most of the issues here fall into the following two categories:

1. Potential use of uninitialized pointer.
2. Inconsistent integer width in comparison.

Co-authored-by: Taylor Beebe &lt;taylor.d.beebe@gmail.com&gt;
Co-authored-by: Ken Lautner &lt;kenlautner3@gmail.com&gt;
Co-authored-by: Bret Barkelew &lt;bret@corthon.com&gt;
Signed-off-by: Vineel Kovvuri[MSFT] &lt;vineelko@microsoft.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiLib: Drop unused PCD PcdPrePiCpuIoSize</title>
<updated>2023-02-04T10:55:05+00:00</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ardb@kernel.org</email>
</author>
<published>2023-02-03T11:02:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7c138e400862a3a742489ca6f21d31afa9a3dd8a'/>
<id>urn:sha1:7c138e400862a3a742489ca6f21d31afa9a3dd8a</id>
<content type='text'>
The code never references the PCD so the INF should not reference it
either. The last reference was moved to PrePiHobLib in commit
05e48e00834b32e4bd2 (dated 2011!) and dropped from there as well in
commit 97106391955337155e7.

Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Daniel Schaefer &lt;git@danielschaefer.me&gt;
Reported-by: Sunil V L &lt;sunilvl@ventanamicro.com&gt;
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Reviewed-by: Sunil V L &lt;sunilvl@ventanamicro.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: Add back FfsFindSectionData</title>
<updated>2023-01-19T08:35:59+00:00</updated>
<author>
<name>Min M Xu</name>
<email>min.m.xu@intel.com</email>
</author>
<published>2023-01-19T01:51:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=51411435d559c55eaf38c02baf5d76da78bb658d'/>
<id>urn:sha1:51411435d559c55eaf38c02baf5d76da78bb658d</id>
<content type='text'>
In commit c673216f53 a new input parameter is added in FfsFindSectionData.
That change breaks the build of ArmVirtPkg. In this patch
FfsFindSectionData is added back. It calls FfsFindSectionDataWithHook with
a NULL hook.

Signed-off-by: Min Xu &lt;min.m.xu@intel.com&gt;
Reviewed-by: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Acked-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: Rename FfsFindSectionData as FfsFindSectionDataWithHook</title>
<updated>2023-01-19T08:35:59+00:00</updated>
<author>
<name>Min M Xu</name>
<email>min.m.xu@intel.com</email>
</author>
<published>2023-01-19T01:51:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0826808d4f0246f25d25fdf60c0bce8172040f41'/>
<id>urn:sha1:0826808d4f0246f25d25fdf60c0bce8172040f41</id>
<content type='text'>
Commit c673216f53 introduces FFS_CHECK_SECTION_HOOK and add it as the
second input parameter in FfsFindSectionData. This change breaks the build
of ArmVirtPkg. To fix this issue, the new version of FfsFindSectionData
is renamed as FfsFindSectionDataWithHook in this patch. In the following
patch the original FfsFindSectionData will be added back.

FfsFindSectionData is renamed as FfsFindSectionDataWithHook. Accordingly
PeilessStartupLib in OvmfPkg should be updated as well. To prevent the
build from being broken, the changes in OvmfPkg are in this patch.

Signed-off-by: Min Xu &lt;min.m.xu@intel.com&gt;
Reviewed-by: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Acked-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiLib: Add FFS_CHECK_SECTION_HOOK when finding section</title>
<updated>2023-01-18T03:04:27+00:00</updated>
<author>
<name>Min M Xu</name>
<email>min.m.xu@intel.com</email>
</author>
<published>2023-01-16T23:31:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c673216f53bd18515ecbffdba75af007e6700853'/>
<id>urn:sha1:c673216f53bd18515ecbffdba75af007e6700853</id>
<content type='text'>
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4152

EmbeddedPkg/PrePiLib provides the service of finding sections based on
the input SectionType. But sometimes there maybe multiple sections
with the same SectionType. FFS_CHECK_SECTION_HOOK is a hook which can
be called to do additional check.

Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Daniel Schaefer &lt;git@danielschaefer.me&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Erdem Aktas &lt;erdemaktas@google.com&gt;
Cc: James Bottomley &lt;jejb@linux.ibm.com&gt;
Cc: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Cc: Tom Lendacky &lt;thomas.lendacky@amd.com&gt;
Acked-by: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Signed-off-by: Min Xu &lt;min.m.xu@intel.com&gt;
Acked-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: Fix a build error in FwVol.c in X64 arch</title>
<updated>2022-01-27T06:19:05+00:00</updated>
<author>
<name>Min Xu</name>
<email>min.m.xu@intel.com</email>
</author>
<published>2021-12-16T04:55:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6777e673839a510aaa62a48514a4223da7d3bba2'/>
<id>urn:sha1:6777e673839a510aaa62a48514a4223da7d3bba2</id>
<content type='text'>
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3814

CompressedDataLength is declared as UINTN which is UINT64 in X64 arch.
But the second parameter of UefiDecompressGetInfo() is declared as
UINT32. So a build error is triggered. To declare CompressedDataLength
as UINT32 to fix the build error.

Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Abner Chang &lt;abner.chang@hpe.com&gt;
Cc: Daniel Schaefer &lt;daniel.schaefer@hpe.com&gt;
Signed-off-by: Min Xu &lt;min.m.xu@intel.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e7108d0e9655b1795c94ac372b0449f28dd907df'/>
<id>urn:sha1:e7108d0e9655b1795c94ac372b0449f28dd907df</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the EmbeddedPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Andrew Fish &lt;afish@apple.com&gt;
</content>
</entry>
</feed>
