VirtualBox

Ticket #16083 (new defect)

Opened 5 years ago

VBox/Devices/EFI/Firmware/VBoxPkg/VBoxVgaDxe/Edid.c:401: bad sizeof ?

Reported by: dcb Owned by:
Component: other Version: VirtualBox 5.1.8
Keywords: Cc:
Guest type: other Host type: other

Description

src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxVgaDxe/Edid.c:401]: (warning) Found calculation inside sizeof().

Source code is

EdidOverrideDataBlock = AllocatePool (sizeof (EDID_BLOCK_SIZE * 2));

Maybe better code

EdidOverrideDataBlock = AllocatePool (sizeof (EDID_BLOCK_SIZE) * 2);

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use