diff options
| author | Aaron Pop <aaronpop@microsoft.com> | 2025-10-22 21:33:02 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-08-05 05:13:24 +0300 |
| commit | bf0dc7d78701c93a2edeeadcb0daca58f4af91a6 (patch) | |
| tree | 64da9a9e19fedb2d27f8ca51e7620dd8a501dca7 /BaseTools/Source/Python/Workspace/MetaFileTable.py | |
| parent | fa41c179db1f9fc21eb425f44b85a16262c806ca (diff) | |
| download | edk2-bf0dc7d78701c93a2edeeadcb0daca58f4af91a6.tar.xz | |
MdeModulePkg: Fix comparison with wider widths
https://codeql.github.com/codeql-query-help/cpp/cpp-comparison-with-wider-type
If the narrow type (smaller range) is compared against a wide type
(larger range), the narrow value may overflow before reaching the wide
value. This can cause unexpected behavior, such as:
Infinite loops (loop condition never becomes false).
Incorrect logic (comparison results are misleading).
Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileTable.py')
0 files changed, 0 insertions, 0 deletions
