VirtualBox

Changeset 91500 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Sep 30, 2021 6:56:06 PM (3 years ago)
Author:
vboxsync
Message:

Runtime/efivarstorevfs: bugref:9580 - newer clang is upset that
computing the size of the block map for the checksum looks
suspiciously like incorrect computation of the number of array
elements. Pacify it using the workaround it suggests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/efi/efivarstorevfs.cpp

    r91497 r91500  
    24792479
    24802480    pu16 = (const uint16_t *)&aBlockMap[0];
    2481     while (pu16 < (const uint16_t *)&aBlockMap[0] + (sizeof(aBlockMap) / sizeof(uint16_t)))
     2481    while (pu16 < (const uint16_t *)&aBlockMap[0] + (sizeof(aBlockMap) / (sizeof(uint16_t))))
    24822482        u16Chksum += RT_LE2H_U16(*pu16++);
    24832483
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette