VirtualBox

Opened 9 years ago

Closed 9 years ago

#15516 closed defect (invalid)

vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp:879: wrong delete ?

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

Description

vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp:879]: (error) Mismatching allocation and deallocation: NewStr

Source code is

NewStr = new CHAR8[strlen (VarStr) + strlen (SName) + 1]; NewStr[0] = '\0'; strcpy (NewStr, SName); strcat (NewStr, VarStr + strlen (FName)); ReturnCode = lCVfrVarDataTypeDB.GetDataFieldInfo (NewStr, Info.mInfo.mVarOffset, Info.mVarType, Info.mVarTotalSize); delete NewStr;

Change History (1)

comment:1 by Frank Mehnert, 9 years ago

Resolution: invalid
Status: newclosed

Sorry, there is no point in opening these tickets against VirtualBox. This code is taken from the UDK tianocore repository so please, notify them about these minor issues and the fixes will find their way into VirtualBox eventually. A non-matching delete to a new [] is NOT a major issue.

Note: See TracTickets for help on using tickets.

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