]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi-api: cast before shift
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Jul 2025 17:00:44 +0000 (02:00 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 28 Jul 2025 18:10:26 +0000 (19:10 +0100)
commitbe876c5933a5eb223565e70773746a4b49d49c9f
tree266dcccbb2a950113e1a7b4153a982024c0d11d8
parent9fa08842b7ea28940b9841a40b211090394c081e
efi-api: cast before shift

Fixes the following error when running with sanitizers:
```
TEST-87-AUX-UTILS-VM.sh[670]: + bootctl install --make-entry-directory=yes
TEST-87-AUX-UTILS-VM.sh[695]: Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed" to "/boot/EFI/systemd/systemd-bootx64.efi".
TEST-87-AUX-UTILS-VM.sh[695]: Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed" to "/boot/EFI/BOOT/BOOTX64.EFI".
TEST-87-AUX-UTILS-VM.sh[695]: Created "/boot/fedora".
TEST-87-AUX-UTILS-VM.sh[695]: Random seed file /boot/loader/random-seed successfully refreshed (32 bytes).
TEST-87-AUX-UTILS-VM.sh[695]: ../src/shared/efi-api.c:618:38: runtime error: left shift of 243 by 24 places cannot be represented in type 'int'
```
src/shared/efi-api.c