summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.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-22 23:08:25 +0300
commitdee7ea0bb14e42d0e1f1d23079993a0c66b7c49f (patch)
treea5ff109d8aef8d976ffa33caeac722ebd2372b50 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent5214f931c9a9bed62e1d5324864c60f25b77590d (diff)
downloadedk2-dee7ea0bb14e42d0e1f1d23079993a0c66b7c49f.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