summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
diff options
context:
space:
mode:
authorAaron Pop <aaronpop@microsoft.com>2025-10-22 21:33:02 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-11-23 03:23:22 +0300
commit119184aa2c4d9463a1123567104e23773e402397 (patch)
treeb9143b41abb61e497ad8cd7f4b0ecb5efddb6705 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
parent2fd6884a9b5685d3a1129cb4ad3299b9f3aff84d (diff)
downloadedk2-119184aa2c4d9463a1123567104e23773e402397.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 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c')
0 files changed, 0 insertions, 0 deletions