<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/BaseTools/Source/C/VolInfo, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>BaseTools: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T17:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0e6d10de1c9aa3dd8c38979afc0249ad3da97e31'/>
<id>urn:sha1:0e6d10de1c9aa3dd8c38979afc0249ad3da97e31</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Note: Some files in BaseTools are excluded from the change if they
are autogenerated or direcly related to a header from a subproject,
etc. In particular, headers in these directories were ignored:

- BaseTools/Source/C/LzmaCompress/Sdk/
- BaseTools/Source/C/VfrCompile/Pccts/

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: Fix multiple security vulnerabilities (Defense in Depth)</title>
<updated>2025-12-22T04:53:27+00:00</updated>
<author>
<name>20000419</name>
<email>lzy00419@163.com</email>
</author>
<published>2025-12-18T08:38:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7c9fd884be4e94bd4ad8e998d85bb52d6f319e72'/>
<id>urn:sha1:7c9fd884be4e94bd4ad8e998d85bb52d6f319e72</id>
<content type='text'>
Signed-off-by: 20000419 &lt;lzy00419@163.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Update file and section type strings</title>
<updated>2022-10-02T05:34:38+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-22T13:30:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f01d3ee12caf5eae4ece4fc5b85c57c56fb06cc0'/>
<id>urn:sha1:f01d3ee12caf5eae4ece4fc5b85c57c56fb06cc0</id>
<content type='text'>
Change SMM to MM in naming according to the recent PI specifications.
Remove trailing whitespaces in some strings.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Update copyright information</title>
<updated>2022-10-02T05:34:38+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-24T09:47:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=b6d324e06b1e4658a65af1630eb99ac5233bc789'/>
<id>urn:sha1:b6d324e06b1e4658a65af1630eb99ac5233bc789</id>
<content type='text'>
Add Konstantin Aladyshev to the copyright header.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Parse apriori files</title>
<updated>2022-10-02T05:34:38+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-22T15:37:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=4e1133b946e6640308560a8cb848c3e0f57de4cd'/>
<id>urn:sha1:4e1133b946e6640308560a8cb848c3e0f57de4cd</id>
<content type='text'>
Output file GUIDs from the DXE and PEI apriori files.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Increase GUID base name string</title>
<updated>2022-10-02T05:34:38+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-21T13:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c24328ca623866f2178c1cc004b50d41a3460fce'/>
<id>urn:sha1:c24328ca623866f2178c1cc004b50d41a3460fce</id>
<content type='text'>
The current string lenght (=60) is not enough for cases where basename
is a path to Build folder.
Drop custom define and use MAX_LINE_LEN from the BaseTools codebase
instead.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Fix EFI_SECTION_GUID_DEFINED parsing</title>
<updated>2022-10-02T05:34:38+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-08-30T10:14:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8be33c6544fae522e32c045ad81bac4d333dccb0'/>
<id>urn:sha1:8be33c6544fae522e32c045ad81bac4d333dccb0</id>
<content type='text'>
Currently 'PutFileImage' function is called with arguments that are
not advanced on each section parsing. This would lead to an error if
EFI_SECTION_GUID_DEFINED is not the first in a file.
The same mistake is present in the parsing of CRC32 guided section
case.
Use correct arguments to fix the issue.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Correct buffer for GenCrc32 tool</title>
<updated>2022-10-02T05:34:38+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-19T13:44:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9fc029ee6248e7998a478e02dc1abf82ac8ae376'/>
<id>urn:sha1:9fc029ee6248e7998a478e02dc1abf82ac8ae376</id>
<content type='text'>
If the guided section was encoded with GenCrc32 tool the resulting
'EFI_GUID_DEFINED_SECTION.DataOffset' field points to the start of
the meaningfull data that follows the CRC32 value.
But if we want to decode the section with GenCrc32 tool we need to
provide a buffer that includes the CRC32 value itself.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Parse EFI_SECTION_FREEFORM_SUBTYPE_GUID header</title>
<updated>2022-08-06T15:12:28+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-20T12:00:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d241a09afbe4f472a5d7da5090dfc85046f2250f'/>
<id>urn:sha1:d241a09afbe4f472a5d7da5090dfc85046f2250f</id>
<content type='text'>
Print 'SubtypeGuid' field from the EFI_FREEFORM_SUBTYPE_GUID_SECTION
structure.
This value describes the raw data inside the section.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Bob Feng&lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/VolInfo: Show FV section boundaries</title>
<updated>2022-08-06T15:12:28+00:00</updated>
<author>
<name>Konstantin Aladyshev</name>
<email>aladyshev22@gmail.com</email>
</author>
<published>2022-07-19T15:45:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f5f8c08db92d15c7a359a5eb3b0cc2545c945942'/>
<id>urn:sha1:f5f8c08db92d15c7a359a5eb3b0cc2545c945942</id>
<content type='text'>
Currently there is no labels for start and end of the
EFI_SECTION_FIRMWARE_VOLUME_IMAGE type section. Therefore it is not
possible to see where the FV section ends and another section starts.
Add labels for start and end of the FV sections to fix the issue.

Signed-off-by: Konstantin Aladyshev &lt;aladyshev22@gmail.com&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
</feed>
