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-07-30 22:10:07 +0300 |
| commit | 8f38acae6bd350622dd13dfbcd33777a2a4a0d9f (patch) | |
| tree | ab2decd1c196cb4a09894212e56081a2c734256b /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | 73f796bcf96ddd06e1aa0439c776154cccf06a5f (diff) | |
| download | edk2-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
