summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorAaron Pop <aaronpop@microsoft.com>2025-10-23 21:13:38 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-30 22:10:07 +0300
commit8f38acae6bd350622dd13dfbcd33777a2a4a0d9f (patch)
treeab2decd1c196cb4a09894212e56081a2c734256b /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent73f796bcf96ddd06e1aa0439c776154cccf06a5f (diff)
downloadedk2-8f38acae6bd350622dd13dfbcd33777a2a4a0d9f.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/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions