VirtualBox

Opened 8 years ago

#16083 new defect

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);

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use