diff options
| author | Aaron Pop <aaronpop@microsoft.com> | 2025-10-23 21:13:38 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-08-05 09:27:20 +0300 |
| commit | 8c66d989635db3b512036c9388d57a8edec42e2c (patch) | |
| tree | a8e87b409b8b311f173da0b269b1a59ebb470c22 /BaseTools/Source/Python/Workspace/MetaFileParser.py | |
| parent | 9b3ceeb254db5151df1ec5f2cacaea7a3cf0518c (diff) | |
| download | edk2-8c66d989635db3b512036c9388d57a8edec42e2c.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/MetaFileParser.py')
0 files changed, 0 insertions, 0 deletions
