/** @file\r
HII Config Access protocol implementation of VLAN configuration module.\r
\r
-Copyright (c) 2009, Intel Corporation.<BR>\r
+Copyright (c) 2009 - 2010, Intel Corporation.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
of the BSD License which accompanies this distribution. The full\r
//\r
// Remove VLAN\r
//\r
+ ASSERT (PrivateData->NumberOfVlan <= MAX_VLAN_NUMBER);\r
for (Index = 0; Index < PrivateData->NumberOfVlan; Index++) {\r
if (Configuration->VlanList[Index] != 0) {\r
//\r
EFI_STATUS Status;\r
EFI_HII_HANDLE HiiHandle;\r
EFI_HANDLE DriverHandle;\r
- CHAR16 Str[40];\r
+ CHAR16 Str[26 + sizeof (EFI_MAC_ADDRESS) * 2 + 1];\r
CHAR16 *MacString;\r
EFI_DEVICE_PATH_PROTOCOL *ChildDevicePath;\r
EFI_HII_CONFIG_ACCESS_PROTOCOL *ConfigAccess;\r
PrivateData->MacString = MacString;\r
\r
StrCpy (Str, L"VLAN Configuration (MAC:");\r
+ ASSERT (StrLen (MacString) <= (sizeof (EFI_MAC_ADDRESS) * 2));\r
StrCat (Str, MacString);\r
StrCat (Str, L")");\r
HiiSetString (\r